Hello,

a important information about the osg example. In the springmasssystem.cpp on 
line 97 and 98 is a test case implemented. That means, all vertices are pined 
in this case (the connection data are filled with -1). If you want to compare 
the opengl and the osg version, you have to comment this part.

Cheers,

Martin

-------- Original-Nachricht --------
> Datum: Fri, 27 Apr 2012 13:01:39 +0200
> Von: "Martin Großer" <[email protected]>
> An: [email protected]
> Betreff: [osg-users] transform feedback implementation

> Hello,
> 
> today I want to share my experiment with transform feedback. I implemented
> an example from the book "OpenGL Superbible, Fifth Edition". In Chapter 11
> there is a spring mass system example. The aim is the calculation of the
> physics into the vertex shader. The result should have to transfer with
> transform feedback into a second buffer (ping pong) and this buffer have to
> rendered. I was a little bit overextended with this in osg, because there was
> no support for this. Also I implemented this in OpenGL and after this I do
> the same in a osg::Drawable (drawImplementation function) in my osg
> example. A positive fact is I see something in my osg example, but it doesn't 
> do
> the same like the opengl example. It looks strange and I don't have any idea
> what's wrong. :-( I attached the two examples to this e-mail.
> 
> I someone want to test the examples, I use cmake an I wrote a shell
> script, which creates a build and a release directory and execute cmake in the
> build directory. The osgDemo and the shader file are moved to the release
> directory when you do 'make install'.
> 
> Following a short overview of the examples:
> 
> opengl_transform_feedback.7z
>   - main.cpp <-- main function
>   - mycallbacks(.cpp/.h) <-- glut callback functions
>   - springmasssystem(.cpp/.h) <-- spring mass object (init and draw
> function)
>   - spring_mass.vert <-- vertex shader (spring mass physics)
> 
> 
> osg_transform_feedback.7z
>   - main.cpp <-- main function (osgviewer)
>   - myextensions.h <-- extension class (base class is osg::GL2Extensions)
>   - springmasssystem(.cpp/.h) <-- drawable class (spring mass system)
>   - spring_mass.vert
> 
> I hope some osg users are interested in this topic and have some ideas.
> 
> Thanks!
> 
> Martin 
> -- 
> NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!                    
>              
> Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to