Yes, I need opacity from texture alpha (I realized I could've been clearer
in my initial message), not material transparency, although it's nice to
know that's in there.

The concept of a naming heuristic for textures with opacity is a great idea,
thanks, that'll do it.  Thanks for the source too,

Scott

----- Original Message -----
From: "Chris Forrester" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 04, 2002 1:43 AM
Subject: Re: [JAVA3D] How to create models for loaders with alpha
transparency??


> The starfire loader already supports material-level transparency (from its
> docs). So try that if it is enough control for your specifications.
>
> But you mentioned opacity, so if you're talking about transparency from
> texture alpha -
> You need to:
> (a) Load a texture with transparency information (tga files are nice, png
i
> think is supported with JAI (java advanced imaging) now too)
> (b) Search through the Loader3DS branchgroup recursively searching for
> shape3d nodes.
> (c) Set the appearances TransparencyAttributes to use
> TransparencyAttributes.BLENDED.
> (d) Apply that texture to them all, or perform some heuristic to match the
> textures by image name or something.
>
> Included is some code to do exactly that. To get the vertex color alpha to
> work with this, MODULATE texture mode is needed as well.
>
> >From: Scott Mobile <[EMAIL PROTECTED]>
> >Reply-To: Discussion list for Java 3D API <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: [JAVA3D] How to create models for loaders with alpha
> >transparency??
> >Date: Wed, 3 Apr 2002 19:15:40 -0600
> >
> >I need to create some models that use alpha transparency in the textures
> >(example being trees, fences with transparent areas between slats such as
> >in the Sun Java Fly demo, etc, etc.), but can't figure out what to use to
> >create the geometry, and therefore which loader to use.
> >
> >Transparency is cake in 3DS Studio Max, and 3DS files are the ones I work
> >with the most (using the StarFire loader), but the opacity doesn't get
> >imported, and the transparent areas show solid black.  I don't wish to
get
> >into modifying or creating any loaders.  I know this can be done because
of
> >the Sun Fly demo.
> >
> >If VRML/WRL format is the way to go for this (again, such as the Fly demo
> >contains), what's some software that can create the right kind of
> >texture-based transparency to load in Java3D?  If not, what are the
> >alternatives?
> >
> >BTW--for those of you looking for samples of Java3D games in action, our
> >MMORPG project is an open beta, and is currently on-line.  I welcome any
> >comments/critism.
> >
> >Scott
> >Virtopia 3D Project
> >http://vp2.onebigvillage.com
>
>
>
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to