Jump to content

  • Log In with Google      Sign In   
  • Create Account

Cel-Shading on Quadrics (gluSphere, gluCylinder)


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 ytrctb   Members   -  Reputation: 100

Like
0Likes
Like

Posted 23 June 2010 - 05:04 AM

Hi guys,

Is there a way to do Cel-Shading on Quadrics using calls like gluSphere and gluCylinder?

I looked at Nehe's lesson on Cel-Shading but it seems like it is specific to shapes drawn with using glVertex.

Thanks!

Sponsor:

#2 lc_overlord   Members   -  Reputation: 436

Like
0Likes
Like

Posted 23 June 2010 - 07:44 AM

that specific method should still work with Quadrics as far as i know

#3 ytrctb   Members   -  Reputation: 100

Like
0Likes
Like

Posted 23 June 2010 - 10:56 AM

Can you explain how? I'm pretty new with this. Is there a way to get the vertices off of gluSphere?

#4 lc_overlord   Members   -  Reputation: 436

Like
0Likes
Like

Posted 23 June 2010 - 02:25 PM

not in a simple way i think, getting the outline is fairly easy, just replace the glvertex calls with quadrics calls.
The cellshading is a bit harder though, but i think it can be done trough spheremaping (or cubemapping) using texture coordinate generation (glTexGen).




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS