alphaThreshold, rendering issues

Software: Away3D 4.x

_kihu, Jr. Member
Posted: 01 February 2012 11:38 AM   Total Posts: 43

Hey,

I’m developing a project with loads of plants and trees on stage. Due to the known z-sorting problem with alphaBlending involved, I’m using the alphaThreshold property. Currently, it’s set to 0.35.

The problem is, with alphaThreshold set higher (e.g. 0.5), many leaves are missing. On the other hand, with lower setting, the colors are different than original.

See images below:
original render: http://imgur.com/nhSpF
Away3D render: http://imgur.com/sPq7a

Notice the bright edges of the leaves in Away3D version.

I was wondering if there’s a better way to render this kind of materials. Maybe some sort of alpha map or other material properties?


cheers,
kihu

   

Jean Carlo Deconto, Newbie
Posted: 20 March 2012 09:37 PM   Total Posts: 29   [ # 1 ]

Hi!

I also had this problem, I created a new class that could ever disable the AlphaThreshold of texture, only DepthMap.

// Basic
material.alphaThreshold .5;
material.alphaBlending true;

// Correct Render
material.diffuseMethod.textureThreshold false;

// Away3D4 Version
material.diffuseMethod.textureThreshold true

Only to the classe attached.

 

File Attachments
BasicDiffuseMethod.zip  (File Size: 3KB - Downloads: 179)
   

jtopaz, Member
Posted: 31 March 2012 08:26 AM   Total Posts: 53   [ # 2 ]

I face the same problem too.

Thanks Jean. I cannot download your attachment. Can you repost again?

 

   

Jean Carlo Deconto, Newbie
Posted: 31 March 2012 04:25 PM   Total Posts: 29   [ # 3 ]

Of course. Post updated, I hope you enjoy.

Cheers.

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X