Re: [osg-users] Particles not working

2010-08-05 Thread Jean-Francois Severe
I'm posting the solution to my problem should anyone encounter the same dumb 
problem.
It appears I had left in my code a line that changed the root scene node every 
frame. I think the particles may be reinitialized when the root scene node is 
changed, so the particles never got beyond the first frame. I just changed to 
change the root scene node only if an actual change took place, and it works. 
It was on my todo list, but didn't think it would be relevant.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=30555#30555





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Particles not working

2010-08-03 Thread Jean-Francois Severe
Hi,
I'm trying to add some particle effects in my project. I took the spaceship 
model shipped with osg, when I load it in a viewer it works fine. When I load 
the same model in my project, the hull of the ship appears, but not the 
particle effect.
I'm using SDL as a window, and my code is derived from the SDL viewer. Camera 
is moved manually, so there is no camera manipulator. There is also no event 
handler.
I tried giving viewer::frame() the frametime, but that didn't fix it. 
My project is over 4000 lines of code, and I have no idea where the bug may 
lie, so excuse me for not posting the code. I'm just wondering if some of you 
could give me pointers as to what may be wrong, so I can find the relevant part 
myself.

Thank you for any help you can provide with that little info. I'll gladly 
supply parts of the code that seem relevant, I just can't figure out what is.

rewpparo

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=30491#30491





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] OSG + SDL

2010-04-18 Thread Jean-Francois Severe
Geez thanks I feel ashamed now, that's exactly what I'm looking for. I got 
myself settled for some hacking and never thought it would be this simple.
When you think about it it makes perfect sense.
Thanks for the answer !

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=26930#26930





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] OSG + SDL

2010-04-17 Thread Jean-Francois Severe
Hi,

I'm trying to use OSG to draw to a SDL window. I've found lots of information 
everywhere on this, but it all seems to use SceneView, which is said to be 
deprecated, and doesn't work when I try it. It's a shame because it's exactly 
what I needed to integrate nicely with my code.
I heard there's another way to do this, using the osgViewer, but I never found 
a sensible piece of code that would explain me what to use and how it works.
I would rather use my own code to do this rather than a library, as I need a 
good control over input and over the SDL event queue. The best would be a way 
to draw a scene to the current openGL context, using only opengl commands. What 
would be the correct way to do this ?

Thank you for any information regarding this.

Cheers,
Jeff

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=26920#26920





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org