Hi,

> When I try to save the node I get this error on the console: 
> image C:\Workspace\OpenSceneGraph\build\bin\models\untitled\texture.jpg' 256 
> 128 
> Error writing IVE image: StateSet::write(): Unknown StateAttribute: 
> VirtualProgram 


This is normal, osgEarth insert custom "VirtualProgram" state attribute and 
they are not serializable.

If you want to remove this error, you'll have to use a osg::Visitor to remove 
all osgEarth::VirtualProgram attributes, but I don't think this error is a real 
problem and you probably can just ignore it.

But the point is that's a little weird to save a KML file as an IVE file : KML 
files are XML files which declares some data (POI, image overlay...) and 
reference external models. You can probably just pick up the external model 
file, open your KML with a text editor and have a look at it to see where your 
model file is declared.

Handling of KML files in osg are based on a several osgEarth specific classes, 
so you will get better answer on their forum I guess.

Cheers,
Aurelien

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=53301#53301





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to