Re: [osg-users] Questions about physic engines.

2010-02-08 Thread Ricardo Ruiz
Thanks.

Just one question, OSG renders at the maximun amount of FPS it can, but ODE 
requires a fixed time step. How do you solve this problem? Thanks a lot.

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





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


[osg-users] Questions about physic engines.

2010-02-06 Thread Ricardo Ruiz
Hi mates.


I have several questions regarding about physics engines in OSG. BTW, I'm a OSG 
beginner.

If I want to use ODE, must I add osgPhysics plugin to my OSG?

How can I load a scene with physics values? Let's say I'm creating a scene in 
3Ds MAX, and I export it to COLLADA (or any other format). Does OSG or 
osgPhysics read these values (mass, friction...)? And the most important, how 
can I tell 3Ds MAX that objets have different physic properties?

And the last one. Usually physics engines requere a fixed (or almost) time 
step, ODE is one of them. How should I manage that inside OSG, I mean, after 
integrating ODE with ODE?

Thank you very much for your time and help.

Cheers,
Ricardo

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





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


[osg-users] Does anyone remember how is a mirror/reflection matrix?

2009-12-04 Thread Ricardo Ruiz
Hi friends!


Does anyone remember how is a mirror/reflection matrix? just to simulate a very 
clean floor (repeating models above).
I'd like to create a osg::MatrixTransform and using osg::Matrix, pass this 
mirror matrix.

Thanks.

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





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


Re: [osg-users] How can I get last frame time inn order to create indepent FPS aniamtions?

2009-11-24 Thread Ricardo Ruiz
Good idea, as expected, it works perfectly. But I'm curious, do you know why 
old my approach does not work? (calculate frame time, is it because of threads?)

Thanks.

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





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


[osg-users] How can I create a osgViewer windowed?

2009-11-24 Thread Ricardo Ruiz
Hi all!

osgViewer starts always in full screen mode. How can I tell it I would like a 
window or windowed app?

Thanks a lot.

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





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


Re: [osg-users] How can I create a osgViewer windowed?

2009-11-24 Thread Ricardo Ruiz
Wonderful!

Thanks a lot. 

BTW, is there any way to automatically center that window? or get screen size 
and window size? Just to let my window nicer. (from OSG, not from Win32 API)

Thanks Tueller.

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





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


[osg-users] How can I get last frame time inn order to create indepent FPS aniamtions?

2009-11-22 Thread Ricardo Ruiz
Hi all.

How can I get last frame time inn order to create indepent FPS aniamtions?

For instance, something like m_last_time_frame:



Code:

double angle=0;
while (!viewer.done()) {
angle=angle+0.1*m_last_time_frame;

viewer.getCamera()-setViewMatrixAsLookAt(osg::Vec3(0,-400,150), 
osg::Vec3(0,0,0), osg::Vec3(0,0,1));

viewer.getCamera()-setViewMatrix(osg::Matrix::rotate(angle*DEG_TO_RAD,0,0,1)*viewer.getCamera()-getViewMatrix());
viewer.frame();
}




Thanks.

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





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