Re: [osg-users] Problem with "osgmovie"
Hi,Robert Thanks for your advice. Right now I just simply control the movie by setting the time limit, when time's up and I just quit this movie. Cheers, Shiina -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=22272#22272 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Problem with "osgmovie"
Hi, Recently I just added the "osgmovie" in my object , to play as a media player. But here I have a question , that is , is there any method to detect if the movie has been over , and then I could switch to other scene. Any advice would be appreciated. Thank you very much! Cheers, Shiina -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=22192#22192 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Question about using "osgmoive"
Hi,Robert Thank you for your advice! If using "--interactive" argument, then could I make the movie fullscreen by changing the view point to an appropriate position? By the way , is the center position of the "movie quad" at (0.0,0.0,0.0)? And is there any rotation attach to the "movie quad"? It seem that I cannot easily make the quad fullscreen by changing the position of view point. Thank you very much! Cheers, Shiina -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=19698#19698 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Question about using "osgmoive"
Hi, I have just compiled the example "osgmovie", and found that the code used the "setProjectionMatrixAsOrtho2D" to set the ProjectionMatrix of viewer. But what I want to implement is: while playing the video clip using the osgmoive's method , I want to switch the movie to the scene graph as before , to navigate the scene again. But here I confuse with setting the ProjectionMatrix , in other words , how to let the ProjectionMatrix come back to the default perspective Projection? And how to set the matrixmanipulator? In all , my problem is : when playing movie using osgmovie's method , how to switch to the original navigation scene? Could anyone help me out of this problem? Thank you very much! Cheers, Shiina -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=19695#19695 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Is there any examples about OpenThreads?
Hi, J-S Thank you for your fantastic advice! Cheers, Shiina -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=18209#18209 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Is there any examples about OpenThreads?
Hi, Here I just need to implement a Timer for my animation control application , using the OpenThreads library. But actually I have found that it is very hard to work on this multi-threads programming for me, especially connected with OSG. So, I just want to find any example programme, which using the OpenThreads library, and It could be very helpful for me. Does anyone who has the experience on the OpenThreads or the implementing of a Timer using the thread. Any help would be appreciated! Thank you very much! Cheers, Shiina -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=18204#18204 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Question about switching between MatrixManipulator
Hi, JP Thanks for your advice. I have tried setHome() befor, and this funtion just set the default view position for the corresponding MatrixManipulator. Here my problem is that: when I hit the button to switch the 2 MatrixManipulator, if I switch the trackball to the manipulator that I defined my myself, and the view position is no problem; while if I switch the manipulator that I defined myself to the trackball, the view position is not the position like the position when the application initialed(in other word: the defalut view position of trackball manipulator), here if I hit the spacebar(the default key to let the view point to Home position), and the view position will come back to the "Home"position, which defined by the "setHome()". All in all, my question is: when I switching the other Manipulator that I defined myself to trackball, How to let the view point automatically come back to the default position ( the position is like the application initiated position)? Any help would be appreciated. Thank you very much! Cheers, Shiina -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=18197#18197 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Question about implement a Timer thread
Hi, I just want to make a "Timer" , using the OpenThreads library , for my own animation control method. In other word , I want to make a "Timer thread" , which provide the precision time signal every second. But I have never work on the programming about mult-threads , especially here using the OpenThreads with OSG. Could anyone give me some advice for how to implement a Timer , and how to use this timer thread with my scene in OSG? Any help would be appreciated. Thank you very much! Cheers, Shiina -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=18184#18184 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Question about switching between MatrixManipulator
Hi, Here just a quetion confused me: I have a KeySwitchMatrixManipulator , which served as a swithcer between 2 MatrixManipulator : a default Trackball and a MatrixManipulator that I defined(bounding to a object) . The problem is : when I hit the button to switch the above MatrixManipulator , especially when I switch the MatrixManipulator that I defined to the Trackball MatrixManipulator , the view point cannot come back to the default position when the application initiated , and I have to hit the spacebar in order to let the view back to the default positon. In all , Is there a method that could let the view point came back to its default position when using the Trackball MatrixManipulator? Could anyone give me some advice about this problem? Thank you very much! Cheers, Shiina -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=18134#18134 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Restoring a Viewer's MatrixManipulator
Hi,Phil I just have met the same problem , like the switching of 2 MatrixManipulators , that the home position is not the position which is like the default position. I just look forward to anyone could give some advice. Thank you very much! Cheers, Shiina -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=18132#18132 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to compute speed?
Hi,Cedric Your advice really helped me! Thank you for the fantastic advice! Cheers, Shiina -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=17204#17204 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] How to compute speed?
Hi, Now just a question have troubled me: is that, an object is moving, using the osgAnimation library, here I want to compute the speed of that object's movement, and if using the "V=S/t" to compute the speed, then I donot kown how to get the Distance"S", even the Time"t". Anyone could give me a good idea for this? Thank you very much! Cheers, Shiina -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=17165#17165 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Question about train simulation
Hi Cedric, for another question to osgAnimation , that is , the function "setBindMatrixInBoneSpace()" in osgAnimation::Bone , its parameter's matrix , and I just cannot understand this parameter's meaning as well as How to give the correct matrix. Besides , I just have no idea about the "BoneSpace" , and "SkeletonSpace" , in other words , the coordinate in the local "Bone" or "Skeleton" spaces just trouble me . Could you just explain the meaning of that 2 spaces in a easy-understanding way? Thank you very much! Cheers, Shiina Ringo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16994#16994 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Question about train simulation
Hi Cedric, Thank you very much for your advice! Cheers, Shiina Ringo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16992#16992 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Question about train simulation
Hi, I am a new to OSG Now I am woking in a project for train simulation game , using the osgAnimation library , but for now just some problems trouble me : for example , when the train turns left or right , the cabin need rotate for a angle , and I have tried for creating osgAnimation::Bone , but finally the output does not look the same to the real situation. so I guess that the "Bone" does not fit for train's turning , anyone who could give a better idea? :' Thank you very much! Cheers, shiinaringo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16984#16984 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org