vsinghp / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

viewer.setMouseUsage('rotate') does not work with md2.html #23

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. using the md2viwer.html
2. put in the controls from the test.html page
3.

What is the expected output? What do you see instead?
I thought it would allow me to control the zoom and rotate separately.  instead 
it still only rotates and zooms if i hold down shift.  I also get the error 
that viewer.setMouseUsage('rotate') is not defined

What version of the product are you using? On what operating system?
im using jsc3d-full-0.9.8.  im using it on macOSX 10.6.8 and also on the ipad2.

Please provide any additional information below.
I wanted to use the separate controls since on the ipad it only rotates without 
the option of zoom unless your using the controls on test.html page.  it works 
with the other stationary models but not with the md2 model

Original issue reported on code.google.com by c...@zimfly.com on 23 May 2013 at 4:06

GoogleCodeExporter commented 8 years ago
In this demo the creation of the viewer instance is encapsulated in a temporary 
function thus cannot be accessed from global namespace. See 
http://code.google.com/p/jsc3d/source/browse/trunk/jsc3d/demos/md2viewer.html#49
.

Try this:

md2_player.viewer.setMouseUsage('rotate'/*or 'zoom'*/);

Original comment by Humu2...@gmail.com on 24 May 2013 at 3:54