Main Page | Report this Page
Computers Forum Index  »  Computer - Graphics - API (Opengl)  »  is there an opengl ARB to send data back to the vertex proce
Page 1 of 1    

is there an opengl ARB to send data back to the vertex proce

Author Message
joe
Posted: Sun Jun 18, 2006 2:07 am
Guest
Hi

I have been reading about using texture maps on the GPU to parallel
caculate dynamic height maps and then send the results back to the
vertex processor so it can draw the heights from those calculations.

Someone said that is possible in directx, but they did not know if
opengl could do it.

Has anone heard of this? Or better yet, has anyone tried it and knows
how to do it in opengl?

Thanks you very much.

joe
 
Philipp Klaus Krause
Posted: Sun Jun 18, 2006 1:41 pm
Guest
joe wrote:
Quote:
Hi

I have been reading about using texture maps on the GPU to parallel
caculate dynamic height maps and then send the results back to the
vertex processor so it can draw the heights from those calculations.

Someone said that is possible in directx, but they did not know if
opengl could do it.

Has anone heard of this? Or better yet, has anyone tried it and knows
how to do it in opengl?

You can access textures from vertex shaders.
See section 2.15.5, "Texture access" in the GL_ARB_vertex_shader
specification at
http://oss.sgi.com/projects/ogl-sample/registry/ARB/vertex_shader.txt
for details.

Philipp
 
fungus
Posted: Mon Jun 19, 2006 3:59 pm
Guest
joe wrote:
Quote:
Hi

I have been reading about using texture maps on the GPU to parallel
caculate dynamic height maps and then send the results back to the
vertex processor so it can draw the heights from those calculations.

Someone said that is possible in directx, but they did not know if
opengl could do it.

Has anone heard of this? Or better yet, has anyone tried it and knows
how to do it in opengl?


Yes, you can do a texture lookup in OpenGL vertex
program. Read the docs for details...


--
<\___/>
/ O O \
\_____/ FTB. For email, remove my socks.

In science it often happens that scientists say, 'You know
that's a really good argument; my position is mistaken,'
and then they actually change their minds and you never
hear that old view from them again. They really do it.
It doesn't happen as often as it should, because scientists
are human and change is sometimes painful. But it happens
every day. I cannot recall the last time something like
that happened in politics or religion.

- Carl Sagan, 1987 CSICOP keynote address
 
joe
Posted: Wed Jun 21, 2006 6:36 am
Guest
Thanks for your help.

joe

On Mon, 19 Jun 2006 13:59:50 +0200, fungus <umailMY@SOCKSartlum.com>
wrote:

Quote:
joe wrote:
Hi

I have been reading about using texture maps on the GPU to parallel
caculate dynamic height maps and then send the results back to the
vertex processor so it can draw the heights from those calculations.

Someone said that is possible in directx, but they did not know if
opengl could do it.

Has anone heard of this? Or better yet, has anyone tried it and knows
how to do it in opengl?


Yes, you can do a texture lookup in OpenGL vertex
program. Read the docs for details...
 
 
Page 1 of 1    
All times are GMT
The time now is Sat Nov 28, 2009 7:59 am