Hi Carsten ...
I tried Adding setCameraTransformation function after setting beacon for
camera. But what happens now , system completly ignores my
SSM->getCamera()->setBeacon(beaconXformN);
call and behaves as if no beacon was set.
Also if I remove SSM->getCamera()->setBeacon(beaconXformN); and
only keep SSM()->getNavigator()->setCameraTransformation(beaconXformN);
then my vieport goes blank, may be camera is shifting to some undesired
position.
I also tried using
GetSSM()->getNavigator()->updateCameraTransformation();
after setting but no help.
I tried combinations of these three functions... but not working.
:-( :-( :-( :-(:-(:-(:-( :-( :-( :-( :-(
-----Jaideep
Carsten Neumann <[EMAIL PROTECTED]> wrote: Hello Jaideep,
Jaideep Khadilkar wrote:
> Hi....
>
> I want to set an initial position for my camera. So , I added a
> TransformNode
> under the root and added the appropriate position matrix.
ok.
> Then I used SSM->getCamera()->setBeacon(myXformNode) to set the beacon.
the problem with this is, that the SSM creates a beacon itself (look for
cartN in SSM::initialize) and keeps a pointer to its transform core (the
SSM::_cart member variable) which it also passes on to the navigator.
Setting a new beacon for the camera does not update these internal
pointers and therefore the navigator still changes the old transform
core, not the one of the new beacon.
> Now It took the exact initial position, but I am not being able to
> tumble the scene
> by directly passing the PushEvent to SSM by using
> SSM()->mouseButtonPress(button, x, y) function.
> Scene doesn't tumble. Remains static.
try inserting this after the SSM->getCamera()->setBeacon(myXformNode) line:
SSM->getNavigator()->setCameraTransformation(myXformNode);
that should inform the navigator about the updated beacon.
Hope it helps,
Carsten
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users