|
Heh
this is not a trivial problem. Its hard to solve without a more specific
specification of what you want to see. Do you want the intersection
highlighted or just visible? If you have two objects that intersect
(assuming both are usually opaque) do you want one to become translucent so you
can see the opaque piece of one of the objects? And how do you pick which
one is made to see through? Now expand the problem to multiple objects and
it becomes more complicated. Then there are the other cases like one
object actually containing another object.
In
any event, having lots of shapes, one per triangle is not the way to do. I
think there are several categories of solutions:
1. Use
dynamic geometry (geometry updator) and adjust the colors and alpha of the
vertices. This way you can completely control the transparency and color
of all the triangles.
2. Render
everything in multiple passes using an ordered group. Make everything at
least partially transparent and use an additive blending model so that
intersections are blended at higher brightness.
3. Render
everything partially transparent, then re-render the sub-objects which represent
the portion of the models whiich intersect. In the second pass you could
render the sub-objects opaque.
Good luck, it is
an interesting problem.
Dave
Yazel
|
- Re: [JAVA3D] Transparency Leyland Needham
- [JAVA3D] Transparency Vidya Sagar
- Re: [JAVA3D] Transparency Leyland Needham
- Re: [JAVA3D] Transparency Vidya Sagar
- Re: [JAVA3D] Transparency Artur Biesiadowski
- Re: [JAVA3D] Transparency Kasparian, Raffi J.
- Re: [JAVA3D] Labeling 3D objects with Transparen... Corysia Taware
- [JAVA3D] transparency Jo�o Paulo Menegatti
- Re: [JAVA3D] transparency Allan Andersen
- [JAVA3D] transparency Jo�o Paulo Menegatti
- Re: [JAVA3D] Transparency Yazel, David J.
- Re: [JAVA3D] Transparency RWGRAY
- [JAVA3D] Transparency Dean Keeler
- Re: [JAVA3D] Transparency Justin Couch
- Re: [JAVA3D] Transparency Justin Couch
- Re: [JAVA3D] Transparency Justin Couch
- Re: [JAVA3D] Transparency Dean Keeler
- [JAVA3D] Transparency Jack Bowie
- Re: [JAVA3D] Transparency Alessandro Borges
