www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: microcyb on April 05, 2011, 05:02:01 pm

Title: Simple 3d Spining Object
Post by: microcyb 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.
Title: Re: Simple 3d Spining Object
Post by: EgonOlsen 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.
Title: Re: Simple 3d Spining Object
Post by: microcyb on April 05, 2011, 11:16:18 pm
Thank You I will give it a try.