jackyoyyf / jsc3d

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

Rotation system #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

How to change the rotation system to get the effect of camera rotation around 
the model, not the model rotation in front of the camera in a fixed position? I 
mean as the effect of the 3D graphics programs such as Blender. When you move 
the camera over the object and the mouse is moved from side to side, the object 
rotates around the vertical axis, and not leaning to the side.

I tried to change rotateAboutXAxis and rotateAboutYAxis functions and variables 
rotX and rotY, with no good results.

Original issue reported on code.google.com by luk...@luckero.com on 15 Oct 2012 at 10:56

GoogleCodeExporter commented 9 years ago
Hi, Lukasz:

Unfortunately, that is not supported. Current implementation of jsc3d employs a 
simplified graphic pipeline rather than a standard complete pipeline. There is 
no explicit 'camera' in it. The scene itself is assumed to be rotated and then 
scaled and translated into the viewport and drawn.

It is possible to modify the implementation to achieve that. But you will need 
to change the pipeline heavily.

Original comment by Humu2...@gmail.com on 15 Oct 2012 at 2:53

GoogleCodeExporter commented 9 years ago
I'd like this too :)

Original comment by adamche...@gmail.com on 8 Sep 2013 at 9:51