Clackdor Posted December 29, 2011 Share Posted December 29, 2011 1. Why is my environment_atmosphere not loading into my C++ program when I use LoadScene(abstract::pacman.sbx"; All of my other models load. Should this work or should I be setting atmosphere settings with the Framework commands like I have been doing up until now. 2. How do I set LOD ranges in the editor? I can do it with vegetation command under the terrain tool (I guess, see below). 3. How do I set collision in the editor on models? I can do it, like LOD, with vegetation. 4. How do I know my LOD models are working? Quote Link to comment Share on other sites More sharing options...
macklebee Posted December 29, 2011 Share Posted December 29, 2011 1) do you have this in your c++ program: TFramework fw=CreateFramework(); //Set Lua variable BP L=GetLuaState(); lua_pushobject(L,fw); lua_setglobal(L,"fw"); lua_pop(L,1); see this post that covers the basics of scene loading using c++, framework, and lua together. http://www.leadwerks.com/werkspace/topic/381-scene-loading-example/page__view__findpost__p__5665 2) can be done in the lua object script: object.model:SetLODDistance (distance, index) 3) if you use the basic lua script for your model then you can open the properties dialog and set it. require("scripts/class") local class=CreateClass(...) or you can hard code it into the script so you do not have to set the collision type manually: require("scripts/class") local class=CreateClass(...) function class:CreateObject(model) local object=self.super:CreateObject(model) object.model:SetCollisionType(1) end 4) if you follow the correct naming convention then it will work correctly... if you have doubts then you could always replace one of the LODs with an obvious different model and watch when it shows. It looks like you need to read the Leadwerks User Guide... majority of the answers to these questions can be found in there... 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...
Clackdor Posted December 29, 2011 Author Share Posted December 29, 2011 Where was that hidden? It is not what I get when navigate to Documentation/User Guide? Very helpful. Quote 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.