Rendering a 3D Scene? June 12, 2009 02:51PM | Registered: 15 years ago Posts: 83 |
// Create the floor void DrawFloor() { GX_Begin(GX_QUADS, GX_VTXFMT1, 4); GX_Normal3f32(0.0, 1.0, 0.0); // Normal pointing up GX_TexCoord2f32(0.0f, 1.0f); // Bottom-left of texture GX_Position3f32(-2.0, 0.0, 2.0); // Bottom-left corner of floor GX_TexCoord2f32(0.0f, 0.0f); // Top-left of texture GX_Position3f32(-2.0, 0.0, -2.0); // Top-left corner of floor GX_TexCoord2f32(1.0f, 0.0f); // Top-right of texture GX_Position3f32(2.0, 0.0, -2.0); // Top-right corner of floor GX_TexCoord2f32(1.0f, 1.0f); // Bottom-right of texture GX_Position3f32(2.0, 0.0, 2.0); // Bottom-right corner of floor GX_End(); }
Re: Rendering a 3D Scene? June 12, 2009 05:19PM | Registered: 16 years ago Posts: 276 |
Re: Rendering a 3D Scene? June 13, 2009 10:39AM | Registered: 15 years ago Posts: 83 |
Re: Rendering a 3D Scene? June 13, 2009 06:45PM | Registered: 16 years ago Posts: 276 |
Re: Rendering a 3D Scene? June 24, 2009 01:10PM | Registered: 15 years ago Posts: 62 |
Re: Rendering a 3D Scene? June 24, 2009 03:25PM | Registered: 15 years ago Posts: 1 |
Re: Rendering a 3D Scene? June 24, 2009 04:15PM | Registered: 15 years ago Posts: 83 |
Re: Rendering a 3D Scene? June 24, 2009 06:52PM | Registered: 16 years ago Posts: 73 |