Gard Posted February 11, 2010 Share Posted February 11, 2010 Hello all.. How can i set the distance Lod models?? Without is in programation. Only in script, or parameters in the file .ini. Is there anyway? Quote Link to comment Share on other sites More sharing options...
omid3098 Posted February 11, 2010 Share Posted February 11, 2010 check this: How to define LOD Distance 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...
Paul Posted February 12, 2010 Share Posted February 12, 2010 Does the engine even read the .ini files? Quote Intel Core i7 975 @ 3.33GHz, 6GB ram, GTX 560 Super OC, Windows 7 Pro 64bit Link to comment Share on other sites More sharing options...
omid3098 Posted February 12, 2010 Share Posted February 12, 2010 yes I can use it for mass and collision type, sound and ... you can check oildrum.ini 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 February 12, 2010 Share Posted February 12, 2010 I recommend using the script. 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...
Paul Posted February 12, 2010 Share Posted February 12, 2010 yes I can use it for mass and collision type, sound and ... you can check oildrum.ini But is it being used since the script also loads the sounds? Quote Intel Core i7 975 @ 3.33GHz, 6GB ram, GTX 560 Super OC, Windows 7 Pro 64bit Link to comment Share on other sites More sharing options...
macklebee Posted February 12, 2010 Share Posted February 12, 2010 In the way the script is written, no the sound key in the ini file is not being used. It could have been if the object keys had been set for it inside the script. But if you open the properties dialog for the oildrum, you will see that the mass is being set by the ini file. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Gard Posted February 12, 2010 Author Share Posted February 12, 2010 I see the file: "Models\Vegetation\Trees\Beech\tree_beech_a.ini", and change the parameters "LODDistance="20 140"", but i had no results.. omid3098: i can't view this link, because, i'm the group Members. I still do not have the license.. Quote Link to comment Share on other sites More sharing options...
macklebee Posted February 12, 2010 Share Posted February 12, 2010 thats because it needs the script to decide what to do with the key... it would be easier just to set it with the script with the command SetModelLODDistance and not bother with ini files Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
omid3098 Posted February 12, 2010 Share Posted February 12, 2010 oops.. I didn't see your Group.. sorry. you can't define LOD distance using .ini files.. and what you find in trees was for previous versions that didn't changed yet.(don't take them serious!) and that link was consist of what Mack said. 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...
Gard Posted February 12, 2010 Author Share Posted February 12, 2010 thanks, i did! Quote Link to comment Share on other sites More sharing options...
Paul Posted February 12, 2010 Share Posted February 12, 2010 In the way the script is written, no the sound key in the ini file is not being used. It could have been if the object keys had been set for it inside the script. But if you open the properties dialog for the oildrum, you will see that the mass is being set by the ini file. So is this automatic or does the script have to open the ini file?I can't find anything in the wiki about how the engine treats ini files. Quote Intel Core i7 975 @ 3.33GHz, 6GB ram, GTX 560 Super OC, Windows 7 Pro 64bit Link to comment Share on other sites More sharing options...
Josh Posted February 12, 2010 Share Posted February 12, 2010 Don't use .ini files. They may be discontinued in the future. Everyone is using Lua, because that gives you complete control of everything. 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 February 12, 2010 Share Posted February 12, 2010 I use ini files to store values for Lua properties. like mass and collision type. by using oildrum.lua as a template and set parameters in .ini file (from oildrum.ini!). I don't need to set them for each model when I reopen my scene. Is it possible to define default values in mymodel.lua? (I know you guys are not here to teach me Lua, so please link me to one of available models in SDK) 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...
Paul Posted February 13, 2010 Share Posted February 13, 2010 Is it possible to define default values in mymodel.lua? (I know you guys are not here to teach me Lua, so please link me to one of available models in SDK) I'd assume so, the lua script can still call get and setkey Quote Intel Core i7 975 @ 3.33GHz, 6GB ram, GTX 560 Super OC, Windows 7 Pro 64bit Link to comment Share on other sites More sharing options...
Josh Posted February 14, 2010 Share Posted February 14, 2010 require("scripts/class") local class=CreateClass(...) function class:CreateObject(model) local object=self.super:CreateObject(model) object.model:SetKey("mass","1") end 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 February 14, 2010 Share Posted February 14, 2010 thank you Paul and Josh.. so there is no more need to ini files! 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...
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.