 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
Neovanglist Site Admin
Joined: 22 May 2004 Posts: 72 Location: Copenhagen, Denmark
|
Posted: Fri Jan 14, 2005 8:22 pm Post subject: Funky Triangle Drawing |
|
|
Well, I've asked a bit about this in the channel, but I think now is a good time to ask the forum as well.
I've been working on some 3D demos using gsKit, and for some odd reason the faces to my cube are fux0red. It *looks* like some of the faces are being culled as backfaces, in particular the closest one you are facing.
Of course, this is not the case since I'm doing no culling, and the PS2 doesn't have it's own.
I've attached source, makefile, and .elf for those who want to check it out.
Also, the controls are important.
FIRST: Turn on Analog mode for your controller.
SECOND: Press "Start" to reset the cube.
The left stick moves the cube up/down left/right.
The second stick roatates the cube on the Y and Z axises.
The start button returns the cube to it's original position.
http://melchior.neovanglist.net:8080/spinningcube.tar.gz
Check it out! _________________ Regards,
Neovanglist |
|
| Back to top |
|
 |
Saotome

Joined: 03 Apr 2004 Posts: 182
|
Posted: Fri Jan 14, 2005 9:00 pm Post subject: |
|
|
i'm not really sure (couldnt see it since the ELF is NTSC only and dont have/use gsKit to recompile it), but it could be because of the zbuffer, its a 1/Z buffer. so you should set the z vertex value as maxZ/vertexZ, or something like that.
maybe gsKit does it automaticaly(?) _________________ infj |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|