Hi Dani,
The problems with not find the ive::Terrain::write & read
implementations is a peculiar one, I've just looked through the ive
plugin and the Terrain implementation is there are looks OK as does
the DataInputStream and DataOutputStream implementations.
The only anomaly I can find is that the ive/CMakeLists.txt file has a
Terrain.cpp listed, but no Terrain.h. Is there a chance that the
static linker requires the Terrain.h to be mentioned as well?
I have added the missing Terrain.h reference to ive/CMakeLists.txt and
checked this into svn/trunk. I have no clue whether it'll make any
difference at your end. Could you try it out? I've attached the
modified CMakeLists.txt.
Robert.
On Wed, Feb 16, 2011 at 4:37 PM, Dani Devesa <[email protected]> wrote:
> Hi,
>
> yes, I did it. I finally commented the next lines as a temporal solution:
>
>
> Code:
> /*else if(dynamic_cast<const osgTerrain::Terrain*>(node)){
> ((ive::Terrain*)(node))->write(this);
> }*/
>
>
>
> on DataOutputStream.cpp and
>
>
> Code:
> /*else if(nodeTypeID== IVETERRAIN){
> node = new osgTerrain::Terrain();
> ((ive::Terrain*)(node.get()))->read(this);
> }*/
>
>
>
> on DataInputStream.cpp
>
> It seems the functions read and write aren't implemented. Am I right?
>
> My problem now is that I've loaded a couple .ive models and they appear at
> the screen but didn't show their textures. Any of you know what can be the
> problem?
>
> Thank you!
>
> Cheers,
> Dani[/code]
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=36744#36744
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
IF(ZLIB_FOUND)
ADD_DEFINITIONS(-DUSE_ZLIB)
INCLUDE_DIRECTORIES( ${ZLIB_INCLUDE_DIR})
ENDIF()
SET(TARGET_SRC
AlphaFunc.cpp
AnimationPathCallback.cpp
AnimationPath.cpp
AnisotropicLighting.cpp
AutoTransform.cpp
AzimElevationSector.cpp
AzimSector.cpp
Billboard.cpp
BlendColor.cpp
BlendEquation.cpp
BlendFunc.cpp
BlinkSequence.cpp
BumpMapping.cpp
Camera.cpp
CameraView.cpp
Cartoon.cpp
ClipNode.cpp
ClipPlane.cpp
ClusterCullingCallback.cpp
ColorMask.cpp
CompositeLayer.cpp
ConeSector.cpp
ConvexPlanarOccluder.cpp
ConvexPlanarPolygon.cpp
CoordinateSystemNode.cpp
CullFace.cpp
DataInputStream.cpp
DataOutputStream.cpp
Depth.cpp
DirectionalSector.cpp
DOFTransform.cpp
Drawable.cpp
DrawArrayLengths.cpp
DrawArrays.cpp
DrawElementsUByte.cpp
DrawElementsUInt.cpp
DrawElementsUShort.cpp
Effect.cpp
ElevationSector.cpp
EllipsoidModel.cpp
Exception.cpp
FadeText.cpp
Fog.cpp
FragmentProgram.cpp
FrontFace.cpp
Geode.cpp
Geometry.cpp
Group.cpp
HeightFieldLayer.cpp
Image.cpp
ImageLayer.cpp
ImageSequence.cpp
Impostor.cpp
Layer.cpp
Light.cpp
LightModel.cpp
LightPoint.cpp
LightPointNode.cpp
LightSource.cpp
LineStipple.cpp
LineWidth.cpp
Locator.cpp
LOD.cpp
Material.cpp
MatrixTransform.cpp
Multisample.cpp
MultiSwitch.cpp
MultiTextureControl.cpp
Node.cpp
Object.cpp
OccluderNode.cpp
OcclusionQueryNode.cpp
PagedLOD.cpp
Point.cpp
PointSprite.cpp
PolygonMode.cpp
PolygonOffset.cpp
PolygonStipple.cpp
PositionAttitudeTransform.cpp
PrimitiveSet.cpp
Program.cpp
ProxyNode.cpp
ReaderWriterIVE.cpp
Scissor.cpp
Scribe.cpp
Sequence.cpp
ShadeModel.cpp
Shader.cpp
ShapeAttributeList.cpp
Shape.cpp
ShapeDrawable.cpp
SpecularHighlights.cpp
StateSet.cpp
Stencil.cpp
Switch.cpp
SwitchLayer.cpp
Terrain.cpp
TerrainTile.cpp
TexEnvCombine.cpp
TexEnv.cpp
TexGen.cpp
TexGenNode.cpp
TexMat.cpp
Text3D.cpp
Text.cpp
Texture1D.cpp
Texture2D.cpp
Texture2DArray.cpp
Texture3D.cpp
Texture.cpp
TextureCubeMap.cpp
TextureRectangle.cpp
Transform.cpp
Uniform.cpp
VertexProgram.cpp
Viewport.cpp
VisibilityGroup.cpp
VolumeCompositeLayer.cpp
VolumeCompositeProperty.cpp
VolumeSwitchProperty.cpp
VolumeScalarProperty.cpp
VolumeTransferFunctionProperty.cpp
VolumePropertyAdjustmentCallback.cpp
Volume.cpp
VolumeImageLayer.cpp
VolumeLayer.cpp
VolumeLocator.cpp
VolumeTile.cpp
)
SET(TARGET_H
AlphaFunc.h
AnimationPathCallback.h
AnimationPath.h
AnisotropicLighting.h
AutoTransform.h
AzimElevationSector.h
AzimSector.h
Billboard.h
BlendColor.h
BlendFunc.h
BlinkSequence.h
BumpMapping.h
Camera.h
CameraView.h
Cartoon.h
ClipNode.h
ClipPlane.h
ClusterCullingCallback.h
ColorMask.h
CompositeLayer.h
ConeSector.h
ConvexPlanarOccluder.h
ConvexPlanarPolygon.h
CoordinateSystemNode.h
CullFace.h
DataInputStream.h
DataOutputStream.h
DataTypeSize.h
Depth.h
DirectionalSector.h
DOFTransform.h
Drawable.h
DrawArrayLengths.h
DrawArrays.h
DrawElementsUByte.h
DrawElementsUInt.h
DrawElementsUShort.h
Effect.h
ElevationSector.h
EllipsoidModel.h
Exception.h
FadeText.h
Fog.h
FragmentProgram.h
FrontFace.h
Geode.h
Geometry.h
Group.h
HeightFieldLayer.h
Image.h
ImageLayer.h
ImageSequence.h
Impostor.h
IveVersion.h
Layer.h
Light.h
LightModel.h
LightPoint.h
LightPointNode.h
LightSource.h
LineStipple.h
LineWidth.h
Locator.h
LOD.h
Material.h
MatrixTransform.h
MultiSwitch.h
MultiTextureControl.h
Node.h
Object.h
OccluderNode.h
OcclusionQueryNode.h
PagedLOD.h
Point.h
PointSprite.h
PolygonMode.h
PolygonOffset.h
PolygonStipple.h
PositionAttitudeTransform.h
PrimitiveSet.h
Program.h
ProxyNode.h
ReadWrite.h
Scissor.h
Scribe.h
Sequence.h
ShadeModel.h
Shader.h
ShapeAttributeList.h
ShapeDrawable.h
Shape.h
SpecularHighlights.h
StateSet.h
Stencil.h
Switch.h
SwitchLayer.h
Terrain.h
TerrainTile.h
TexEnvCombine.h
TexEnv.h
TexGen.h
TexGenNode.h
TexMat.h
Text3D.h
Text.h
Texture1D.h
Texture2D.h
Texture2DArray.h
Texture3D.h
TextureCubeMap.h
Texture.h
TextureRectangle.h
Transform.h
Uniform.h
VertexProgram.h
Viewport.h
VisibilityGroup.h
VolumeCompositeLayer.h
VolumeCompositeProperty.h
VolumeSwitchProperty.h
VolumeScalarProperty.h
VolumeTransferFunctionProperty.h
VolumePropertyAdjustmentCallback.h
Volume.h
VolumeImageLayer.h
VolumeLayer.h
VolumeLocator.h
VolumeTile.h
)
SET(TARGET_ADDED_LIBRARIES osgSim osgFX osgText osgTerrain osgVolume)
IF(ZLIB_FOUND)
SET(TARGET_LIBRARIES_VARS ZLIB_LIBRARY)
ENDIF()
#### end var setup ###
SETUP_PLUGIN(ive)
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org