ParallelGraphics Forums
SDK
You are here: [Forums]::[General]::[SDK]

Registration 
Registration
Forgot your password?

Help 
Help
Support

Quick search 

Subscribe to newsletters 

Install Cortona VRML Client for FREE!
Outline 3D
Try RobinZone!
email:  password:
   General - SDK

Subject: ViewPoints
Sender: mutafchiev@gmx.de 10.09.07 02:50

Hi,
I have some problem with Viewpoints.
1. I have one "Transform"-Node in wich I want to save
the movement of the person in the scene.
2. I have two Viewnodes and one "NavigationInfo"-Node wich are
children of the "Transform"-Node

This is what I want to do: to switch between these two Viewpoints from the current position of the person on the scene. I dont know how to update my "Transform"-Node.
Now when I switch between the Viewpoints I go back to the
starting position. I tried to set the new position this way:
I get the coordinates from the camera position with

m_p3DViewService->GetCameraPos(&pos),

and update the Transform Node with

/*translationNode->put_X(pos.orig.x);*/
translationNode->put_Y(pos.orig.y);
translationNode->put_Z(pos.orig.z);*/

but it is wrong. Can somebody help me to fix it?

Thanks a lot!
Stoyan

 


ViewPoints / mutafchiev@gmx.de / 10.09.07 02:50

Messages in thread: 1


© 1998-2007 ParallelGraphics. All rights reserved. Terms of use.