forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Funky Triangle Drawing

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
Neovanglist
Site Admin


Joined: 22 May 2004
Posts: 72
Location: Copenhagen, Denmark

PostPosted: Fri Jan 14, 2005 8:22 pm    Post subject: Funky Triangle Drawing Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Saotome



Joined: 03 Apr 2004
Posts: 182

PostPosted: Fri Jan 14, 2005 9:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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