Re: [osg-users] UseVertexAttributeAliasing and fixed-function pipeline
OK. It seems I got everything working nicely. It would be nice, anyway, to get a working OSG with text labels, statsHandler, etc. even when useModelViewAndProjectionUniforms and useVertexAttributeAliasing are set to TRUE; Thank you very much, Robert, for your assistance. Cheers, Pau -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47903#47903 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Advice on scene structuring
Hi, Can anyone point me to some example or provide some advice on how to structure a scene with a low poly object replicated thousands of times, at different orientations and positions? Each instance can be in one of the several states that the object can be, using an osg::Switch. The state of each instance changes independently of the others. I think osg::PositionAttitudeTransform for each instance is not an option, as it kills culling performance. Replicating the geometry and transforming the vertices seems a little bit wrong, and a total memory waste. Any ideas? Thank you very much. Cheers, Pau -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47912#47912 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] UseVertexAttributeAliasing and fixed-function pipeline
Hi Robert, I was hoping to be able tu use OSG functionalities like text labels, realtime stats or 3ds model loading without having to write and apply shaders to all of them. Shaders which have to be custom tailored to the ways of OSG (tex unit numbering, illumination models, etc) At the same time, I need to use my own shaders for my own needs. ... Thank you! Cheers, Pau -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47817#47817 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] UseVertexAttributeAliasing and fixed-function pipeline
Hi Robert, I was hoping to be able tu use OSG functionalities like text labels, realtime stats or 3ds model loading without having to write and apply shaders to all of them. Shaders which have to be custom tailored to the ways of OSG (tex unit numbering, illumination models, etc) At the same time, I need to use my own shaders for my own needs. ... Thank you! Cheers, Pau -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47818#47818 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] UseVertexAttributeAliasing and fixed-function pipeline
Hi, after setting UseVertexAttributeAliasing parameter the surfaces that don't use any shaders are broken now - textures are not applied to them anymore. Is there a way to both use new style variable binding and at the same time not to break stuff designed for fixed function pipeline? ... Thank you! Cheers, Pau -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47806#47806 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Can't get osgText to display text using osgViewer::GraphicsWindow
su gang wrote: I see there is only one text node in the scene. I guess maybe the cull process ignored it. The thing is, the bounding box and the alignment mark of the text label are displayed. It seems to be related to the OpenGL context. If I comment out the line in GOSGView::GOSGView() Code: m_osgWindow = new GOSGGraphicsWindow(this); // m_viewer-getCamera()-setGraphicsContext(m_osgWindow); m_viewer-getCamera()-setCullingMode(osg::CullSettings::ENABLE_ALL_CULLING); the text appears, outside the window, in fullscreen mode. Any ideas, anyone? Thanks! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41998#41998 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Can't get osgText to display text using osgViewer::GraphicsWindow
Hi, I'm trying to add text labels, and I haven't been able to get osgText to display what I want. The rest of the scene shows correctly, it's only that text does not appear. I can display the bounding box and the alignment mark, not the text. A reduced version of my code is attached. I am using Qt 4.7.3, and the OSG from subversion r.12737, on a Linux machine. Of the many things I may be doing wrong, which one is responsible for this behavior? Thank you! Cheers, Pau -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41795#41795 Attachments: http://forum.openscenegraph.org//files/main_182.cpp http://forum.openscenegraph.org//files/gosgview_181.h http://forum.openscenegraph.org//files/gosgview_140.cpp ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org