Jump to content
  • Advertisement
Sign in to follow this  
Forrest2006

OpenGL Geometry shader

This topic is 4137 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

When I make a teapot by glutSolidTeapot() , OpenGL sends the data to the pipeline in triangles, but if I need to pass the data in primitive : GL_TRIANGLES_ADJACENCY_EXT to be able to use the adjacency information in my Geometry Shader, how would I do that?

Share this post


Link to post
Share on other sites
Advertisement
I don't think you can ask GLUT to use GS primitives - there's no way it could know all those years have gone by.

Share this post


Link to post
Share on other sites
If you are referring to the SM4.0 GS, you need a 8800 or 2900 card and GLEE/GLEW with the latest extensions.

Share this post


Link to post
Share on other sites
Quote:
Original post by Krohm
I don't think you can ask GLUT to use GS primitives - there's no way it could know all those years have gone by.


:) that's funny

Share this post


Link to post
Share on other sites
Quote:
Original post by MARS_999
If you are referring to the SM4.0 GS, you need a 8800 or 2900 card and GLEE/GLEW with the latest extensions.


I have a G80 and have no problems compiling GS programs. I think what I need is a model loader which would send adjacent triangle vertices to the geometry shader.

Share this post


Link to post
Share on other sites
Quote:
Original post by Forrest2006
I have a G80 and have no problems compiling GS programs. I think what I need is a model loader which would send adjacent triangle vertices to the geometry shader.
No, you need less than that. You need to get the parameter to Begin and change it from PRIMITIVE to PRIMITIVE_ADJACENCY_EXT.
Every valid triangle strip will be just ok, it was a specific design decision.

EDIT: ok, not all of them. Most. You know what the extreme cases are, they're in the spec.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!