Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Marius

Pages: [1]
Support / Best practice to rotate?
« on: June 20, 2013, 03:11:45 pm »

I have another beginner question..
I want to rotate (animate) an object by a exact amount. Lets say PI. I use the Object3D.rotX/Y/Z method to do this. The step size is 0.02. Then when the progress of the rotation is >= PI i set a flag to false and stop the animation. My problem is that in this way the rotation isn't exact. There is a little offset. How is the "normal" (exact) way to do this?

Again thanks in advance,

Support / Dimension of the viewable area
« on: June 19, 2013, 09:53:25 pm »

i think my question is very easy to answer, but i don't get it..
I want to place 16 objects on the screen. The objects should be organized in 4 rows with each 4 columns. The space between the objects should be the same between all objects. This all is easy if i'm calculating with pixels according to the dimension of my screen. But i don't get it, how to get the "dimension" of the viewable area. Lets say the camera is a position x=0,y=0,z=100. How "big" is the area the user sees? How do i calculate this value?

Thanks in advance,

Pages: [1]