pmartz / jag-3d

Automatically exported from code.google.com/p/jag-3d
0 stars 1 forks source link

A-buffer example #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Must be implemented.

Original issue reported on code.google.com by SkewMat...@gmail.com on 8 Jun 2013 at 1:57

GoogleCodeExporter commented 9 years ago

Original comment by abry...@gmail.com on 17 Jun 2013 at 8:46

GoogleCodeExporter commented 9 years ago
The ABuffer exemple code from here: 
http://blog.icare3d.org/2010/07/opengl-40-abuffer-v20-linked-lists-of.html has 
been minimally ported so that it can render JAG models (as loaded through JAG's 
OSG model plugin).

The algorithm as implemented has several shortcomings:
 - A thickness-based opacity calculation based on world coordinates that makes it difficult to control the amount of transparency. Large objects render almost fully opaque.
 - No mechanism for combining opaque and transparent objects in the same scene.

Currently we're looking at ways to incorporate components of the algorithm into 
core JAG, as well as evolve the JAG version of the example to overcome the 
noted shortcomings.

As part of the example port, we decided to not have the example depend on GLEW 
(as the original does), and have instead modified JAG to contain a custom 
version of the GL3W Python script that supports OpenGL extensions. As a result, 
the ABuffer example requires use of GL3W at this time.

Original comment by SkewMat...@gmail.com on 12 Sep 2013 at 4:56