From Jan Peciva, "I am sending improved version of Inventor plugin. Attaching just
modified files, while GroupSoLOD.h and .cpp was deleted. Please, delete it from repository, it is not used any longer and I doubt if it is probably not used for anything meaningful for a while. In the new code, there is no GroupSoLOD. Please, delete it. I am using new plugin version for about 1.5 month so I consider it stable by myself. List of changes: - rewritten Inventor state stack - shaders support - light attenuation support - support for reading from stream (readNode(std::istream& fin, options)) - improved grouping node handling (SoSeparator, SoGroup,...) - fixed transformation bug when two SoShapes/Drawables with different transformations are placed bellow one grouping node - introduced preprocessing to handle more advanced usage schemes of SoLOD and SoSwitch nodes - unused code clean up - improved notify messages - animation callbacks fixes - FindInventor.cmake improved finding routines, support for Coin3 and Coin4"
This commit is contained in:
@@ -236,7 +236,7 @@ void osgArray2ivMField_template(const osg::Array *array, fieldClass &field, int
|
||||
int z;
|
||||
for (i=0, z=0; i<num; i++)
|
||||
if (z == numItemsUntilMinusOne) {
|
||||
a[i] = -1;
|
||||
a[i] = ivType(-1);
|
||||
z = 0;
|
||||
} else {
|
||||
a[i] = ivType(*ptr);
|
||||
@@ -1920,7 +1920,7 @@ void ConvertToInventor::apply(osg::Billboard& node)
|
||||
// Rotate billboard correctly (OSG->IV conversion)
|
||||
// Note: use SoTransform instead of SoRotation because SoRotation is not supported by VRML1.
|
||||
SoTransform *transform = new SoTransform;
|
||||
transform->rotation = SbRotation(SbVec3f(1.f,0.f,0.f), -M_PI_2);
|
||||
transform->rotation = SbRotation(SbVec3f(1.f,0.f,0.f), float(-M_PI_2));
|
||||
|
||||
SoSeparator *separator = new SoSeparator;
|
||||
separator->addChild(translation);
|
||||
@@ -2047,3 +2047,4 @@ void ConvertToInventor::apply(osg::LOD& node)
|
||||
|
||||
popInventorState();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user