Page 1 of 1

Image scaling and/or simple 3D rendering

Posted: Wed Nov 14, 2012 1:06 am
by Bitybity
Hello everyone, I come here again with a new but maybe stupid question.

Is there some example code in ASM of basic image scaling or 3D rendering for 32x, or at least, the basic formula of this?

Because, to tell the truth, I have nearly a null knowledge about geometry :cry:.

Again, thanks for your help =)

Posted: Wed Nov 14, 2012 1:57 am
by Chilly Willy
Why ask for assembly? Just use C. After you've learned enough about 3D and scaling in general to understand standard C code on the topic (which can be found all over the net), then learn SH2 assembly. Once you've learned enough SH2 assembly, you should be able to do the final step yourself. :wink:

Posted: Sat Nov 17, 2012 1:51 am
by ammianus
Weren't there some posters who actually knew ASM but not C? I remember being surprised by that.

Good luck with your search. I initially searched for some similar stuff about sprite rotation. But I got lost in the mechanics of just drawing a straight forward image to the 32X Framebuffer :D

Posted: Mon Nov 19, 2012 8:03 am
by mic_
I did a small 3D example a few years back which includes C source code. It's just a rotating flatshaded cube. Download link: 32xcube.zip

Posted: Mon Nov 19, 2012 6:56 pm
by Chilly Willy
Some people learn better from examples... mic's simple cube is a good example. If you need a more complicated example, my Yeti3D port is a good example of a complete 3D system on the 32X.