Jump to content
  • Advertisement
Sign in to follow this  
jocasa

OpenGL Point trajectory: shader/application communication

This topic is 2638 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

Hi!

One can define an array with the coordinates of one moving point and pass it to openGL via glVertex to draw it. If one desires to draw its trajectory along time, one can store each set of coordinates in a vector, for example, and then display all points of the trajectory with as many calls to glVertex. What if the coordinates are given by a shader? Say, each coordinate corresponds to a color read from a texture, an operation that only involves GLSL commands and no external array one can manipulate outside the shader.

I've read that one can get such data with what is called "transform feedback". Which are the ways to communicate shaders with application?

Share this post


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

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!