zOffset - dev branch help

Software: Away3D 4.x

OceanBreezeGames, Newbie
Posted: 04 April 2013 04:10 PM   Total Posts: 12

I’m totally confused about how to use the zOffset. I set it to a really high value (10000), but my object does not appear in front of others.

I decided to search the whole away3d src folders and found zOffset only in Object3D.as

protected var _zOffset:int 0;
...
  public function 
get zOffset():int {
   
return _zOffset;
  
}

  
public function set zOffsetvalue:int ):void {
   _zOffset 
value;
  

That is the only place I found zOffset referenced, I download the whole dev branch as a zip. So if I set zOffset, what will it actually do if that’s the only code that references it? No other code is looking at that value.

Am I missing something, did I not get all the files?

   

Avatar
alihm, Jr. Member
Posted: 06 April 2013 03:44 PM   Total Posts: 49   [ # 1 ]

Away3d (and other engines) z sort the transparent materials (because the order of render calls are important if a triangle has alpha channel). In Away3d zOfsset is a way to force it manually. So if your objects are not transparent zOfsset wont work.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X