Ogre::LodLevel Struct Reference

Structure for automatic LOD configuration. More...

`#include <OgreLodConfig.h>`

## Public Types

enum | VertexReductionMethod { VRM_PROPORTIONAL, VRM_CONSTANT, VRM_COLLAPSE_COST }
| Type of the reduction. More...

## Public Attributes

Real | distance
| Distance to swap the LOD. More...
bool | outSkipped
| Whether the LOD level generation was skipped, because it has same vertex count as the previous LOD level. More...
size_t | outUniqueVertexCount
| This is set by ProgressiveMeshGenerator::build() function. More...
VertexReductionMethod | reductionMethod
| Reduction method to use. More...
Real | reductionValue
| The value, which depends on reductionMethod. More...

## Detailed Description

Structure for automatic LOD configuration.

Definition at line 41 of file OgreLodConfig.h.

## Member Enumeration Documentation

## VertexReductionMethod

enum Ogre::LodLevel::VertexReductionMethod

Type of the reduction.

Note: The vertex count is determined by unique vertices per submesh. A mesh may have duplicate vertices with same position.

Enumerator
VRM_PROPORTIONAL | Percentage of vertexes to be removed from each submesh. Valid range is a number between 0.0 and 1.0
VRM_CONSTANT | Exact vertex count to be removed from each submesh. Pass only integers or it will be rounded.
VRM_COLLAPSE_COST | Reduces the vertices, until the cost is bigger then the given value. Collapse cost is equal to the amount of artifact the reduction causes. This generates the best LOD output, but the collapse cost depends on implementation.

Definition at line 48 of file OgreLodConfig.h.

## Member Data Documentation

## distance

Real Ogre::LodLevel::distance

Distance to swap the LOD.

This depends on LodStrategy.

Definition at line 77 of file OgreLodConfig.h.

## outSkipped

bool Ogre::LodLevel::outSkipped

Whether the LOD level generation was skipped, because it has same vertex count as the previous LOD level.

Definition at line 101 of file OgreLodConfig.h.

## outUniqueVertexCount

size_t Ogre::LodLevel::outUniqueVertexCount

This is set by ProgressiveMeshGenerator::build() function.

Use Mesh::getNumLodLevels() for generated LOD count.

Definition at line 96 of file OgreLodConfig.h.

## reductionMethod

VertexReductionMethod Ogre::LodLevel::reductionMethod

Reduction method to use.

See also
  ProgressiveMeshGenerator::VertexReductionMethod

Definition at line 84 of file OgreLodConfig.h.

## reductionValue

Real Ogre::LodLevel::reductionValue

The value, which depends on reductionMethod.

Definition at line 89 of file OgreLodConfig.h.

The documentation for this struct was generated from the following file:

- OgreLodConfig.h

Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.