From Jan Ciger, "I am attaching an improved version of the OpenVRML plugin. It still uses

OpenVRML 0.14.3 and is without the Boost dependency.

The changes:
- - Fixed loading of textures and normals when no corresponding indices
are specified. It uses vertex indices now, compliant with the VRML spec.
- - Added colour per vertex support.
- - Added group node support.
- - Changed the code to use osg::ref_ptr instead of naked pointers to
avoid memory leaks.
- - Fixed breakage for loading files specified by relative path."
This commit is contained in:
Robert Osfield
2007-08-13 10:27:35 +00:00
parent 2cf3785e51
commit 21f65054a0
2 changed files with 155 additions and 53 deletions

View File

@@ -10,6 +10,7 @@
#include <osgIntrospection/StaticMethodInfo>
#include <osgIntrospection/Attributes>
#include <osg/Camera>
#include <osg/CopyOp>
#include <osg/Node>
#include <osg/NodeVisitor>
@@ -90,6 +91,11 @@ BEGIN_OBJECT_REFLECTOR(osgSim::OverlayNode)
__OverlayTechnique__getOverlayTechnique,
"",
"");
I_Method1(void, setRenderTargetImplementation, IN, osg::Camera::RenderTargetImplementation, impl,
Properties::NON_VIRTUAL,
__void__setRenderTargetImplementation__osg_Camera_RenderTargetImplementation,
"Set the implementation to be used when creating the overlay texture. ",
"");
I_Method1(void, setOverlaySubgraph, IN, osg::Node *, node,
Properties::NON_VIRTUAL,
__void__setOverlaySubgraph__osg_Node_P1,
@@ -254,6 +260,9 @@ BEGIN_OBJECT_REFLECTOR(osgSim::OverlayNode)
I_SimpleProperty(unsigned int, OverlayTextureUnit,
__unsigned_int__getOverlayTextureUnit,
__void__setOverlayTextureUnit__unsigned_int);
I_SimpleProperty(osg::Camera::RenderTargetImplementation, RenderTargetImplementation,
0,
__void__setRenderTargetImplementation__osg_Camera_RenderTargetImplementation);
I_SimpleProperty(GLenum, TexEnvMode,
__GLenum__getTexEnvMode,
__void__setTexEnvMode__GLenum);