www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: alex on May 05, 2009, 11:58:56 am

Title: how to control object rotating ?
Post by: alex on May 05, 2009, 11:58:56 am
I want to use jpct
to achieve rotating  object like cult3D example :
http://www.cult3d.com/gallery/conceptcar/index.html

any suggestions?

 Do I need to rotate object,or camera?
 excuse me for my english!
Title: Re: how to control object rotating ?
Post by: fireside on May 05, 2009, 03:09:29 pm
I think you rotate the object, but how you connect that to mouse motion, I'm not sure.  There might be something like that in the gear demo that is posted in the sticky.  Can't remember now.
Title: Re: how to control object rotating ?
Post by: EgonOlsen on May 05, 2009, 05:24:44 pm
You can do it both ways. I've posted some code in this thread: http://www.jpct.net/forum2/index.php/topic,977.0.html (http://www.jpct.net/forum2/index.php/topic,977.0.html)
Title: Re: how to control object rotating ?
Post by: alex on May 06, 2009, 04:22:40 am
Thanks a lot.
Egon,
I use the lwjgl  implementing object rotation.
I need use applet,if i only use jpct (don'r use lwjgl ) ,Can I implement it?
or Can i implement the same effect?
Title: Re: how to control object rotating ?
Post by: paulscode on May 06, 2009, 01:26:30 pm
Thanks a lot.
Egon,
I use the lwjgl  implementing object rotation.
I need use applet,if i only use jpct (don'r use lwjgl ) ,Can I implement it?
or Can i implement the same effect?
The only difference should be that you will need to listen for mouse input from the Applet instance instead of from the Canvas instance.  Of course, it is also possible to use LWJGL in an applet if you want to (using the LWJGL Applet Loader).
Title: Re: how to control object rotating ?
Post by: alex on May 07, 2009, 02:29:10 am
thanks paul,
I mean that don't use the lwjgl ,becaus of my jar has more than 800kb,if i use the lwjgl i have to add the lib into my jar