Re: [osg-users] Textures problems in FLTK Viewer utility with LOD model and Viewer.

2010-08-25 Thread Ulrich Hertlein
Hi Dario, On 25/08/10 19:08 , Dario Minieri wrote: > I save the osg format and the Texture2D record is inserted correctly but the > "file" > path disappears (I load objects that already have the textures, I don't apply > the > textures in my tool). My bad - it's not only the image data that's r

Re: [osg-users] Saving the result of an IntersectVisitor

2010-08-25 Thread Terry Welsh
How about just a vector of vector of integers? Each integer would represent the nth child of the previous node, and each vector of integers would represent a whole nodepath. So "4 6 7" would mean the 7th child of the 6th child of the 4th child of the root node. -- Terry Welsh mogumbo 'at' gmail.c

Re: [osg-users] Textures problems in FLTK Viewer utility with LOD model and Viewer.

2010-08-25 Thread Jean-Sébastien Guay
Hello Dario, Yes, I've made a Visitor to setUnRefImageDataAfterApply(false) for all textures properties and now works like charm. If you want to have less code to maintain, you could just use the osgUtil::Optimizer::TextureVisitor like this: osgUtil::Optimizer::TextureVisitor visitor(true,

Re: [osg-users] Issue with normal vectors

2010-08-25 Thread Paul Martz
Werner Modenbach wrote: Maybe someone can give me some explanation on my stupid little problem. I have a geometry being composed of TRIANGLES. I have a vertex-array, a verted-index-array and a normal-array assigned to my geometry. Off-topic: Do you need to use the vertex-index-array? It is de

Re: [osg-users] Issue with normal vectors

2010-08-25 Thread Brian R Hill
Try BIND_PER_VERTEX Brian This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless purs

[osg-users] Issue with normal vectors

2010-08-25 Thread Werner Modenbach
Maybe someone can give me some explanation on my stupid little problem. I have a geometry being composed of TRIANGLES. I have a vertex-array, a verted-index-array and a normal-array assigned to my geometry. 3 indexes and 3 normals per Triangle. Normal binding is set to BIND_PER_PRIMITIVE_SET. Un

Re: [osg-users] drawImplementation not being called every frame

2010-08-25 Thread Yun-Ta Tsai
Thanks it works! :-) Cheers, Yun-Ta -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31051#31051 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.c

Re: [osg-users] Textures problems in FLTK Viewer utility with LOD model and Viewer.

2010-08-25 Thread Dario Minieri
Hi, Hi Ulrich. Yes, I've made a Visitor to setUnRefImageDataAfterApply(false) for all textures properties and now works like charm. Thank you! Cheers, Dario -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31050#31050

Re: [osg-users] Enable/Disable stereo during runtime

2010-08-25 Thread Andreas Roth
Hi, If i set Code: traits->quadBufferStereo = true; on my test system without a stereo hardware createGraphicsContext fails. So i need to check before if a stereo hardware is available. I know that OpenGL reports some kind of stereo capability, but i don't know to i could get the OpenGL cap

Re: [osg-users] Can we used OSG for ES 2.0 project on linux??

2010-08-25 Thread Mourad Boufarguine
> > > I am getting this error. > > /OpenSceneGraph-2.9.8/src/osgQt/__/__/include/osgQt/moc_QGraphicsViewAdapter.cxx:11:2: > error: #error "The header file 'QGraphicsViewAdapter' doesn't include > ." > > Hi Rakesh, This problem concerns the cmake file src/osgQt/CmakeLists.txt. This was solved in r

Re: [osg-users] Render text n pixels above text position

2010-08-25 Thread Glenn Waldron
Martin, here's one method. It's a little pricey since you need to attach it as both a cull and update callback. I've left out some of the code but you get the idea. Basically you use the MVPW matrix to drop into screen space, apply the offset, then go back to object space. struct TextOffsetCB : p

Re: [osg-users] Can we used OSG for ES 2.0 project on linux??

2010-08-25 Thread Rakesh Parmar
Hi Robert, I have compiled osg 2.9.8 on linux system . I am getting this error. /OpenSceneGraph-2.9.8/src/osgQt/__/__/include/osgQt/moc_QGraphicsViewAdapter.cxx:11:2: error: #error "The header file 'QGraphicsViewAdapter' doesn't include ." I have gone through your reply in one of the thread.

Re: [osg-users] Vec3 does not pass properly by value, only by reference?

2010-08-25 Thread Dženan Zukić
Hi, Today (again) I am experiencing problems passing it by value. After some testing it turns out it is only displayed wrongly in Visual Studio 2008 debugger - the code works properly in spite junk shown by the debugger. Thank you! Cheers, Dženan -- Read this topic online here

Re: [osg-users] Can we used OSG for ES 2.0 project on linux??

2010-08-25 Thread Rakesh Parmar
Hi Robert, This link i got it . [url] http://www.openscenegraph.org/projects/osg/wiki/Community/OpenGL-ES [\url] i will try to compile according to this given link.Please provide me some sample if its available. -- Read this topic online here: http://forum.openscenegraph.org/v

Re: [osg-users] Can we used OSG for ES 2.0 project on linux??

2010-08-25 Thread Robert Osfield
On Wed, Aug 25, 2010 at 2:44 PM, Rakesh Parmar wrote: >             Thanks for your reply .Can you please give me some link > where i can det documentation for compiling OSG with OPenGL ES 2.0 using > emulator and any ES 2.0 sample will be reall good for me. For details on how to compile the OSG

Re: [osg-users] Vec3 does not pass properly by value, only by reference?

2010-08-25 Thread Robert Osfield
Hi Dženan, 2010/8/25 Dženan Zukić : > Is osg::Vec3 class supposed to be passable only by reference and not by value? You can safely pass it any way you want, by value or by reference. It normally makes the most sense to pass by const reference or reference though as it's far more efficient as yo

Re: [osg-users] Can we used OSG for ES 2.0 project on linux??

2010-08-25 Thread Rakesh Parmar
Hi Robert, Thanks for your reply .Can you please give me some link where i can det documentation for compiling OSG with OPenGL ES 2.0 using emulator and any ES 2.0 sample will be reall good for me. Regards, RK. -- Read this topic online here: http://forum.opensceneg

[osg-users] Vec3 does not pass properly by value, only by reference?

2010-08-25 Thread Dženan Zukić
Hi, Is osg::Vec3 class supposed to be passable only by reference and not by value? If yes, why? Thank you! Cheers, Dženan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31039#31039 ___ osg-users m

[osg-users] restrict rotation of TrackballManipulator

2010-08-25 Thread O. Baum
Hallo list, can anyone tell me how to restrict the rotation of the TrackballManipulator e.g. to the z-Axis (Yaw)? Another question: How can I prevent the TrackballManipulator from zooming and panning? Is there another way than deriving an own class from TrackballManipulator and overwriting the ca

Re: [osg-users] Saving the result of an IntersectVisitor

2010-08-25 Thread Todd J. Furlong
Another idea I had was to use a NodeVisitor to predictably - probably sequentially - name each node in a model after I load it. They I could record a NodePath as a vector of names. This idea is my current favorite, but I'm still hoping for an easier solution. -Todd On 08/25/2010 08:44 AM, T

[osg-users] Saving the result of an IntersectVisitor

2010-08-25 Thread Todd J. Furlong
Hi all, I use an IntersectVisitor to select nodes in a viewer application. It works fine, and the first Geode in the hit list is the node I want to select. Now I need to record that hit as part of saving the state of our application in a metadata file that we save alongside a model file or

Re: [osg-users] Building 2.8.3 in VS2010

2010-08-25 Thread Anders Backman
Thanks, that made the trick! Was going through the changelog, this cut down the time by a lot. /Anders On Wed, Aug 25, 2010 at 9:41 AM, Wang Rui wrote: > Hi Anders, > > The OsgMacroUtils.cmake was fixed to make INSTALL work under VS2010. > You may replace the one in 2.8.3 and see if it works.

Re: [osg-users] context on different graphics cards?

2010-08-25 Thread Prakhar Jain
There is difference in Opengl drivers provided by Nvidia and ATI. If you set nvidia card as primary display then it should work across all screens (including the ones used by ATI cards). In case you are setting ATI as your primary display device then the application may crash as there are some Ope

Re: [osg-users] context on different graphics cards?

2010-08-25 Thread Akilan Thangamani
yes. I m trying it out on windows 7 only. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31033#31033 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listi

Re: [osg-users] Textures problems in FLTK Viewer utility with LOD model and Viewer.

2010-08-25 Thread Dario Minieri
Hi Ulrich. I save the osg format and the Texture2D record is inserted correctly but the "file" path disappears (I load objects that already have the textures, I don't apply the textures in my tool). I'm going to try to use setUnRefImageDataAfterApply before using setSceneData. I'll tell you if

Re: [osg-users] context on different graphics cards?

2010-08-25 Thread Prakhar Jain
Are you doing this on windows 7. I have tried doing the same and I was able to do this with ATI and Nvidia card on the system. Cheers, Prakhar -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Akilan Thang

Re: [osg-users] Building 2.8.3 in VS2010

2010-08-25 Thread Wang Rui
Hi Anders, The OsgMacroUtils.cmake was fixed to make INSTALL work under VS2010. You may replace the one in 2.8.3 and see if it works. Wang Rui 2010/8/25 Anders Backman : > Hi again. > Ok, this is an old one, but I need to be able to build 2.8.3 using VS2010. > Everything builds just fine, excep

[osg-users] context on different graphics cards?

2010-08-25 Thread Akilan Thangamani
Hi, I have put two graphics cardsin my system from different vendors. One is of ATI and another one is from nVidia. Using ATI I drive 2 monitors and able to create 2 graphics contexts in my osg application, each to one screen. In the same application I m not able to create graphics context f