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

Reply via email to