[Fieldtrip] Handles to GPU-Resources

Andreas-Christoph Bernstein andreas.bernstein at medien.uni-weimar.de
Thu Nov 13 10:02:50 EST 2008


Hi,

Yesterday i played a bit with reactive-fieldtrip and it is a lot of fun. 
What are the future plans to deal with handles to gpu data, like 
texture, shader, and buffer objects ?

Because i thought it might be a good idea to use vertex buffer objects 
for the geometry since with OpenGL 3.0 the glBegin/glEnd (and much more) 
is obsolete. So i built data types for a static vertex buffer object and 
a static index buffer object and made them an instance of Renderable. 
What the thing is, is that i can create the bufferobject only after the 
creation of the OpenGL context. That's why i use unsafePerformIO as i 
have seen in an obj file example.

 > vboGeom :: Geometry3
 > vboGeom = renderableG geom
 >  where
 >    geom = unsafePerformIO $ loadVbo cubeVertexData cubeTriIndices

Not very elegant. So are there any ideas on that ?

Btw, i could post the functions and data types for my vertex buffer 
example if anyone likes to see them.

kind regards,
Andreas

-- 
Andreas-C. Bernstein
Virtual Reality Systems Group
Faculty of Media
Bauhaus-Universitaet Weimar
Bauhausstraße 11 (Room 118)
99423 Weimar
Germany
phone: +49 3643 - 58 3734
fax  : +49 3643 - 58 3709
email: andreas.bernstein at medien.uni-weimar.de
web  : www.uni-weimar.de/medien/vr




More information about the FieldTrip mailing list