Author Topic: Simple 3d Spining Object  (Read 1025 times)

Offline microcyb

  • byte
  • *
  • Posts: 2
    • View Profile
Simple 3d Spining Object
« on: April 05, 2011, 05:02:01 pm »
NEWBIE question!!  
Just started to use this SDK and already tried to find a simple (very simple) sample of just loading in a 3ds object and having it self spining in the middle of the screen.

Like a ball with a texture mesh spining.  
Any samples around like that?  I do not want to tackle the touch movements or anything else yet, just want to start with the basics.

Does anyone have anything like that laying around?

Yes I searched the threads, I know it is too easy for you guys, but I wanted to start with the very basics.
« Last Edit: April 05, 2011, 06:08:04 pm by microcyb »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: Simple 3d Spining Object
« Reply #1 on: April 05, 2011, 10:24:20 pm »
To make something spin without using touch movement, just take the HelloWorld-example, remove the touch related parts and replace them with a simple call to cube.rotateY(...); To load a 3ds model, simply use the methods in Loader and replace the call to Primitives.getCube(10); with the call to the loader method. Depending on the model, you might have to play aroud the scale of the model to make it fit the screen properly.

Offline microcyb

  • byte
  • *
  • Posts: 2
    • View Profile
Re: Simple 3d Spining Object
« Reply #2 on: April 05, 2011, 11:16:18 pm »
Thank You I will give it a try.