So, a while ago i was trying to write some simple
3d functions (project, fill, translate/rotate)
in c++, and i got to the point where i had a triangle on the
screen, but after that i hit a strange wall. Here's what
- whenever i moved a point or polygon in the Z or Y direction, it
would also spontaneously move in the X direction.
- Z-movement worked properly only for points in the plane
y = 0.
- Y-movement worked properly only for points in some positive, even
z plane (Z = 10 or 100 or something like that. I don't
- X-movement always worked properly
I was performing all translations with statements like
point.y++ or point.x--. I have since been more succesfull
using asm, but i never figured out what caused that. Anyone
have any ideas? Oh yeah, and i was in 320x200x8 mode.
0 · ·