Re: [osg-users] osg::Text and depth test

2009-09-11 Thread Harold Comere
Hi Jason, Thank you for this information. setRenderBinDetails() will do the job :) Regards, Harold 2009/9/10 Jason Daly jd...@ist.ucf.edu Harold Comere wrote: Hi all, Does the depth test has an effect over osg::Text ? I have disabled the depth test on a node with* setMode (

Re: [osg-users] [osgPlugins] Error when loading DirectX .x files

2009-09-11 Thread Ulrich Hertlein
Hi, On 10/09/09 10:10 PM, Judy Hartley wrote: seem to be having some trouble. When I try to load any of my .x files, I get the following message: DirectX Loader: Error reading material list; 1 instead of 0 The parser was expecting one material but didn't find any and is complaining about

Re: [osg-users] [osgPlugins] Error when loading DirectX .x files

2009-09-11 Thread Ulrich Hertlein
On 11/09/09 9:35 AM, Ulrich Hertlein wrote: On 10/09/09 10:10 PM, Judy Hartley wrote: seem to be having some trouble. When I try to load any of my .x files, I get the following message: DirectX Loader: Error reading material list; 1 instead of 0 The parser was expecting one material but

Re: [osg-users] How to move entire particle system

2009-09-11 Thread Iban Arriola
Hi, Here is the way that I did it [code] osg::PositionAttitudeTransform* Xform1 = new osg::PositionAttitudeTransform(); root-addChild(Xform1); myParticleSystem= new sandStorm(); Place = osg::Vec3 (14533,7677,13); Xform1-setPosition (osg::Vec3 (100,700,13)); myParticleSystem-setUp((osg::Group

Re: [osg-users] Problems building Plugins dicom - RESOLVED

2009-09-11 Thread Robert Osfield
Hi Jason, On Thu, Sep 10, 2009 at 7:45 PM, Jason Jerald ja...@digitalartforms.comwrote: Thanks for the reply Robert. I guess CMakeLists.txt overrides anything set within the CMake GUI. No, CMakeLists.txt provides the defaults that are written to the CMakeCache.txt, then ccmake/or the

Re: [osg-users] Problems building Plugins dicom - RESOLVED

2009-09-11 Thread Robert Osfield
Hi Jason, On Thu, Sep 10, 2009 at 7:50 PM, Jason Jerald ja...@digitalartforms.comwrote: One more thing in case anyone else tries to build Plugins dicom on Windows Vista (and likely other versions of Windows): We commented out the following line in ReaderWriterDICOM.cpp #define HAVE_CONFIG_H

[osg-users] [3rdparty] Transparency and osg::Cone (shape)

2009-09-11 Thread Miguel Lokida
Hi, Here 's my problem. I have an osg::Cone (inherit from shape) and I would like it to be transparent. I have used some example using blendFunction but the problem is that the cone is a little transparent but some slices all along the cone appear. If someone know how to make it fully

Re: [osg-users] Performance Drop with Materials

2009-09-11 Thread Robert Osfield
Hi Todd, I can't say for sure but it does sound like you are pushing through too many state changes. Ideally you should have a small number of independent StateSet, and small number of unique Materials. Rather than use Materials for changing the material properites it's best to use vertex

Re: [osg-users] [3rdparty] Transparency and osg::Cone (shape)

2009-09-11 Thread Robert Osfield
Hi Miguel, This is a standard issue with rendering shapes with depth buffer hardware - if the front faces are drawn before ones at the back then the depth buffer is written to and when it comes to drawing the back faces the depth test rejects the fragment. Go look in online literature/books on

[osg-users] Confusion regarding multiple views showing almost the same sceene

2009-09-11 Thread Ragnar Hammarqvist
Hi All Im a bit confused on how to implement multiple views in osg. My problem is the following. Im limited to use wxWidget as GUI (and GL Traight)? In my GUI I want several (one to at least eight) camera views looking on almost the same scene. The scene is VPT-made and is presenting a huge

Re: [osg-users] Transparency and osg::Cone (shape)

2009-09-11 Thread Miguel Lokida
Hi, Thank you for the answer. But is-it easy to render twice with openscenegraph ? I am new with it and don't know how to do. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=17272#17272 ___

Re: [osg-users] Matrix Multiplication - Coordinate Rotation

2009-09-11 Thread David Goering
Hey, I tried what you told me, here is the code: osg::Matrix rot = rot.rotate(osg::DegreesToRadians(45.0),1.0,0.0,0.0); osg::Matrix sca = sca.scale (1.0,1.0,1.0); osg::Matrix m = rot * sca; arTransform-setMatrix(m); osg::Vec3f vec = arTransform-getMatrix().getTrans(); double x = vec.x(); double y

Re: [osg-users] Matrix Multiplication - Coordinate Rotation

2009-09-11 Thread Ralph Kern
David Goering schrieb: Hey, I tried what you told me, here is the code: osg::Matrix rot = rot.rotate(osg::DegreesToRadians(45.0),1.0,0.0,0.0); osg::Matrix sca = sca.scale (1.0,1.0,1.0); osg::Matrix m = rot * sca; arTransform-setMatrix(m); osg::Vec3f vec =

[osg-users] Transforming on coordinate system

2009-09-11 Thread Akilan Thangamani
Hi, I have drawn a geometry normal to XY-plane and I would like to transform it in such a way that it must be normal to YZ-plane.I did rotation for 90 degree about X-axis. Will it do what I wanted to do? The corresponding code would seems to be , .. osg::Matrix

Re: [osg-users] Matrix Multiplication - Coordinate Rotation

2009-09-11 Thread David Goering
Hey, Well my problem is this, I have a webcam and it looks on a table from a slant, and gives me coordinates of an object it finds (a marker). These coordinates are then sent to the TransformationMatrix arTransform in order for OpenSceneGraph zu render a Model on there. The problem is, if I

Re: [osg-users] Transforming on coordinate system

2009-09-11 Thread Brian ...
Hi Akilan, The matrix you created (rot), does rotate 90 degress around the X-axis. You need to look at the resulting geometry position to determine if it's what you really want. BTW, There's a fantastic book for learning all about transforms and I think it should be required reading

[osg-users] 3D model database

2009-09-11 Thread Clay, Bruce
This question may be a bit off track for OSG but it is something that I think can be used by OSG developers. I have collected many 3D models through the years and I am at a point where I have lost track of everything I have so I am building a database of the models. Since the models are

Re: [osg-users] Confusion regarding multiple views showing almost the same sceene

2009-09-11 Thread J.P. Delport
Hi, single window or multiple? jp Ragnar Hammarqvist wrote: Hi All Im a bit confused on how to implement multiple views in osg. My problem is the following. Im limited to use wxWidget as GUI (and GL Traight)? In my GUI I want several (one to at least eight) camera views looking on almost

Re: [osg-users] OpenGL Extensions.

2009-09-11 Thread Jan Ciger
Guy Volckaert guy.volcka...@meggitt.com wrote: Is there an easier way to do this? Perhaps using GLEW (http://glew.sourceforge.net/) directly to figure out the extensions before you initialize OSG? Regards, Jan signature.asc Description: This is a digitally signed message part.

Re: [osg-users] Confusion regarding multiple views showing almost the same sceene

2009-09-11 Thread Ragnar Hammarqvist
Multiple windows. -Ursprungligt meddelande- Från: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] För J.P. Delport Skickat: den 11 september 2009 14:58 Till: OpenSceneGraph Users Ämne: Re: [osg-users] Confusion regarding multiple views

Re: [osg-users] Transforming on coordinate system

2009-09-11 Thread J.P. Delport
Hi, if you mean you drew something in the XY plane, then you need to rotate around Y to get the YZ. Y is common. Some google search terms for you: right hand rule right handed coordinate system I don't want to be blunt, but you will have to start understanding these rotations/tranformations

Re: [osg-users] Confusion regarding multiple views showing almost the same sceene

2009-09-11 Thread J.P. Delport
Hi, I'm attaching a proof of concept I've hacked on just to try things out. It's a modified osgviewerWX with multiple windows and hopefully shared context. I'll try to get it into shape for inclusion as example later. cmake . make ./test cow.osg hope it helps as a start jp Ragnar

Re: [osg-users] OpenGL Extensions.

2009-09-11 Thread Robert Osfield
Hi Guy, It's the GraphicsContext/GraphicsWindow that govern what extensions are supported, so use a RealizeOperation and then realize your graphics context prior to finializing set up of your scene graph. Have look at the osgshaderterrain example to see how you could do this. Robert. On Wed,

Re: [osg-users] NULL Options passed to readImageFile()

2009-09-11 Thread Jason Daly
Joe Abreu wrote: I've downloaded and run the Redistributable, tried DependecyWalker.exe OSG example debug versions are missing: MSVCP80D.dll MSVCR80D.dll Do you also see MSVCP80.DLL and MSVCR80.DLL as dependent modules in the debug version? If so, this is the configuration problem that

Re: [osg-users] [osgPlugins] Error when loading DirectX .x files

2009-09-11 Thread Judy Hartley
Hi, Forgot to mention that I am using Visual Studios 9 (2008) for deveoping, so this is happening on a Windows machine. Thanks! Judy -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=17286#17286 ___

Re: [osg-users] [osgPlugins] Problems creating MSVC project files for png plugin using CMake

2009-09-11 Thread Jason Fisher
Hi Jean-Sébastien, thanks for your reply. I knew and considered this page, I maybe should have mentioned that. However, deleting the CMake cache and setting up the whole thing from scratch worked out, no idea what the problem was. Thanks for your help! Cheers, Jason

Re: [osg-users] How to move entire particle system

2009-09-11 Thread Jolley, Thomas P
Hi Iban, I don't know enough about sandStorm and its setUp function to help you. The last argument to setUp doesn't look correct. Look at the scene graph that is created and see if the Geode for your particle system is under the Xform1 node. From: Iban Arriola Hi, Here is the way that I

Re: [osg-users] 3D model database

2009-09-11 Thread Jason Daly
Clay, Bruce wrote: Some of these attributes can be defined programmatically and others will require human assessment. I have been able to find the number of vertices using OSG but I have not found out how to count the polygons. Which number would be a truer or better number to store in

Re: [osg-users] Transparency and osg::Cone (shape)

2009-09-11 Thread Jason Daly
Miguel Lokida wrote: Hi, Thank you for the answer. But is-it easy to render twice with openscenegraph ? I am new with it and don't know how to do. He explained how to do it in the previous message. If you didn't understand it, it might be a good idea to play around with some of the

Re: [osg-users] Matrix Multiplication - Coordinate Rotation

2009-09-11 Thread Jason Daly
David Goering wrote: Hey, Well my problem is this, I have a webcam and it looks on a table from a slant, and gives me coordinates of an object it finds (a marker). These coordinates are then sent to the TransformationMatrix arTransform in order for OpenSceneGraph zu render a Model on there.

Re: [osg-users] Matrix Multiplication - Coordinate Rotation

2009-09-11 Thread Jason Daly
David, One other thing. Have you looked at ARToolkit? I've not used it myself, but I'd be surprised if they don't have some routines that will handle this for you. --J ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Performance Drop with Materials

2009-09-11 Thread Todd J. Furlong
Robert, Thanks for the tips. I definitely need to take another pass at this optimize it better. As to my original issue, it turned out to be a threading issue in a .NET UserControl. The app was somehow able to escape the problem consistently by loading a model. I had gotten creative and

Re: [osg-users] 3D model database

2009-09-11 Thread Clay, Bruce
Jason: Thanks for the reply. I have looked around through Google searches on 3D model database and similar strings. I have found new models to download and add to the collection this way but I have not found anything more than just the name of files. I will add bounding box to the list as

Re: [osg-users] 3D model database

2009-09-11 Thread Jean-Sébastien Guay
Hi Jason, Bruce, You should be able to get these numbers by iterating over the primitive sets in each drawable. You'll have to count differently depending on primitive type and primitive set type, but it's not that difficult (there may already be a visitor in OSG that does this, I'm not

Re: [osg-users] 3D model database

2009-09-11 Thread Clay, Bruce
J-S Thanks for the information. I will do the Luke Skywalker thing and Use the Source or was that force oh well. Bruce -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Jean-Sébastien Guay Sent:

[osg-users] Rotation of Vectors

2009-09-11 Thread Joe Abreu
Hi, I understand the concept of matricies, Vectors and Points in 3d Space. I have learnt this at University. I have an issue trying to understand the concept of OpenSceneGraphs use of Quaternions and attitude. I do not really get what Attitude is, I'm used to the concepts of

Re: [osg-users] Rotation of Vectors

2009-09-11 Thread Jason Daly
Joe Abreu wrote: Hi, I understand the concept of matricies, Vectors and Points in 3d Space. I have learnt this at University. I have an issue trying to understand the concept of OpenSceneGraphs use of Quaternions and attitude. I do not really get what Attitude is, I'm used to the concepts

Re: [osg-users] Rotation of Vectors

2009-09-11 Thread Jason Daly
Joe Abreu wrote: Code: osg::Vec3d position = car.GetPosition(); osg::Quat attitude = osg::Quat( turn_angle, osg::Vec3d(0,0,1) ); osg::Vec3d movement = osg::Vec3d(0,car.CurrentSpeed(),0); // Some way of using a Quat(or whatever) to rotate my movement vector to the correct heading based on

[osg-users] Render-to-texture TextureRectangle

2009-09-11 Thread Guy Volckaert
Hi, I am having a weird problem which I hope you can help. I am running on Win2000 with a relatively old nvidia card. 1) When I run then osgtexturerectangle example and I supply a non-power-of-two image as a command line argument, the example still runs as expected. So that tell me that my