Image scaling and/or simple 3D rendering

Ask anything your want about the 32X Mushroom programming.

Moderator: BigEvilCorporation

Post Reply
Bitybity
Interested
Posts: 36
Joined: Wed Dec 07, 2011 2:09 am

Image scaling and/or simple 3D rendering

Post by Bitybity » Wed Nov 14, 2012 1:06 am

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 =)

Chilly Willy
Very interested
Posts: 2984
Joined: Fri Aug 17, 2007 9:33 pm

Post by Chilly Willy » Wed Nov 14, 2012 1:57 am

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:

ammianus
Very interested
Posts: 124
Joined: Sun Jan 29, 2012 2:10 pm
Location: North America
Contact:

Post by ammianus » Sat Nov 17, 2012 1:51 am

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
Last edited by ammianus on Tue Nov 20, 2012 2:21 am, edited 1 time in total.

mic_
Very interested
Posts: 265
Joined: Tue Aug 12, 2008 12:26 pm
Location: Sweden
Contact:

Post by mic_ » Mon Nov 19, 2012 8:03 am

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

Chilly Willy
Very interested
Posts: 2984
Joined: Fri Aug 17, 2007 9:33 pm

Post by Chilly Willy » Mon Nov 19, 2012 6:56 pm

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.

Post Reply