These rotation do nothing but I would keep my roations in the range 0 <= r < 360.

You have placed your camera at 0,0,-5 looking down the -z axis
You have placed your object at 0,0,0

So you are not looking at your object

vmath::mat4 model_matrix(vmath::translate(0.0f, 0.0f, 5.0f)

In general it is easier to use a lookat function to place cameras

07-14-2013, 07:32 AM

korgan00

"t" is between 0-1, rotate use a fraction of 360 and 720, i think that this rotations are alright.

model_matrix is a transformation matrix for cube, not for camera, then, camera is on 0,0,0 looking at -Z and cube on 0,0,-5. thats alright? i was testing with 0,0,5 , 0,5,0 , 0,-5,0 ... And still black window. I dont know what should i do. Any suggestion?

07-14-2013, 07:48 PM

tonyo_au

Try changing your projection matrix. Perhaps 1,-1, and aspect are too narrow. Or you could try the alternate way of setting the projection matrix with angle and aspect

07-15-2013, 10:16 AM

korgan00

Those are normalized values if im on the right way. Anyway, i tryed bigger values and still the same result.
Im sure, that im forgetting something. Someone can compile and test it?