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 

Drawing sphere with PSPGL?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
gambiting



Joined: 17 Aug 2006
Posts: 154

PostPosted: Tue Mar 04, 2008 3:19 am    Post subject: Drawing sphere with PSPGL? Reply with quote

Hi! Do you know if it's possible to draw a sphere using PSPGL?? gluSphere is not implemented,and I don't have any idea how to draw it manually - if you have any ideas please share.Thanks :D
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Mar 04, 2008 9:02 am    Post subject: Reply with quote

You google for "opengl examples sphere". :)

Here's a page with some examples showing how to draw a sphere using just triangles in opengl: http://www.sulaco.co.za/tut.htm

You'll notice that it starts by drawing an icosahedron with 20 triangles. Doesn't look very sphere-like. Then they show how to subdivide those triangles to make a much nicer looking sphere (example 2.7). Then finally a recursive subdividing example for a much nicer sphere (ex 2.8).

It's not C, but it's easy enough to follow what they're doing. There are other example pages you'll find in the search, but that was the first I noticed with a pretty simple sphere-via-triangles example.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP 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