Re: [osg-users] Terrain looking nicer

2008-11-09 Thread Robert Osfield
Hi Alejandro, Is you question just about doing sky and clouds and not really anything to do with terrain? It does seem like most your email and subject line is just thrown in to thrown one off. Robert. On Sun, Nov 9, 2008 at 5:06 AM, Alejandro Aguilar Sierra [EMAIL PROTECTED] wrote: Hello:

[osg-users] osgDB::readNodeFile question.

2008-11-09 Thread YangXiao
Hi everyone I write a test.osg file and use osgviewer test.osg .It's OK. But When i osgDB::readNodeFile read a *.osg file and - viewer-setSceneData(model_geode); return viewer-run(); It's a runtime error Below. Best Regards. YangXiao

Re: [osg-users] osgDB::readNodeFile question.

2008-11-09 Thread Robert Osfield
Hi YangXiao, This is basic debugging... is model_geode a NULL?? Also why the word geode in the ptr, readNodeFile returns Node* not Geode*. Most scene graphs will not have a Geode at the top of the scene graph. Since you don't supply the offending code we can't really guess at what mistakes

Re: [osg-users] 回复: Re: 回复: Re: 回复: R e: osgDB::readNodeFile question.

2008-11-09 Thread Wang Rui
Hi YangXiao I don't think it safe in a multi-thread program. The drawables' update callbacks are handled in Viewer::updateTraversal(), and may conflict with the last rendering traversal. Maybe you would change to single thread mode or use setDataVariance() to set the drawable to be dynamic. Wang

[osg-users] 回复: Re: osgDB::readNodeFil e question.

2008-11-09 Thread YangXiao
this is my model.osg file head. Geode { nodeMask 0x cullingActive TRUE num_drawables 1 Geometry { useDisplayList TRUE useVertexBufferObjects FALSE PrimitiveSets 1 { DrawArrays TRIANGLES 0 844805 } VertexArray UniqueID

Re: [osg-users] rewrite glTexImage2D() with OSG

2008-11-09 Thread Robert Osfield
Hi RHX, You just using an osg::Texture2D class. Have a search throw the example directories for instances of Texture2D. Also have a browse through the include/osg/Texture and include/osg/Texture2D headers as this will provide lots of OpenGL familiar methods and enums so you should feel at home.

[osg-users] 回复: Re: osgDB::readNodeFil e question.

2008-11-09 Thread YangXiao
Thanks Robert. I confirm model_geode a not NULL,When i convert my model.osg--model.IVE return viewer-run() is OK. Why? Robert Osfield [EMAIL PROTECTED] 写道: Hi YangXiao, This is basic debugging... is model_geode a NULL?? Also why the word geode in the ptr, readNodeFile returns

Re: [osg-users] 回复: Re: How to bind a osgGA ::TrackballManipulator to a scene node!

2008-11-09 Thread Robert Osfield
Hi YangXiao, 2008/11/9 YangXiao [EMAIL PROTECTED]: Thanks Robert . I means to bind a osgGA::TrackballManipulator only to a scene node, and others scene node i use PickHandler(). Can I achieve this function? Sorry still non the wiser. Do you mean track a node in the

[osg-users] 回复: Re: 回复: Re: 回复: Re: osgDB::readNodeFile question.

2008-11-09 Thread YangXiao
Thanks Wang Rui I check color array size equal to vertex array size. I means can i update Drawable color array in DrawableUpdateCallback? Wang Rui [EMAIL PROTECTED] 写道: Hi YangXiao, I think you should enough elements (equals to the size of the vertex array) in the color array if

Re: [osg-users] VPB: Superimposed or switch different textures possible?

2008-11-09 Thread Robert Osfield
On Sun, Nov 9, 2008 at 1:15 AM, Alejandro Aguilar Sierra [EMAIL PROTECTED] wrote: Hi Robert and Umit, How should I run the osgmultitexturecontrol example? You'll need to pass it a database with multiple texture in it. We don't have one provide in OpenSceneGraph-Data yet or one online. I

Re: [osg-users] 回复: Re: 回复: Re: osgDB::r eadNodeFile question.

2008-11-09 Thread Wang Rui
Hi YangXiao, I think you should enough elements (equals to the size of the vertex array) in the color array if using BIND_PER_VERTEX. Wang Rui 2008/11/9 YangXiao [EMAIL PROTECTED] Thanks *Robert * *Now i error is in my *DrawableUpdateCallback ** void

[osg-users] 回复: Re: 回复: Re: osgDB:: readNodeFile question.

2008-11-09 Thread YangXiao
Thanks Robert Now i error is in my DrawableUpdateCallback void DrawableUpdateCallback::update(osg::NodeVisitor* nv, osg::Drawable* drawable) { osg::Geometry* polyGeom = dynamic_castosg::Geometry* (drawable); colors-push_back(osg::Vec4(1,0,0,1)); .

[osg-users] NodeKit integration in OpenSceneGraph-2.x series

2008-11-09 Thread Robert Osfield
Hi All, There has been lots of discussion about various NodeKit or last month or two. In OSG-2.6 we saw the introduction of osgWidget from the community, in OSG-2.8 we'll see the integration of new osgVolume library. OSG-2.10 is likely to see the integration of osgAnimation, but if things

Re: [osg-users] Need explanation about a strange behaviour with RenderBin

2008-11-09 Thread Sukender
Hi Robert and Jean-Sébastien, Thanks for your ideas. My model is an .osg so I know there is a normal array and no texturing, and I manually replaced OPAQUE/DEFAULT. You both said that I need a colour array with at least one overall colour. Well, can you tell me why I need a colour array? I

Re: [osg-users] NodeKit integration in OpenSceneGraph-2.x series

2008-11-09 Thread Erik den Dekker
Animation is something that is under-way in the form of osgAnimation, which started life as AnimTK and has evolved rapidly to tick many more of the above items, so it looks to be rapidly becoming a good candidate for inclusion. Just a parenthesis - I gave quite a bit of feedback to

Re: [osg-users] controlling swap

2008-11-09 Thread Jean-Sébastien Guay
Hi Ed, After reading osgViewer::Viewer vs osgViewer::CompositeViewer, I think I might need to use CompositeViewer at some point in the future of my project, but not at the outset. Should I begin with the CompositeViewer, or make the necessary mods later? How difficult is it to change from

[osg-users] DepthPartitionNode problems

2008-11-09 Thread Pasquale Tricarico
Hi, I'm using the DepthPartitionNode code from the osgdepthpartition example, OSG v2.6, to display complex scenes composed by many planets and their relative orbits, that here for simplicity you can consider as circles centered on the Sun. DPN does not seem to play well with orbits. To reproduce

Re: [osg-users] osgCairo and osgPango on Windows : some progress

2008-11-09 Thread Jean-Sébastien Guay
Hi Robert, Getting this libs working under a Linux distribution will be trivial as most modern distributions will have them all precompiled with dev headers in the repositories only a click away, for Windows and OSX we'll have to explore how easy it is to build. J-S's work on getting osgPango

[osg-users] controlling swap

2008-11-09 Thread Ed
After reading osgViewer::Viewer vs osgViewer::CompositeViewer, I think I might need to use CompositeViewer at some point in the future of my project, but not at the outset. Should I begin with the CompositeViewer, or make the necessary mods later? How difficult is it to change from Viewer to

Re: [osg-users] controlling swap

2008-11-09 Thread Rahul Jain
Hi Ed, I would also recommend to use osgViewer::CompositeViewer from the starting. The reason is that osgViewer::Viewer can be mimicked by osgViewer::CompositeViewer containing a single osgViewer::View RJ Jean-Sébastien Guay wrote: Hi Ed, After reading osgViewer::Viewer vs

Re: [osg-users] VPB: Superimposed or switch different textures possible?

2008-11-09 Thread J.P. Delport
Hi, maybe have a look at this: http://www.openscenegraph.org/projects/VirtualPlanetBuilder/wiki/ExampleClusterJPD you don't have to worry about the cluster stuff, just run vpbmaster without the --machines option. jp Alejandro Aguilar Sierra wrote: Hi Robert: I will build one but I need

Re: [osg-users] NodeKit integration in OpenSceneGraph-2.x series

2008-11-09 Thread Wang Rui
Hi Robert. I wonder if there is a plan to add a modeling library to the core OSG in future. Not because I'm working on a similar library 'osgModeling', but also from the experiences of other 3D graphics APIs. Take VRS3D for example, it has a number of common functionalitys which help build user

Re: [osg-users] Many RTT cameras, strange out of memory errors on Linux

2008-11-09 Thread J.P. Delport
Hi all, if anyone has some spare time, please execute the attached test app under Linux. I am still unsure if our problems are related to NVidia driver, Linux distribution, ... thanks jp J.P. Delport wrote: Hi all, a colleague of mine is trying to implement an image processing algorithm

Re: [osg-users] NodeKit integration in OpenSceneGraph-2.x series

2008-11-09 Thread Jan Ciger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Robert, Robert Osfield wrote: Animation is something that is under-way in the form of osgAnimation, which started life as AnimTK and has evolved rapidly to tick many more of the above items, so it looks to be rapidly becoming a good candidate

[osg-users] A patch to enable making hardware extensions disabled in Texture.cpp

2008-11-09 Thread Tatsuhiro Nishioka
Hi there, I received some crash reports on FlightGear/OSG from a user who uses nVidia 7300GT on Macs. Debugging on an iMac gave me that hardware mipmapping on its driver caused the crash. so I once made a fix-it-only-for-this-issue kinda patch that simply disable hardware mipmapping when the