Draw with floats and not s16, draw GX array with one function call.

Post Reply
Sam
Posts: 2
Joined: Fri Apr 12, 2019 12:36 am

Draw with floats and not s16, draw GX array with one function call.

Post by Sam » Fri Apr 12, 2019 12:43 am

Hi, I am building off the triangle example, and I am wandering how can I not use s16 to specify vertexes so I can use floats. I am also needing to know how to not use GX_Position1x8, so I can draw the entire array at once. Documentation about all the GX function calls would be very useful.

Sam
Posts: 2
Joined: Fri Apr 12, 2019 12:36 am

Gamecube glitches when more than 64 squares are drawn.

Post by Sam » Sun Apr 14, 2019 5:54 pm

Also when I draw more than 64 squares the vertices mess up. Is there a buffer I need to change the size of?

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Draw with floats and not s16, draw GX array with one function call.

Post by WinterMute » Mon Apr 15, 2019 11:39 am

The triangle example probably isn't the best one to be building off tbh, I'm not sure it actually works properly - it was one of the first experiments and hasn't really been touched in a long time. We have many examples under https://github.com/devkitPro/gamecube-e ... raphics/gx which show texturing & vertex coloring using float co-ordinates as well as fixed point ones.

The docs at https://libogc.devkitpro.org/ may also help.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests