Author Topic: how to control object rotating ?  (Read 2473 times)

Offline alex

  • byte
  • *
  • Posts: 19
    • View Profile
how to control object rotating ?
« 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!

Offline fireside

  • double
  • *****
  • Posts: 605
    • View Profile
Re: how to control object rotating ?
« Reply #1 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.
click here->Fireside 7 Games<-

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: how to control object rotating ?
« Reply #2 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

Offline alex

  • byte
  • *
  • Posts: 19
    • View Profile
Re: how to control object rotating ?
« Reply #3 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?

Offline paulscode

  • double
  • *****
  • Posts: 863
    • View Profile
    • PaulsCode.Com
Re: how to control object rotating ?
« Reply #4 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).

Offline alex

  • byte
  • *
  • Posts: 19
    • View Profile
Re: how to control object rotating ?
« Reply #5 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