OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
#include <OgreLodConfig.h>
Public Member Functions | |
Advanced () | |
Public Attributes | |
Ogre::Real | outsideWalkAngle |
If outsideWeight is enabled, this will set the angle how deep the algorithm can walk inside the mesh. | |
Ogre::Real | outsideWeight |
Faces inside a house can't be seen from far away. | |
bool | preventBreakingLines |
When an edge is collapsed, lines may be destroyed if they cannot be adjusted to the new vertex. | |
bool | preventPunchingHoles |
When an edge is collapsed, triangles may be destroyed if they cannot be adjusted to the new vertex. | |
LodProfile | profile |
If the algorithm makes errors, you can fix it, by adding the edge to the profile. | |
bool | useBackgroundQueue |
Whether you want to process it immediatelly on main thread or you want to use Ogre::WorkQueue. | |
bool | useCompression |
If enabled, it allows up to 50% smaller index buffers by storing once shared faces with frame shifting. | |
bool | useVertexNormals |
Use vertex normals to improve quality. | |
Ogre::LodConfig::Advanced::Advanced | ( | ) |
bool Ogre::LodConfig::Advanced::useBackgroundQueue |
Whether you want to process it immediatelly on main thread or you want to use Ogre::WorkQueue.
If you use workqueue the generator will return immediately. After processed in background, the LodWorkQueueInjector will inject it in frameEnd event when rendering next frame. Ready LODs can also be injected by calling Root::getSingleton().getWorkQueue()->processMainThreadTasks(). (disabled by default)
bool Ogre::LodConfig::Advanced::useCompression |
If enabled, it allows up to 50% smaller index buffers by storing once shared faces with frame shifting.
There is no performance disadvantage! (enabled by default)
bool Ogre::LodConfig::Advanced::useVertexNormals |
Use vertex normals to improve quality.
Bit slower to generate, but it has better quality most of the time. (enabled by default)
bool Ogre::LodConfig::Advanced::preventPunchingHoles |
When an edge is collapsed, triangles may be destroyed if they cannot be adjusted to the new vertex.
Set this option to true to prevent collapsing edges that will result in destruction of triangles.
bool Ogre::LodConfig::Advanced::preventBreakingLines |
When an edge is collapsed, lines may be destroyed if they cannot be adjusted to the new vertex.
Set this option to true to prevent collapsing edges that will result in destruction of lines.
Ogre::Real Ogre::LodConfig::Advanced::outsideWeight |
Faces inside a house can't be seen from far away.
Weightening outside allows to remove those internal faces. It makes generation smaller and it is not 100% accurate. Set it to 0.0 to disable. (disabled by default)
Ogre::Real Ogre::LodConfig::Advanced::outsideWalkAngle |
If outsideWeight is enabled, this will set the angle how deep the algorithm can walk inside the mesh.
This value is an acos number between -1 and 1. (by default it is 0 which means 90 degree)
LodProfile Ogre::LodConfig::Advanced::profile |
If the algorithm makes errors, you can fix it, by adding the edge to the profile.