omid3098 Posted January 23, 2010 Share Posted January 23, 2010 I made a very very BIG model and when I drag it into editor, it will allways LOD2 visible (because of my distance from center of model). well I cound node define LOD distance in ini file as below: Mymodel.ini: LODDistance="1000 2500" and also could not find other samples in available models.. how can I define LODDistance? Quote Omid Saadat OD Arts Blog AMD Phenom II X4 940 - Geforce 8800GTS - 4GB RAM - XP x86 AMD 6000+ - Geforce 9800 GT - 2GB RAM - XP x86 (Home pc) Intel Core i7 - Geforce 310M - 4GB Ram - Win7 x64 (Laptop) Link to comment Share on other sites More sharing options...
AggrorJorn Posted January 23, 2010 Share Posted January 23, 2010 I made a very very BIG model and when I drag it into editor, it will allways LOD2 visible (because of my distance from center of model). well I cound node define LOD distance in ini file as below: Mymodel.ini: LODDistance="1000 2500" and also could not find other samples in available models.. how can I define LODDistance? I don't know why the ini file doesn't work. What you could do is copy the gmf model, and call it: modelnameLOD1.gmf. The editor thinks it needs to use LOD1 although its the same model. This is the ini convention for LOD: LODDistance=”distance_LOD1 distance_LOD2” LODDistance=”60 120” Quote Link to comment Share on other sites More sharing options...
omid3098 Posted January 24, 2010 Author Share Posted January 24, 2010 counld you make it work with this converted ini? I couldn't.. Quote Omid Saadat OD Arts Blog AMD Phenom II X4 940 - Geforce 8800GTS - 4GB RAM - XP x86 AMD 6000+ - Geforce 9800 GT - 2GB RAM - XP x86 (Home pc) Intel Core i7 - Geforce 310M - 4GB Ram - Win7 x64 (Laptop) Link to comment Share on other sites More sharing options...
Josh Posted January 24, 2010 Share Posted January 24, 2010 Use the Lua command in the script, in the object creation function. http://www.leadwerks.com/wiki/index.php?title=Models#SetModelLODDistance Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
omid3098 Posted January 24, 2010 Author Share Posted January 24, 2010 ok, thank you Josh..! Quote Omid Saadat OD Arts Blog AMD Phenom II X4 940 - Geforce 8800GTS - 4GB RAM - XP x86 AMD 6000+ - Geforce 9800 GT - 2GB RAM - XP x86 (Home pc) Intel Core i7 - Geforce 310M - 4GB Ram - Win7 x64 (Laptop) Link to comment Share on other sites More sharing options...
AggrorJorn Posted January 24, 2010 Share Posted January 24, 2010 The models can have up to 8 LOD stages? The index parameter (values 0-7) Quote Link to comment Share on other sites More sharing options...
Josh Posted January 28, 2010 Share Posted January 28, 2010 Yes. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Flexman Posted March 2, 2010 Share Posted March 2, 2010 I have a question. Are INI files going to be phased out completely? If functionality from these files are being steadily dropped requiring a LUA script for every object, I'd rather get started sooner rather than later. Having a global SetLODDistance override would be very handy for sniper scopes, TV cameras, that sort of thing. Quote 6600 2.4G / GTX 460 280.26 / 4GB Windows 7 Author: GROME Terrain Modeling for Unity, UDK, Ogre3D from PackT Tricubic Studios Ltd. ~ Combat Helo Link to comment Share on other sites More sharing options...
Canardia Posted March 2, 2010 Share Posted March 2, 2010 I think it should be LODDistance="60.0,120.0", because in LE 2.3 sbx format all value seperators have changed from space to comma also since LE 2.28. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Josh Posted March 3, 2010 Share Posted March 3, 2010 I have a question. Are INI files going to be phased out completely? Yes. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Canardia Posted March 3, 2010 Share Posted March 3, 2010 How do artists define then the default values for models which they drag into Editor? I don't suppose they have to learn Lua? Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Marleys Ghost Posted March 3, 2010 Share Posted March 3, 2010 well you have the concept of "programmers art" why not "Artists Code" ? surely a modicum of ability with lua is needed? Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
AggrorJorn Posted March 3, 2010 Share Posted March 3, 2010 I'm updating the LUG this weekend which contains information about ini files and what the LUA equivelant is. Artists can simply just copy the code and change only the numbers of the LOD distance. Quote Link to comment Share on other sites More sharing options...
Flexman Posted March 3, 2010 Share Posted March 3, 2010 Well it's good to know about the INI files. One way or another. So from "LODDistance=120" to require("scripts/class") local class=CreateClass(...) function class:CreateObject(model) model:SetLODDistance(120,0) end Would be handy of the LE Editor could add a LUA file to entities that don't have one. And the option to stamp in some default values like mass, collision type, LOD. Then again, seems a bit lazy. Cheers and thank you. Quote 6600 2.4G / GTX 460 280.26 / 4GB Windows 7 Author: GROME Terrain Modeling for Unity, UDK, Ogre3D from PackT Tricubic Studios Ltd. ~ Combat Helo Link to comment Share on other sites More sharing options...
Michael Betke Posted March 3, 2010 Share Posted March 3, 2010 I would like to see an option in the properties. Quote Pure3d Visualizations Germany - digital essences AAA 3D Model Shop specialized on nature and environments Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.