Hi,

On 21/05/10 21:34 , Dženan Zuki wrote:
> Code:
> osg::ref_ptr<Geode> geode=qe2osg(qe);
> objWriteCell(qe, "temp.obj");
> grp->addChild(osgDB::readNodeFile("temp.obj"));
> grp->addChild(geode);
> 
> and it produces the attached result. The yellow object is geode (code below 
> assigns
> yellow color), while the node is gray (no color gets saved to .obj file). The 
> point is
> that these two objects are not in the same position! Can anyone explain that? 
> The QuadEdge
> to OSG conversion function is given below, as well as objWriteCell, if you 
> think it matters.

How different are the positions?  Could it be a std::stream formatting issue, 
where your
writer is dropping significant digits?

What you could also try is to write the readNodeFile() (to a .osg file) and 
check both for
differences in the positions.

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

Reply via email to