phoenixgarage.org

 Projects: QB64 _MAPTRIANGLE Cube Demo
Posted on 2011-07-28 @ 22:34:52 by r00t

This was something I whipped up tonight to show off QB64's _MAPTRIANGLE function being used to affine texture map a rotating cube.

The cube code itself is something I did a long time ago in QuickBASIC 4.5; I just updated the code to add QB64 commands to make an 800x600 pixel window, slow it down a bit (I limited the animation to 25 FPS, but you can change that easily), and do the texture mapping:


QB64 _MAPTRIANGLE Cube Demo
Questions or Comments?

I'm sure this piece of code could be expanded upon. I left in the original triangle drawing code I had done for QuickBASIC 4.5 (solid color modeling only), but what is left could form the core of a software 3D engine of some sort. If you have any questions about this code, send me an email using the link below, and I'll try to answer it as best as I can (it's been a while since I played with 3D code - I'm a little rusty).

Enjoy!

Share This Article

    

Questions or Comments?

If you have any questions or comments about this article, please contact me...

Referencing Articles:
Downloads
NameDescriptionTypeSize
maptriangle_cube.zipQB64 _MAPTRIANGLE Cube Demo 9.64 Kb
0 comment(s) posted
Post New Thread