![]() |
|
|
#1 |
|
3d to 2d
I have created a 3d render program for my TI86. It can do all the rotations and stuff like that. It will make the cube rotate in space.
Currently I take the x y z positions and I just ignore z and it graphs x and y. This of course doesn't give you a perspective. All I want to do is make a cube that I can rotate, I'm not even doing translations. The cube always stays in the center.
__________________
|
|
|
|
|
|
|
#2 |
|
uhh thanks for sharing
Make a falldown clone game
__________________
|
|
|
|
|
|
|
#3 |
|
Without being able to test it in front of me, I'm not certain this will work, but I believe if you multiply the x and y values for each vertex by a factor determined by (z+n)/n where n is some arbitrary factor for the amount of perspective distortion you want, you'll get what you're looking for. n should be large enough that your lowest z value will still result in a positive number, and the higher the value of n, the less distortion there will be - adjust to preference. This method only works if your 'camera' is stationary and the vertecies rotate (ie: the positive z axis is always pointed at you)
__________________
Would it save you a lot of time if I just gave up and went mad now? |
|
|
|
|
|
|
#4 |
|
now, thats JUST what I wanted to say!
__________________
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|