Gu Ortho Sample?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
apache37
Posts: 76
Joined: Fri Jun 04, 2004 3:13 pm

Gu Ortho Sample?

Post by apache37 »

Hi I wanted to know if there was a simple example available on how to use the gu for orthographic projection and simple quad drawing with textures. My 3d skills are not so good and the examples for sprite and blit in the sdk are complicated if you don't know about matrix calculations or vertex arrays.

Any help would be great thanks!
weak
Posts: 114
Joined: Thu Jan 13, 2005 8:31 pm
Location: Vienna, Austria

Post by weak »

take a second look at the blit sample. there's no 3d involved.
it's not much different than drawing quads. you just draw textured rectangles.

furthermore sdl is being ported, so you should be able to go with one of the countless sdl samples soon. (if not already, didn't checkout sdl myself.)
chp
Posts: 313
Joined: Wed Jun 23, 2004 7:16 am

Re: Gu Ortho Sample?

Post by chp »

apache37 wrote:Hi I wanted to know if there was a simple example available on how to use the gu for orthographic projection and simple quad drawing with textures. My 3d skills are not so good and the examples for sprite and blit in the sdk are complicated if you don't know about matrix calculations or vertex arrays.

Any help would be great thanks!
Just make sure you set bit 23 (GE_SETREG_VTYPE(x,x,x,x,x,x,x,x,GE_BM_2D)) when you render, and it will bypass the transform pipeline, giving you a "raw" view of the display.
Post Reply