[osg-users] How do you manage multiple world matrices?

2012-02-20 Thread Martin Großer
Hello, When I get a scene graph and I want to do something with a geode in world coordinates, I have to use the world matrix of the geode (usually the matrizes of the parents). Now, the difficult part is a node can have several parents. I am not sure how I can manage this fact. How can I

Re: [osg-users] How do you manage multiple world matrices?

2012-02-20 Thread Vincent Bourdier
Hello, If you use that in relation with the pick handlers, you'll see that every intersector will return you the intersected node complete path, so there is no issue with multiple parents nodes. In other cases, managing nodes using the nodePath as reference is a solution too... Regards,

Re: [osg-users] MatrixTransform derived class?

2012-02-20 Thread Sergey Polischuk
Hi You can use META_Node, and you can go without it if you dont need functionality provided there. osg meta macroses most usefull when you derive from abstract classes, so you dont need to fill all pure virtual functions by hand, some of this work done by macro. Cheers, Sergey. 19.02.2012,

Re: [osg-users] Shader lookup table method: does lookup texture have to be bound to a separate geometry?

2012-02-20 Thread Sergey Polischuk
Hi there I dont read all messages here, but if problem still there - your uniform for sampler initialized wrong You should use state-addUniform(new osg::Uniform(lut, int(TEXTURE_UNIT))); notice int cast there or you should create uniform with explicit type specification of osg::Uniform::INT,

[osg-users] why mulite time to create camera object when to run osgviewer

2012-02-20 Thread tang
___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] How to set distance of camera manaly, and turn off mouse control in viewer?

2012-02-20 Thread Robert Osfield
HI Maciej, On 18 February 2012 08:00, Maciej Ciemborowicz p...@ciemborowicz.pl wrote: I'm controling manipulator with keyboard, so I don't need default mouse control. How may I turn it off? And how can I change distance of manipulator manualy? I mean with mouse I can zoom in/out with scroll,

Re: [osg-users] osgvolume performance

2012-02-20 Thread Robert Osfield
Hi Clement, osgVolume will have very light CPU usage, but heavily taxes the GPU so the CPU usage you are seeing won't be down to osgVolume. What might be causing the high CPU usage I cannot say, it's your hardware, your application. As a general note MFC is rather limiting, you are using a

Re: [osg-users] How do you manage multiple world matrices?

2012-02-20 Thread Robert Osfield
Hi Martin, The OSG supports subgraphs having multiple parents and hence multiple world coordinates. Whether you would want to use this facility will depend upon the what you are trying to do - typically you'd use this facility to place multiple subgraphs like cars wheels onto a car, or a trees

Re: [osg-users] Issues with RotateCylinderDragger

2012-02-20 Thread Robert Osfield
Hi Chuck, I'm afraid as I'm not the original author of this bit of code I can't provide insight above what you can by reading the code. Robert. On 17 February 2012 17:47, Chuck Seberino seber...@energid.org wrote: Robert et al, I have been looking at an problem I have been having with the

Re: [osg-users] Issues with RotateCylinderDragger

2012-02-20 Thread Marius Kintel
On 17 February 2012 17:47, Chuck Seberino seber...@energid.org wrote: The behavior I am seeing is that a small change in mouse drag will cause a large rotation and in certain cases will also cause a rotation in the opposite direction. I'm seeing the same thing and it's annoying, but it

[osg-users] getFirstIntersection() causes an excpetion

2012-02-20 Thread Renato Oliveira
Hi, I am having a anyoing issue that i cannot figure out. Ive seen some post about similar issue but with no defenit fix. I writing a picker code to know the vertices of my object when i click in it following faitfully the example in picking in the samples, however, getFirstIntersection() is

Re: [osg-users] [build] Android OSG display problem

2012-02-20 Thread Giulio Pierucci
Hi all! I'm a noob, but i built osgAndroidExampleGLES2. I try cow.osg and the result is same (the only difference is that i see a black cow instead white).. I had to write a shader for texture? Like this? (see attach) thanx in advance. Giulio -- Read this topic online here:

[osg-users] projective texture mapping and lighting

2012-02-20 Thread Michael Schanne
Hi, I am new to OSG and OpenGL. I am attempting to create a scene where an image from a real camera is projected onto a 3d model of the object being photographed. I used the projective texture mapping technique following the osgspotlight example, substituting my image for the spotlight image

[osg-users] Implementing a HUD in QTviewer - hud projection matrix

2012-02-20 Thread Ron Mayer
Hello all, I am trying to implement a HUD with a crosshair in a QT window. I have used the osghud.cpp and QTViewer examples for this. It seems like I am not setting the correct projection matrix in my HUD camera. In my project I have 2 cameras (as in the osghud.cpp example): The first, looking

[osg-users] Dynamic datavariance clarification

2012-02-20 Thread Eric Pouliquen
Hi, sorry to ask questions about such a classic topic but I've read lot of things about Datavariance and would like to be sure about some points : I've read in osg guides that the datavariance of a Drawable (and all subclasses) and a StateSet must be set the DYNAMIC if we plan to modify its

[osg-users] Warping an image for display onto a curved screen

2012-02-20 Thread Roy Caligan
Hi everyone, I've been speaking with some of the folks on the FlightGear forum about a problem I'm having, and I was recommended to contact this group for some help. I'm trying to project an image onto a curved screen using a video projector and a hemispherical mirror. Basically, images are

[osg-users] Anyway to insist on a pixel format with an accumulation buffer

2012-02-20 Thread Leigh Stivers
Hi, When I switched graphics cards from a nVidia to an AMD radeon (Windows7), my motion blur effects went away, due to the fact that the first pixel format that wglChoosePixelFromatARB returned did not have an accumulation buffer. If I added an attribute to the attribute list, WGL_ACCUM_BITS,

Re: [osg-users] [build] Android OSG display problem

2012-02-20 Thread Wang Yunlong
Hi,Jayce I build the sample project osgAndroidExampleGLES1 of osg3.0.0 with no errors and install the .apk on my 2.3.6 device, i put the cow.osg in /sdcard/ ,and then load the file using the menu L.Object,but nothing display(the LogCat show 'Loaded Model'),i don't know why.Can you help me with

Re: [osg-users] problems with osg::Image in QtWidget

2012-02-20 Thread Marius Kintel
On Feb 17, 2012, at 10:44 AM, Islamov Denis wrote: 1) When i compile Qt Viewer, program can't find plugins for loading models (but all dylib's in usr/local/lib and .so files in usr/local/lib/osgPlugins-3.0.1) Did you build osg with -DOSG_WINDOWING_SYSTEM=Cocoa

Re: [osg-users] Dynamic datavariance clarification

2012-02-20 Thread Paul Martz
This has been discussed before, but I'm not sure what you'd search for to find it in the archives. In the most general and conservative sense, you should set dynamic data variance on anything you need to change. But in reality, you only need to do this for objects that are referenced by the

Re: [osg-users] Anyway to insist on a pixel format with an accumulation buffer

2012-02-20 Thread Sergey Polischuk
Hi You can use osg::DisplaySettings::setMinimumNumAccumBits(...) on osg::DisplaySettings-instance() or on View Cheers, Sergey 14.02.2012, 00:18, Leigh Stivers leigh.stiv...@gmail.com: Hi, When I switched graphics cards from a nVidia to an AMD radeon (Windows7), my motion blur effects went

Re: [osg-users] Dynamic datavariance clarification

2012-02-20 Thread Eric Pouliquen
Thanks Paul for your answer. You're right, the conservative approch is a good way to think, as it seems to be very critical (seeing from stability of the app). I was wondering effectively what is or not in the render graph, just because it seems it can affect a lot the global perf of the

Re: [osg-users] Dynamic datavariance clarification

2012-02-20 Thread Paul Martz
For contents of the render graph, the following might have some information: http://www.bricoworks.com/articles/stateset/stateset.html http://www.bricoworks.com/articles/stategraph/stategraph.html SingleThreaded means that frame() doesn't return until the draw threads have completed. At that

Re: [osg-users] Warping an image for display onto a curved screen

2012-02-20 Thread Robert Osfield
Hi Roy, What you are looking to do is called distortion correction - you are correcting for distortion created by projecting an image onto a curved surface. Doing distortion correct is rather advanced OSG/graphics usage, and not something I'd recommend for a beginner. To do this correction

Re: [osg-users] Streaming audio

2012-02-20 Thread Chris Hanson
You might get better results asking on the osgAudio list: http://groups.google.com/group/osgaudio-users?pli=1 I have osgAudio working with local files, but when trying to play a remote audio (http://www.example.com/audio.wav), it gives an I/O error. Is there a different way to load

Re: [osg-users] getFirstIntersection() causes an excpetion

2012-02-20 Thread Renato Oliveira
as i was looking when this error happen the _Myfirstiter is NULL when its going through the ~Interserction() destruction. could that be a possible cause of the issue? i mean trying to delete a null pointer? -- Read this topic online here:

Re: [osg-users] getFirstIntersection() causes an excpetion

2012-02-20 Thread Renato Oliveira
one other thing also i noticed, my code is calling the ~Intersection() destructor while osg example (osgkeyboardmouse) is not when exiting the pick function() -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=45609#45609

[osg-users] Rendering NURBS

2012-02-20 Thread Anders Backman
What do you guys out there use for rendering NURBS? glu? Third-party libraries? If so which ones can you recommend? Thanks, Anders. -- __ Anders Backman, HPC2N 90187 Umeå University, Sweden and...@cs.umu.se http://www.hpc2n.umu.se Cell: +46-70-392 64 67

[osg-users] Animated skybox? Feasible in OSG?

2012-02-20 Thread Christian Buchner
Hi, do you think doing an animated skybox is feasible using OSG? We would like to do this on Windows using hardware-accelerated decoding of an MP4 or H.264 or WMV file into a texture, so it does not suck up all our precious CPU resources. For rendering the skybox I would use software like Vue,

Re: [osg-users] [build] Android OSG display problem

2012-02-20 Thread Jorge Izquierdo Ciges
Giulio, there has been some changes in the handling of textures/projective textures. Cow it's usually a model that gave me errors because of that. Just try simple models withouth textures first and learn step by step. 2012/2/18 Giulio Pierucci giulio.pierucc...@gmail.com Hi all! I'm a noob,

Re: [osg-users] Rendering NURBS

2012-02-20 Thread Wang Rui
Hi Anders, I have a NURBS example in my coming book: OpenSceneGraph 3.0 Cookbook. It uses the glu* functions within a derived Drawable class. Also a long time ago, I had have a project osgModeling (currently inactive) in which I implemented a class that simulates NURBS surfaces with polygons.

Re: [osg-users] Streaming audio

2012-02-20 Thread Héctor Martínez
Hi Chris, thank you for the link. Yes, I forgot to mention, I’m using openAL soft and Windows 7 (Visual Studio 10). If any ideas, please comment. Best regards. From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Chris

Re: [osg-users] Streaming audio

2012-02-20 Thread Héctor Martínez
Hi Chris, thank you for the link. Yes, I forgot to mention, I’m using openAL soft and Windows 7 (Visual Studio 10). If any ideas, please comment. Best regards. From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Chris