Away 4 transparent texture causes invisible triangles to be drawn

75 views
Skip to first unread message

MADCATX

unread,
Mar 25, 2011, 2:50:01 AM3/25/11
to Away3D.dev
Hello, I want to make transparent texture for trees. When I assign
bitmapMaterial.transparent = true invisible triangles are being
drawed:
http://files.myopera.com/MADCATX/albums/6547792/screen.jpg
Screen without transparent textures:
http://files.myopera.com/MADCATX/albums/6547792/screen2.jpg
Models used for trees:
http://files.myopera.com/MADCATX/albums/6547792/models.jpg
So what I should do to use transparent textures without faces, that
should be not visible, being visible?

deep

unread,
Mar 26, 2011, 11:56:52 AM3/26/11
to Away3D.dev
Material with alpha channel set MaterialBase.requiresBlending to true,
but DefaultRenderer set depth test to false for blended renderables.

Compare planes with alpha
http://dl.dropbox.com/u/1036911/away3d4/alpha_planes.swf
and solid planes
http://dl.dropbox.com/u/1036911/away3d4/solid_planes.swf

you can hack this behavior, and turn on depth test for blended
renderables here
http://code.google.com/p/away3d/source/browse/trunk/broomstick/Away3D/src/away3d/core/render/DefaultRenderer.as#101
But it's dangerous, and better wait until that suggest the authors.

deep

unread,
Mar 26, 2011, 1:04:27 PM3/26/11
to Away3D.dev
You can split every plane. Looks good

http://dl.dropbox.com/u/1036911/away3d4/split_plane.swf

Páll Zoltán

unread,
Mar 26, 2011, 4:31:53 PM3/26/11
to away3...@googlegroups.com
when i open these files, from deep, i can only see white screen... fp11 unofficial

Z.

deep

unread,
Mar 27, 2011, 3:55:59 AM3/27/11
to Away3D.dev
Very strange. I see them very well in my browsers on linux. Try to
open them in browser.

Páll Zoltán

unread,
Mar 27, 2011, 7:52:30 AM3/27/11
to away3...@googlegroups.com
right, works in the browser

Z.

Josh Beckwith

unread,
Mar 27, 2011, 12:35:44 PM3/27/11
to Away3D.dev
It's probably just that there isn't a projector version of FP11.

That makes sense, though, because you have to set wmode to direct in
the html...and there's really no point in using Molehill without the
GPU.

MADCATX

unread,
Mar 28, 2011, 10:14:09 AM3/28/11
to Away3D.dev
I tried the hack method, but the result still isn't correct:
http://files.myopera.com/MADCATX/albums/6547792/defaultRenderHack.jpg
I also tried to split faces in 3dsmax, the result also isn't correct:
http://files.myopera.com/MADCATX/albums/6547792/treeFacesSplit.jpg

Probably I split faces not in the center and this caused wrong
behavior. I'll try to split faces more correctly as it seems that
there is no other way...

deep

unread,
Mar 28, 2011, 3:04:33 PM3/28/11
to Away3D.dev


On 28 мар, 17:14, MADCATX <mad111c...@gmail.com> wrote:
> I tried the hack method, but the result still isn't correct:http://files.myopera.com/MADCATX/albums/6547792/defaultRenderHack.jpg
> I also tried to split faces in 3dsmax, the result also isn't correct:http://files.myopera.com/MADCATX/albums/6547792/treeFacesSplit.jpg
>
Not split faces, create 2 separated planes.

Here are 4 planes on scene, 2 green and 2 red
http://dl.dropbox.com/u/1036911/away3d4/split_plane.swf
Reply all
Reply to author
Forward
0 new messages