Jump to content

LOD problem.


dennis
 Share

Recommended Posts

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:

post-2125-0-03327800-1334746730_thumb.jpg

 

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:

post-2125-0-85125100-1334746958.jpg

 

I hope someone could help, Cheers

Dennis

Link to comment
Share on other sites

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.

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

make sure you also have model detail set to high in the editor.

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

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 biggrin.png

 

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 :)

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...