|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: 3d help for an idiot... =o)
>Sure, it's: >http://gamecode.tripod.com/tut/tut01.htm >that's where I got the function from. Good tuturial. Terse, that's key. *** Oh ok. It is in fact a routine to project a point. Intstead of using that function, try something along the lines of: void _projectVector(POINT projectMe) { if(!projectMe.z) // the vector is sans z-magnitude { plotPixel(projectMe.x,projectMe.y,projectMe.color); return; } else { int projectX = /* caluclations go here */; int projectY = /* caluclations go here */; plotPixel(projectX,projectY,projectMe.color); return; } } *** Besides that, I am not sure what else to say. To try to hunt down the problem, be sure that you can plot regular points; Once you have concluded that you can do so, then concentrate on implementing a z attribute. Have fun, building your engine. I am also in the process of doing so as well, so I understand. Josiah ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ================================================================= The GameProgrammer.Com mailing list is for the open discussion of any topic related to the art, science, and business of programming games. This list is especially tolerant of beginners. We were all beginners once To SUBSCRIBE or UNSUBSCRIBE please visit: http://gameprogrammer.com/mailinglist.html
|
|