| View previous topic :: View next topic |
| Author |
Message |
apache37
Joined: 04 Jun 2004 Posts: 76
|
Posted: Tue Jul 12, 2005 2:32 am Post subject: Gu Ortho Sample? |
|
|
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! |
|
| Back to top |
|
 |
weak
Joined: 13 Jan 2005 Posts: 114 Location: Vienna, Austria
|
Posted: Tue Jul 12, 2005 3:43 am Post subject: |
|
|
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.) |
|
| Back to top |
|
 |
chp
Joined: 23 Jun 2004 Posts: 313
|
Posted: Tue Jul 12, 2005 11:51 pm Post subject: Re: Gu Ortho Sample? |
|
|
| 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. |
|
| Back to top |
|
 |
|