dennis Posted April 18, 2012 Share Posted April 18, 2012 hey all, I have some models. but the problem now is that the are showing up the Low poly LOD stage immediately. So all my round models are square now :\ really strange problem, can someone please help me out with that. A screenshot: And the LUA code I'm using (also tried without) require("scripts/class") require("scripts/constants/collision_const") local class=CreateClass(...) function class:CreateObject(model) local object=self.super:CreateObject(model) object.model:SetLODDistance(5,0) object.model:SetLODDistance(10,1) object.model:SetKey("collisiontype", COLLISION_SCENE) end The naming convention for the models: I hope someone could help, Cheers Dennis Quote Link to comment Share on other sites More sharing options...
Road Kill Kenny Posted April 18, 2012 Share Posted April 18, 2012 The naming convention is correct. I think your problem may be that you are setting the LOD distance of your base model (LOD0) to 5m. Meaning that you'll only see LOD0 base model in 5m distance which your screen shot is actually closer. Try replacing object.model:SetLODDistance(5,0) //with object.model:SetLODDistance(0,0) //or just delete the line all together Not sure if this is the actual problem. I have never set the LOD distance of the base mesh (LOD0) so I wouldn't know what happens. This is just my hunch. Quote STS - Scarlet Thread Studios AKA: Engineer Ken Fact: Game Development is hard... very bloody hard.. If you are not prepared to accept that.. Please give up now! Link to comment Share on other sites More sharing options...
Marleys Ghost Posted April 18, 2012 Share Posted April 18, 2012 make sure you also have model detail set to high in the editor. 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...
dennis Posted April 18, 2012 Author Share Posted April 18, 2012 make sure you also have model detail set to high in the editor. Marley, I'm about to call you my hero ! that this little setting caused the problem. thanks it worked The naming convention is correct. I think your problem may be that you are setting the LOD distance of your base model (LOD0) to 5m. Meaning that you'll only see LOD0 base model in 5m distance which your screen shot is actually closer. Try replacing object.model:SetLODDistance(5,0) //with object.model:SetLODDistance(0,0) //or just delete the line all together Not sure if this is the actual problem. I have never set the LOD distance of the base mesh (LOD0) so I wouldn't know what happens. This is just my hunch. Yours worked out also, really great! thanks 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.