[PD] transparency in models
jeremaja.niko at googlemail.com
Sat Apr 5 12:47:20 CEST 2008
hi H, list
in my experience the proper order of objects is
you can then play with the last inlet of [colorRGB] to fade in/out
geos/models. Correct me if im wrong - [alpha 1] should be before
[pix_texture] in the chain to be rendered correctly.
here are two of my patches using a lot of transparency tricks, hope this
Roman Haefeli wrote:
> On Fri, 2008-04-04 at 22:42 -0400, marius schebella wrote:
>> I want to apply colors (or textures) with alpha values to obj. models
>> and then turn them around, but I am having problems if I rotate the
>> objects. this actually causes problems with standard geos, too...
>> I searched the archives for that problem but I found no real answer.
>> maybe because there is none?
> iirc, it was discussed before (otherwise i wouldn't be able to write you
> a reply).
> from what i understand, alpha rendering depends on rendering order.
> first, the textures most behind need to be rendered in order to get
> transparency for textures more in front.
>> what is necessary to get transparency working from all different
> i don't know if there is a general solution. would be interested as
>> I tried to play around with GEMglDepthFunc and other stuff,
>> but not with the correct result. (correct maybe, but not what I wanted.)
>> any help? thanks,
> i don't know about [GEMglDepthFunc], but a not very realistic approach
> could be to split a model into its planes and change the rendering order
> of the planes dynamically, so that most-behind planes are rendered first
> and most-in-front planes rendered last. calculating the correct
> rendering order needs a lot of math and i don't quit know how to do it.
> Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
More information about the Pd-list