Hi Chris,

Am 22.03.2011 17:34, schrieb Chris 'Xenon' Hanson:
> On 3/22/2011 10:27 AM, Peter Hrenka wrote:
>> You could use a geometry shader to calculate
>> the normals on the GPU. The geometry shader
>> basically "sees" the whole primitive and can
>> can therefore perform the normal calculation
>> of a deforming geometry.
> 
>   I have been told by some hardware engineers that geometry shaders can be a 
> pipeline
> bottleneck. Essentially, there may only be one of them on your GPU, so 
> primitives may need
> to go through singly, and the rasterization pipeline will stall waiting for 
> it, which
> could greatly decrease your performance.

I did some experimenting and I did run into some
performace problems especially when I generated
large amounts of output vertices from a single
input primitive (using a NVIDIA card).
When the number of output vertices is low (say 4)
the performace does not seem to deteriorate.

>   I would test this before committing to this solution.

Works for me ;-)

Cheers,

Peter
-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, 
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Michel Lepert
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to