Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  JavaScript    Orbit and Zoom to an object

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Junior Member
Posted
Hi,

I explain you my problem.

My image Viewpoint is composed of few objects (MTSInstance).
For example, I would like to click on object and so, the orbit reference change on this object and this object will set to fullscreen into Viewpoint area.

I know how set the orbit reference to an object.

function LeftClic(piece) {
var wm = vmp.GetProperty ('MTSInstance.' + piece, 'WorldMatrix', 'mts_matrix');
vmp.SetProperty ('MTSInstance.InstTmp', 'Matrix', wm, 'mts_matrix');
var loc_ = vmp.GetProperty ('MTSInstance.InstTmp', 'loc_', 'mts_pnt3d');
vmp.SetProperty("MTSCamera", "pivt", loc_,"mts_pnt3d");
}

But I cannot zoom automatically on this object. I know OrbitDist parameter (orbd) but how can calculate the value ?

Thanks in advance

Romain.
 
Posts: 2 | Registered: March 28, 2008Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  JavaScript    Orbit and Zoom to an object