Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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 · ·