How to set mesh level of detail?

Problems building or running the engine, queries about how to use features etc.
Post Reply
CrosRoad95
Kobold
Posts: 27
Joined: Fri Mar 27, 2020 5:32 pm

How to set mesh level of detail?

Post by CrosRoad95 »

Ogre Version: : 3.0
Operating System: : Windows11
Render System: : Dx11

I have a mesh, created using meshManager->createManual(name, ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME)
how can i add Level of detail to that mesh?

i want to admit that i have 2 meshes, one is high detail, second is low detail and i want to manually set that if distance greater than 200meters, use low detailed mesh

rpgplayerrobin
Gnoll
Posts: 619
Joined: Wed Mar 18, 2009 3:03 am
x 355

Re: How to set mesh level of detail?

Post by rpgplayerrobin »

CrosRoad95
Kobold
Posts: 27
Joined: Fri Mar 27, 2020 5:32 pm

Re: How to set mesh level of detail?

Post by CrosRoad95 »

tested tutorials are for older version of ogre, i'm using ogre-next

rpgplayerrobin
Gnoll
Posts: 619
Joined: Wed Mar 18, 2009 3:03 am
x 355

Re: How to set mesh level of detail?

Post by rpgplayerrobin »

What about this?
viewtopic.php?t=84549

If you have the source code, you could also just search there for how to do it. It might happen at the load-time of the mesh which could possibly help you on how to do it manually yourself.

Post Reply