Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  JavaScript    orbit and walk camera

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
rik
Member
Posted
hi,
I would like to create 2 button that activate

the first one orbit Camera
and the second one walk Camera

is there a way to exchange the camera?

the default camera in my scene is OrbitCamera

I've tried to call vmp.Execute(

passing this mtx code

<MTSCamera Mode="Walk" Name="myCamera" >
<Rotate x="-0.000005" y="108.471565" z="-0.000005" />
<Position x="-14.724343" y="1" z="1.149947" />
<LookAt x="4.389999" y="0" z="0" />
</MTSCamera>

and the camera switch to walk Camera, but when I use

vmp.Execute(

passing this mtx code

<MTSCamera OrbitDist="2.97" Name="myCamera" >
<Rotate x="45" y="45" z="0" />
<Translate x="0.005" y="-0.02" z="0" />
<ViewLocation x="0" y="0" z="4" />
</MTSCamera>

the camera change the view but not return to orbit mode Frown

any idea?

thank you in advance
 
Posts: 34 | Registered: March 17, 2003Reply With QuoteEdit or Delete MessageReport This Post
rik
Member
Posted Hide Post
ops......


I forgot Mode="Orbit"

Smile
 
Posts: 34 | Registered: March 17, 2003Reply 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 walk camera