[osg-users] osg::Image::copySubImage
Hi. Tell me please why void osg::Image::copySubImage(int s_offset,int t_offset,int r_offset,osg::Image* source); has non-const parameter source? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] ImageStream updating
Hi. I have a question about ImageStream updating - how it must be by design? Image and ImageStream both haven't methods such as setUpdateCallback or traverse, therefore I see only one way - using different thread for updating, but it is dangerous because updating thread may update image while texture reads it. So I saw code of xine plugin but I don't understand xine-lib using very well and I didn't get full comprehension of updating process realized there. Regards, Valery ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ImageStream updating
Ok, but there are next difficulty: I use function setImage for setting new image in my thread, and this function deletes old image when it sets new image. Therefore if updating thread updates image while main thread updates texture then... segmentation fault. In this case I must not to delete old Image for some time, but I don't know how much time exactly. It depends on speed of copying image to texture and on moment when texture starts updating... ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgWidget 0.1.8 (pre-merge)
Hi, Jeremy. I've tried to compile your code on my Gentoo just for now, and I have linker errors while building examples: Linking CXX executable osgwidgetlabel /var/tmp/portage/media-libs/osgwidget-/work/osgwidget-/build/libosgWidget.so: undefined reference to `forkpty' /var/tmp/portage/media-libs/osgwidget-/work/osgwidget-/build/libosgWidget.so: undefined reference to `openpty' libosgWidget.so itself was built properly. It is right for version 0.1.8 and last version from SVN. I haven't installed LUA but have Python (OSGWIDGET_USEPYTHON is TRUE in my CMakeCache.txt). And there are another pair of strings from CMakeCache.txt for information: //Path to a file. PYTHON_INCLUDE_PATH:PATH=/usr/include/python2.4 //Path to a library. PYTHON_LIBRARY:FILEPATH=/usr/lib/python2.4/config/libpython2.4.a Best regards, Valery ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] traverse
Hi all. I have a question why Node::traverse(NodeVisitor) doesn't called with NodeVisitor of type UPDATE_VISITOR? I have a class derived from Geode and I remoulded function traverse(NodeVisitor) for some update operations: void MyClass::traverse(osg::NodeVisitor nv) { if (nv.getVisitorType() == osg::NodeVisitor::UPDATE_VISITOR) { // Do smth } Geode::traverse(nv); } And I use osgViewer::Viewer for showing scene. But this function traverse is never called with updateVisitor, because in osgUtil::UpdateVisitor::apply(Geode) only callbacks is proceeded, but not traverse. And what about deriving from other classes and using traverse for update operations then we can see that in osgUtil::UpdateVisitor::apply(Node) calls function void handle_callbacks_and_traverse(osg::Node node) which calls callback if presented and check node.getNumChildrenRequiringUpdateTraversal()0 and calls traverse(node) in this case. But as I can see in osg/src/Node.cpp, _numChildrenRequiringUpdateTraversal changes in two cases: when update callback is attached and when void Node::setNumChildrenRequiringUpdateTraversal(unsigned int num) is called. But I want to not use update callback, so, I must call setNumChildrenRequiringUpdateTraversal for it. I would like to remould function addParent for it, but this function is not virtual, so, I really confused how to use traverse for update operations. Best regards, Valery ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Robert, collada dae2 maybe?
Hi. For your information writer plugin for dae doesn't work at all: osgconv cessna.osg cessna.dae I/O error : Permission denied I/O error : Permission denied error : xmlNewTextWriterFilename : out of memory! Error: daeLIBXMLPlugin::write(file://cessna.dae) failed Warning: Error in writing to cessna.dae. Valery ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org