mirror of
https://github.com/MapMakersAndProgrammers/TankiOnline2.0DemoClient.git
synced 2025-10-26 09:59:07 -07:00
Deobfuscate more packages
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package package_51
|
||||
package §_-1e§
|
||||
{
|
||||
import package_58.name_334;
|
||||
import §_-KA§.§_-FW§;
|
||||
|
||||
public class name_492
|
||||
public class §_-D-§
|
||||
{
|
||||
private static const nodeBoundBoxThreshold:name_334 = new name_334();
|
||||
private static const nodeBoundBoxThreshold:§_-FW§ = new §_-FW§();
|
||||
|
||||
private static const splitCoordsX:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
@@ -18,59 +18,59 @@ package package_51
|
||||
|
||||
public var threshold:Number = 0.1;
|
||||
|
||||
public var var_681:int = 1;
|
||||
public var §_-eV§:int = 1;
|
||||
|
||||
public var name_486:name_481;
|
||||
public var §_-5H§:§_-oZ§;
|
||||
|
||||
public var name_490:Vector.<name_276>;
|
||||
public var §_-8A§:Vector.<§_-Nh§>;
|
||||
|
||||
public var var_679:int;
|
||||
public var §_-TO§:int;
|
||||
|
||||
public var staticBoundBoxes:Vector.<name_334> = new Vector.<name_334>();
|
||||
public var staticBoundBoxes:Vector.<§_-FW§> = new Vector.<§_-FW§>();
|
||||
|
||||
private var var_678:int;
|
||||
private var §_-94§:int;
|
||||
|
||||
private var var_677:Number;
|
||||
private var §_-P5§:Number;
|
||||
|
||||
private var var_680:Number;
|
||||
private var §_-ou§:Number;
|
||||
|
||||
public function name_492()
|
||||
public function §_-D-§()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function name_499(collisionPrimitives:Vector.<name_276>, boundBox:name_334 = null) : void
|
||||
public function §_-J9§(collisionPrimitives:Vector.<§_-Nh§>, boundBox:§_-FW§ = null) : void
|
||||
{
|
||||
var child:name_276 = null;
|
||||
var childBoundBox:name_334 = null;
|
||||
this.name_490 = collisionPrimitives.concat();
|
||||
this.var_679 = this.name_490.length;
|
||||
this.name_486 = new name_481();
|
||||
this.name_486.indices = new Vector.<int>();
|
||||
var rootNodeBoundBox:name_334 = this.name_486.boundBox = boundBox != null ? boundBox : new name_334();
|
||||
for(var i:int = 0; i < this.var_679; i++)
|
||||
var child:§_-Nh§ = null;
|
||||
var childBoundBox:§_-FW§ = null;
|
||||
this.§_-8A§ = collisionPrimitives.concat();
|
||||
this.§_-TO§ = this.§_-8A§.length;
|
||||
this.§_-5H§ = new §_-oZ§();
|
||||
this.§_-5H§.indices = new Vector.<int>();
|
||||
var rootNodeBoundBox:§_-FW§ = this.§_-5H§.boundBox = boundBox != null ? boundBox : new §_-FW§();
|
||||
for(var i:int = 0; i < this.§_-TO§; i++)
|
||||
{
|
||||
child = this.name_490[i];
|
||||
child = this.§_-8A§[i];
|
||||
childBoundBox = this.staticBoundBoxes[i] = child.calculateAABB();
|
||||
rootNodeBoundBox.name_424(childBoundBox);
|
||||
this.name_486.indices[i] = i;
|
||||
rootNodeBoundBox.§_-EH§(childBoundBox);
|
||||
this.§_-5H§.indices[i] = i;
|
||||
}
|
||||
this.staticBoundBoxes.length = this.var_679;
|
||||
this.splitNode(this.name_486);
|
||||
this.staticBoundBoxes.length = this.§_-TO§;
|
||||
this.splitNode(this.§_-5H§);
|
||||
splitCoordsX.length = splitCoordsY.length = splitCoordsZ.length = 0;
|
||||
}
|
||||
|
||||
private function splitNode(node:name_481) : void
|
||||
private function splitNode(node:§_-oZ§) : void
|
||||
{
|
||||
var nodeBoundBox:name_334 = null;
|
||||
var nodeBoundBox:§_-FW§ = null;
|
||||
var i:int = 0;
|
||||
var j:int = 0;
|
||||
var boundBox:name_334 = null;
|
||||
var boundBox:§_-FW§ = null;
|
||||
var min:Number = NaN;
|
||||
var max:Number = NaN;
|
||||
var indices:Vector.<int> = node.indices;
|
||||
var numPrimitives:int = int(indices.length);
|
||||
if(numPrimitives <= this.var_681)
|
||||
if(numPrimitives <= this.§_-eV§)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -183,45 +183,45 @@ package package_51
|
||||
}
|
||||
i++;
|
||||
}
|
||||
this.var_678 = -1;
|
||||
this.var_680 = 1e+308;
|
||||
this.§_-94§ = -1;
|
||||
this.§_-ou§ = 1e+308;
|
||||
_nodeBB[0] = nodeBoundBox.minX;
|
||||
_nodeBB[1] = nodeBoundBox.minY;
|
||||
_nodeBB[2] = nodeBoundBox.minZ;
|
||||
_nodeBB[3] = nodeBoundBox.maxX;
|
||||
_nodeBB[4] = nodeBoundBox.maxY;
|
||||
_nodeBB[5] = nodeBoundBox.maxZ;
|
||||
this.method_332(node,0,numSplitCoordsX,splitCoordsX,_nodeBB);
|
||||
this.method_332(node,1,numSplitCoordsY,splitCoordsY,_nodeBB);
|
||||
this.method_332(node,2,numSplitCoordsZ,splitCoordsZ,_nodeBB);
|
||||
if(this.var_678 < 0)
|
||||
this.§_-1k§(node,0,numSplitCoordsX,splitCoordsX,_nodeBB);
|
||||
this.§_-1k§(node,1,numSplitCoordsY,splitCoordsY,_nodeBB);
|
||||
this.§_-1k§(node,2,numSplitCoordsZ,splitCoordsZ,_nodeBB);
|
||||
if(this.§_-94§ < 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var axisX:Boolean = this.var_678 == 0;
|
||||
var axisY:Boolean = this.var_678 == 1;
|
||||
node.axis = this.var_678;
|
||||
node.coord = this.var_677;
|
||||
node.name_483 = new name_481();
|
||||
node.name_483.parent = node;
|
||||
node.name_483.boundBox = nodeBoundBox.clone();
|
||||
node.name_484 = new name_481();
|
||||
node.name_484.parent = node;
|
||||
node.name_484.boundBox = nodeBoundBox.clone();
|
||||
var axisX:Boolean = this.§_-94§ == 0;
|
||||
var axisY:Boolean = this.§_-94§ == 1;
|
||||
node.axis = this.§_-94§;
|
||||
node.coord = this.§_-P5§;
|
||||
node.§_-Gm§ = new §_-oZ§();
|
||||
node.§_-Gm§.parent = node;
|
||||
node.§_-Gm§.boundBox = nodeBoundBox.clone();
|
||||
node.§_-75§ = new §_-oZ§();
|
||||
node.§_-75§.parent = node;
|
||||
node.§_-75§.boundBox = nodeBoundBox.clone();
|
||||
if(axisX)
|
||||
{
|
||||
node.name_483.boundBox.maxX = node.name_484.boundBox.minX = this.var_677;
|
||||
node.§_-Gm§.boundBox.maxX = node.§_-75§.boundBox.minX = this.§_-P5§;
|
||||
}
|
||||
else if(axisY)
|
||||
{
|
||||
node.name_483.boundBox.maxY = node.name_484.boundBox.minY = this.var_677;
|
||||
node.§_-Gm§.boundBox.maxY = node.§_-75§.boundBox.minY = this.§_-P5§;
|
||||
}
|
||||
else
|
||||
{
|
||||
node.name_483.boundBox.maxZ = node.name_484.boundBox.minZ = this.var_677;
|
||||
node.§_-Gm§.boundBox.maxZ = node.§_-75§.boundBox.minZ = this.§_-P5§;
|
||||
}
|
||||
var coordMin:Number = this.var_677 - this.threshold;
|
||||
var coordMax:Number = this.var_677 + this.threshold;
|
||||
var coordMin:Number = this.§_-P5§ - this.threshold;
|
||||
var coordMax:Number = this.§_-P5§ + this.threshold;
|
||||
for(i = 0; i < numPrimitives; )
|
||||
{
|
||||
boundBox = this.staticBoundBoxes[indices[i]];
|
||||
@@ -231,30 +231,30 @@ package package_51
|
||||
{
|
||||
if(min < coordMin)
|
||||
{
|
||||
if(node.name_483.indices == null)
|
||||
if(node.§_-Gm§.indices == null)
|
||||
{
|
||||
node.name_483.indices = new Vector.<int>();
|
||||
node.§_-Gm§.indices = new Vector.<int>();
|
||||
}
|
||||
node.name_483.indices.push(indices[i]);
|
||||
node.§_-Gm§.indices.push(indices[i]);
|
||||
indices[i] = -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(node.var_674 == null)
|
||||
if(node.§_-Xt§ == null)
|
||||
{
|
||||
node.var_674 = new Vector.<int>();
|
||||
node.§_-Xt§ = new Vector.<int>();
|
||||
}
|
||||
node.var_674.push(indices[i]);
|
||||
node.§_-Xt§.push(indices[i]);
|
||||
indices[i] = -1;
|
||||
}
|
||||
}
|
||||
else if(min >= coordMin)
|
||||
{
|
||||
if(node.name_484.indices == null)
|
||||
if(node.§_-75§.indices == null)
|
||||
{
|
||||
node.name_484.indices = new Vector.<int>();
|
||||
node.§_-75§.indices = new Vector.<int>();
|
||||
}
|
||||
node.name_484.indices.push(indices[i]);
|
||||
node.§_-75§.indices.push(indices[i]);
|
||||
indices[i] = -1;
|
||||
}
|
||||
i++;
|
||||
@@ -276,22 +276,22 @@ package package_51
|
||||
{
|
||||
node.indices = null;
|
||||
}
|
||||
if(node.var_674 != null)
|
||||
if(node.§_-Xt§ != null)
|
||||
{
|
||||
node.name_487 = new CollisionKdTree2D(this,node);
|
||||
node.name_487.name_499();
|
||||
node.§_-da§ = new CollisionKdTree2D(this,node);
|
||||
node.§_-da§.§_-J9§();
|
||||
}
|
||||
if(node.name_483.indices != null)
|
||||
if(node.§_-Gm§.indices != null)
|
||||
{
|
||||
this.splitNode(node.name_483);
|
||||
this.splitNode(node.§_-Gm§);
|
||||
}
|
||||
if(node.name_484.indices != null)
|
||||
if(node.§_-75§.indices != null)
|
||||
{
|
||||
this.splitNode(node.name_484);
|
||||
this.splitNode(node.§_-75§);
|
||||
}
|
||||
}
|
||||
|
||||
private function method_332(node:name_481, axis:int, numSplitCoords:int, splitCoords:Vector.<Number>, bb:Vector.<Number>) : void
|
||||
private function §_-1k§(node:§_-oZ§, axis:int, numSplitCoords:int, splitCoords:Vector.<Number>, bb:Vector.<Number>) : void
|
||||
{
|
||||
var currSplitCoord:Number = NaN;
|
||||
var minCoord:Number = NaN;
|
||||
@@ -304,7 +304,7 @@ package package_51
|
||||
var numObjects:int = 0;
|
||||
var j:int = 0;
|
||||
var cost:Number = NaN;
|
||||
var boundBox:name_334 = null;
|
||||
var boundBox:§_-FW§ = null;
|
||||
var axis1:int = (axis + 1) % 3;
|
||||
var axis2:int = (axis + 2) % 3;
|
||||
var area:Number = (bb[axis1 + 3] - bb[axis1]) * (bb[axis2 + 3] - bb[axis2]);
|
||||
@@ -351,11 +351,11 @@ package package_51
|
||||
cost = areaNegative * numNegative + areaPositive * numPositive;
|
||||
if(!conflict)
|
||||
{
|
||||
if(cost < this.var_680 && numNegative > 0 && numPositive > 0)
|
||||
if(cost < this.§_-ou§ && numNegative > 0 && numPositive > 0)
|
||||
{
|
||||
this.var_678 = axis;
|
||||
this.var_680 = cost;
|
||||
this.var_677 = currSplitCoord;
|
||||
this.§_-94§ = axis;
|
||||
this.§_-ou§ = cost;
|
||||
this.§_-P5§ = currSplitCoord;
|
||||
}
|
||||
}
|
||||
for(j = i + 1; j < numSplitCoords; )
|
||||
@@ -370,20 +370,20 @@ package package_51
|
||||
}
|
||||
}
|
||||
|
||||
public function method_333() : void
|
||||
public function §_-YO§() : void
|
||||
{
|
||||
this.method_331("",this.name_486);
|
||||
this.§_-es§("",this.§_-5H§);
|
||||
}
|
||||
|
||||
private function method_331(str:String, node:name_481) : void
|
||||
private function §_-es§(str:String, node:§_-oZ§) : void
|
||||
{
|
||||
if(node == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
trace(str,node.axis == -1 ? "end" : (node.axis == 0 ? "X" : (node.axis == 1 ? "Y" : "Z")),"splitCoord=" + this.var_677,"bound",node.boundBox,"objs:",node.indices);
|
||||
this.method_331(str + "-",node.name_483);
|
||||
this.method_331(str + "+",node.name_484);
|
||||
trace(str,node.axis == -1 ? "end" : (node.axis == 0 ? "X" : (node.axis == 1 ? "Y" : "Z")),"splitCoord=" + this.§_-P5§,"bound",node.boundBox,"objs:",node.indices);
|
||||
this.§_-es§(str + "-",node.§_-Gm§);
|
||||
this.§_-es§(str + "+",node.§_-75§);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,71 +1,71 @@
|
||||
package package_51
|
||||
package §_-1e§
|
||||
{
|
||||
import package_38.name_145;
|
||||
import package_58.name_189;
|
||||
import package_58.name_334;
|
||||
import package_61.name_186;
|
||||
import package_61.name_482;
|
||||
import package_84.name_495;
|
||||
import package_84.name_496;
|
||||
import package_84.name_497;
|
||||
import package_84.name_581;
|
||||
import package_84.name_582;
|
||||
import §_-KA§.§_-FW§;
|
||||
import §_-KA§.§_-jr§;
|
||||
import §_-US§.§_-6h§;
|
||||
import §_-US§.§_-BV§;
|
||||
import §_-nl§.§_-bj§;
|
||||
import §while§.§_-6O§;
|
||||
import §while§.§_-GQ§;
|
||||
import §while§.§_-O8§;
|
||||
import §while§.§_-Ph§;
|
||||
import §while§.§_-hu§;
|
||||
|
||||
public class name_508 implements name_169
|
||||
public class §_-LG§ implements §_-fx§
|
||||
{
|
||||
private static var _rayAABB:name_334 = new name_334();
|
||||
private static var _rayAABB:§_-FW§ = new §_-FW§();
|
||||
|
||||
public var var_592:name_492;
|
||||
public var §_-bw§:§_-D-§;
|
||||
|
||||
public var var_684:Vector.<name_276>;
|
||||
public var §_-Fz§:Vector.<§_-Nh§>;
|
||||
|
||||
public var var_685:int;
|
||||
public var §_-iH§:int;
|
||||
|
||||
public var threshold:Number = 0.0001;
|
||||
|
||||
private var var_596:Object = {};
|
||||
private var §_-P6§:Object = {};
|
||||
|
||||
private var var_420:MinMax = new MinMax();
|
||||
private var §_-qC§:MinMax = new MinMax();
|
||||
|
||||
private var var_594:name_145 = new name_145();
|
||||
private var §_-k8§:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var var_590:name_145 = new name_145();
|
||||
private var §_-0q§:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var var_595:name_189 = new name_189();
|
||||
private var §_-2P§:§_-jr§ = new §_-jr§();
|
||||
|
||||
public function name_508()
|
||||
public function §_-LG§()
|
||||
{
|
||||
super();
|
||||
this.var_592 = new name_492();
|
||||
this.var_684 = new Vector.<name_276>();
|
||||
this.method_239(name_276.BOX,name_276.BOX,new name_495());
|
||||
this.method_239(name_276.BOX,name_276.SPHERE,new name_582());
|
||||
this.method_239(name_276.BOX,name_276.RECT,new name_496());
|
||||
this.method_239(name_276.BOX,name_276.TRIANGLE,new name_497());
|
||||
this.method_239(name_276.SPHERE,name_276.SPHERE,new name_581());
|
||||
this.§_-bw§ = new §_-D-§();
|
||||
this.§_-Fz§ = new Vector.<§_-Nh§>();
|
||||
this.§_-c2§(§_-Nh§.BOX,§_-Nh§.BOX,new §_-Ph§());
|
||||
this.§_-c2§(§_-Nh§.BOX,§_-Nh§.SPHERE,new §_-O8§());
|
||||
this.§_-c2§(§_-Nh§.BOX,§_-Nh§.RECT,new §_-GQ§());
|
||||
this.§_-c2§(§_-Nh§.BOX,§_-Nh§.TRIANGLE,new §_-hu§());
|
||||
this.§_-c2§(§_-Nh§.SPHERE,§_-Nh§.SPHERE,new §_-6O§());
|
||||
}
|
||||
|
||||
public function method_349(primitive:name_276, isStatic:Boolean = true) : Boolean
|
||||
public function §_-6v§(primitive:§_-Nh§, isStatic:Boolean = true) : Boolean
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function method_348(primitive:name_276, isStatic:Boolean = true) : Boolean
|
||||
public function §_-2V§(primitive:§_-Nh§, isStatic:Boolean = true) : Boolean
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function init(collisionPrimitives:Vector.<name_276>) : void
|
||||
public function init(collisionPrimitives:Vector.<§_-Nh§>) : void
|
||||
{
|
||||
this.var_592.name_499(collisionPrimitives);
|
||||
this.§_-bw§.§_-J9§(collisionPrimitives);
|
||||
}
|
||||
|
||||
public function method_254(contacts:name_482) : name_482
|
||||
public function §_-63§(contacts:§_-6h§) : §_-6h§
|
||||
{
|
||||
return contacts;
|
||||
}
|
||||
|
||||
public function getContact(prim1:name_276, prim2:name_276, contact:name_482) : Boolean
|
||||
public function getContact(prim1:§_-Nh§, prim2:§_-Nh§, contact:§_-6h§) : Boolean
|
||||
{
|
||||
if((prim1.collisionGroup & prim2.collisionGroup) == 0)
|
||||
{
|
||||
@@ -79,14 +79,14 @@ package package_51
|
||||
{
|
||||
return false;
|
||||
}
|
||||
var collider:name_494 = this.var_596[prim1.type <= prim2.type ? prim1.type << 16 | prim2.type : prim2.type << 16 | prim1.type] as name_494;
|
||||
var collider:§_-hG§ = this.§_-P6§[prim1.type <= prim2.type ? prim1.type << 16 | prim2.type : prim2.type << 16 | prim1.type] as §_-hG§;
|
||||
if(collider != null && Boolean(collider.getContact(prim1,prim2,contact)))
|
||||
{
|
||||
if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.name_491(prim1,prim2))
|
||||
if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.§_-eZ§(prim1,prim2))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.name_491(prim2,prim1))
|
||||
if(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.§_-eZ§(prim2,prim1))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -95,7 +95,7 @@ package package_51
|
||||
return false;
|
||||
}
|
||||
|
||||
public function method_240(prim1:name_276, prim2:name_276) : Boolean
|
||||
public function §_-A5§(prim1:§_-Nh§, prim2:§_-Nh§) : Boolean
|
||||
{
|
||||
if((prim1.collisionGroup & prim2.collisionGroup) == 0)
|
||||
{
|
||||
@@ -109,14 +109,14 @@ package package_51
|
||||
{
|
||||
return false;
|
||||
}
|
||||
var collider:name_494 = this.var_596[prim1.type <= prim2.type ? prim1.type << 16 | prim2.type : prim2.type << 16 | prim1.type] as name_494;
|
||||
var collider:§_-hG§ = this.§_-P6§[prim1.type <= prim2.type ? prim1.type << 16 | prim2.type : prim2.type << 16 | prim1.type] as §_-hG§;
|
||||
if(collider != null && Boolean(collider.haveCollision(prim1,prim2)))
|
||||
{
|
||||
if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.name_491(prim1,prim2))
|
||||
if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.§_-eZ§(prim1,prim2))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.name_491(prim2,prim1))
|
||||
if(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.§_-eZ§(prim2,prim1))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -125,19 +125,19 @@ package package_51
|
||||
return false;
|
||||
}
|
||||
|
||||
public function raycast(origin:name_145, dir:name_145, collisionGroup:int, maxTime:Number, predicate:name_488, result:name_189) : Boolean
|
||||
public function raycast(origin:§_-bj§, dir:§_-bj§, collisionGroup:int, maxTime:Number, predicate:§_-jn§, result:§_-jr§) : Boolean
|
||||
{
|
||||
var hasStaticIntersection:Boolean = this.name_246(origin,dir,collisionGroup,maxTime,predicate,result);
|
||||
var hasDynamicIntersection:Boolean = this.method_346(origin,dir,collisionGroup,maxTime,predicate,this.var_595);
|
||||
var hasStaticIntersection:Boolean = this.§_-cX§(origin,dir,collisionGroup,maxTime,predicate,result);
|
||||
var hasDynamicIntersection:Boolean = this.§_-Tm§(origin,dir,collisionGroup,maxTime,predicate,this.§_-2P§);
|
||||
if(!(hasDynamicIntersection || hasStaticIntersection))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(hasDynamicIntersection && hasStaticIntersection)
|
||||
{
|
||||
if(result.t > this.var_595.t)
|
||||
if(result.t > this.§_-2P§.t)
|
||||
{
|
||||
result.copy(this.var_595);
|
||||
result.copy(this.§_-2P§);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -145,62 +145,62 @@ package package_51
|
||||
{
|
||||
return true;
|
||||
}
|
||||
result.copy(this.var_595);
|
||||
result.copy(this.§_-2P§);
|
||||
return true;
|
||||
}
|
||||
|
||||
public function name_246(origin:name_145, dir:name_145, collisionGroup:int, maxTime:Number, predicate:name_488, result:name_189) : Boolean
|
||||
public function §_-cX§(origin:§_-bj§, dir:§_-bj§, collisionGroup:int, maxTime:Number, predicate:§_-jn§, result:§_-jr§) : Boolean
|
||||
{
|
||||
if(!this.method_247(origin,dir,this.var_592.name_486.boundBox,this.var_420))
|
||||
if(!this.§_-oL§(origin,dir,this.§_-bw§.§_-5H§.boundBox,this.§_-qC§))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(this.var_420.max < 0 || this.var_420.min > maxTime)
|
||||
if(this.§_-qC§.max < 0 || this.§_-qC§.min > maxTime)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(this.var_420.min <= 0)
|
||||
if(this.§_-qC§.min <= 0)
|
||||
{
|
||||
this.var_420.min = 0;
|
||||
this.var_590.x = origin.x;
|
||||
this.var_590.y = origin.y;
|
||||
this.var_590.z = origin.z;
|
||||
this.§_-qC§.min = 0;
|
||||
this.§_-0q§.x = origin.x;
|
||||
this.§_-0q§.y = origin.y;
|
||||
this.§_-0q§.z = origin.z;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.var_590.x = origin.x + this.var_420.min * dir.x;
|
||||
this.var_590.y = origin.y + this.var_420.min * dir.y;
|
||||
this.var_590.z = origin.z + this.var_420.min * dir.z;
|
||||
this.§_-0q§.x = origin.x + this.§_-qC§.min * dir.x;
|
||||
this.§_-0q§.y = origin.y + this.§_-qC§.min * dir.y;
|
||||
this.§_-0q§.z = origin.z + this.§_-qC§.min * dir.z;
|
||||
}
|
||||
if(this.var_420.max > maxTime)
|
||||
if(this.§_-qC§.max > maxTime)
|
||||
{
|
||||
this.var_420.max = maxTime;
|
||||
this.§_-qC§.max = maxTime;
|
||||
}
|
||||
var hasIntersection:Boolean = this.method_236(this.var_592.name_486,origin,this.var_590,dir,collisionGroup,this.var_420.min,this.var_420.max,predicate,result);
|
||||
var hasIntersection:Boolean = this.§_-NC§(this.§_-bw§.§_-5H§,origin,this.§_-0q§,dir,collisionGroup,this.§_-qC§.min,this.§_-qC§.max,predicate,result);
|
||||
return hasIntersection ? result.t <= maxTime : false;
|
||||
}
|
||||
|
||||
public function method_347(body:name_186, primitive:name_276) : Boolean
|
||||
public function §_-9G§(body:§_-BV§, primitive:§_-Nh§) : Boolean
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
private function method_239(type1:int, type2:int, collider:name_494) : void
|
||||
private function §_-c2§(type1:int, type2:int, collider:§_-hG§) : void
|
||||
{
|
||||
this.var_596[type1 <= type2 ? type1 << 16 | type2 : type2 << 16 | type1] = collider;
|
||||
this.§_-P6§[type1 <= type2 ? type1 << 16 | type2 : type2 << 16 | type1] = collider;
|
||||
}
|
||||
|
||||
private function method_237(node:name_481, primitive:name_276, contacts:name_482) : name_482
|
||||
private function §_-m1§(node:§_-oZ§, primitive:§_-Nh§, contacts:§_-6h§) : §_-6h§
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
private function method_346(origin:name_145, dir:name_145, collisionGroup:int, maxTime:Number, filter:name_488, result:name_189) : Boolean
|
||||
private function §_-Tm§(origin:§_-bj§, dir:§_-bj§, collisionGroup:int, maxTime:Number, filter:§_-jn§, result:§_-jr§) : Boolean
|
||||
{
|
||||
var yy:Number = NaN;
|
||||
var minTime:Number = NaN;
|
||||
var primitive:name_276 = null;
|
||||
var paabb:name_334 = null;
|
||||
var primitive:§_-Nh§ = null;
|
||||
var paabb:§_-FW§ = null;
|
||||
var t:Number = NaN;
|
||||
var xx:Number = origin.x + dir.x * maxTime;
|
||||
yy = origin.y + dir.y * maxTime;
|
||||
@@ -236,24 +236,24 @@ package package_51
|
||||
_rayAABB.maxZ = zz;
|
||||
}
|
||||
minTime = maxTime + 1;
|
||||
for(var i:int = 0; i < this.var_685; )
|
||||
for(var i:int = 0; i < this.§_-iH§; )
|
||||
{
|
||||
primitive = this.var_684[i];
|
||||
primitive = this.§_-Fz§[i];
|
||||
if((primitive.collisionGroup & collisionGroup) != 0)
|
||||
{
|
||||
paabb = primitive.aabb;
|
||||
if(!(_rayAABB.maxX < paabb.minX || _rayAABB.minX > paabb.maxX || _rayAABB.maxY < paabb.minY || _rayAABB.minY > paabb.maxY || _rayAABB.maxZ < paabb.minZ || _rayAABB.minZ > paabb.maxZ))
|
||||
{
|
||||
if(!(filter != null && !filter.name_493(primitive)))
|
||||
if(!(filter != null && !filter.§_-0w§(primitive)))
|
||||
{
|
||||
t = Number(primitive.raycast(origin,dir,this.threshold,this.var_594));
|
||||
t = Number(primitive.raycast(origin,dir,this.threshold,this.§_-k8§));
|
||||
if(t > 0 && t < minTime)
|
||||
{
|
||||
minTime = t;
|
||||
result.primitive = primitive;
|
||||
result.normal.x = this.var_594.x;
|
||||
result.normal.y = this.var_594.y;
|
||||
result.normal.z = this.var_594.z;
|
||||
result.normal.x = this.§_-k8§.x;
|
||||
result.normal.y = this.§_-k8§.y;
|
||||
result.normal.z = this.§_-k8§.z;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -271,7 +271,7 @@ package package_51
|
||||
return true;
|
||||
}
|
||||
|
||||
private function method_247(origin:name_145, dir:name_145, bb:name_334, time:MinMax) : Boolean
|
||||
private function §_-oL§(origin:§_-bj§, dir:§_-bj§, bb:§_-FW§, time:MinMax) : Boolean
|
||||
{
|
||||
var t1:Number = NaN;
|
||||
var t2:Number = NaN;
|
||||
@@ -348,12 +348,12 @@ package package_51
|
||||
return true;
|
||||
}
|
||||
|
||||
private function method_236(node:name_481, origin:name_145, localOrigin:name_145, dir:name_145, collisionGroup:int, t1:Number, t2:Number, predicate:name_488, result:name_189) : Boolean
|
||||
private function §_-NC§(node:§_-oZ§, origin:§_-bj§, localOrigin:§_-bj§, dir:§_-bj§, collisionGroup:int, t1:Number, t2:Number, predicate:§_-jn§, result:§_-jr§) : Boolean
|
||||
{
|
||||
var splitTime:Number = NaN;
|
||||
var currChildNode:name_481 = null;
|
||||
var currChildNode:§_-oZ§ = null;
|
||||
var intersects:Boolean = false;
|
||||
if(node.indices != null && this.method_245(origin,dir,collisionGroup,this.var_592.name_490,node.indices,predicate,result))
|
||||
if(node.indices != null && this.§_-FH§(origin,dir,collisionGroup,this.§_-bw§.§_-8A§,node.indices,predicate,result))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -372,7 +372,7 @@ package package_51
|
||||
{
|
||||
splitTime = (node.coord - origin.x) / dir.x;
|
||||
}
|
||||
currChildNode = localOrigin.x < node.coord ? node.name_483 : node.name_484;
|
||||
currChildNode = localOrigin.x < node.coord ? node.§_-Gm§ : node.§_-75§;
|
||||
break;
|
||||
case 1:
|
||||
if(dir.y > -this.threshold && dir.y < this.threshold)
|
||||
@@ -383,7 +383,7 @@ package package_51
|
||||
{
|
||||
splitTime = (node.coord - origin.y) / dir.y;
|
||||
}
|
||||
currChildNode = localOrigin.y < node.coord ? node.name_483 : node.name_484;
|
||||
currChildNode = localOrigin.y < node.coord ? node.§_-Gm§ : node.§_-75§;
|
||||
break;
|
||||
case 2:
|
||||
if(dir.z > -this.threshold && dir.z < this.threshold)
|
||||
@@ -394,26 +394,26 @@ package package_51
|
||||
{
|
||||
splitTime = (node.coord - origin.z) / dir.z;
|
||||
}
|
||||
currChildNode = localOrigin.z < node.coord ? node.name_483 : node.name_484;
|
||||
currChildNode = localOrigin.z < node.coord ? node.§_-Gm§ : node.§_-75§;
|
||||
}
|
||||
if(splitTime < t1 || splitTime > t2)
|
||||
{
|
||||
return this.method_236(currChildNode,origin,localOrigin,dir,collisionGroup,t1,t2,predicate,result);
|
||||
return this.§_-NC§(currChildNode,origin,localOrigin,dir,collisionGroup,t1,t2,predicate,result);
|
||||
}
|
||||
intersects = this.method_236(currChildNode,origin,localOrigin,dir,collisionGroup,t1,splitTime,predicate,result);
|
||||
intersects = this.§_-NC§(currChildNode,origin,localOrigin,dir,collisionGroup,t1,splitTime,predicate,result);
|
||||
if(intersects)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
this.var_590.x = origin.x + splitTime * dir.x;
|
||||
this.var_590.y = origin.y + splitTime * dir.y;
|
||||
this.var_590.z = origin.z + splitTime * dir.z;
|
||||
return this.method_236(currChildNode == node.name_483 ? node.name_484 : node.name_483,origin,this.var_590,dir,collisionGroup,splitTime,t2,predicate,result);
|
||||
this.§_-0q§.x = origin.x + splitTime * dir.x;
|
||||
this.§_-0q§.y = origin.y + splitTime * dir.y;
|
||||
this.§_-0q§.z = origin.z + splitTime * dir.z;
|
||||
return this.§_-NC§(currChildNode == node.§_-Gm§ ? node.§_-75§ : node.§_-Gm§,origin,this.§_-0q§,dir,collisionGroup,splitTime,t2,predicate,result);
|
||||
}
|
||||
|
||||
private function method_245(origin:name_145, dir:name_145, collisionGroup:int, primitives:Vector.<name_276>, indices:Vector.<int>, filter:name_488, intersection:name_189) : Boolean
|
||||
private function §_-FH§(origin:§_-bj§, dir:§_-bj§, collisionGroup:int, primitives:Vector.<§_-Nh§>, indices:Vector.<int>, filter:§_-jn§, intersection:§_-jr§) : Boolean
|
||||
{
|
||||
var primitive:name_276 = null;
|
||||
var primitive:§_-Nh§ = null;
|
||||
var t:Number = NaN;
|
||||
var pnum:int = int(indices.length);
|
||||
var minTime:Number = 1e+308;
|
||||
@@ -422,16 +422,16 @@ package package_51
|
||||
primitive = primitives[indices[i]];
|
||||
if((primitive.collisionGroup & collisionGroup) != 0)
|
||||
{
|
||||
if(!(filter != null && !filter.name_493(primitive)))
|
||||
if(!(filter != null && !filter.§_-0w§(primitive)))
|
||||
{
|
||||
t = Number(primitive.raycast(origin,dir,this.threshold,this.var_594));
|
||||
t = Number(primitive.raycast(origin,dir,this.threshold,this.§_-k8§));
|
||||
if(t > 0 && t < minTime)
|
||||
{
|
||||
minTime = t;
|
||||
intersection.primitive = primitive;
|
||||
intersection.normal.x = this.var_594.x;
|
||||
intersection.normal.y = this.var_594.y;
|
||||
intersection.normal.z = this.var_594.z;
|
||||
intersection.normal.x = this.§_-k8§.x;
|
||||
intersection.normal.y = this.§_-k8§.y;
|
||||
intersection.normal.z = this.§_-k8§.z;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
package package_51
|
||||
package §_-1e§
|
||||
{
|
||||
import package_58.name_334;
|
||||
import §_-KA§.§_-FW§;
|
||||
|
||||
public class CollisionKdTree2D
|
||||
{
|
||||
private static const nodeBoundBoxThreshold:name_334 = new name_334();
|
||||
private static const nodeBoundBoxThreshold:§_-FW§ = new §_-FW§();
|
||||
|
||||
private static const splitCoordsX:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
@@ -18,53 +18,53 @@ package package_51
|
||||
|
||||
public var threshold:Number = 0.1;
|
||||
|
||||
public var var_681:int = 1;
|
||||
public var §_-eV§:int = 1;
|
||||
|
||||
public var parentTree:name_492;
|
||||
public var parentTree:§_-D-§;
|
||||
|
||||
public var parentNode:name_481;
|
||||
public var parentNode:§_-oZ§;
|
||||
|
||||
public var name_486:name_481;
|
||||
public var §_-5H§:§_-oZ§;
|
||||
|
||||
private var var_678:int;
|
||||
private var §_-94§:int;
|
||||
|
||||
private var var_680:Number;
|
||||
private var §_-ou§:Number;
|
||||
|
||||
private var var_677:Number;
|
||||
private var §_-P5§:Number;
|
||||
|
||||
public function CollisionKdTree2D(parentTree:name_492, parentNode:name_481)
|
||||
public function CollisionKdTree2D(parentTree:§_-D-§, parentNode:§_-oZ§)
|
||||
{
|
||||
super();
|
||||
this.parentTree = parentTree;
|
||||
this.parentNode = parentNode;
|
||||
}
|
||||
|
||||
public function name_499() : void
|
||||
public function §_-J9§() : void
|
||||
{
|
||||
this.name_486 = new name_481();
|
||||
this.name_486.boundBox = this.parentNode.boundBox.clone();
|
||||
this.name_486.indices = new Vector.<int>();
|
||||
var numObjects:int = int(this.parentNode.var_674.length);
|
||||
for(var i:int = 0; i < numObjects; this.name_486.indices[i] = this.parentNode.var_674[i],i++)
|
||||
this.§_-5H§ = new §_-oZ§();
|
||||
this.§_-5H§.boundBox = this.parentNode.boundBox.clone();
|
||||
this.§_-5H§.indices = new Vector.<int>();
|
||||
var numObjects:int = int(this.parentNode.§_-Xt§.length);
|
||||
for(var i:int = 0; i < numObjects; this.§_-5H§.indices[i] = this.parentNode.§_-Xt§[i],i++)
|
||||
{
|
||||
}
|
||||
this.splitNode(this.name_486);
|
||||
this.splitNode(this.§_-5H§);
|
||||
splitCoordsX.length = splitCoordsY.length = splitCoordsZ.length = 0;
|
||||
}
|
||||
|
||||
private function splitNode(node:name_481) : void
|
||||
private function splitNode(node:§_-oZ§) : void
|
||||
{
|
||||
var objects:Vector.<int> = null;
|
||||
var i:int = 0;
|
||||
var j:int = 0;
|
||||
var nodeBoundBox:name_334 = null;
|
||||
var nodeBoundBox:§_-FW§ = null;
|
||||
var numSplitCoordsX:int = 0;
|
||||
var numSplitCoordsY:int = 0;
|
||||
var numSplitCoordsZ:int = 0;
|
||||
var bb:name_334 = null;
|
||||
var bb:§_-FW§ = null;
|
||||
var min:Number = NaN;
|
||||
var max:Number = NaN;
|
||||
if(node.indices.length <= this.var_681)
|
||||
if(node.indices.length <= this.§_-eV§)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -77,7 +77,7 @@ package package_51
|
||||
nodeBoundBoxThreshold.maxY = nodeBoundBox.maxY - this.threshold;
|
||||
nodeBoundBoxThreshold.maxZ = nodeBoundBox.maxZ - this.threshold;
|
||||
var doubleThreshold:Number = this.threshold * 2;
|
||||
var staticBoundBoxes:Vector.<name_334> = this.parentTree.staticBoundBoxes;
|
||||
var staticBoundBoxes:Vector.<§_-FW§> = this.parentTree.staticBoundBoxes;
|
||||
var numObjects:int = int(objects.length);
|
||||
for(i = 0; i < numObjects; )
|
||||
{
|
||||
@@ -123,8 +123,8 @@ package package_51
|
||||
}
|
||||
i++;
|
||||
}
|
||||
this.var_678 = -1;
|
||||
this.var_680 = 1e+308;
|
||||
this.§_-94§ = -1;
|
||||
this.§_-ou§ = 1e+308;
|
||||
_nodeBB[0] = nodeBoundBox.minX;
|
||||
_nodeBB[1] = nodeBoundBox.minY;
|
||||
_nodeBB[2] = nodeBoundBox.minZ;
|
||||
@@ -133,44 +133,44 @@ package package_51
|
||||
_nodeBB[5] = nodeBoundBox.maxZ;
|
||||
if(this.parentNode.axis != 0)
|
||||
{
|
||||
this.method_332(node,0,numSplitCoordsX,splitCoordsX,_nodeBB);
|
||||
this.§_-1k§(node,0,numSplitCoordsX,splitCoordsX,_nodeBB);
|
||||
}
|
||||
if(this.parentNode.axis != 1)
|
||||
{
|
||||
this.method_332(node,1,numSplitCoordsY,splitCoordsY,_nodeBB);
|
||||
this.§_-1k§(node,1,numSplitCoordsY,splitCoordsY,_nodeBB);
|
||||
}
|
||||
if(this.parentNode.axis != 2)
|
||||
{
|
||||
this.method_332(node,2,numSplitCoordsZ,splitCoordsZ,_nodeBB);
|
||||
this.§_-1k§(node,2,numSplitCoordsZ,splitCoordsZ,_nodeBB);
|
||||
}
|
||||
if(this.var_678 < 0)
|
||||
if(this.§_-94§ < 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var axisX:Boolean = this.var_678 == 0;
|
||||
var axisY:Boolean = this.var_678 == 1;
|
||||
node.axis = this.var_678;
|
||||
node.coord = this.var_677;
|
||||
node.name_483 = new name_481();
|
||||
node.name_483.parent = node;
|
||||
node.name_483.boundBox = nodeBoundBox.clone();
|
||||
node.name_484 = new name_481();
|
||||
node.name_484.parent = node;
|
||||
node.name_484.boundBox = nodeBoundBox.clone();
|
||||
var axisX:Boolean = this.§_-94§ == 0;
|
||||
var axisY:Boolean = this.§_-94§ == 1;
|
||||
node.axis = this.§_-94§;
|
||||
node.coord = this.§_-P5§;
|
||||
node.§_-Gm§ = new §_-oZ§();
|
||||
node.§_-Gm§.parent = node;
|
||||
node.§_-Gm§.boundBox = nodeBoundBox.clone();
|
||||
node.§_-75§ = new §_-oZ§();
|
||||
node.§_-75§.parent = node;
|
||||
node.§_-75§.boundBox = nodeBoundBox.clone();
|
||||
if(axisX)
|
||||
{
|
||||
node.name_483.boundBox.maxX = node.name_484.boundBox.minX = this.var_677;
|
||||
node.§_-Gm§.boundBox.maxX = node.§_-75§.boundBox.minX = this.§_-P5§;
|
||||
}
|
||||
else if(axisY)
|
||||
{
|
||||
node.name_483.boundBox.maxY = node.name_484.boundBox.minY = this.var_677;
|
||||
node.§_-Gm§.boundBox.maxY = node.§_-75§.boundBox.minY = this.§_-P5§;
|
||||
}
|
||||
else
|
||||
{
|
||||
node.name_483.boundBox.maxZ = node.name_484.boundBox.minZ = this.var_677;
|
||||
node.§_-Gm§.boundBox.maxZ = node.§_-75§.boundBox.minZ = this.§_-P5§;
|
||||
}
|
||||
var coordMin:Number = this.var_677 - this.threshold;
|
||||
var coordMax:Number = this.var_677 + this.threshold;
|
||||
var coordMin:Number = this.§_-P5§ - this.threshold;
|
||||
var coordMax:Number = this.§_-P5§ + this.threshold;
|
||||
for(i = 0; i < numObjects; )
|
||||
{
|
||||
bb = staticBoundBoxes[objects[i]];
|
||||
@@ -180,11 +180,11 @@ package package_51
|
||||
{
|
||||
if(min < coordMin)
|
||||
{
|
||||
if(node.name_483.indices == null)
|
||||
if(node.§_-Gm§.indices == null)
|
||||
{
|
||||
node.name_483.indices = new Vector.<int>();
|
||||
node.§_-Gm§.indices = new Vector.<int>();
|
||||
}
|
||||
node.name_483.indices.push(objects[i]);
|
||||
node.§_-Gm§.indices.push(objects[i]);
|
||||
objects[i] = -1;
|
||||
}
|
||||
}
|
||||
@@ -192,11 +192,11 @@ package package_51
|
||||
{
|
||||
if(max > coordMax)
|
||||
{
|
||||
if(node.name_484.indices == null)
|
||||
if(node.§_-75§.indices == null)
|
||||
{
|
||||
node.name_484.indices = new Vector.<int>();
|
||||
node.§_-75§.indices = new Vector.<int>();
|
||||
}
|
||||
node.name_484.indices.push(objects[i]);
|
||||
node.§_-75§.indices.push(objects[i]);
|
||||
objects[i] = -1;
|
||||
}
|
||||
}
|
||||
@@ -219,17 +219,17 @@ package package_51
|
||||
{
|
||||
node.indices = null;
|
||||
}
|
||||
if(node.name_483.indices != null)
|
||||
if(node.§_-Gm§.indices != null)
|
||||
{
|
||||
this.splitNode(node.name_483);
|
||||
this.splitNode(node.§_-Gm§);
|
||||
}
|
||||
if(node.name_484.indices != null)
|
||||
if(node.§_-75§.indices != null)
|
||||
{
|
||||
this.splitNode(node.name_484);
|
||||
this.splitNode(node.§_-75§);
|
||||
}
|
||||
}
|
||||
|
||||
private function method_332(node:name_481, axis:int, numSplitCoords:int, splitCoords:Vector.<Number>, bb:Vector.<Number>) : void
|
||||
private function §_-1k§(node:§_-oZ§, axis:int, numSplitCoords:int, splitCoords:Vector.<Number>, bb:Vector.<Number>) : void
|
||||
{
|
||||
var currSplitCoord:Number = NaN;
|
||||
var minCoord:Number = NaN;
|
||||
@@ -242,11 +242,11 @@ package package_51
|
||||
var numObjects:int = 0;
|
||||
var j:int = 0;
|
||||
var cost:Number = NaN;
|
||||
var boundBox:name_334 = null;
|
||||
var boundBox:§_-FW§ = null;
|
||||
var axis1:int = (axis + 1) % 3;
|
||||
var axis2:int = (axis + 2) % 3;
|
||||
var area:Number = (bb[axis1 + 3] - bb[axis1]) * (bb[axis2 + 3] - bb[axis2]);
|
||||
var staticBoundBoxes:Vector.<name_334> = this.parentTree.staticBoundBoxes;
|
||||
var staticBoundBoxes:Vector.<§_-FW§> = this.parentTree.staticBoundBoxes;
|
||||
for(var i:int = 0; i < numSplitCoords; i++)
|
||||
{
|
||||
currSplitCoord = splitCoords[i];
|
||||
@@ -288,11 +288,11 @@ package package_51
|
||||
j++;
|
||||
}
|
||||
cost = areaNegative * numNegative + areaPositive * numPositive;
|
||||
if(!conflict && cost < this.var_680 && numNegative > 0 && numPositive > 0)
|
||||
if(!conflict && cost < this.§_-ou§ && numNegative > 0 && numPositive > 0)
|
||||
{
|
||||
this.var_678 = axis;
|
||||
this.var_680 = cost;
|
||||
this.var_677 = currSplitCoord;
|
||||
this.§_-94§ = axis;
|
||||
this.§_-ou§ = cost;
|
||||
this.§_-P5§ = currSplitCoord;
|
||||
}
|
||||
for(j = i + 1; j < numSplitCoords; )
|
||||
{
|
||||
@@ -1,8 +1,8 @@
|
||||
package package_58
|
||||
package §_-KA§
|
||||
{
|
||||
import package_38.name_145;
|
||||
import §_-nl§.§_-bj§;
|
||||
|
||||
public class name_334
|
||||
public class §_-FW§
|
||||
{
|
||||
public var minX:Number = 1e+308;
|
||||
|
||||
@@ -16,12 +16,12 @@ package package_58
|
||||
|
||||
public var maxZ:Number = -1e+308;
|
||||
|
||||
public function name_334()
|
||||
public function §_-FW§()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function name_361(minX:Number, minY:Number, minZ:Number, maxX:Number, maxY:Number, maxZ:Number) : void
|
||||
public function §_-k2§(minX:Number, minY:Number, minZ:Number, maxX:Number, maxY:Number, maxZ:Number) : void
|
||||
{
|
||||
this.minX = minX;
|
||||
this.minY = minY;
|
||||
@@ -31,7 +31,7 @@ package package_58
|
||||
this.maxZ = maxZ;
|
||||
}
|
||||
|
||||
public function name_510(delta:Number) : void
|
||||
public function §_-Gd§(delta:Number) : void
|
||||
{
|
||||
this.minX -= delta;
|
||||
this.minY -= delta;
|
||||
@@ -41,7 +41,7 @@ package package_58
|
||||
this.maxZ += delta;
|
||||
}
|
||||
|
||||
public function name_424(boundBox:name_334) : void
|
||||
public function §_-EH§(boundBox:§_-FW§) : void
|
||||
{
|
||||
this.minX = boundBox.minX < this.minX ? boundBox.minX : this.minX;
|
||||
this.minY = boundBox.minY < this.minY ? boundBox.minY : this.minY;
|
||||
@@ -51,7 +51,7 @@ package package_58
|
||||
this.maxZ = boundBox.maxZ > this.maxZ ? boundBox.maxZ : this.maxZ;
|
||||
}
|
||||
|
||||
public function method_277(x:Number, y:Number, z:Number) : void
|
||||
public function §_-aW§(x:Number, y:Number, z:Number) : void
|
||||
{
|
||||
if(x < this.minX)
|
||||
{
|
||||
@@ -79,7 +79,7 @@ package package_58
|
||||
}
|
||||
}
|
||||
|
||||
public function name_426() : void
|
||||
public function §_-GT§() : void
|
||||
{
|
||||
this.minX = 1e+308;
|
||||
this.minY = 1e+308;
|
||||
@@ -89,32 +89,32 @@ package package_58
|
||||
this.maxZ = -1e+308;
|
||||
}
|
||||
|
||||
public function intersects(bb:name_334, epsilon:Number) : Boolean
|
||||
public function intersects(bb:§_-FW§, epsilon:Number) : Boolean
|
||||
{
|
||||
return !(this.minX > bb.maxX + epsilon || this.maxX < bb.minX - epsilon || this.minY > bb.maxY + epsilon || this.maxY < bb.minY - epsilon || this.minZ > bb.maxZ + epsilon || this.maxZ < bb.minZ - epsilon);
|
||||
}
|
||||
|
||||
public function name_511(point:name_145, epsilon:Number) : Boolean
|
||||
public function §_-Wu§(point:§_-bj§, epsilon:Number) : Boolean
|
||||
{
|
||||
return point.x > this.minX - epsilon && point.x < this.maxX + epsilon && point.y > this.minY - epsilon && point.y < this.maxY + epsilon && point.z > this.minZ - epsilon && point.z < this.maxZ + epsilon;
|
||||
}
|
||||
|
||||
public function name_513() : Number
|
||||
public function §_-ot§() : Number
|
||||
{
|
||||
return this.maxX - this.minX;
|
||||
}
|
||||
|
||||
public function name_512() : Number
|
||||
public function §_-jP§() : Number
|
||||
{
|
||||
return this.maxY - this.minY;
|
||||
}
|
||||
|
||||
public function name_514() : Number
|
||||
public function §_-Ix§() : Number
|
||||
{
|
||||
return this.maxZ - this.minZ;
|
||||
}
|
||||
|
||||
public function copyFrom(boundBox:name_334) : void
|
||||
public function copyFrom(boundBox:§_-FW§) : void
|
||||
{
|
||||
this.minX = boundBox.minX;
|
||||
this.minY = boundBox.minY;
|
||||
@@ -124,9 +124,9 @@ package package_58
|
||||
this.maxZ = boundBox.maxZ;
|
||||
}
|
||||
|
||||
public function clone() : name_334
|
||||
public function clone() : §_-FW§
|
||||
{
|
||||
var clone:name_334 = new name_334();
|
||||
var clone:§_-FW§ = new §_-FW§();
|
||||
clone.copyFrom(this);
|
||||
return clone;
|
||||
}
|
||||
@@ -1,127 +1,127 @@
|
||||
package package_54
|
||||
package §_-fT§
|
||||
{
|
||||
import package_38.name_145;
|
||||
import package_51.name_276;
|
||||
import package_51.name_481;
|
||||
import package_51.name_488;
|
||||
import package_51.name_492;
|
||||
import package_51.name_494;
|
||||
import package_58.name_189;
|
||||
import package_58.name_334;
|
||||
import package_61.name_186;
|
||||
import package_61.name_380;
|
||||
import package_61.name_482;
|
||||
import package_61.name_489;
|
||||
import package_84.name_495;
|
||||
import package_84.name_496;
|
||||
import package_84.name_497;
|
||||
import §_-1e§.§_-D-§;
|
||||
import §_-1e§.§_-Nh§;
|
||||
import §_-1e§.§_-hG§;
|
||||
import §_-1e§.§_-jn§;
|
||||
import §_-1e§.§_-oZ§;
|
||||
import §_-KA§.§_-FW§;
|
||||
import §_-KA§.§_-jr§;
|
||||
import §_-US§.§_-4q§;
|
||||
import §_-US§.§_-6h§;
|
||||
import §_-US§.§_-BV§;
|
||||
import §_-US§.§_-G2§;
|
||||
import §_-nl§.§_-bj§;
|
||||
import §while§.§_-GQ§;
|
||||
import §while§.§_-Ph§;
|
||||
import §while§.§_-hu§;
|
||||
|
||||
public class name_354 implements name_357
|
||||
public class §_-ZI§ implements §_-Zm§
|
||||
{
|
||||
public var var_592:name_492;
|
||||
public var §_-bw§:§_-D-§;
|
||||
|
||||
public var threshold:Number = 0.0001;
|
||||
|
||||
private var var_596:Object;
|
||||
private var §_-P6§:Object;
|
||||
|
||||
private var var_591:Vector.<name_406>;
|
||||
private var §_-Wj§:Vector.<§_-YY§>;
|
||||
|
||||
private var var_593:int;
|
||||
private var §_-LK§:int;
|
||||
|
||||
private var name_438:Vector.<name_186>;
|
||||
private var §_-By§:Vector.<§_-BV§>;
|
||||
|
||||
private var numBodies:int;
|
||||
|
||||
private var var_420:MinMax = new MinMax();
|
||||
private var §_-qC§:MinMax = new MinMax();
|
||||
|
||||
private var var_594:name_145 = new name_145();
|
||||
private var §_-k8§:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var var_590:name_145 = new name_145();
|
||||
private var §_-0q§:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var var_595:name_189 = new name_189();
|
||||
private var §_-2P§:§_-jr§ = new §_-jr§();
|
||||
|
||||
private var _rayAABB:name_334 = new name_334();
|
||||
private var _rayAABB:§_-FW§ = new §_-FW§();
|
||||
|
||||
public function name_354()
|
||||
public function §_-ZI§()
|
||||
{
|
||||
super();
|
||||
this.var_592 = new name_492();
|
||||
this.name_438 = new Vector.<name_186>();
|
||||
this.var_591 = new Vector.<name_406>();
|
||||
this.var_596 = new Object();
|
||||
this.method_239(name_276.BOX,name_276.BOX,new name_495());
|
||||
this.method_239(name_276.BOX,name_276.RECT,new name_496());
|
||||
this.method_239(name_276.BOX,name_276.TRIANGLE,new name_497());
|
||||
this.§_-bw§ = new §_-D-§();
|
||||
this.§_-By§ = new Vector.<§_-BV§>();
|
||||
this.§_-Wj§ = new Vector.<§_-YY§>();
|
||||
this.§_-P6§ = new Object();
|
||||
this.§_-c2§(§_-Nh§.BOX,§_-Nh§.BOX,new §_-Ph§());
|
||||
this.§_-c2§(§_-Nh§.BOX,§_-Nh§.RECT,new §_-GQ§());
|
||||
this.§_-c2§(§_-Nh§.BOX,§_-Nh§.TRIANGLE,new §_-hu§());
|
||||
}
|
||||
|
||||
public function method_251(primitive:name_276) : void
|
||||
public function §_-oT§(primitive:§_-Nh§) : void
|
||||
{
|
||||
}
|
||||
|
||||
public function method_250(primitive:name_276) : void
|
||||
public function §_-HZ§(primitive:§_-Nh§) : void
|
||||
{
|
||||
}
|
||||
|
||||
public function name_359() : void
|
||||
public function §_-9F§() : void
|
||||
{
|
||||
}
|
||||
|
||||
public function name_364(collisionPrimitives:Vector.<name_276>, boundBox:name_334 = null) : void
|
||||
public function §_-Vy§(collisionPrimitives:Vector.<§_-Nh§>, boundBox:§_-FW§ = null) : void
|
||||
{
|
||||
this.var_592.name_499(collisionPrimitives,boundBox);
|
||||
this.§_-bw§.§_-J9§(collisionPrimitives,boundBox);
|
||||
}
|
||||
|
||||
public function name_434(tankPhysicsEntry:name_406) : void
|
||||
public function §_-pN§(tankPhysicsEntry:§_-YY§) : void
|
||||
{
|
||||
if(this.var_591.indexOf(tankPhysicsEntry) >= 0)
|
||||
if(this.§_-Wj§.indexOf(tankPhysicsEntry) >= 0)
|
||||
{
|
||||
throw new Error("Tank entry already exists");
|
||||
}
|
||||
var _loc2_:* = this.var_593++;
|
||||
this.var_591[_loc2_] = tankPhysicsEntry;
|
||||
var _loc2_:* = this.§_-LK§++;
|
||||
this.§_-Wj§[_loc2_] = tankPhysicsEntry;
|
||||
}
|
||||
|
||||
public function name_433(tankPhysicsEntry:name_406) : void
|
||||
public function §_-qP§(tankPhysicsEntry:§_-YY§) : void
|
||||
{
|
||||
var index:Number = Number(this.var_591.indexOf(tankPhysicsEntry));
|
||||
var index:Number = Number(this.§_-Wj§.indexOf(tankPhysicsEntry));
|
||||
if(index < 0)
|
||||
{
|
||||
throw new Error("Tank entry not found");
|
||||
}
|
||||
this.var_591[index] = this.var_591[--this.var_593];
|
||||
this.var_591[this.var_593] = null;
|
||||
this.§_-Wj§[index] = this.§_-Wj§[--this.§_-LK§];
|
||||
this.§_-Wj§[this.§_-LK§] = null;
|
||||
}
|
||||
|
||||
public function name_435(body:name_186) : void
|
||||
public function §_-D8§(body:§_-BV§) : void
|
||||
{
|
||||
var _loc2_:* = this.numBodies++;
|
||||
this.name_438[_loc2_] = body;
|
||||
this.§_-By§[_loc2_] = body;
|
||||
}
|
||||
|
||||
public function name_436(body:name_186) : void
|
||||
public function §_-2x§(body:§_-BV§) : void
|
||||
{
|
||||
var index:int = int(this.name_438.indexOf(body));
|
||||
var index:int = int(this.§_-By§.indexOf(body));
|
||||
if(index < 0)
|
||||
{
|
||||
throw new Error("Body not found");
|
||||
}
|
||||
this.name_438[index] = this.name_438[--this.numBodies];
|
||||
this.name_438[this.numBodies] = null;
|
||||
this.§_-By§[index] = this.§_-By§[--this.numBodies];
|
||||
this.§_-By§[this.numBodies] = null;
|
||||
}
|
||||
|
||||
public function method_249(center:name_145, radius:Number, filter:name_498) : Vector.<name_485>
|
||||
public function §_-7u§(center:§_-bj§, radius:Number, filter:§_-VN§) : Vector.<§_-bB§>
|
||||
{
|
||||
var result:Vector.<name_485> = null;
|
||||
var tankPhysicsEntry:name_406 = null;
|
||||
var position:name_145 = null;
|
||||
var result:Vector.<§_-bB§> = null;
|
||||
var tankPhysicsEntry:§_-YY§ = null;
|
||||
var position:§_-bj§ = null;
|
||||
var dx:Number = NaN;
|
||||
var dy:Number = NaN;
|
||||
var dz:Number = NaN;
|
||||
var distance:Number = NaN;
|
||||
radius *= radius;
|
||||
for(var i:int = 0; i < this.var_593; )
|
||||
for(var i:int = 0; i < this.§_-LK§; )
|
||||
{
|
||||
tankPhysicsEntry = this.var_591[i];
|
||||
tankPhysicsEntry = this.§_-Wj§[i];
|
||||
position = tankPhysicsEntry.body.state.position;
|
||||
dx = position.x - center.x;
|
||||
dy = position.y - center.y;
|
||||
@@ -129,13 +129,13 @@ package package_54
|
||||
distance = dx * dx + dy * dy + dz * dz;
|
||||
if(distance < radius)
|
||||
{
|
||||
if(filter == null || Boolean(filter.name_500(center,tankPhysicsEntry.body)))
|
||||
if(filter == null || Boolean(filter.§_-cb§(center,tankPhysicsEntry.body)))
|
||||
{
|
||||
if(result == null)
|
||||
{
|
||||
result = new Vector.<name_485>();
|
||||
result = new Vector.<§_-bB§>();
|
||||
}
|
||||
result.push(new name_485(tankPhysicsEntry.body,Math.sqrt(distance)));
|
||||
result.push(new §_-bB§(tankPhysicsEntry.body,Math.sqrt(distance)));
|
||||
}
|
||||
}
|
||||
i++;
|
||||
@@ -143,30 +143,30 @@ package package_54
|
||||
return result;
|
||||
}
|
||||
|
||||
public function method_254(contact:name_482) : name_482
|
||||
public function §_-63§(contact:§_-6h§) : §_-6h§
|
||||
{
|
||||
return this.method_244(contact);
|
||||
return this.§_-Uu§(contact);
|
||||
}
|
||||
|
||||
public function getContact(prim1:name_276, prim2:name_276, contact:name_482) : Boolean
|
||||
public function getContact(prim1:§_-Nh§, prim2:§_-Nh§, contact:§_-6h§) : Boolean
|
||||
{
|
||||
if((prim1.collisionMask & prim2.collisionGroup) == 0 || (prim2.collisionMask & prim1.collisionGroup) == 0 || !prim1.aabb.intersects(prim2.aabb,0.01))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
var collider:name_494 = this.var_596[prim1.type | prim2.type];
|
||||
var collider:§_-hG§ = this.§_-P6§[prim1.type | prim2.type];
|
||||
if(collider != null && Boolean(collider.getContact(prim1,prim2,contact)))
|
||||
{
|
||||
if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.name_491(prim1,prim2))
|
||||
if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.§_-eZ§(prim1,prim2))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return !(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.name_491(prim2,prim1));
|
||||
return !(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.§_-eZ§(prim2,prim1));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function method_240(prim1:name_276, prim2:name_276) : Boolean
|
||||
public function §_-A5§(prim1:§_-Nh§, prim2:§_-Nh§) : Boolean
|
||||
{
|
||||
if((prim1.collisionMask & prim2.collisionGroup) == 0 || (prim2.collisionMask & prim1.collisionGroup) == 0)
|
||||
{
|
||||
@@ -180,31 +180,31 @@ package package_54
|
||||
{
|
||||
return false;
|
||||
}
|
||||
var collider:name_494 = this.var_596[prim1.type | prim2.type];
|
||||
var collider:§_-hG§ = this.§_-P6§[prim1.type | prim2.type];
|
||||
if(collider != null && Boolean(collider.haveCollision(prim1,prim2)))
|
||||
{
|
||||
if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.name_491(prim1,prim2))
|
||||
if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.§_-eZ§(prim1,prim2))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return !(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.name_491(prim2,prim1));
|
||||
return !(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.§_-eZ§(prim2,prim1));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function raycast(origin:name_145, dir:name_145, collisionMask:int, maxTime:Number, filter:name_488, result:name_189) : Boolean
|
||||
public function raycast(origin:§_-bj§, dir:§_-bj§, collisionMask:int, maxTime:Number, filter:§_-jn§, result:§_-jr§) : Boolean
|
||||
{
|
||||
var hasStaticIntersection:Boolean = this.name_246(origin,dir,collisionMask,maxTime,filter,result);
|
||||
var hasDynamicIntersection:Boolean = this.method_243(origin,dir,collisionMask,maxTime,filter,this.var_595);
|
||||
var hasStaticIntersection:Boolean = this.§_-cX§(origin,dir,collisionMask,maxTime,filter,result);
|
||||
var hasDynamicIntersection:Boolean = this.§_-eu§(origin,dir,collisionMask,maxTime,filter,this.§_-2P§);
|
||||
if(!(hasDynamicIntersection || hasStaticIntersection))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(hasDynamicIntersection && hasStaticIntersection)
|
||||
{
|
||||
if(result.t > this.var_595.t)
|
||||
if(result.t > this.§_-2P§.t)
|
||||
{
|
||||
result.copy(this.var_595);
|
||||
result.copy(this.§_-2P§);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -212,73 +212,73 @@ package package_54
|
||||
{
|
||||
return true;
|
||||
}
|
||||
result.copy(this.var_595);
|
||||
result.copy(this.§_-2P§);
|
||||
return true;
|
||||
}
|
||||
|
||||
public function name_246(origin:name_145, dir:name_145, collisionMask:int, maxTime:Number, filter:name_488, result:name_189) : Boolean
|
||||
public function §_-cX§(origin:§_-bj§, dir:§_-bj§, collisionMask:int, maxTime:Number, filter:§_-jn§, result:§_-jr§) : Boolean
|
||||
{
|
||||
if(!this.method_247(origin,dir,this.var_592.name_486.boundBox,this.var_420))
|
||||
if(!this.§_-oL§(origin,dir,this.§_-bw§.§_-5H§.boundBox,this.§_-qC§))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(this.var_420.max < 0 || this.var_420.min > maxTime)
|
||||
if(this.§_-qC§.max < 0 || this.§_-qC§.min > maxTime)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(this.var_420.min <= 0)
|
||||
if(this.§_-qC§.min <= 0)
|
||||
{
|
||||
this.var_420.min = 0;
|
||||
this.var_590.x = origin.x;
|
||||
this.var_590.y = origin.y;
|
||||
this.var_590.z = origin.z;
|
||||
this.§_-qC§.min = 0;
|
||||
this.§_-0q§.x = origin.x;
|
||||
this.§_-0q§.y = origin.y;
|
||||
this.§_-0q§.z = origin.z;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.var_590.x = origin.x + this.var_420.min * dir.x;
|
||||
this.var_590.y = origin.y + this.var_420.min * dir.y;
|
||||
this.var_590.z = origin.z + this.var_420.min * dir.z;
|
||||
this.§_-0q§.x = origin.x + this.§_-qC§.min * dir.x;
|
||||
this.§_-0q§.y = origin.y + this.§_-qC§.min * dir.y;
|
||||
this.§_-0q§.z = origin.z + this.§_-qC§.min * dir.z;
|
||||
}
|
||||
if(this.var_420.max > maxTime)
|
||||
if(this.§_-qC§.max > maxTime)
|
||||
{
|
||||
this.var_420.max = maxTime;
|
||||
this.§_-qC§.max = maxTime;
|
||||
}
|
||||
var hasIntersection:Boolean = this.method_236(this.var_592.name_486,origin,this.var_590,dir,collisionMask,this.var_420.min,this.var_420.max,filter,result);
|
||||
var hasIntersection:Boolean = this.§_-NC§(this.§_-bw§.§_-5H§,origin,this.§_-0q§,dir,collisionMask,this.§_-qC§.min,this.§_-qC§.max,filter,result);
|
||||
return hasIntersection ? result.t <= maxTime : false;
|
||||
}
|
||||
|
||||
public function method_242(primitive:name_276) : Boolean
|
||||
public function §_-TL§(primitive:§_-Nh§) : Boolean
|
||||
{
|
||||
return this.method_238(primitive,this.var_592.name_486);
|
||||
return this.§_-B8§(primitive,this.§_-bw§.§_-5H§);
|
||||
}
|
||||
|
||||
private function method_239(type1:int, type2:int, collider:name_494) : void
|
||||
private function §_-c2§(type1:int, type2:int, collider:§_-hG§) : void
|
||||
{
|
||||
this.var_596[type1 | type2] = collider;
|
||||
this.§_-P6§[type1 | type2] = collider;
|
||||
}
|
||||
|
||||
private function method_244(contact:name_482) : name_482
|
||||
private function §_-Uu§(contact:§_-6h§) : §_-6h§
|
||||
{
|
||||
var tankEntry:name_406 = null;
|
||||
var body:name_186 = null;
|
||||
var listItem:name_380 = null;
|
||||
var tankEntry:§_-YY§ = null;
|
||||
var body:§_-BV§ = null;
|
||||
var listItem:§_-4q§ = null;
|
||||
var j:int = 0;
|
||||
var otherTankEntry:name_406 = null;
|
||||
for(var i:int = 0; i < this.var_593; i++)
|
||||
var otherTankEntry:§_-YY§ = null;
|
||||
for(var i:int = 0; i < this.§_-LK§; i++)
|
||||
{
|
||||
tankEntry = this.var_591[i];
|
||||
tankEntry = this.§_-Wj§[i];
|
||||
body = tankEntry.body;
|
||||
for(listItem = body.collisionPrimitives.head; listItem != null; )
|
||||
{
|
||||
contact = this.method_237(this.var_592.name_486,listItem.primitive,contact);
|
||||
contact = this.§_-m1§(this.§_-bw§.§_-5H§,listItem.primitive,contact);
|
||||
listItem = listItem.next;
|
||||
}
|
||||
for(j = i + 1; j < this.var_593; )
|
||||
for(j = i + 1; j < this.§_-LK§; )
|
||||
{
|
||||
otherTankEntry = this.var_591[j];
|
||||
otherTankEntry = this.§_-Wj§[j];
|
||||
if(body.aabb.intersects(otherTankEntry.body.aabb,0.1))
|
||||
{
|
||||
contact = this.method_241(tankEntry,otherTankEntry,contact);
|
||||
contact = this.§_-4I§(tankEntry,otherTankEntry,contact);
|
||||
}
|
||||
j++;
|
||||
}
|
||||
@@ -286,15 +286,15 @@ package package_54
|
||||
return contact;
|
||||
}
|
||||
|
||||
private function method_241(tankEntry1:name_406, tankEntry2:name_406, contact:name_482) : name_482
|
||||
private function §_-4I§(tankEntry1:§_-YY§, tankEntry2:§_-YY§, contact:§_-6h§) : §_-6h§
|
||||
{
|
||||
var primitive1:name_276 = null;
|
||||
var primitive1:§_-Nh§ = null;
|
||||
var numSimplePrimitives2:int = 0;
|
||||
var j:int = 0;
|
||||
var primitive2:name_276 = null;
|
||||
var primitive2:§_-Nh§ = null;
|
||||
var skipCollision:Boolean = false;
|
||||
var body1:name_186 = tankEntry1.body;
|
||||
var body2:name_186 = tankEntry2.body;
|
||||
var body1:§_-BV§ = tankEntry1.body;
|
||||
var body2:§_-BV§ = tankEntry2.body;
|
||||
var numSimplePrimitives1:int = int(tankEntry1.simplePrimitives.length);
|
||||
var firstFilterTest:Boolean = true;
|
||||
for(var i:int = 0; i < numSimplePrimitives1; i++)
|
||||
@@ -331,14 +331,14 @@ package package_54
|
||||
return contact;
|
||||
}
|
||||
|
||||
private function method_252(primitives1:name_489, primitives2:name_489) : Boolean
|
||||
private function §_-AX§(primitives1:§_-G2§, primitives2:§_-G2§) : Boolean
|
||||
{
|
||||
var item2:name_380 = null;
|
||||
for(var item1:name_380 = primitives1.head; item1 != null; )
|
||||
var item2:§_-4q§ = null;
|
||||
for(var item1:§_-4q§ = primitives1.head; item1 != null; )
|
||||
{
|
||||
for(item2 = primitives2.head; item2 != null; )
|
||||
{
|
||||
if(this.method_240(item1.primitive,item2.primitive))
|
||||
if(this.§_-A5§(item1.primitive,item2.primitive))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -349,11 +349,11 @@ package package_54
|
||||
return false;
|
||||
}
|
||||
|
||||
private function method_253(primitives:name_489) : Boolean
|
||||
private function §_-bH§(primitives:§_-G2§) : Boolean
|
||||
{
|
||||
for(var item:name_380 = primitives.head; item != null; )
|
||||
for(var item:§_-4q§ = primitives.head; item != null; )
|
||||
{
|
||||
if(this.method_242(item.primitive))
|
||||
if(this.§_-TL§(item.primitive))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -362,16 +362,16 @@ package package_54
|
||||
return false;
|
||||
}
|
||||
|
||||
private function method_237(node:name_481, primitive:name_276, contact:name_482) : name_482
|
||||
private function §_-m1§(node:§_-oZ§, primitive:§_-Nh§, contact:§_-6h§) : §_-6h§
|
||||
{
|
||||
var min:Number = NaN;
|
||||
var max:Number = NaN;
|
||||
var primitives:Vector.<name_276> = null;
|
||||
var primitives:Vector.<§_-Nh§> = null;
|
||||
var indices:Vector.<int> = null;
|
||||
var i:int = 0;
|
||||
if(node.indices != null)
|
||||
{
|
||||
primitives = this.var_592.name_490;
|
||||
primitives = this.§_-bw§.§_-8A§;
|
||||
indices = node.indices;
|
||||
for(i = indices.length - 1; i >= 0; )
|
||||
{
|
||||
@@ -402,33 +402,33 @@ package package_54
|
||||
}
|
||||
if(min < node.coord)
|
||||
{
|
||||
contact = this.method_237(node.name_483,primitive,contact);
|
||||
contact = this.§_-m1§(node.§_-Gm§,primitive,contact);
|
||||
}
|
||||
if(max > node.coord)
|
||||
{
|
||||
contact = this.method_237(node.name_484,primitive,contact);
|
||||
contact = this.§_-m1§(node.§_-75§,primitive,contact);
|
||||
}
|
||||
if(node.name_487 != null && min < node.coord && max > node.coord)
|
||||
if(node.§_-da§ != null && min < node.coord && max > node.coord)
|
||||
{
|
||||
contact = this.method_237(node.name_487.name_486,primitive,contact);
|
||||
contact = this.§_-m1§(node.§_-da§.§_-5H§,primitive,contact);
|
||||
}
|
||||
return contact;
|
||||
}
|
||||
|
||||
private function method_238(primitive:name_276, node:name_481) : Boolean
|
||||
private function §_-B8§(primitive:§_-Nh§, node:§_-oZ§) : Boolean
|
||||
{
|
||||
var min:Number = NaN;
|
||||
var max:Number = NaN;
|
||||
var primitives:Vector.<name_276> = null;
|
||||
var primitives:Vector.<§_-Nh§> = null;
|
||||
var indices:Vector.<int> = null;
|
||||
var i:int = 0;
|
||||
if(node.indices != null)
|
||||
{
|
||||
primitives = this.var_592.name_490;
|
||||
primitives = this.§_-bw§.§_-8A§;
|
||||
indices = node.indices;
|
||||
for(i = indices.length - 1; i >= 0; )
|
||||
{
|
||||
if(this.method_240(primitive,primitives[indices[i]]))
|
||||
if(this.§_-A5§(primitive,primitives[indices[i]]))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -453,23 +453,23 @@ package package_54
|
||||
min = Number(primitive.aabb.minZ);
|
||||
max = Number(primitive.aabb.maxZ);
|
||||
}
|
||||
if(node.name_487 != null && min < node.coord && max > node.coord)
|
||||
if(node.§_-da§ != null && min < node.coord && max > node.coord)
|
||||
{
|
||||
if(this.method_238(primitive,node.name_487.name_486))
|
||||
if(this.§_-B8§(primitive,node.§_-da§.§_-5H§))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if(min < node.coord)
|
||||
{
|
||||
if(this.method_238(primitive,node.name_483))
|
||||
if(this.§_-B8§(primitive,node.§_-Gm§))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if(max > node.coord)
|
||||
{
|
||||
if(this.method_238(primitive,node.name_484))
|
||||
if(this.§_-B8§(primitive,node.§_-75§))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -477,13 +477,13 @@ package package_54
|
||||
return false;
|
||||
}
|
||||
|
||||
private function method_243(origin:name_145, dir:name_145, collisionMask:int, maxTime:Number, filter:name_488, result:name_189) : Boolean
|
||||
private function §_-eu§(origin:§_-bj§, dir:§_-bj§, collisionMask:int, maxTime:Number, filter:§_-jn§, result:§_-jr§) : Boolean
|
||||
{
|
||||
var tankPhysicsEntry:name_406 = null;
|
||||
var body:name_186 = null;
|
||||
var aabb:name_334 = null;
|
||||
var collisionPrimitiveListItem:name_380 = null;
|
||||
var primitive:name_276 = null;
|
||||
var tankPhysicsEntry:§_-YY§ = null;
|
||||
var body:§_-BV§ = null;
|
||||
var aabb:§_-FW§ = null;
|
||||
var collisionPrimitiveListItem:§_-4q§ = null;
|
||||
var primitive:§_-Nh§ = null;
|
||||
var t:Number = NaN;
|
||||
var xx:Number = origin.x + dir.x * maxTime;
|
||||
var yy:Number = origin.y + dir.y * maxTime;
|
||||
@@ -519,11 +519,11 @@ package package_54
|
||||
this._rayAABB.maxZ = zz;
|
||||
}
|
||||
var minTime:Number = maxTime + 1;
|
||||
for(var i:int = 0; i < this.var_593; i++)
|
||||
for(var i:int = 0; i < this.§_-LK§; i++)
|
||||
{
|
||||
tankPhysicsEntry = this.var_591[i];
|
||||
tankPhysicsEntry = this.§_-Wj§[i];
|
||||
body = tankPhysicsEntry.body;
|
||||
if(!(filter != null && !filter.name_493(body.collisionPrimitives.head.primitive)))
|
||||
if(!(filter != null && !filter.§_-0w§(body.collisionPrimitives.head.primitive)))
|
||||
{
|
||||
aabb = body.aabb;
|
||||
if(!(this._rayAABB.maxX < aabb.minX || this._rayAABB.minX > aabb.maxX || this._rayAABB.maxY < aabb.minY || this._rayAABB.minY > aabb.maxY || this._rayAABB.maxZ < aabb.minZ || this._rayAABB.minZ > aabb.maxZ))
|
||||
@@ -544,14 +544,14 @@ package package_54
|
||||
}
|
||||
else
|
||||
{
|
||||
t = Number(primitive.raycast(origin,dir,this.threshold,this.var_594));
|
||||
t = Number(primitive.raycast(origin,dir,this.threshold,this.§_-k8§));
|
||||
if(t > 0 && t < minTime)
|
||||
{
|
||||
minTime = t;
|
||||
result.primitive = primitive;
|
||||
result.normal.x = this.var_594.x;
|
||||
result.normal.y = this.var_594.y;
|
||||
result.normal.z = this.var_594.z;
|
||||
result.normal.x = this.§_-k8§.x;
|
||||
result.normal.y = this.§_-k8§.y;
|
||||
result.normal.z = this.§_-k8§.z;
|
||||
}
|
||||
collisionPrimitiveListItem = collisionPrimitiveListItem.next;
|
||||
}
|
||||
@@ -571,7 +571,7 @@ package package_54
|
||||
return true;
|
||||
}
|
||||
|
||||
private function method_247(origin:name_145, dir:name_145, bb:name_334, time:MinMax) : Boolean
|
||||
private function §_-oL§(origin:§_-bj§, dir:§_-bj§, bb:§_-FW§, time:MinMax) : Boolean
|
||||
{
|
||||
var t1:Number = NaN;
|
||||
var t2:Number = NaN;
|
||||
@@ -648,15 +648,15 @@ package package_54
|
||||
return true;
|
||||
}
|
||||
|
||||
private function method_236(node:name_481, origin:name_145, localOrigin:name_145, dir:name_145, collisionMask:int, t1:Number, t2:Number, filter:name_488, result:name_189) : Boolean
|
||||
private function §_-NC§(node:§_-oZ§, origin:§_-bj§, localOrigin:§_-bj§, dir:§_-bj§, collisionMask:int, t1:Number, t2:Number, filter:§_-jn§, result:§_-jr§) : Boolean
|
||||
{
|
||||
var splitTime:Number = NaN;
|
||||
var currChildNode:name_481 = null;
|
||||
var currChildNode:§_-oZ§ = null;
|
||||
var intersects:Boolean = false;
|
||||
var splitNode:name_481 = null;
|
||||
var splitNode:§_-oZ§ = null;
|
||||
var i:int = 0;
|
||||
var primitive:name_276 = null;
|
||||
if(node.indices != null && this.method_245(origin,dir,collisionMask,this.var_592.name_490,node.indices,filter,result))
|
||||
var primitive:§_-Nh§ = null;
|
||||
if(node.indices != null && this.§_-FH§(origin,dir,collisionMask,this.§_-bw§.§_-8A§,node.indices,filter,result))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -675,7 +675,7 @@ package package_54
|
||||
{
|
||||
splitTime = (node.coord - origin.x) / dir.x;
|
||||
}
|
||||
currChildNode = localOrigin.x < node.coord ? node.name_483 : node.name_484;
|
||||
currChildNode = localOrigin.x < node.coord ? node.§_-Gm§ : node.§_-75§;
|
||||
break;
|
||||
case 1:
|
||||
if(dir.y > -this.threshold && dir.y < this.threshold)
|
||||
@@ -686,7 +686,7 @@ package package_54
|
||||
{
|
||||
splitTime = (node.coord - origin.y) / dir.y;
|
||||
}
|
||||
currChildNode = localOrigin.y < node.coord ? node.name_483 : node.name_484;
|
||||
currChildNode = localOrigin.y < node.coord ? node.§_-Gm§ : node.§_-75§;
|
||||
break;
|
||||
case 2:
|
||||
if(dir.z > -this.threshold && dir.z < this.threshold)
|
||||
@@ -697,35 +697,35 @@ package package_54
|
||||
{
|
||||
splitTime = (node.coord - origin.z) / dir.z;
|
||||
}
|
||||
currChildNode = localOrigin.z < node.coord ? node.name_483 : node.name_484;
|
||||
currChildNode = localOrigin.z < node.coord ? node.§_-Gm§ : node.§_-75§;
|
||||
}
|
||||
if(splitTime < t1 || splitTime > t2)
|
||||
{
|
||||
return this.method_236(currChildNode,origin,localOrigin,dir,collisionMask,t1,t2,filter,result);
|
||||
return this.§_-NC§(currChildNode,origin,localOrigin,dir,collisionMask,t1,t2,filter,result);
|
||||
}
|
||||
intersects = this.method_236(currChildNode,origin,localOrigin,dir,collisionMask,t1,splitTime,filter,result);
|
||||
intersects = this.§_-NC§(currChildNode,origin,localOrigin,dir,collisionMask,t1,splitTime,filter,result);
|
||||
if(intersects)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
this.var_590.x = origin.x + splitTime * dir.x;
|
||||
this.var_590.y = origin.y + splitTime * dir.y;
|
||||
this.var_590.z = origin.z + splitTime * dir.z;
|
||||
if(node.name_487 != null)
|
||||
this.§_-0q§.x = origin.x + splitTime * dir.x;
|
||||
this.§_-0q§.y = origin.y + splitTime * dir.y;
|
||||
this.§_-0q§.z = origin.z + splitTime * dir.z;
|
||||
if(node.§_-da§ != null)
|
||||
{
|
||||
splitNode = node.name_487.name_486;
|
||||
splitNode = node.§_-da§.§_-5H§;
|
||||
while(splitNode != null && splitNode.axis != -1)
|
||||
{
|
||||
switch(splitNode.axis)
|
||||
{
|
||||
case 0:
|
||||
splitNode = this.var_590.x < splitNode.coord ? splitNode.name_483 : splitNode.name_484;
|
||||
splitNode = this.§_-0q§.x < splitNode.coord ? splitNode.§_-Gm§ : splitNode.§_-75§;
|
||||
break;
|
||||
case 1:
|
||||
splitNode = this.var_590.y < splitNode.coord ? splitNode.name_483 : splitNode.name_484;
|
||||
splitNode = this.§_-0q§.y < splitNode.coord ? splitNode.§_-Gm§ : splitNode.§_-75§;
|
||||
break;
|
||||
case 2:
|
||||
splitNode = this.var_590.z < splitNode.coord ? splitNode.name_483 : splitNode.name_484;
|
||||
splitNode = this.§_-0q§.z < splitNode.coord ? splitNode.§_-Gm§ : splitNode.§_-75§;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -733,15 +733,15 @@ package package_54
|
||||
{
|
||||
for(i = splitNode.indices.length - 1; i >= 0; )
|
||||
{
|
||||
primitive = this.var_592.name_490[splitNode.indices[i]];
|
||||
primitive = this.§_-bw§.§_-8A§[splitNode.indices[i]];
|
||||
if((primitive.collisionGroup & collisionMask) != 0)
|
||||
{
|
||||
if(!(filter != null && !filter.name_493(primitive)))
|
||||
if(!(filter != null && !filter.§_-0w§(primitive)))
|
||||
{
|
||||
result.t = primitive.raycast(origin,dir,this.threshold,result.normal);
|
||||
if(result.t >= 0)
|
||||
{
|
||||
result.position.copy(this.var_590);
|
||||
result.position.copy(this.§_-0q§);
|
||||
result.primitive = primitive;
|
||||
return true;
|
||||
}
|
||||
@@ -751,12 +751,12 @@ package package_54
|
||||
}
|
||||
}
|
||||
}
|
||||
return this.method_236(currChildNode == node.name_483 ? node.name_484 : node.name_483,origin,this.var_590,dir,collisionMask,splitTime,t2,filter,result);
|
||||
return this.§_-NC§(currChildNode == node.§_-Gm§ ? node.§_-75§ : node.§_-Gm§,origin,this.§_-0q§,dir,collisionMask,splitTime,t2,filter,result);
|
||||
}
|
||||
|
||||
private function method_245(origin:name_145, dir:name_145, collisionMask:int, primitives:Vector.<name_276>, indices:Vector.<int>, filter:name_488, intersection:name_189) : Boolean
|
||||
private function §_-FH§(origin:§_-bj§, dir:§_-bj§, collisionMask:int, primitives:Vector.<§_-Nh§>, indices:Vector.<int>, filter:§_-jn§, intersection:§_-jr§) : Boolean
|
||||
{
|
||||
var primitive:name_276 = null;
|
||||
var primitive:§_-Nh§ = null;
|
||||
var t:Number = NaN;
|
||||
var pnum:int = int(indices.length);
|
||||
var minTime:Number = 1e+308;
|
||||
@@ -765,16 +765,16 @@ package package_54
|
||||
primitive = primitives[indices[i]];
|
||||
if((primitive.collisionGroup & collisionMask) != 0)
|
||||
{
|
||||
if(!(filter != null && !filter.name_493(primitive)))
|
||||
if(!(filter != null && !filter.§_-0w§(primitive)))
|
||||
{
|
||||
t = Number(primitive.raycast(origin,dir,this.threshold,this.var_594));
|
||||
t = Number(primitive.raycast(origin,dir,this.threshold,this.§_-k8§));
|
||||
if(t > 0 && t < minTime)
|
||||
{
|
||||
minTime = t;
|
||||
intersection.primitive = primitive;
|
||||
intersection.normal.x = this.var_594.x;
|
||||
intersection.normal.y = this.var_594.y;
|
||||
intersection.normal.z = this.var_594.z;
|
||||
intersection.normal.x = this.§_-k8§.x;
|
||||
intersection.normal.y = this.§_-k8§.y;
|
||||
intersection.normal.z = this.§_-k8§.z;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -791,15 +791,15 @@ package package_54
|
||||
return true;
|
||||
}
|
||||
|
||||
private function method_248(body1:name_186, body2:name_186, contact:name_482) : name_482
|
||||
private function §_-Yu§(body1:§_-BV§, body2:§_-BV§, contact:§_-6h§) : §_-6h§
|
||||
{
|
||||
return this.method_246(body1.collisionPrimitives,body2.collisionPrimitives,contact);
|
||||
return this.§_-bO§(body1.collisionPrimitives,body2.collisionPrimitives,contact);
|
||||
}
|
||||
|
||||
private function method_246(primitives1:name_489, primitives2:name_489, contact:name_482) : name_482
|
||||
private function §_-bO§(primitives1:§_-G2§, primitives2:§_-G2§, contact:§_-6h§) : §_-6h§
|
||||
{
|
||||
var item2:name_380 = null;
|
||||
for(var item1:name_380 = primitives1.head; item1 != null; )
|
||||
var item2:§_-4q§ = null;
|
||||
for(var item1:§_-4q§ = primitives1.head; item1 != null; )
|
||||
{
|
||||
for(item2 = primitives2.head; item2 != null; )
|
||||
{
|
||||
@@ -1,21 +1,21 @@
|
||||
package package_80
|
||||
package §_-pe§
|
||||
{
|
||||
import package_38.Matrix4;
|
||||
import package_38.name_145;
|
||||
import package_51.name_276;
|
||||
import package_58.name_334;
|
||||
import §_-1e§.§_-Nh§;
|
||||
import §_-KA§.§_-FW§;
|
||||
import §_-nl§.Matrix4;
|
||||
import §_-nl§.§_-bj§;
|
||||
|
||||
public class name_311 extends name_276
|
||||
public class §_-m3§ extends §_-Nh§
|
||||
{
|
||||
public var hs:name_145 = new name_145();
|
||||
public var hs:§_-bj§ = new §_-bj§();
|
||||
|
||||
public function name_311(hs:name_145, collisionGroup:int, collisionMask:int)
|
||||
public function §_-m3§(hs:§_-bj§, collisionGroup:int, collisionMask:int)
|
||||
{
|
||||
super(BOX,collisionGroup,collisionMask);
|
||||
this.hs.copy(hs);
|
||||
}
|
||||
|
||||
override public function calculateAABB() : name_334
|
||||
override public function calculateAABB() : §_-FW§
|
||||
{
|
||||
var t:Matrix4 = null;
|
||||
var xx:Number = NaN;
|
||||
@@ -46,9 +46,9 @@ package package_80
|
||||
return aabb;
|
||||
}
|
||||
|
||||
override public function copyFrom(source:name_276) : name_276
|
||||
override public function copyFrom(source:§_-Nh§) : §_-Nh§
|
||||
{
|
||||
var box:name_311 = source as name_311;
|
||||
var box:§_-m3§ = source as §_-m3§;
|
||||
if(box == null)
|
||||
{
|
||||
return this;
|
||||
@@ -58,12 +58,12 @@ package package_80
|
||||
return this;
|
||||
}
|
||||
|
||||
override protected function createPrimitive() : name_276
|
||||
override protected function createPrimitive() : §_-Nh§
|
||||
{
|
||||
return new name_311(this.hs,collisionGroup,collisionMask);
|
||||
return new §_-m3§(this.hs,collisionGroup,collisionMask);
|
||||
}
|
||||
|
||||
override public function raycast(origin:name_145, vector:name_145, epsilon:Number, normal:name_145) : Number
|
||||
override public function raycast(origin:§_-bj§, vector:§_-bj§, epsilon:Number, normal:§_-bj§) : Number
|
||||
{
|
||||
var t1:Number = NaN;
|
||||
var t2:Number = NaN;
|
||||
@@ -1,81 +1,81 @@
|
||||
package package_84
|
||||
package §while§
|
||||
{
|
||||
import package_38.Matrix4;
|
||||
import package_38.name_145;
|
||||
import package_51.name_276;
|
||||
import package_61.name_482;
|
||||
import package_61.name_571;
|
||||
import package_80.name_311;
|
||||
import package_80.name_570;
|
||||
import §_-1e§.§_-Nh§;
|
||||
import §_-US§.§_-6h§;
|
||||
import §_-US§.§_-cR§;
|
||||
import §_-nl§.Matrix4;
|
||||
import §_-nl§.§_-bj§;
|
||||
import §_-pe§.§_-Pr§;
|
||||
import §_-pe§.§_-m3§;
|
||||
|
||||
public class name_497 extends class_35
|
||||
public class §_-hu§ extends §_-dj§
|
||||
{
|
||||
public var epsilon:Number = 0.001;
|
||||
|
||||
private var var_675:int;
|
||||
private var §_-Wt§:int;
|
||||
|
||||
private var var_676:Number;
|
||||
private var §_-hK§:Number;
|
||||
|
||||
private var toBox:name_145 = new name_145();
|
||||
private var toBox:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var axis:name_145 = new name_145();
|
||||
private var axis:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var var_682:name_145 = new name_145();
|
||||
private var §_-VZ§:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var axis10:name_145 = new name_145();
|
||||
private var axis10:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var axis11:name_145 = new name_145();
|
||||
private var axis11:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var axis12:name_145 = new name_145();
|
||||
private var axis12:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var axis20:name_145 = new name_145();
|
||||
private var axis20:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var axis21:name_145 = new name_145();
|
||||
private var axis21:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var axis22:name_145 = new name_145();
|
||||
private var axis22:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var points1:Vector.<name_145> = new Vector.<name_145>(8,true);
|
||||
private var points1:Vector.<§_-bj§> = new Vector.<§_-bj§>(8,true);
|
||||
|
||||
private var points2:Vector.<name_145> = new Vector.<name_145>(8,true);
|
||||
private var points2:Vector.<§_-bj§> = new Vector.<§_-bj§>(8,true);
|
||||
|
||||
public function name_497()
|
||||
public function §_-hu§()
|
||||
{
|
||||
super();
|
||||
for(var i:int = 0; i < 8; i++)
|
||||
{
|
||||
this.points1[i] = new name_145();
|
||||
this.points2[i] = new name_145();
|
||||
this.points1[i] = new §_-bj§();
|
||||
this.points2[i] = new §_-bj§();
|
||||
}
|
||||
}
|
||||
|
||||
override public function getContact(prim1:name_276, prim2:name_276, contact:name_482) : Boolean
|
||||
override public function getContact(prim1:§_-Nh§, prim2:§_-Nh§, contact:§_-6h§) : Boolean
|
||||
{
|
||||
var box:name_311 = null;
|
||||
var box:§_-m3§ = null;
|
||||
if(!this.haveCollision(prim1,prim2))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
var tri:name_570 = prim1 as name_570;
|
||||
var tri:§_-Pr§ = prim1 as §_-Pr§;
|
||||
if(tri == null)
|
||||
{
|
||||
box = name_311(prim1);
|
||||
tri = name_570(prim2);
|
||||
box = §_-m3§(prim1);
|
||||
tri = §_-Pr§(prim2);
|
||||
}
|
||||
else
|
||||
{
|
||||
box = name_311(prim2);
|
||||
box = §_-m3§(prim2);
|
||||
}
|
||||
if(this.var_675 < 4)
|
||||
if(this.§_-Wt§ < 4)
|
||||
{
|
||||
if(!this.method_341(box,tri,this.toBox,this.var_675,contact))
|
||||
if(!this.§_-NV§(box,tri,this.toBox,this.§_-Wt§,contact))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.var_675 -= 4;
|
||||
if(!this.method_338(box,tri,this.toBox,this.var_675 % 3,int(this.var_675 / 3),contact))
|
||||
this.§_-Wt§ -= 4;
|
||||
if(!this.§_-og§(box,tri,this.toBox,this.§_-Wt§ % 3,int(this.§_-Wt§ / 3),contact))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -91,53 +91,53 @@ package package_84
|
||||
return true;
|
||||
}
|
||||
|
||||
override public function haveCollision(prim1:name_276, prim2:name_276) : Boolean
|
||||
override public function haveCollision(prim1:§_-Nh§, prim2:§_-Nh§) : Boolean
|
||||
{
|
||||
var tri:name_570 = null;
|
||||
var box:name_311 = null;
|
||||
var tri:§_-Pr§ = null;
|
||||
var box:§_-m3§ = null;
|
||||
var triTransform:Matrix4 = null;
|
||||
var v:name_145 = null;
|
||||
tri = prim1 as name_570;
|
||||
var v:§_-bj§ = null;
|
||||
tri = prim1 as §_-Pr§;
|
||||
if(tri == null)
|
||||
{
|
||||
box = name_311(prim1);
|
||||
tri = name_570(prim2);
|
||||
box = §_-m3§(prim1);
|
||||
tri = §_-Pr§(prim2);
|
||||
}
|
||||
else
|
||||
{
|
||||
box = name_311(prim2);
|
||||
box = §_-m3§(prim2);
|
||||
}
|
||||
var boxTransform:Matrix4 = box.transform;
|
||||
triTransform = tri.transform;
|
||||
this.toBox.x = boxTransform.d - triTransform.d;
|
||||
this.toBox.y = boxTransform.h - triTransform.h;
|
||||
this.toBox.z = boxTransform.l - triTransform.l;
|
||||
this.var_676 = 1e+308;
|
||||
this.§_-hK§ = 1e+308;
|
||||
this.axis.x = triTransform.c;
|
||||
this.axis.y = triTransform.g;
|
||||
this.axis.z = triTransform.k;
|
||||
if(!this.method_335(box,tri,this.axis,0,this.toBox))
|
||||
if(!this.§_-mG§(box,tri,this.axis,0,this.toBox))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
this.axis10.x = boxTransform.a;
|
||||
this.axis10.y = boxTransform.e;
|
||||
this.axis10.z = boxTransform.i;
|
||||
if(!this.method_335(box,tri,this.axis10,1,this.toBox))
|
||||
if(!this.§_-mG§(box,tri,this.axis10,1,this.toBox))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
this.axis11.x = boxTransform.b;
|
||||
this.axis11.y = boxTransform.f;
|
||||
this.axis11.z = boxTransform.j;
|
||||
if(!this.method_335(box,tri,this.axis11,2,this.toBox))
|
||||
if(!this.§_-mG§(box,tri,this.axis11,2,this.toBox))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
this.axis12.x = boxTransform.c;
|
||||
this.axis12.y = boxTransform.g;
|
||||
this.axis12.z = boxTransform.k;
|
||||
if(!this.method_335(box,tri,this.axis12,3,this.toBox))
|
||||
if(!this.§_-mG§(box,tri,this.axis12,3,this.toBox))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -145,15 +145,15 @@ package package_84
|
||||
this.axis20.x = triTransform.a * v.x + triTransform.b * v.y + triTransform.c * v.z;
|
||||
this.axis20.y = triTransform.e * v.x + triTransform.f * v.y + triTransform.g * v.z;
|
||||
this.axis20.z = triTransform.i * v.x + triTransform.j * v.y + triTransform.k * v.z;
|
||||
if(!this.method_334(box,tri,this.axis10,this.axis20,4,this.toBox))
|
||||
if(!this.§_-kt§(box,tri,this.axis10,this.axis20,4,this.toBox))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(!this.method_334(box,tri,this.axis11,this.axis20,5,this.toBox))
|
||||
if(!this.§_-kt§(box,tri,this.axis11,this.axis20,5,this.toBox))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(!this.method_334(box,tri,this.axis12,this.axis20,6,this.toBox))
|
||||
if(!this.§_-kt§(box,tri,this.axis12,this.axis20,6,this.toBox))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -161,15 +161,15 @@ package package_84
|
||||
this.axis21.x = triTransform.a * v.x + triTransform.b * v.y + triTransform.c * v.z;
|
||||
this.axis21.y = triTransform.e * v.x + triTransform.f * v.y + triTransform.g * v.z;
|
||||
this.axis21.z = triTransform.i * v.x + triTransform.j * v.y + triTransform.k * v.z;
|
||||
if(!this.method_334(box,tri,this.axis10,this.axis21,7,this.toBox))
|
||||
if(!this.§_-kt§(box,tri,this.axis10,this.axis21,7,this.toBox))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(!this.method_334(box,tri,this.axis11,this.axis21,8,this.toBox))
|
||||
if(!this.§_-kt§(box,tri,this.axis11,this.axis21,8,this.toBox))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(!this.method_334(box,tri,this.axis12,this.axis21,9,this.toBox))
|
||||
if(!this.§_-kt§(box,tri,this.axis12,this.axis21,9,this.toBox))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -177,37 +177,37 @@ package package_84
|
||||
this.axis22.x = triTransform.a * v.x + triTransform.b * v.y + triTransform.c * v.z;
|
||||
this.axis22.y = triTransform.e * v.x + triTransform.f * v.y + triTransform.g * v.z;
|
||||
this.axis22.z = triTransform.i * v.x + triTransform.j * v.y + triTransform.k * v.z;
|
||||
if(!this.method_334(box,tri,this.axis10,this.axis22,10,this.toBox))
|
||||
if(!this.§_-kt§(box,tri,this.axis10,this.axis22,10,this.toBox))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(!this.method_334(box,tri,this.axis11,this.axis22,11,this.toBox))
|
||||
if(!this.§_-kt§(box,tri,this.axis11,this.axis22,11,this.toBox))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(!this.method_334(box,tri,this.axis12,this.axis22,12,this.toBox))
|
||||
if(!this.§_-kt§(box,tri,this.axis12,this.axis22,12,this.toBox))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
private function method_335(box:name_311, tri:name_570, axis:name_145, axisIndex:int, toBox:name_145) : Boolean
|
||||
private function §_-mG§(box:§_-m3§, tri:§_-Pr§, axis:§_-bj§, axisIndex:int, toBox:§_-bj§) : Boolean
|
||||
{
|
||||
var overlap:Number = this.method_337(box,tri,axis,toBox);
|
||||
var overlap:Number = this.§true§(box,tri,axis,toBox);
|
||||
if(overlap < -this.epsilon)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(overlap + this.epsilon < this.var_676)
|
||||
if(overlap + this.epsilon < this.§_-hK§)
|
||||
{
|
||||
this.var_676 = overlap;
|
||||
this.var_675 = axisIndex;
|
||||
this.§_-hK§ = overlap;
|
||||
this.§_-Wt§ = axisIndex;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
private function method_334(box:name_311, tri:name_570, axis1:name_145, axis2:name_145, axisIndex:int, toBox:name_145) : Boolean
|
||||
private function §_-kt§(box:§_-m3§, tri:§_-Pr§, axis1:§_-bj§, axis2:§_-bj§, axisIndex:int, toBox:§_-bj§) : Boolean
|
||||
{
|
||||
var k:Number = NaN;
|
||||
this.axis.x = axis1.y * axis2.z - axis1.z * axis2.y;
|
||||
@@ -222,20 +222,20 @@ package package_84
|
||||
this.axis.x *= k;
|
||||
this.axis.y *= k;
|
||||
this.axis.z *= k;
|
||||
var overlap:Number = this.method_337(box,tri,this.axis,toBox);
|
||||
var overlap:Number = this.§true§(box,tri,this.axis,toBox);
|
||||
if(overlap < -this.epsilon)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(overlap + this.epsilon < this.var_676)
|
||||
if(overlap + this.epsilon < this.§_-hK§)
|
||||
{
|
||||
this.var_676 = overlap;
|
||||
this.var_675 = axisIndex;
|
||||
this.§_-hK§ = overlap;
|
||||
this.§_-Wt§ = axisIndex;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
private function method_337(box:name_311, tri:name_570, axis:name_145, toBox:name_145) : Number
|
||||
private function §true§(box:§_-m3§, tri:§_-Pr§, axis:§_-bj§, toBox:§_-bj§) : Number
|
||||
{
|
||||
var t:Matrix4 = box.transform;
|
||||
var projection:Number = (t.a * axis.x + t.e * axis.y + t.i * axis.z) * box.hs.x;
|
||||
@@ -294,34 +294,34 @@ package package_84
|
||||
return projection + max - vectorProjection;
|
||||
}
|
||||
|
||||
private function method_341(box:name_311, tri:name_570, toBox:name_145, faceAxisIndex:int, contact:name_482) : Boolean
|
||||
private function §_-NV§(box:§_-m3§, tri:§_-Pr§, toBox:§_-bj§, faceAxisIndex:int, contact:§_-6h§) : Boolean
|
||||
{
|
||||
if(faceAxisIndex == 0)
|
||||
{
|
||||
return this.method_340(box,tri,toBox,contact);
|
||||
return this.§_-hz§(box,tri,toBox,contact);
|
||||
}
|
||||
return this.method_342(box,tri,toBox,faceAxisIndex,contact);
|
||||
return this.§_-C-§(box,tri,toBox,faceAxisIndex,contact);
|
||||
}
|
||||
|
||||
private function method_340(box:name_311, tri:name_570, toBox:name_145, contact:name_482) : Boolean
|
||||
private function §_-hz§(box:§_-m3§, tri:§_-Pr§, toBox:§_-bj§, contact:§_-6h§) : Boolean
|
||||
{
|
||||
var cp:name_571 = null;
|
||||
var cp:§_-cR§ = null;
|
||||
var dot:Number = NaN;
|
||||
var absDot:Number = NaN;
|
||||
var v:name_145 = null;
|
||||
var cpPos:name_145 = null;
|
||||
var r:name_145 = null;
|
||||
var v:§_-bj§ = null;
|
||||
var cpPos:§_-bj§ = null;
|
||||
var r:§_-bj§ = null;
|
||||
var boxTransform:Matrix4 = box.transform;
|
||||
var triTransform:Matrix4 = tri.transform;
|
||||
this.var_682.x = triTransform.c;
|
||||
this.var_682.y = triTransform.g;
|
||||
this.var_682.z = triTransform.k;
|
||||
var over:Boolean = toBox.x * this.var_682.x + toBox.y * this.var_682.y + toBox.z * this.var_682.z > 0;
|
||||
this.§_-VZ§.x = triTransform.c;
|
||||
this.§_-VZ§.y = triTransform.g;
|
||||
this.§_-VZ§.z = triTransform.k;
|
||||
var over:Boolean = toBox.x * this.§_-VZ§.x + toBox.y * this.§_-VZ§.y + toBox.z * this.§_-VZ§.z > 0;
|
||||
if(!over)
|
||||
{
|
||||
this.var_682.x = -this.var_682.x;
|
||||
this.var_682.y = -this.var_682.y;
|
||||
this.var_682.z = -this.var_682.z;
|
||||
this.§_-VZ§.x = -this.§_-VZ§.x;
|
||||
this.§_-VZ§.y = -this.§_-VZ§.y;
|
||||
this.§_-VZ§.z = -this.§_-VZ§.z;
|
||||
}
|
||||
var incFaceAxisIdx:int = 0;
|
||||
var incAxisDot:Number = 0;
|
||||
@@ -329,7 +329,7 @@ package package_84
|
||||
for(var axisIdx:int = 0; axisIdx < 3; )
|
||||
{
|
||||
boxTransform.getAxis(axisIdx,this.axis);
|
||||
dot = this.axis.x * this.var_682.x + this.axis.y * this.var_682.y + this.axis.z * this.var_682.z;
|
||||
dot = this.axis.x * this.§_-VZ§.x + this.axis.y * this.§_-VZ§.y + this.axis.z * this.§_-VZ§.z;
|
||||
absDot = dot < 0 ? -dot : dot;
|
||||
if(absDot > maxDot)
|
||||
{
|
||||
@@ -340,17 +340,17 @@ package package_84
|
||||
axisIdx++;
|
||||
}
|
||||
var negativeFace:Boolean = incAxisDot > 0;
|
||||
name_580(box.hs,incFaceAxisIdx,negativeFace,this.points1);
|
||||
boxTransform.name_579(this.points1,this.points2,4);
|
||||
triTransform.name_578(this.points2,this.points1,4);
|
||||
var pnum:int = this.method_344(tri);
|
||||
contact.name_506 = 0;
|
||||
§_-ho§(box.hs,incFaceAxisIdx,negativeFace,this.points1);
|
||||
boxTransform.§_-ZK§(this.points1,this.points2,4);
|
||||
triTransform.§_-iX§(this.points2,this.points1,4);
|
||||
var pnum:int = this.§_-MQ§(tri);
|
||||
contact.§_-P3§ = 0;
|
||||
for(var i:int = 0; i < pnum; )
|
||||
{
|
||||
v = this.points2[i];
|
||||
if(over && v.z < 0 || !over && v.z > 0)
|
||||
{
|
||||
cp = contact.points[contact.name_506++];
|
||||
cp = contact.points[contact.§_-P3§++];
|
||||
cpPos = cp.pos;
|
||||
cpPos.x = triTransform.a * v.x + triTransform.b * v.y + triTransform.c * v.z + triTransform.d;
|
||||
cpPos.y = triTransform.e * v.x + triTransform.f * v.y + triTransform.g * v.z + triTransform.h;
|
||||
@@ -367,30 +367,30 @@ package package_84
|
||||
}
|
||||
i++;
|
||||
}
|
||||
contact.normal.x = this.var_682.x;
|
||||
contact.normal.y = this.var_682.y;
|
||||
contact.normal.z = this.var_682.z;
|
||||
contact.normal.x = this.§_-VZ§.x;
|
||||
contact.normal.y = this.§_-VZ§.y;
|
||||
contact.normal.z = this.§_-VZ§.z;
|
||||
return true;
|
||||
}
|
||||
|
||||
private function method_342(box:name_311, tri:name_570, toBox:name_145, faceAxisIdx:int, contact:name_482) : Boolean
|
||||
private function §_-C-§(box:§_-m3§, tri:§_-Pr§, toBox:§_-bj§, faceAxisIdx:int, contact:§_-6h§) : Boolean
|
||||
{
|
||||
var penetration:Number = NaN;
|
||||
var cp:name_571 = null;
|
||||
var cpPos:name_145 = null;
|
||||
var r:name_145 = null;
|
||||
var cp:§_-cR§ = null;
|
||||
var cpPos:§_-bj§ = null;
|
||||
var r:§_-bj§ = null;
|
||||
faceAxisIdx--;
|
||||
var boxTransform:Matrix4 = box.transform;
|
||||
var triTransform:Matrix4 = tri.transform;
|
||||
boxTransform.getAxis(faceAxisIdx,this.var_682);
|
||||
var negativeFace:Boolean = toBox.x * this.var_682.x + toBox.y * this.var_682.y + toBox.z * this.var_682.z > 0;
|
||||
boxTransform.getAxis(faceAxisIdx,this.§_-VZ§);
|
||||
var negativeFace:Boolean = toBox.x * this.§_-VZ§.x + toBox.y * this.§_-VZ§.y + toBox.z * this.§_-VZ§.z > 0;
|
||||
if(!negativeFace)
|
||||
{
|
||||
this.var_682.x = -this.var_682.x;
|
||||
this.var_682.y = -this.var_682.y;
|
||||
this.var_682.z = -this.var_682.z;
|
||||
this.§_-VZ§.x = -this.§_-VZ§.x;
|
||||
this.§_-VZ§.y = -this.§_-VZ§.y;
|
||||
this.§_-VZ§.z = -this.§_-VZ§.z;
|
||||
}
|
||||
var v:name_145 = this.points1[0];
|
||||
var v:§_-bj§ = this.points1[0];
|
||||
v.x = tri.v0.x;
|
||||
v.y = tri.v0.y;
|
||||
v.z = tri.v0.z;
|
||||
@@ -402,17 +402,17 @@ package package_84
|
||||
v.x = tri.v2.x;
|
||||
v.y = tri.v2.y;
|
||||
v.z = tri.v2.z;
|
||||
triTransform.name_579(this.points1,this.points2,3);
|
||||
boxTransform.name_578(this.points2,this.points1,3);
|
||||
var pnum:int = this.method_343(box.hs,faceAxisIdx);
|
||||
contact.name_506 = 0;
|
||||
triTransform.§_-ZK§(this.points1,this.points2,3);
|
||||
boxTransform.§_-iX§(this.points2,this.points1,3);
|
||||
var pnum:int = this.§_-kk§(box.hs,faceAxisIdx);
|
||||
contact.§_-P3§ = 0;
|
||||
for(var i:int = 0; i < pnum; )
|
||||
{
|
||||
v = this.points1[i];
|
||||
penetration = this.method_339(box.hs,v,faceAxisIdx,negativeFace);
|
||||
penetration = this.§_-iN§(box.hs,v,faceAxisIdx,negativeFace);
|
||||
if(penetration > -this.epsilon)
|
||||
{
|
||||
cp = contact.points[contact.name_506++];
|
||||
cp = contact.points[contact.§_-P3§++];
|
||||
cpPos = cp.pos;
|
||||
cpPos.x = boxTransform.a * v.x + boxTransform.b * v.y + boxTransform.c * v.z + boxTransform.d;
|
||||
cpPos.y = boxTransform.e * v.x + boxTransform.f * v.y + boxTransform.g * v.z + boxTransform.h;
|
||||
@@ -429,13 +429,13 @@ package package_84
|
||||
}
|
||||
i++;
|
||||
}
|
||||
contact.normal.x = this.var_682.x;
|
||||
contact.normal.y = this.var_682.y;
|
||||
contact.normal.z = this.var_682.z;
|
||||
contact.normal.x = this.§_-VZ§.x;
|
||||
contact.normal.y = this.§_-VZ§.y;
|
||||
contact.normal.z = this.§_-VZ§.z;
|
||||
return true;
|
||||
}
|
||||
|
||||
private function method_339(hs:name_145, p:name_145, faceAxisIdx:int, negativeFace:Boolean) : Number
|
||||
private function §_-iN§(hs:§_-bj§, p:§_-bj§, faceAxisIdx:int, negativeFace:Boolean) : Number
|
||||
{
|
||||
switch(faceAxisIdx)
|
||||
{
|
||||
@@ -465,96 +465,96 @@ package package_84
|
||||
}
|
||||
}
|
||||
|
||||
private function method_343(hs:name_145, faceAxisIdx:int) : int
|
||||
private function §_-kk§(hs:§_-bj§, faceAxisIdx:int) : int
|
||||
{
|
||||
var pnum:int = 3;
|
||||
switch(faceAxisIdx)
|
||||
{
|
||||
case 0:
|
||||
pnum = int(name_572(-hs.z,pnum,this.points1,this.points2,this.epsilon));
|
||||
pnum = int(§_-Yb§(-hs.z,pnum,this.points1,this.points2,this.epsilon));
|
||||
if(pnum == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
pnum = int(name_573(hs.z,pnum,this.points2,this.points1,this.epsilon));
|
||||
pnum = int(§_-Cg§(hs.z,pnum,this.points2,this.points1,this.epsilon));
|
||||
if(pnum == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
pnum = int(name_575(-hs.y,pnum,this.points1,this.points2,this.epsilon));
|
||||
pnum = int(§_-BG§(-hs.y,pnum,this.points1,this.points2,this.epsilon));
|
||||
if(pnum == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return name_574(hs.y,pnum,this.points2,this.points1,this.epsilon);
|
||||
return §_-Ro§(hs.y,pnum,this.points2,this.points1,this.epsilon);
|
||||
break;
|
||||
case 1:
|
||||
pnum = int(name_572(-hs.z,pnum,this.points1,this.points2,this.epsilon));
|
||||
pnum = int(§_-Yb§(-hs.z,pnum,this.points1,this.points2,this.epsilon));
|
||||
if(pnum == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
pnum = int(name_573(hs.z,pnum,this.points2,this.points1,this.epsilon));
|
||||
pnum = int(§_-Cg§(hs.z,pnum,this.points2,this.points1,this.epsilon));
|
||||
if(pnum == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
pnum = int(name_577(-hs.x,pnum,this.points1,this.points2,this.epsilon));
|
||||
pnum = int(§_-ii§(-hs.x,pnum,this.points1,this.points2,this.epsilon));
|
||||
if(pnum == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return name_576(hs.x,pnum,this.points2,this.points1,this.epsilon);
|
||||
return §_-KZ§(hs.x,pnum,this.points2,this.points1,this.epsilon);
|
||||
break;
|
||||
case 2:
|
||||
pnum = int(name_577(-hs.x,pnum,this.points1,this.points2,this.epsilon));
|
||||
pnum = int(§_-ii§(-hs.x,pnum,this.points1,this.points2,this.epsilon));
|
||||
if(pnum == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
pnum = int(name_576(hs.x,pnum,this.points2,this.points1,this.epsilon));
|
||||
pnum = int(§_-KZ§(hs.x,pnum,this.points2,this.points1,this.epsilon));
|
||||
if(pnum == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
pnum = int(name_575(-hs.y,pnum,this.points1,this.points2,this.epsilon));
|
||||
pnum = int(§_-BG§(-hs.y,pnum,this.points1,this.points2,this.epsilon));
|
||||
if(pnum == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return name_574(hs.y,pnum,this.points2,this.points1,this.epsilon);
|
||||
return §_-Ro§(hs.y,pnum,this.points2,this.points1,this.epsilon);
|
||||
break;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
private function method_344(tri:name_570) : int
|
||||
private function §_-MQ§(tri:§_-Pr§) : int
|
||||
{
|
||||
var vnum:int = 4;
|
||||
vnum = this.method_336(tri.v0,tri.e0,this.points1,vnum,this.points2);
|
||||
vnum = this.§_-NG§(tri.v0,tri.e0,this.points1,vnum,this.points2);
|
||||
if(vnum == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
vnum = this.method_336(tri.v1,tri.e1,this.points2,vnum,this.points1);
|
||||
vnum = this.§_-NG§(tri.v1,tri.e1,this.points2,vnum,this.points1);
|
||||
if(vnum == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return this.method_336(tri.v2,tri.e2,this.points1,vnum,this.points2);
|
||||
return this.§_-NG§(tri.v2,tri.e2,this.points1,vnum,this.points2);
|
||||
}
|
||||
|
||||
private function method_336(linePoint:name_145, lineDir:name_145, verticesIn:Vector.<name_145>, vnum:int, verticesOut:Vector.<name_145>) : int
|
||||
private function §_-NG§(linePoint:§_-bj§, lineDir:§_-bj§, verticesIn:Vector.<§_-bj§>, vnum:int, verticesOut:Vector.<§_-bj§>) : int
|
||||
{
|
||||
var t:Number = NaN;
|
||||
var v:name_145 = null;
|
||||
var v2:name_145 = null;
|
||||
var v:§_-bj§ = null;
|
||||
var v2:§_-bj§ = null;
|
||||
var offset2:Number = NaN;
|
||||
var nx:Number = -lineDir.y;
|
||||
var ny:Number = Number(lineDir.x);
|
||||
var offset:Number = linePoint.x * nx + linePoint.y * ny;
|
||||
var v1:name_145 = verticesIn[int(vnum - 1)];
|
||||
var v1:§_-bj§ = verticesIn[int(vnum - 1)];
|
||||
var offset1:Number = v1.x * nx + v1.y * ny;
|
||||
var num:int = 0;
|
||||
for(var i:int = 0; i < vnum; i++)
|
||||
@@ -596,7 +596,7 @@ package package_84
|
||||
return num;
|
||||
}
|
||||
|
||||
private function method_338(box:name_311, tri:name_570, toBox:name_145, boxAxisIdx:int, triAxisIdx:int, contact:name_482) : Boolean
|
||||
private function §_-og§(box:§_-m3§, tri:§_-Pr§, toBox:§_-bj§, boxAxisIdx:int, triAxisIdx:int, contact:§_-6h§) : Boolean
|
||||
{
|
||||
var tmpx1:Number = NaN;
|
||||
var tmpy1:Number = NaN;
|
||||
@@ -641,7 +641,7 @@ package package_84
|
||||
var z2:Number = triTransform.i * tmpx2 + triTransform.j * tmpy2 + triTransform.k * tmpz2 + triTransform.l;
|
||||
var boxTransform:Matrix4 = box.transform;
|
||||
boxTransform.getAxis(boxAxisIdx,this.axis10);
|
||||
var v:name_145 = contact.normal;
|
||||
var v:§_-bj§ = contact.normal;
|
||||
v.x = this.axis10.y * this.axis20.z - this.axis10.z * this.axis20.y;
|
||||
v.y = this.axis10.z * this.axis20.x - this.axis10.x * this.axis20.z;
|
||||
v.z = this.axis10.x * this.axis20.y - this.axis10.y * this.axis20.x;
|
||||
@@ -697,14 +697,14 @@ package package_84
|
||||
var c2:Number = this.axis20.x * vx + this.axis20.y * vy + this.axis20.z * vz;
|
||||
var t1:Number = (c2 * k - c1) / det;
|
||||
var t2:Number = (c2 - c1 * k) / det;
|
||||
contact.name_506 = 1;
|
||||
var cp:name_571 = contact.points[0];
|
||||
cp.penetration = this.var_676;
|
||||
contact.§_-P3§ = 1;
|
||||
var cp:§_-cR§ = contact.points[0];
|
||||
cp.penetration = this.§_-hK§;
|
||||
v = cp.pos;
|
||||
v.x = 0.5 * (x1 + this.axis10.x * t1 + x2 + this.axis20.x * t2);
|
||||
v.y = 0.5 * (y1 + this.axis10.y * t1 + y2 + this.axis20.y * t2);
|
||||
v.z = 0.5 * (z1 + this.axis10.z * t1 + z2 + this.axis20.z * t2);
|
||||
var r:name_145 = cp.r1;
|
||||
var r:§_-bj§ = cp.r1;
|
||||
r.x = v.x - boxTransform.d;
|
||||
r.y = v.y - boxTransform.h;
|
||||
r.z = v.z - boxTransform.l;
|
||||
@@ -1,44 +1,44 @@
|
||||
package
|
||||
{
|
||||
import alternativa.engine3d.resources.BitmapTextureResource;
|
||||
import alternativa.engine3d.resources.ExternalTextureResource;
|
||||
import alternativa.engine3d.resources.TextureResource;
|
||||
import flash.display.Bitmap;
|
||||
import flash.display.BitmapData;
|
||||
import flash.display.Shape;
|
||||
import flash.display.Sprite;
|
||||
import flash.display3D.Context3D;
|
||||
import flash.events.Event;
|
||||
import package_21.name_84;
|
||||
import package_21.name_85;
|
||||
import package_21.name_86;
|
||||
|
||||
public class Preloader extends Sprite
|
||||
{
|
||||
private static const EmbedPreloader:Class = name_82;
|
||||
private static const EmbedPreloader:Class = Preloader_EmbedPreloader;
|
||||
|
||||
private static const EmbedPreloaderA:Class = name_81;
|
||||
private static const EmbedPreloaderA:Class = Preloader_EmbedPreloaderA;
|
||||
|
||||
private static const EmbedProgress:Class = name_83;
|
||||
private static const EmbedProgress:Class = Preloader_EmbedProgress;
|
||||
|
||||
private var area:Shape = new Shape();
|
||||
|
||||
private var var_27:Bitmap = new EmbedPreloader();
|
||||
private var §_-1q§:Bitmap = new EmbedPreloader();
|
||||
|
||||
private var var_28:Bitmap = new EmbedPreloaderA();
|
||||
private var §_-Za§:Bitmap = new EmbedPreloaderA();
|
||||
|
||||
private var progress:Bitmap = new EmbedProgress();
|
||||
|
||||
private var context:Context3D;
|
||||
|
||||
public var maps:Vector.<name_85>;
|
||||
public var maps:Vector.<ExternalTextureResource>;
|
||||
|
||||
private var var_31:int;
|
||||
private var §_-dH§:int;
|
||||
|
||||
private var counter:int;
|
||||
|
||||
private var baseURL:String;
|
||||
|
||||
private var var_30:name_86 = new name_84(new BitmapData(1,1,false,8355711));
|
||||
private var §_-m§:TextureResource = new BitmapTextureResource(new BitmapData(1,1,false,8355711));
|
||||
|
||||
private var var_29:Number = 0.09803921568627451;
|
||||
private var §_-UB§:Number = 0.09803921568627451;
|
||||
|
||||
public function Preloader()
|
||||
{
|
||||
@@ -46,61 +46,61 @@ package
|
||||
addChild(this.area);
|
||||
this.area.alpha = 1;
|
||||
this.progress.alpha = 1;
|
||||
this.var_27.alpha = 1;
|
||||
addChild(this.var_27);
|
||||
addChild(this.var_28);
|
||||
this.§_-1q§.alpha = 1;
|
||||
addChild(this.§_-1q§);
|
||||
addChild(this.§_-Za§);
|
||||
addChild(this.progress);
|
||||
addEventListener(Event.ADDED_TO_STAGE,this.method_26);
|
||||
addEventListener(Event.REMOVED_FROM_STAGE,this.method_25);
|
||||
addEventListener(Event.ADDED_TO_STAGE,this.onAddToStage);
|
||||
addEventListener(Event.REMOVED_FROM_STAGE,this.onRemoveFromStage);
|
||||
this.progress.scaleX = 0.025;
|
||||
}
|
||||
|
||||
public function name_68(param1:Number) : void
|
||||
public function setProgress(param1:Number) : void
|
||||
{
|
||||
this.progress.scaleX = param1;
|
||||
if(this.progress.scaleX >= 1)
|
||||
{
|
||||
this.method_23();
|
||||
this.onComplete();
|
||||
}
|
||||
}
|
||||
|
||||
private function method_23() : void
|
||||
private function onComplete() : void
|
||||
{
|
||||
addEventListener(Event.ENTER_FRAME,this.method_15);
|
||||
addEventListener(Event.ENTER_FRAME,this.onEnterFrame);
|
||||
}
|
||||
|
||||
public function method_27(param1:Number) : void
|
||||
public function addProgress(param1:Number) : void
|
||||
{
|
||||
this.progress.scaleX += param1;
|
||||
if(this.progress.scaleX > 0.5)
|
||||
{
|
||||
addEventListener(Event.ENTER_FRAME,this.method_24);
|
||||
addEventListener(Event.ENTER_FRAME,this.onEnterFrameSwitch);
|
||||
}
|
||||
if(this.progress.scaleX >= 1)
|
||||
{
|
||||
this.method_23();
|
||||
this.onComplete();
|
||||
}
|
||||
}
|
||||
|
||||
private function method_26(param1:Event) : void
|
||||
private function onAddToStage(param1:Event) : void
|
||||
{
|
||||
stage.addEventListener(Event.RESIZE,this.method_3);
|
||||
this.method_3();
|
||||
stage.addEventListener(Event.RESIZE,this.onResize);
|
||||
this.onResize();
|
||||
}
|
||||
|
||||
private function method_25(param1:Event) : void
|
||||
private function onRemoveFromStage(param1:Event) : void
|
||||
{
|
||||
stage.removeEventListener(Event.RESIZE,this.method_3);
|
||||
stage.removeEventListener(Event.RESIZE,this.onResize);
|
||||
}
|
||||
|
||||
private function method_15(param1:Event) : void
|
||||
private function onEnterFrame(param1:Event) : void
|
||||
{
|
||||
this.area.alpha -= this.var_29;
|
||||
this.var_27.alpha -= this.var_29;
|
||||
this.progress.alpha -= this.var_29;
|
||||
this.area.alpha -= this.§_-UB§;
|
||||
this.§_-1q§.alpha -= this.§_-UB§;
|
||||
this.progress.alpha -= this.§_-UB§;
|
||||
if(this.area.alpha <= 0)
|
||||
{
|
||||
removeEventListener(Event.ENTER_FRAME,this.method_15);
|
||||
removeEventListener(Event.ENTER_FRAME,this.onEnterFrame);
|
||||
if(parent != null)
|
||||
{
|
||||
parent.removeChild(this);
|
||||
@@ -109,29 +109,29 @@ package
|
||||
}
|
||||
}
|
||||
|
||||
private function method_24(param1:Event) : void
|
||||
private function onEnterFrameSwitch(param1:Event) : void
|
||||
{
|
||||
this.var_28.alpha -= this.var_29 * 1.5;
|
||||
if(this.var_28.alpha <= 0)
|
||||
this.§_-Za§.alpha -= this.§_-UB§ * 1.5;
|
||||
if(this.§_-Za§.alpha <= 0)
|
||||
{
|
||||
removeEventListener(Event.ENTER_FRAME,this.method_24);
|
||||
removeEventListener(Event.ENTER_FRAME,this.onEnterFrameSwitch);
|
||||
}
|
||||
}
|
||||
|
||||
private function method_3(param1:Event = null) : void
|
||||
private function onResize(param1:Event = null) : void
|
||||
{
|
||||
this.area.graphics.clear();
|
||||
this.var_27.x = Math.round(stage.stageWidth / 2 - this.var_27.width / 2);
|
||||
this.var_27.y = Math.round(stage.stageHeight / 2 - this.var_27.height / 2) - 30;
|
||||
this.var_28.x = this.var_27.x;
|
||||
this.var_28.y = this.var_27.y;
|
||||
this.progress.x = this.var_27.x + 2;
|
||||
this.progress.y = this.var_27.y + 221;
|
||||
this.§_-1q§.x = Math.round(stage.stageWidth / 2 - this.§_-1q§.width / 2);
|
||||
this.§_-1q§.y = Math.round(stage.stageHeight / 2 - this.§_-1q§.height / 2) - 30;
|
||||
this.§_-Za§.x = this.§_-1q§.x;
|
||||
this.§_-Za§.y = this.§_-1q§.y;
|
||||
this.progress.x = this.§_-1q§.x + 2;
|
||||
this.progress.y = this.§_-1q§.y + 221;
|
||||
this.area.graphics.beginFill(0);
|
||||
this.area.graphics.drawRect(0,0,this.var_27.x,stage.stageHeight);
|
||||
this.area.graphics.drawRect(this.var_27.x,0,this.var_27.width,this.var_27.y);
|
||||
this.area.graphics.drawRect(this.var_27.x + this.var_27.width,0,stage.stageWidth - this.var_27.width - this.var_27.x,stage.stageHeight);
|
||||
this.area.graphics.drawRect(this.var_27.x,this.var_27.y + this.var_27.height,this.var_27.width,stage.stageHeight - this.var_27.height - this.var_27.y);
|
||||
this.area.graphics.drawRect(0,0,this.§_-1q§.x,stage.stageHeight);
|
||||
this.area.graphics.drawRect(this.§_-1q§.x,0,this.§_-1q§.width,this.§_-1q§.y);
|
||||
this.area.graphics.drawRect(this.§_-1q§.x + this.§_-1q§.width,0,stage.stageWidth - this.§_-1q§.width - this.§_-1q§.x,stage.stageHeight);
|
||||
this.area.graphics.drawRect(this.§_-1q§.x,this.§_-1q§.y + this.§_-1q§.height,this.§_-1q§.width,stage.stageHeight - this.§_-1q§.height - this.§_-1q§.y);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
14
src/Preloader_EmbedPreloader.as
Normal file
14
src/Preloader_EmbedPreloader.as
Normal file
@@ -0,0 +1,14 @@
|
||||
package
|
||||
{
|
||||
import mx.core.BitmapAsset;
|
||||
|
||||
[ExcludeClass]
|
||||
public class Preloader_EmbedPreloader extends BitmapAsset
|
||||
{
|
||||
public function Preloader_EmbedPreloader()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
14
src/Preloader_EmbedPreloaderA.as
Normal file
14
src/Preloader_EmbedPreloaderA.as
Normal file
@@ -0,0 +1,14 @@
|
||||
package
|
||||
{
|
||||
import mx.core.BitmapAsset;
|
||||
|
||||
[ExcludeClass]
|
||||
public class Preloader_EmbedPreloaderA extends BitmapAsset
|
||||
{
|
||||
public function Preloader_EmbedPreloaderA()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
14
src/Preloader_EmbedProgress.as
Normal file
14
src/Preloader_EmbedProgress.as
Normal file
@@ -0,0 +1,14 @@
|
||||
package
|
||||
{
|
||||
import mx.core.BitmapAsset;
|
||||
|
||||
[ExcludeClass]
|
||||
public class Preloader_EmbedProgress extends BitmapAsset
|
||||
{
|
||||
public function Preloader_EmbedProgress()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,33 @@
|
||||
package
|
||||
{
|
||||
import alternativa.ClientConfigurator;
|
||||
import alternativa.engine3d.materials.A3DUtils;
|
||||
import alternativa.engine3d.materials.FogMode;
|
||||
import alternativa.engine3d.materials.TextureFormat;
|
||||
import alternativa.osgi.OSGi;
|
||||
import alternativa.osgi.service.console.IConsole;
|
||||
import alternativa.osgi.service.console.variables.ConsoleVar;
|
||||
import alternativa.osgi.service.console.variables.ConsoleVarFloat;
|
||||
import alternativa.osgi.service.console.variables.ConsoleVarInt;
|
||||
import alternativa.osgi.service.console.variables.ConsoleVarString;
|
||||
import alternativa.protocol.osgi.ProtocolActivator;
|
||||
import alternativa.startup.ConnectionParameters;
|
||||
import alternativa.startup.LibraryInfo;
|
||||
import alternativa.tanks.InitBattleTask;
|
||||
import alternativa.tanks.TankTestTask;
|
||||
import alternativa.tanks.config.Config;
|
||||
import alternativa.tanks.game.GameKernel;
|
||||
import alternativa.tanks.game.camera.AxisIndicator;
|
||||
import alternativa.tanks.game.camera.FreeCameraController;
|
||||
import alternativa.tanks.game.entities.map.MapMaterial;
|
||||
import alternativa.tanks.game.entities.map.VisibleLightMaterial;
|
||||
import alternativa.tanks.game.entities.tank.graphics.materials.GiShadowMaterial;
|
||||
import alternativa.tanks.game.entities.tank.graphics.materials.TankMaterial;
|
||||
import alternativa.tanks.game.entities.tank.graphics.materials.TankMaterial2;
|
||||
import alternativa.tanks.game.entities.tank.graphics.materials.TracksMaterial2;
|
||||
import alternativa.tanks.game.entities.tank.graphics.materials.TreesMaterial;
|
||||
import alternativa.tanks.game.subsystems.rendersystem.RenderSystem;
|
||||
import alternativa.utils.Properties;
|
||||
import flash.display.DisplayObject;
|
||||
import flash.display.Sprite;
|
||||
import flash.display.Stage3D;
|
||||
@@ -11,52 +39,24 @@ package
|
||||
import flash.events.FullScreenEvent;
|
||||
import flash.events.KeyboardEvent;
|
||||
import flash.ui.Keyboard;
|
||||
import package_1.TankMaterial2;
|
||||
import package_1.name_13;
|
||||
import package_1.name_30;
|
||||
import package_1.name_31;
|
||||
import package_1.name_7;
|
||||
import package_10.name_23;
|
||||
import package_11.name_4;
|
||||
import package_12.name_27;
|
||||
import package_13.name_28;
|
||||
import package_14.name_3;
|
||||
import package_15.name_17;
|
||||
import package_16.name_18;
|
||||
import package_17.name_28;
|
||||
import package_18.name_51;
|
||||
import package_2.name_1;
|
||||
import package_2.name_10;
|
||||
import package_2.name_26;
|
||||
import package_2.name_9;
|
||||
import package_3.name_12;
|
||||
import package_3.name_29;
|
||||
import package_3.name_6;
|
||||
import package_4.name_24;
|
||||
import package_4.name_25;
|
||||
import package_5.name_11;
|
||||
import package_5.name_2;
|
||||
import package_6.name_16;
|
||||
import package_6.name_50;
|
||||
import package_7.name_32;
|
||||
import package_7.name_33;
|
||||
import package_8.name_14;
|
||||
import package_9.name_15;
|
||||
import platform.client.a3d.osgi.Activator;
|
||||
import platform.clients.fp10.libraries.alternativaprotocol.Activator;
|
||||
import tankshudDemo.TanksHudDemo;
|
||||
|
||||
[SWF(backgroundColor="#333333",frameRate="100",width="1024",height="768")]
|
||||
public class TanksTestingTool extends Sprite
|
||||
{
|
||||
public static var testTask:name_50;
|
||||
public static var testTask:TankTestTask;
|
||||
|
||||
private var config:name_18;
|
||||
private var config:Config;
|
||||
|
||||
private var gameKernel:name_17;
|
||||
private var gameKernel:GameKernel;
|
||||
|
||||
private var var_1:name_14;
|
||||
private var §_-6s§:TanksHudDemo;
|
||||
|
||||
private var stage3D:Stage3D;
|
||||
|
||||
private var var_2:name_15;
|
||||
private var §_-nZ§:ClientConfigurator;
|
||||
|
||||
private var preloader:Preloader = new Preloader();
|
||||
|
||||
@@ -65,173 +65,173 @@ package
|
||||
super();
|
||||
mouseEnabled = false;
|
||||
mouseChildren = false;
|
||||
this.method_13();
|
||||
this.method_17();
|
||||
this.method_7();
|
||||
this.method_8();
|
||||
name_2.fadeRadius = 7000;
|
||||
name_2.spotAngle = 140 * Math.PI / 180;
|
||||
name_2.fallofAngle = 170 * Math.PI / 180;
|
||||
this.initStage();
|
||||
this.initClient();
|
||||
this.initConsole();
|
||||
this.initOptionsSupport();
|
||||
VisibleLightMaterial.fadeRadius = 7000;
|
||||
VisibleLightMaterial.spotAngle = 140 * Math.PI / 180;
|
||||
VisibleLightMaterial.fallofAngle = 170 * Math.PI / 180;
|
||||
this.stage3D = stage.stage3Ds[0];
|
||||
this.stage3D.addEventListener(Event.CONTEXT3D_CREATE,this.method_9);
|
||||
this.stage3D.addEventListener(Event.CONTEXT3D_CREATE,this.onContextCreate);
|
||||
this.stage3D.requestContext3D();
|
||||
}
|
||||
|
||||
private function method_9(param1:Event) : void
|
||||
private function onContextCreate(param1:Event) : void
|
||||
{
|
||||
switch(name_29.name_47(this.stage3D.context3D))
|
||||
switch(A3DUtils.getSupportedTextureFormat(this.stage3D.context3D))
|
||||
{
|
||||
case name_6.DXT1:
|
||||
this.method_4("cfg.dxt1.xml");
|
||||
case TextureFormat.DXT1:
|
||||
this.loadConfig("cfg.dxt1.xml");
|
||||
break;
|
||||
case name_6.ETC1:
|
||||
this.method_4("cfg.etc1.xml");
|
||||
case TextureFormat.ETC1:
|
||||
this.loadConfig("cfg.etc1.xml");
|
||||
break;
|
||||
case name_6.PVRTC:
|
||||
this.method_4("cfg.pvrtc.xml");
|
||||
case TextureFormat.PVRTC:
|
||||
this.loadConfig("cfg.pvrtc.xml");
|
||||
}
|
||||
}
|
||||
|
||||
private function method_8() : void
|
||||
private function initOptionsSupport() : void
|
||||
{
|
||||
new name_9("fog_mode",0,0,3,this.method_1);
|
||||
new name_1("fog_near",0,0,1000000,this.method_1);
|
||||
new name_1("fog_far",5000,0,1000000,this.method_1);
|
||||
new name_1("fog_density",1,0,1,this.method_1);
|
||||
new name_1("horizon_offset",0,-1000000,1000000,this.method_1);
|
||||
new name_1("horizon_size",5000,0,1000000,this.method_1);
|
||||
new name_10("fog_color","0x0",this.method_1);
|
||||
var _loc1_:name_4 = name_4(name_3.name_8().name_21(name_4));
|
||||
_loc1_.name_34("fog_texture",this.method_19);
|
||||
new name_1("beam_distance",7000,0,1000000,this.method_2);
|
||||
new name_1("beam_spot",140,0,180,this.method_2);
|
||||
new name_1("beam_fallof",170,0,180,this.method_2);
|
||||
new name_1("beam_fallof",170,0,180,this.method_2);
|
||||
new name_1("camera_smoothing",20,0,200,this.method_6);
|
||||
name_11.fogMode = name_11.DISABLED;
|
||||
name_13.fogMode = name_13.DISABLED;
|
||||
name_7.fogMode = name_7.DISABLED;
|
||||
TankMaterial2.fogMode = name_7.DISABLED;
|
||||
name_31.fogMode = name_12.DISABLED;
|
||||
name_30.fogMode = name_12.DISABLED;
|
||||
new ConsoleVarInt("fog_mode",0,0,3,this.onFogSettingsChange);
|
||||
new ConsoleVarFloat("fog_near",0,0,1000000,this.onFogSettingsChange);
|
||||
new ConsoleVarFloat("fog_far",5000,0,1000000,this.onFogSettingsChange);
|
||||
new ConsoleVarFloat("fog_density",1,0,1,this.onFogSettingsChange);
|
||||
new ConsoleVarFloat("horizon_offset",0,-1000000,1000000,this.onFogSettingsChange);
|
||||
new ConsoleVarFloat("horizon_size",5000,0,1000000,this.onFogSettingsChange);
|
||||
new ConsoleVarString("fog_color","0x0",this.onFogSettingsChange);
|
||||
var _loc1_:IConsole = IConsole(OSGi.getInstance().getService(IConsole));
|
||||
_loc1_.setCommandHandler("fog_texture",this.onFogTextureChange);
|
||||
new ConsoleVarFloat("beam_distance",7000,0,1000000,this.onLightSettingsChange);
|
||||
new ConsoleVarFloat("beam_spot",140,0,180,this.onLightSettingsChange);
|
||||
new ConsoleVarFloat("beam_fallof",170,0,180,this.onLightSettingsChange);
|
||||
new ConsoleVarFloat("beam_fallof",170,0,180,this.onLightSettingsChange);
|
||||
new ConsoleVarFloat("camera_smoothing",20,0,200,this.onControllerSettingsChange);
|
||||
MapMaterial.fogMode = MapMaterial.DISABLED;
|
||||
TreesMaterial.fogMode = TreesMaterial.DISABLED;
|
||||
TankMaterial.fogMode = TankMaterial.DISABLED;
|
||||
TankMaterial2.fogMode = TankMaterial.DISABLED;
|
||||
GiShadowMaterial.fogMode = FogMode.DISABLED;
|
||||
TracksMaterial2.fogMode = FogMode.DISABLED;
|
||||
}
|
||||
|
||||
private function method_6(param1:name_1) : void
|
||||
private function onControllerSettingsChange(param1:ConsoleVarFloat) : void
|
||||
{
|
||||
name_24.smoothing = param1.value;
|
||||
FreeCameraController.smoothing = param1.value;
|
||||
}
|
||||
|
||||
private function method_2(param1:name_26) : void
|
||||
private function onLightSettingsChange(param1:ConsoleVar) : void
|
||||
{
|
||||
switch(param1.name_22())
|
||||
switch(param1.getName())
|
||||
{
|
||||
case "beam_distance":
|
||||
name_2.fadeRadius = name_1(param1).value;
|
||||
VisibleLightMaterial.fadeRadius = ConsoleVarFloat(param1).value;
|
||||
break;
|
||||
case "beam_spot":
|
||||
name_2.spotAngle = name_1(param1).value * Math.PI / 180;
|
||||
VisibleLightMaterial.spotAngle = ConsoleVarFloat(param1).value * Math.PI / 180;
|
||||
break;
|
||||
case "beam_fallof":
|
||||
name_2.fallofAngle = name_1(param1).value * Math.PI / 180;
|
||||
VisibleLightMaterial.fallofAngle = ConsoleVarFloat(param1).value * Math.PI / 180;
|
||||
}
|
||||
}
|
||||
|
||||
private function method_1(param1:name_26) : void
|
||||
private function onFogSettingsChange(param1:ConsoleVar) : void
|
||||
{
|
||||
var _loc3_:Number = NaN;
|
||||
var _loc4_:Number = NaN;
|
||||
var _loc5_:Number = NaN;
|
||||
var _loc6_:name_51 = this.gameKernel.name_5();
|
||||
switch(param1.name_22())
|
||||
var _loc6_:RenderSystem = this.gameKernel.getRenderSystem();
|
||||
switch(param1.getName())
|
||||
{
|
||||
case "fog_mode":
|
||||
_loc6_.name_49(name_9(param1).value);
|
||||
_loc6_.setFogMode(ConsoleVarInt(param1).value);
|
||||
break;
|
||||
case "fog_near":
|
||||
_loc6_.name_37(name_1(param1).value);
|
||||
_loc6_.setFogNear(ConsoleVarFloat(param1).value);
|
||||
break;
|
||||
case "fog_far":
|
||||
_loc6_.name_41(name_1(param1).value);
|
||||
_loc6_.setFogFar(ConsoleVarFloat(param1).value);
|
||||
break;
|
||||
case "fog_density":
|
||||
_loc6_.name_42(name_1(param1).value);
|
||||
_loc6_.setMaxFogDensity(ConsoleVarFloat(param1).value);
|
||||
break;
|
||||
case "horizon_size":
|
||||
_loc6_.name_43(name_1(param1).value);
|
||||
_loc6_.setFogHorizonSize(ConsoleVarFloat(param1).value);
|
||||
break;
|
||||
case "horizon_offset":
|
||||
_loc6_.name_38(name_1(param1).value);
|
||||
_loc6_.setFogHorizonOffset(ConsoleVarFloat(param1).value);
|
||||
break;
|
||||
case "fog_color":
|
||||
_loc6_.name_36(parseInt(name_10(param1).value,16));
|
||||
_loc6_.setFogColor(parseInt(ConsoleVarString(param1).value,16));
|
||||
}
|
||||
}
|
||||
|
||||
private function method_19(param1:name_4, param2:Array) : void
|
||||
private function onFogTextureChange(param1:IConsole, param2:Array) : void
|
||||
{
|
||||
this.gameKernel.name_5().name_39(param2.join(" "));
|
||||
this.gameKernel.getRenderSystem().setFogTextureParams(param2.join(" "));
|
||||
}
|
||||
|
||||
private function method_13() : void
|
||||
private function initStage() : void
|
||||
{
|
||||
stage.scaleMode = StageScaleMode.NO_SCALE;
|
||||
stage.align = StageAlign.TOP_LEFT;
|
||||
stage.quality = StageQuality.LOW;
|
||||
}
|
||||
|
||||
private function method_17() : void
|
||||
private function initClient() : void
|
||||
{
|
||||
new name_3();
|
||||
this.var_2 = new name_15();
|
||||
this.var_2.start(this,new name_27(loaderInfo.parameters),new Vector.<name_33>(),new name_32(null,null,null),new Vector.<String>());
|
||||
new name_23().start(name_3.name_8());
|
||||
new package_13.name_28().start(name_3.name_8());
|
||||
new package_17.name_28().start(name_3.name_8());
|
||||
new OSGi();
|
||||
this.§_-nZ§ = new ClientConfigurator();
|
||||
this.§_-nZ§.start(this,new Properties(loaderInfo.parameters),new Vector.<LibraryInfo>(),new ConnectionParameters(null,null,null),new Vector.<String>());
|
||||
new ProtocolActivator().start(OSGi.getInstance());
|
||||
new platform.clients.fp10.libraries.alternativaprotocol.Activator().start(OSGi.getInstance());
|
||||
new platform.client.a3d.osgi.Activator().start(OSGi.getInstance());
|
||||
}
|
||||
|
||||
private function method_7() : void
|
||||
private function initConsole() : void
|
||||
{
|
||||
var _loc1_:name_4 = name_4(name_3.name_8().name_21(name_4));
|
||||
var _loc1_:IConsole = IConsole(OSGi.getInstance().getService(IConsole));
|
||||
_loc1_.width = 100;
|
||||
_loc1_.alpha = 0.8;
|
||||
_loc1_.height = 30;
|
||||
}
|
||||
|
||||
private function method_4(param1:String) : void
|
||||
private function loadConfig(param1:String) : void
|
||||
{
|
||||
addChild(this.preloader);
|
||||
this.config = new name_18();
|
||||
this.config.addEventListener(Event.COMPLETE,this.method_12);
|
||||
this.config = new Config();
|
||||
this.config.addEventListener(Event.COMPLETE,this.onConfigLoadingComplete);
|
||||
this.config.load(param1,this.preloader);
|
||||
}
|
||||
|
||||
private function method_12(param1:Event) : void
|
||||
private function onConfigLoadingComplete(param1:Event) : void
|
||||
{
|
||||
this.method_10();
|
||||
this.method_18();
|
||||
this.initGame();
|
||||
this.initHUD();
|
||||
}
|
||||
|
||||
private function method_18() : void
|
||||
private function initHUD() : void
|
||||
{
|
||||
this.var_1 = new name_14();
|
||||
stage.addChild(this.var_1);
|
||||
this.var_1.mouseChildren = true;
|
||||
this.var_1.mouseEnabled = true;
|
||||
this.var_1.addEventListener("CLICK_FULL_SCREEN_BUTTON",this.method_11);
|
||||
this.var_1.addEventListener("CLICK_NEXT_TANK_BUTTON",this.method_16);
|
||||
this.§_-6s§ = new TanksHudDemo();
|
||||
stage.addChild(this.§_-6s§);
|
||||
this.§_-6s§.mouseChildren = true;
|
||||
this.§_-6s§.mouseEnabled = true;
|
||||
this.§_-6s§.addEventListener("CLICK_FULL_SCREEN_BUTTON",this.onClickFullScreenButton);
|
||||
this.§_-6s§.addEventListener("CLICK_NEXT_TANK_BUTTON",this.onClickNextTankButton);
|
||||
stage.addChild(this.preloader);
|
||||
stage.addEventListener(KeyboardEvent.KEY_DOWN,this.method_14);
|
||||
this.gameKernel.name_5().name_20().diagramVerticalMargin = 85;
|
||||
this.gameKernel.name_5().name_20().diagramHorizontalMargin = 12;
|
||||
this.method_3(null);
|
||||
stage.addEventListener(KeyboardEvent.KEY_DOWN,this.onKeyDown);
|
||||
this.gameKernel.getRenderSystem().getCamera().diagramVerticalMargin = 85;
|
||||
this.gameKernel.getRenderSystem().getCamera().diagramHorizontalMargin = 12;
|
||||
this.onResize(null);
|
||||
}
|
||||
|
||||
private function method_14(param1:KeyboardEvent) : void
|
||||
private function onKeyDown(param1:KeyboardEvent) : void
|
||||
{
|
||||
var _loc2_:DisplayObject = null;
|
||||
if(param1.keyCode == Keyboard.G)
|
||||
{
|
||||
_loc2_ = this.gameKernel.name_5().name_40();
|
||||
_loc2_ = this.gameKernel.getRenderSystem().getCameraDiagram();
|
||||
if(_loc2_.parent != null)
|
||||
{
|
||||
_loc2_.parent.removeChild(_loc2_);
|
||||
@@ -243,54 +243,54 @@ package
|
||||
}
|
||||
}
|
||||
|
||||
private function method_11(param1:Event) : void
|
||||
private function onClickFullScreenButton(param1:Event) : void
|
||||
{
|
||||
stage.displayState = !!this.var_1.name_19 ? StageDisplayState.FULL_SCREEN : StageDisplayState.NORMAL;
|
||||
stage.addEventListener(FullScreenEvent.FULL_SCREEN,this.method_5);
|
||||
stage.displayState = this.§_-6s§.isFullScreen ? StageDisplayState.FULL_SCREEN : StageDisplayState.NORMAL;
|
||||
stage.addEventListener(FullScreenEvent.FULL_SCREEN,this.onFullScreenChange);
|
||||
}
|
||||
|
||||
private function method_5(param1:Event) : void
|
||||
private function onFullScreenChange(param1:Event) : void
|
||||
{
|
||||
stage.removeEventListener(FullScreenEvent.FULL_SCREEN,this.method_5);
|
||||
this.var_1.name_19 = stage.displayState != StageDisplayState.NORMAL;
|
||||
stage.removeEventListener(FullScreenEvent.FULL_SCREEN,this.onFullScreenChange);
|
||||
this.§_-6s§.isFullScreen = stage.displayState != StageDisplayState.NORMAL;
|
||||
}
|
||||
|
||||
private function method_16(param1:Event) : void
|
||||
private function onClickNextTankButton(param1:Event) : void
|
||||
{
|
||||
if(testTask != null)
|
||||
{
|
||||
testTask.include();
|
||||
testTask.selectNextTank();
|
||||
}
|
||||
}
|
||||
|
||||
private function method_10() : void
|
||||
private function initGame() : void
|
||||
{
|
||||
this.gameKernel = new name_17(stage,this.config.options);
|
||||
this.gameKernel.name_5().name_48(this.stage3D);
|
||||
var _loc1_:name_16 = new name_16(this.gameKernel,this.config,this,this.preloader);
|
||||
this.gameKernel = new GameKernel(stage,this.config.options);
|
||||
this.gameKernel.getRenderSystem().setStage3D(this.stage3D);
|
||||
var _loc1_:InitBattleTask = new InitBattleTask(this.gameKernel,this.config,this,this.preloader);
|
||||
this.gameKernel.addTask(_loc1_);
|
||||
stage.addEventListener(Event.RESIZE,this.method_3);
|
||||
this.method_3(null);
|
||||
stage.addEventListener(Event.ENTER_FRAME,this.method_15);
|
||||
stage.addEventListener(Event.RESIZE,this.onResize);
|
||||
this.onResize(null);
|
||||
stage.addEventListener(Event.ENTER_FRAME,this.onEnterFrame);
|
||||
}
|
||||
|
||||
private function method_15(param1:Event) : void
|
||||
private function onEnterFrame(param1:Event) : void
|
||||
{
|
||||
this.gameKernel.name_45();
|
||||
this.gameKernel.tick();
|
||||
}
|
||||
|
||||
private function method_3(param1:Event) : void
|
||||
private function onResize(param1:Event) : void
|
||||
{
|
||||
var _loc2_:name_25 = null;
|
||||
var _loc2_:AxisIndicator = null;
|
||||
if(this.gameKernel != null)
|
||||
{
|
||||
this.gameKernel.name_5().name_35(0,0,stage.stageWidth,stage.stageHeight);
|
||||
_loc2_ = this.gameKernel.name_5().name_46();
|
||||
this.gameKernel.getRenderSystem().setViewRect(0,0,stage.stageWidth,stage.stageHeight);
|
||||
_loc2_ = this.gameKernel.getRenderSystem().getAxisIndicator();
|
||||
_loc2_.y = stage.stageHeight - _loc2_.size;
|
||||
}
|
||||
if(this.var_1 != null)
|
||||
if(this.§_-6s§ != null)
|
||||
{
|
||||
this.var_1.name_44(stage.stageWidth,stage.stageHeight);
|
||||
this.§_-6s§.resize(stage.stageWidth,stage.stageHeight);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 33 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 20 KiB |
@@ -13,29 +13,29 @@ package _codec.commons
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_324:ICodec;
|
||||
private var §_-Bx§:ICodec;
|
||||
|
||||
private var var_329:ICodec;
|
||||
private var §_-Qh§:ICodec;
|
||||
|
||||
private var var_332:ICodec;
|
||||
private var §_-ir§:ICodec;
|
||||
|
||||
private var var_333:ICodec;
|
||||
private var §_-p§:ICodec;
|
||||
|
||||
private var var_326:ICodec;
|
||||
private var §_-Kw§:ICodec;
|
||||
|
||||
private var var_327:ICodec;
|
||||
private var §_-PP§:ICodec;
|
||||
|
||||
private var var_331:ICodec;
|
||||
private var §_-e7§:ICodec;
|
||||
|
||||
private var var_328:ICodec;
|
||||
private var §_-QE§:ICodec;
|
||||
|
||||
private var var_330:ICodec;
|
||||
private var §_-SL§:ICodec;
|
||||
|
||||
private var var_334:ICodec;
|
||||
private var §for §:ICodec;
|
||||
|
||||
private var var_325:ICodec;
|
||||
private var §_-Hb§:ICodec;
|
||||
|
||||
private var var_323:ICodec;
|
||||
private var §_-3B§:ICodec;
|
||||
|
||||
public function CodecA3DMatrix()
|
||||
{
|
||||
@@ -44,46 +44,46 @@ package _codec.commons
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_324 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_329 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_332 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_333 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_326 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_327 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_331 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_328 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_330 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_334 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_325 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_323 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-Bx§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-Qh§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-ir§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-p§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-Kw§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-PP§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-e7§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-QE§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-SL§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§for § = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-Hb§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-3B§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_a:Number = Number(this.var_324.decode(protocolBuffer) as Number);
|
||||
var value_a:Number = Number(this.§_-Bx§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","a",value_a);
|
||||
var value_b:Number = Number(this.var_329.decode(protocolBuffer) as Number);
|
||||
var value_b:Number = Number(this.§_-Qh§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","b",value_b);
|
||||
var value_c:Number = Number(this.var_332.decode(protocolBuffer) as Number);
|
||||
var value_c:Number = Number(this.§_-ir§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","c",value_c);
|
||||
var value_d:Number = Number(this.var_333.decode(protocolBuffer) as Number);
|
||||
var value_d:Number = Number(this.§_-p§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","d",value_d);
|
||||
var value_e:Number = Number(this.var_326.decode(protocolBuffer) as Number);
|
||||
var value_e:Number = Number(this.§_-Kw§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","e",value_e);
|
||||
var value_f:Number = Number(this.var_327.decode(protocolBuffer) as Number);
|
||||
var value_f:Number = Number(this.§_-PP§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","f",value_f);
|
||||
var value_g:Number = Number(this.var_331.decode(protocolBuffer) as Number);
|
||||
var value_g:Number = Number(this.§_-e7§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","g",value_g);
|
||||
var value_h:Number = Number(this.var_328.decode(protocolBuffer) as Number);
|
||||
var value_h:Number = Number(this.§_-QE§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","h",value_h);
|
||||
var value_i:Number = Number(this.var_330.decode(protocolBuffer) as Number);
|
||||
var value_i:Number = Number(this.§_-SL§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","i",value_i);
|
||||
var value_j:Number = Number(this.var_334.decode(protocolBuffer) as Number);
|
||||
var value_j:Number = Number(this.§for §.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","j",value_j);
|
||||
var value_k:Number = Number(this.var_325.decode(protocolBuffer) as Number);
|
||||
var value_k:Number = Number(this.§_-Hb§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","k",value_k);
|
||||
var value_l:Number = Number(this.var_323.decode(protocolBuffer) as Number);
|
||||
var value_l:Number = Number(this.§_-3B§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","l",value_l);
|
||||
return new A3DMatrix(value_a,value_b,value_c,value_d,value_e,value_f,value_g,value_h,value_i,value_j,value_k,value_l);
|
||||
}
|
||||
@@ -95,18 +95,18 @@ package _codec.commons
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DMatrix = A3DMatrix(object);
|
||||
this.var_324.encode(protocolBuffer,struct.a);
|
||||
this.var_329.encode(protocolBuffer,struct.b);
|
||||
this.var_332.encode(protocolBuffer,struct.c);
|
||||
this.var_333.encode(protocolBuffer,struct.d);
|
||||
this.var_326.encode(protocolBuffer,struct.e);
|
||||
this.var_327.encode(protocolBuffer,struct.f);
|
||||
this.var_331.encode(protocolBuffer,struct.g);
|
||||
this.var_328.encode(protocolBuffer,struct.h);
|
||||
this.var_330.encode(protocolBuffer,struct.i);
|
||||
this.var_334.encode(protocolBuffer,struct.j);
|
||||
this.var_325.encode(protocolBuffer,struct.k);
|
||||
this.var_323.encode(protocolBuffer,struct.l);
|
||||
this.§_-Bx§.encode(protocolBuffer,struct.a);
|
||||
this.§_-Qh§.encode(protocolBuffer,struct.b);
|
||||
this.§_-ir§.encode(protocolBuffer,struct.c);
|
||||
this.§_-p§.encode(protocolBuffer,struct.d);
|
||||
this.§_-Kw§.encode(protocolBuffer,struct.e);
|
||||
this.§_-PP§.encode(protocolBuffer,struct.f);
|
||||
this.§_-e7§.encode(protocolBuffer,struct.g);
|
||||
this.§_-QE§.encode(protocolBuffer,struct.h);
|
||||
this.§_-SL§.encode(protocolBuffer,struct.i);
|
||||
this.§for §.encode(protocolBuffer,struct.j);
|
||||
this.§_-Hb§.encode(protocolBuffer,struct.k);
|
||||
this.§_-3B§.encode(protocolBuffer,struct.l);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ package _codec.commons
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
public function CodecId()
|
||||
{
|
||||
@@ -21,13 +21,13 @@ package _codec.commons
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_id:uint = uint(this.var_243.decode(protocolBuffer) as uint);
|
||||
var value_id:uint = uint(this.§_-2o§.decode(protocolBuffer) as uint);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.Id","id",value_id);
|
||||
return new Id(value_id);
|
||||
}
|
||||
@@ -39,7 +39,7 @@ package _codec.commons
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:Id = Id(object);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,17 +19,17 @@ package _codec.versions.version1.a3d
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_359:ICodec;
|
||||
private var §_-EA§:ICodec;
|
||||
|
||||
private var var_419:ICodec;
|
||||
private var §_-PA§:ICodec;
|
||||
|
||||
private var var_363:ICodec;
|
||||
private var §_-Sd§:ICodec;
|
||||
|
||||
private var var_365:ICodec;
|
||||
private var §_-dB§:ICodec;
|
||||
|
||||
private var var_354:ICodec;
|
||||
private var §_-77§:ICodec;
|
||||
|
||||
private var var_351:ICodec;
|
||||
private var §_-1x§:ICodec;
|
||||
|
||||
public function CodecA3D()
|
||||
{
|
||||
@@ -38,28 +38,28 @@ package _codec.versions.version1.a3d
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_359 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,false),true,1));
|
||||
this.var_419 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,false),true,1));
|
||||
this.var_363 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,false),true,1));
|
||||
this.var_365 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,false),true,1));
|
||||
this.var_354 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,false),true,1));
|
||||
this.var_351 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,false),true,1));
|
||||
this.§_-EA§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,false),true,1));
|
||||
this.§_-PA§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,false),true,1));
|
||||
this.§_-Sd§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,false),true,1));
|
||||
this.§_-dB§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,false),true,1));
|
||||
this.§_-77§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,false),true,1));
|
||||
this.§_-1x§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,false),true,1));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_boxes:Vector.<A3DBox> = this.var_359.decode(protocolBuffer) as Vector.<A3DBox>;
|
||||
var value_boxes:Vector.<A3DBox> = this.§_-EA§.decode(protocolBuffer) as Vector.<A3DBox>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","boxes",value_boxes);
|
||||
var value_geometries:Vector.<A3DGeometry> = this.var_419.decode(protocolBuffer) as Vector.<A3DGeometry>;
|
||||
var value_geometries:Vector.<A3DGeometry> = this.§_-PA§.decode(protocolBuffer) as Vector.<A3DGeometry>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","geometries",value_geometries);
|
||||
var value_images:Vector.<A3DImage> = this.var_363.decode(protocolBuffer) as Vector.<A3DImage>;
|
||||
var value_images:Vector.<A3DImage> = this.§_-Sd§.decode(protocolBuffer) as Vector.<A3DImage>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","images",value_images);
|
||||
var value_maps:Vector.<A3DMap> = this.var_365.decode(protocolBuffer) as Vector.<A3DMap>;
|
||||
var value_maps:Vector.<A3DMap> = this.§_-dB§.decode(protocolBuffer) as Vector.<A3DMap>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","maps",value_maps);
|
||||
var value_materials:Vector.<A3DMaterial> = this.var_354.decode(protocolBuffer) as Vector.<A3DMaterial>;
|
||||
var value_materials:Vector.<A3DMaterial> = this.§_-77§.decode(protocolBuffer) as Vector.<A3DMaterial>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","materials",value_materials);
|
||||
var value_objects:Vector.<A3DObject> = this.var_351.decode(protocolBuffer) as Vector.<A3DObject>;
|
||||
var value_objects:Vector.<A3DObject> = this.§_-1x§.decode(protocolBuffer) as Vector.<A3DObject>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","objects",value_objects);
|
||||
return new A3D(value_boxes,value_geometries,value_images,value_maps,value_materials,value_objects);
|
||||
}
|
||||
@@ -71,12 +71,12 @@ package _codec.versions.version1.a3d
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D = A3D(object);
|
||||
this.var_359.encode(protocolBuffer,struct.boxes);
|
||||
this.var_419.encode(protocolBuffer,struct.geometries);
|
||||
this.var_363.encode(protocolBuffer,struct.images);
|
||||
this.var_365.encode(protocolBuffer,struct.maps);
|
||||
this.var_354.encode(protocolBuffer,struct.materials);
|
||||
this.var_351.encode(protocolBuffer,struct.objects);
|
||||
this.§_-EA§.encode(protocolBuffer,struct.boxes);
|
||||
this.§_-PA§.encode(protocolBuffer,struct.geometries);
|
||||
this.§_-Sd§.encode(protocolBuffer,struct.images);
|
||||
this.§_-dB§.encode(protocolBuffer,struct.maps);
|
||||
this.§_-77§.encode(protocolBuffer,struct.materials);
|
||||
this.§_-1x§.encode(protocolBuffer,struct.objects);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,11 +16,11 @@ package _codec.versions.version1.a3d.geometry
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_275:ICodec;
|
||||
private var §_-XF§:ICodec;
|
||||
|
||||
private var var_250:ICodec;
|
||||
private var §_-U9§:ICodec;
|
||||
|
||||
public function CodecA3DGeometry()
|
||||
{
|
||||
@@ -29,19 +29,19 @@ package _codec.versions.version1.a3d.geometry
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_275 = protocol.getCodec(new TypeCodecInfo(A3DIndexBuffer,true));
|
||||
this.var_250 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,false),true,1));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-XF§ = protocol.getCodec(new TypeCodecInfo(A3DIndexBuffer,true));
|
||||
this.§_-U9§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,false),true,1));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_id:Id = this.var_243.decode(protocolBuffer) as Id;
|
||||
var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DGeometry","id",value_id);
|
||||
var value_indexBuffer:A3DIndexBuffer = this.var_275.decode(protocolBuffer) as A3DIndexBuffer;
|
||||
var value_indexBuffer:A3DIndexBuffer = this.§_-XF§.decode(protocolBuffer) as A3DIndexBuffer;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DGeometry","indexBuffer",value_indexBuffer);
|
||||
var value_vertexBuffers:Vector.<A3DVertexBuffer> = this.var_250.decode(protocolBuffer) as Vector.<A3DVertexBuffer>;
|
||||
var value_vertexBuffers:Vector.<A3DVertexBuffer> = this.§_-U9§.decode(protocolBuffer) as Vector.<A3DVertexBuffer>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DGeometry","vertexBuffers",value_vertexBuffers);
|
||||
return new A3DGeometry(value_id,value_indexBuffer,value_vertexBuffers);
|
||||
}
|
||||
@@ -53,9 +53,9 @@ package _codec.versions.version1.a3d.geometry
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DGeometry = A3DGeometry(object);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_275.encode(protocolBuffer,struct.indexBuffer);
|
||||
this.var_250.encode(protocolBuffer,struct.vertexBuffers);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-XF§.encode(protocolBuffer,struct.indexBuffer);
|
||||
this.§_-U9§.encode(protocolBuffer,struct.vertexBuffers);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,9 +13,9 @@ package _codec.versions.version1.a3d.geometry
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_240:ICodec;
|
||||
private var §_-GN§:ICodec;
|
||||
|
||||
private var var_308:ICodec;
|
||||
private var §_-mz§:ICodec;
|
||||
|
||||
public function CodecA3DIndexBuffer()
|
||||
{
|
||||
@@ -24,16 +24,16 @@ package _codec.versions.version1.a3d.geometry
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_240 = protocol.getCodec(new TypeCodecInfo(ByteArray,true));
|
||||
this.var_308 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-GN§ = protocol.getCodec(new TypeCodecInfo(ByteArray,true));
|
||||
this.§_-mz§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_byteBuffer:ByteArray = this.var_240.decode(protocolBuffer) as ByteArray;
|
||||
var value_byteBuffer:ByteArray = this.§_-GN§.decode(protocolBuffer) as ByteArray;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DIndexBuffer","byteBuffer",value_byteBuffer);
|
||||
var value_indexCount:int = int(this.var_308.decode(protocolBuffer) as int);
|
||||
var value_indexCount:int = int(this.§_-mz§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DIndexBuffer","indexCount",value_indexCount);
|
||||
return new A3DIndexBuffer(value_byteBuffer,value_indexCount);
|
||||
}
|
||||
@@ -45,8 +45,8 @@ package _codec.versions.version1.a3d.geometry
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DIndexBuffer = A3DIndexBuffer(object);
|
||||
this.var_240.encode(protocolBuffer,struct.byteBuffer);
|
||||
this.var_308.encode(protocolBuffer,struct.indexCount);
|
||||
this.§_-GN§.encode(protocolBuffer,struct.byteBuffer);
|
||||
this.§_-mz§.encode(protocolBuffer,struct.indexCount);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,11 +16,11 @@ package _codec.versions.version1.a3d.geometry
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_241:ICodec;
|
||||
private var §_-Lj§:ICodec;
|
||||
|
||||
private var var_240:ICodec;
|
||||
private var §_-GN§:ICodec;
|
||||
|
||||
private var var_242:ICodec;
|
||||
private var §_-hc§:ICodec;
|
||||
|
||||
public function CodecA3DVertexBuffer()
|
||||
{
|
||||
@@ -29,19 +29,19 @@ package _codec.versions.version1.a3d.geometry
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_241 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,false),true,1));
|
||||
this.var_240 = protocol.getCodec(new TypeCodecInfo(ByteArray,true));
|
||||
this.var_242 = protocol.getCodec(new TypeCodecInfo(UShort,false));
|
||||
this.§_-Lj§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,false),true,1));
|
||||
this.§_-GN§ = protocol.getCodec(new TypeCodecInfo(ByteArray,true));
|
||||
this.§_-hc§ = protocol.getCodec(new TypeCodecInfo(UShort,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_attributes:Vector.<int> = this.var_241.decode(protocolBuffer) as Vector.<int>;
|
||||
var value_attributes:Vector.<int> = this.§_-Lj§.decode(protocolBuffer) as Vector.<int>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DVertexBuffer","attributes",value_attributes);
|
||||
var value_byteBuffer:ByteArray = this.var_240.decode(protocolBuffer) as ByteArray;
|
||||
var value_byteBuffer:ByteArray = this.§_-GN§.decode(protocolBuffer) as ByteArray;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DVertexBuffer","byteBuffer",value_byteBuffer);
|
||||
var value_vertexCount:uint = uint(this.var_242.decode(protocolBuffer) as uint);
|
||||
var value_vertexCount:uint = uint(this.§_-hc§.decode(protocolBuffer) as uint);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DVertexBuffer","vertexCount",value_vertexCount);
|
||||
return new A3DVertexBuffer(value_attributes,value_byteBuffer,value_vertexCount);
|
||||
}
|
||||
@@ -53,9 +53,9 @@ package _codec.versions.version1.a3d.geometry
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DVertexBuffer = A3DVertexBuffer(object);
|
||||
this.var_241.encode(protocolBuffer,struct.attributes);
|
||||
this.var_240.encode(protocolBuffer,struct.byteBuffer);
|
||||
this.var_242.encode(protocolBuffer,struct.vertexCount);
|
||||
this.§_-Lj§.encode(protocolBuffer,struct.attributes);
|
||||
this.§_-GN§.encode(protocolBuffer,struct.byteBuffer);
|
||||
this.§_-hc§.encode(protocolBuffer,struct.vertexCount);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ package _codec.versions.version1.a3d.id
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
public function CodecParentId()
|
||||
{
|
||||
@@ -21,13 +21,13 @@ package _codec.versions.version1.a3d.id
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_id:uint = uint(this.var_243.decode(protocolBuffer) as uint);
|
||||
var value_id:uint = uint(this.§_-2o§.decode(protocolBuffer) as uint);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.id.ParentId","id",value_id);
|
||||
return new ParentId(value_id);
|
||||
}
|
||||
@@ -39,7 +39,7 @@ package _codec.versions.version1.a3d.id
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:ParentId = ParentId(object);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,9 +13,9 @@ package _codec.versions.version1.a3d.materials
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_307:ICodec;
|
||||
private var §_-aV§:ICodec;
|
||||
|
||||
public function CodecA3DImage()
|
||||
{
|
||||
@@ -24,16 +24,16 @@ package _codec.versions.version1.a3d.materials
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_307 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-aV§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_id:Id = this.var_243.decode(protocolBuffer) as Id;
|
||||
var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DImage","id",value_id);
|
||||
var value_url:String = this.var_307.decode(protocolBuffer) as String;
|
||||
var value_url:String = this.§_-aV§.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DImage","url",value_url);
|
||||
return new A3DImage(value_id,value_url);
|
||||
}
|
||||
@@ -45,8 +45,8 @@ package _codec.versions.version1.a3d.materials
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DImage = A3DImage(object);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_307.encode(protocolBuffer,struct.url);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-aV§.encode(protocolBuffer,struct.url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,19 +15,19 @@ package _codec.versions.version1.a3d.materials
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_322:ICodec;
|
||||
private var §_-mC§:ICodec;
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_321:ICodec;
|
||||
private var §_-2N§:ICodec;
|
||||
|
||||
private var var_407:ICodec;
|
||||
private var §_-K5§:ICodec;
|
||||
|
||||
private var var_408:ICodec;
|
||||
private var §_-Q5§:ICodec;
|
||||
|
||||
private var var_409:ICodec;
|
||||
private var §_-WH§:ICodec;
|
||||
|
||||
private var var_410:ICodec;
|
||||
private var §_-kh§:ICodec;
|
||||
|
||||
public function CodecA3DMap()
|
||||
{
|
||||
@@ -36,31 +36,31 @@ package _codec.versions.version1.a3d.materials
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_322 = protocol.getCodec(new TypeCodecInfo(UShort,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_321 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_407 = protocol.getCodec(new TypeCodecInfo(Float,true));
|
||||
this.var_408 = protocol.getCodec(new TypeCodecInfo(Float,true));
|
||||
this.var_409 = protocol.getCodec(new TypeCodecInfo(Float,true));
|
||||
this.var_410 = protocol.getCodec(new TypeCodecInfo(Float,true));
|
||||
this.§_-mC§ = protocol.getCodec(new TypeCodecInfo(UShort,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-2N§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-K5§ = protocol.getCodec(new TypeCodecInfo(Float,true));
|
||||
this.§_-Q5§ = protocol.getCodec(new TypeCodecInfo(Float,true));
|
||||
this.§_-WH§ = protocol.getCodec(new TypeCodecInfo(Float,true));
|
||||
this.§_-kh§ = protocol.getCodec(new TypeCodecInfo(Float,true));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_channel:uint = uint(this.var_322.decode(protocolBuffer) as uint);
|
||||
var value_channel:uint = uint(this.§_-mC§.decode(protocolBuffer) as uint);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","channel",value_channel);
|
||||
var value_id:Id = this.var_243.decode(protocolBuffer) as Id;
|
||||
var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","id",value_id);
|
||||
var value_imageId:Id = this.var_321.decode(protocolBuffer) as Id;
|
||||
var value_imageId:Id = this.§_-2N§.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","imageId",value_imageId);
|
||||
var value_uOffset:Number = Number(this.var_407.decode(protocolBuffer) as Number);
|
||||
var value_uOffset:Number = Number(this.§_-K5§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","uOffset",value_uOffset);
|
||||
var value_uScale:Number = Number(this.var_408.decode(protocolBuffer) as Number);
|
||||
var value_uScale:Number = Number(this.§_-Q5§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","uScale",value_uScale);
|
||||
var value_vOffset:Number = Number(this.var_409.decode(protocolBuffer) as Number);
|
||||
var value_vOffset:Number = Number(this.§_-WH§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","vOffset",value_vOffset);
|
||||
var value_vScale:Number = Number(this.var_410.decode(protocolBuffer) as Number);
|
||||
var value_vScale:Number = Number(this.§_-kh§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","vScale",value_vScale);
|
||||
return new A3DMap(value_channel,value_id,value_imageId,value_uOffset,value_uScale,value_vOffset,value_vScale);
|
||||
}
|
||||
@@ -72,13 +72,13 @@ package _codec.versions.version1.a3d.materials
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DMap = A3DMap(object);
|
||||
this.var_322.encode(protocolBuffer,struct.channel);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_321.encode(protocolBuffer,struct.imageId);
|
||||
this.var_407.encode(protocolBuffer,struct.uOffset);
|
||||
this.var_408.encode(protocolBuffer,struct.uScale);
|
||||
this.var_409.encode(protocolBuffer,struct.vOffset);
|
||||
this.var_410.encode(protocolBuffer,struct.vScale);
|
||||
this.§_-mC§.encode(protocolBuffer,struct.channel);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-2N§.encode(protocolBuffer,struct.imageId);
|
||||
this.§_-K5§.encode(protocolBuffer,struct.uOffset);
|
||||
this.§_-Q5§.encode(protocolBuffer,struct.uScale);
|
||||
this.§_-WH§.encode(protocolBuffer,struct.vOffset);
|
||||
this.§_-kh§.encode(protocolBuffer,struct.vScale);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,19 +13,19 @@ package _codec.versions.version1.a3d.materials
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_381:ICodec;
|
||||
private var §_-9A§:ICodec;
|
||||
|
||||
private var var_386:ICodec;
|
||||
private var §_-hw§:ICodec;
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_384:ICodec;
|
||||
private var §_-Hu§:ICodec;
|
||||
|
||||
private var var_383:ICodec;
|
||||
private var §_-GK§:ICodec;
|
||||
|
||||
private var var_385:ICodec;
|
||||
private var §_-LZ§:ICodec;
|
||||
|
||||
private var var_382:ICodec;
|
||||
private var §_-FU§:ICodec;
|
||||
|
||||
public function CodecA3DMaterial()
|
||||
{
|
||||
@@ -34,31 +34,31 @@ package _codec.versions.version1.a3d.materials
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_381 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_386 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_384 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_383 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_385 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_382 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-9A§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-hw§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-Hu§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-GK§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-LZ§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-FU§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_diffuseMapId:Id = this.var_381.decode(protocolBuffer) as Id;
|
||||
var value_diffuseMapId:Id = this.§_-9A§.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","diffuseMapId",value_diffuseMapId);
|
||||
var value_glossinessMapId:Id = this.var_386.decode(protocolBuffer) as Id;
|
||||
var value_glossinessMapId:Id = this.§_-hw§.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","glossinessMapId",value_glossinessMapId);
|
||||
var value_id:Id = this.var_243.decode(protocolBuffer) as Id;
|
||||
var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","id",value_id);
|
||||
var value_lightMapId:Id = this.var_384.decode(protocolBuffer) as Id;
|
||||
var value_lightMapId:Id = this.§_-Hu§.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","lightMapId",value_lightMapId);
|
||||
var value_normalMapId:Id = this.var_383.decode(protocolBuffer) as Id;
|
||||
var value_normalMapId:Id = this.§_-GK§.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","normalMapId",value_normalMapId);
|
||||
var value_opacityMapId:Id = this.var_385.decode(protocolBuffer) as Id;
|
||||
var value_opacityMapId:Id = this.§_-LZ§.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","opacityMapId",value_opacityMapId);
|
||||
var value_specularMapId:Id = this.var_382.decode(protocolBuffer) as Id;
|
||||
var value_specularMapId:Id = this.§_-FU§.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","specularMapId",value_specularMapId);
|
||||
return new A3DMaterial(value_diffuseMapId,value_glossinessMapId,value_id,value_lightMapId,value_normalMapId,value_opacityMapId,value_specularMapId);
|
||||
}
|
||||
@@ -70,13 +70,13 @@ package _codec.versions.version1.a3d.materials
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DMaterial = A3DMaterial(object);
|
||||
this.var_381.encode(protocolBuffer,struct.diffuseMapId);
|
||||
this.var_386.encode(protocolBuffer,struct.glossinessMapId);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_384.encode(protocolBuffer,struct.lightMapId);
|
||||
this.var_383.encode(protocolBuffer,struct.normalMapId);
|
||||
this.var_385.encode(protocolBuffer,struct.opacityMapId);
|
||||
this.var_382.encode(protocolBuffer,struct.specularMapId);
|
||||
this.§_-9A§.encode(protocolBuffer,struct.diffuseMapId);
|
||||
this.§_-hw§.encode(protocolBuffer,struct.glossinessMapId);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-Hu§.encode(protocolBuffer,struct.lightMapId);
|
||||
this.§_-GK§.encode(protocolBuffer,struct.normalMapId);
|
||||
this.§_-LZ§.encode(protocolBuffer,struct.opacityMapId);
|
||||
this.§_-FU§.encode(protocolBuffer,struct.specularMapId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,9 +15,9 @@ package _codec.versions.version1.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_284:ICodec;
|
||||
private var §_-pM§:ICodec;
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
public function CodecA3DBox()
|
||||
{
|
||||
@@ -26,16 +26,16 @@ package _codec.versions.version1.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_284 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),true,1));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-pM§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),true,1));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_box:Vector.<Number> = this.var_284.decode(protocolBuffer) as Vector.<Number>;
|
||||
var value_box:Vector.<Number> = this.§_-pM§.decode(protocolBuffer) as Vector.<Number>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DBox","box",value_box);
|
||||
var value_id:Id = this.var_243.decode(protocolBuffer) as Id;
|
||||
var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DBox","id",value_id);
|
||||
return new A3DBox(value_box,value_id);
|
||||
}
|
||||
@@ -47,8 +47,8 @@ package _codec.versions.version1.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DBox = A3DBox(object);
|
||||
this.var_284.encode(protocolBuffer,struct.box);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.§_-pM§.encode(protocolBuffer,struct.box);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,21 +17,21 @@ package _codec.versions.version1.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_245:ICodec;
|
||||
private var §_-Dh§:ICodec;
|
||||
|
||||
private var var_256:ICodec;
|
||||
private var §_-e§:ICodec;
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_251:ICodec;
|
||||
private var §_-XW§:ICodec;
|
||||
|
||||
private var var_254:ICodec;
|
||||
private var §_-jk§:ICodec;
|
||||
|
||||
private var var_248:ICodec;
|
||||
private var §_-Qr§:ICodec;
|
||||
|
||||
private var var_255:ICodec;
|
||||
private var §_-9u§:ICodec;
|
||||
|
||||
private var var_253:ICodec;
|
||||
private var §_-h9§:ICodec;
|
||||
|
||||
public function CodecA3DObject()
|
||||
{
|
||||
@@ -40,34 +40,34 @@ package _codec.versions.version1.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_256 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(ParentId,true));
|
||||
this.var_248 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,false),true,1));
|
||||
this.var_255 = protocol.getCodec(new TypeCodecInfo(A3DTransformation,true));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,true));
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-e§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(ParentId,true));
|
||||
this.§_-Qr§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,false),true,1));
|
||||
this.§_-9u§ = protocol.getCodec(new TypeCodecInfo(A3DTransformation,true));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,true));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_boundBoxId:Id = this.var_245.decode(protocolBuffer) as Id;
|
||||
var value_boundBoxId:Id = this.§_-Dh§.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","boundBoxId",value_boundBoxId);
|
||||
var value_geometryId:Id = this.var_256.decode(protocolBuffer) as Id;
|
||||
var value_geometryId:Id = this.§_-e§.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","geometryId",value_geometryId);
|
||||
var value_id:Id = this.var_243.decode(protocolBuffer) as Id;
|
||||
var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","id",value_id);
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","name",value_name);
|
||||
var value_parentId:ParentId = this.var_254.decode(protocolBuffer) as ParentId;
|
||||
var value_parentId:ParentId = this.§_-jk§.decode(protocolBuffer) as ParentId;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","parentId",value_parentId);
|
||||
var value_surfaces:Vector.<A3DSurface> = this.var_248.decode(protocolBuffer) as Vector.<A3DSurface>;
|
||||
var value_surfaces:Vector.<A3DSurface> = this.§_-Qr§.decode(protocolBuffer) as Vector.<A3DSurface>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","surfaces",value_surfaces);
|
||||
var value_transformation:A3DTransformation = this.var_255.decode(protocolBuffer) as A3DTransformation;
|
||||
var value_transformation:A3DTransformation = this.§_-9u§.decode(protocolBuffer) as A3DTransformation;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","transformation",value_transformation);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","visible",value_visible);
|
||||
return new A3DObject(value_boundBoxId,value_geometryId,value_id,value_name,value_parentId,value_surfaces,value_transformation,value_visible);
|
||||
}
|
||||
@@ -79,14 +79,14 @@ package _codec.versions.version1.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DObject = A3DObject(object);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_256.encode(protocolBuffer,struct.geometryId);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_248.encode(protocolBuffer,struct.surfaces);
|
||||
this.var_255.encode(protocolBuffer,struct.transformation);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-e§.encode(protocolBuffer,struct.geometryId);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-Qr§.encode(protocolBuffer,struct.surfaces);
|
||||
this.§_-9u§.encode(protocolBuffer,struct.transformation);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,11 +13,11 @@ package _codec.versions.version1.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_302:ICodec;
|
||||
private var §_-AL§:ICodec;
|
||||
|
||||
private var var_291:ICodec;
|
||||
private var §_-Av§:ICodec;
|
||||
|
||||
private var var_303:ICodec;
|
||||
private var §_-pJ§:ICodec;
|
||||
|
||||
public function CodecA3DSurface()
|
||||
{
|
||||
@@ -26,19 +26,19 @@ package _codec.versions.version1.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_302 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_291 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_303 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-AL§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-Av§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-pJ§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_indexBegin:int = int(this.var_302.decode(protocolBuffer) as int);
|
||||
var value_indexBegin:int = int(this.§_-AL§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DSurface","indexBegin",value_indexBegin);
|
||||
var value_materialId:Id = this.var_291.decode(protocolBuffer) as Id;
|
||||
var value_materialId:Id = this.§_-Av§.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DSurface","materialId",value_materialId);
|
||||
var value_numTriangles:int = int(this.var_303.decode(protocolBuffer) as int);
|
||||
var value_numTriangles:int = int(this.§_-pJ§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DSurface","numTriangles",value_numTriangles);
|
||||
return new A3DSurface(value_indexBegin,value_materialId,value_numTriangles);
|
||||
}
|
||||
@@ -50,9 +50,9 @@ package _codec.versions.version1.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DSurface = A3DSurface(object);
|
||||
this.var_302.encode(protocolBuffer,struct.indexBegin);
|
||||
this.var_291.encode(protocolBuffer,struct.materialId);
|
||||
this.var_303.encode(protocolBuffer,struct.numTriangles);
|
||||
this.§_-AL§.encode(protocolBuffer,struct.indexBegin);
|
||||
this.§_-Av§.encode(protocolBuffer,struct.materialId);
|
||||
this.§_-pJ§.encode(protocolBuffer,struct.numTriangles);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ package _codec.versions.version1.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_411:ICodec;
|
||||
private var §_-dG§:ICodec;
|
||||
|
||||
public function CodecA3DTransformation()
|
||||
{
|
||||
@@ -22,13 +22,13 @@ package _codec.versions.version1.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_411 = protocol.getCodec(new TypeCodecInfo(A3DMatrix,true));
|
||||
this.§_-dG§ = protocol.getCodec(new TypeCodecInfo(A3DMatrix,true));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_matrix:A3DMatrix = this.var_411.decode(protocolBuffer) as A3DMatrix;
|
||||
var value_matrix:A3DMatrix = this.§_-dG§.decode(protocolBuffer) as A3DMatrix;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DTransformation","matrix",value_matrix);
|
||||
return new A3DTransformation(value_matrix);
|
||||
}
|
||||
@@ -40,7 +40,7 @@ package _codec.versions.version1.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DTransformation = A3DTransformation(object);
|
||||
this.var_411.encode(protocolBuffer,struct.matrix);
|
||||
this.§_-dG§.encode(protocolBuffer,struct.matrix);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,43 +32,43 @@ package _codec.versions.version2.a3d
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_355:ICodec;
|
||||
private var §_-8X§:ICodec;
|
||||
|
||||
private var var_360:ICodec;
|
||||
private var §_-Fa§:ICodec;
|
||||
|
||||
private var var_357:ICodec;
|
||||
private var §_-Aj§:ICodec;
|
||||
|
||||
private var var_359:ICodec;
|
||||
private var §_-EA§:ICodec;
|
||||
|
||||
private var var_367:ICodec;
|
||||
private var §_-lJ§:ICodec;
|
||||
|
||||
private var var_356:ICodec;
|
||||
private var §_-9f§:ICodec;
|
||||
|
||||
private var var_361:ICodec;
|
||||
private var §_-GC§:ICodec;
|
||||
|
||||
private var var_363:ICodec;
|
||||
private var §_-Sd§:ICodec;
|
||||
|
||||
private var var_353:ICodec;
|
||||
private var §_-76§:ICodec;
|
||||
|
||||
private var var_244:ICodec;
|
||||
private var §_-3f§:ICodec;
|
||||
|
||||
private var var_365:ICodec;
|
||||
private var §_-dB§:ICodec;
|
||||
|
||||
private var var_354:ICodec;
|
||||
private var §_-77§:ICodec;
|
||||
|
||||
private var var_362:ICodec;
|
||||
private var §_-PJ§:ICodec;
|
||||
|
||||
private var var_351:ICodec;
|
||||
private var §_-1x§:ICodec;
|
||||
|
||||
private var var_364:ICodec;
|
||||
private var §_-aP§:ICodec;
|
||||
|
||||
private var var_366:ICodec;
|
||||
private var §_-e9§:ICodec;
|
||||
|
||||
private var var_352:ICodec;
|
||||
private var §_-3y§:ICodec;
|
||||
|
||||
private var var_358:ICodec;
|
||||
private var §_-E2§:ICodec;
|
||||
|
||||
private var var_250:ICodec;
|
||||
private var §_-U9§:ICodec;
|
||||
|
||||
public function CodecA3D2()
|
||||
{
|
||||
@@ -77,67 +77,67 @@ package _codec.versions.version2.a3d
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_355 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,false),true,1));
|
||||
this.var_360 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,false),true,1));
|
||||
this.var_357 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,false),true,1));
|
||||
this.var_359 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,false),true,1));
|
||||
this.var_367 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,false),true,1));
|
||||
this.var_356 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,false),true,1));
|
||||
this.var_361 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,false),true,1));
|
||||
this.var_363 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,false),true,1));
|
||||
this.var_353 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,false),true,1));
|
||||
this.var_244 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,false),true,1));
|
||||
this.var_365 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,false),true,1));
|
||||
this.var_354 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,false),true,1));
|
||||
this.var_362 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,false),true,1));
|
||||
this.var_351 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,false),true,1));
|
||||
this.var_364 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,false),true,1));
|
||||
this.var_366 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,false),true,1));
|
||||
this.var_352 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,false),true,1));
|
||||
this.var_358 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,false),true,1));
|
||||
this.var_250 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,false),true,1));
|
||||
this.§_-8X§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,false),true,1));
|
||||
this.§_-Fa§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,false),true,1));
|
||||
this.§_-Aj§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,false),true,1));
|
||||
this.§_-EA§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,false),true,1));
|
||||
this.§_-lJ§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,false),true,1));
|
||||
this.§_-9f§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,false),true,1));
|
||||
this.§_-GC§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,false),true,1));
|
||||
this.§_-Sd§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,false),true,1));
|
||||
this.§_-76§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,false),true,1));
|
||||
this.§_-3f§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,false),true,1));
|
||||
this.§_-dB§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,false),true,1));
|
||||
this.§_-77§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,false),true,1));
|
||||
this.§_-PJ§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,false),true,1));
|
||||
this.§_-1x§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,false),true,1));
|
||||
this.§_-aP§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,false),true,1));
|
||||
this.§_-e9§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,false),true,1));
|
||||
this.§_-3y§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,false),true,1));
|
||||
this.§_-E2§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,false),true,1));
|
||||
this.§_-U9§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,false),true,1));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_ambientLights:Vector.<A3D2AmbientLight> = this.var_355.decode(protocolBuffer) as Vector.<A3D2AmbientLight>;
|
||||
var value_ambientLights:Vector.<A3D2AmbientLight> = this.§_-8X§.decode(protocolBuffer) as Vector.<A3D2AmbientLight>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","ambientLights",value_ambientLights);
|
||||
var value_animationClips:Vector.<A3D2AnimationClip> = this.var_360.decode(protocolBuffer) as Vector.<A3D2AnimationClip>;
|
||||
var value_animationClips:Vector.<A3D2AnimationClip> = this.§_-Fa§.decode(protocolBuffer) as Vector.<A3D2AnimationClip>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","animationClips",value_animationClips);
|
||||
var value_animationTracks:Vector.<A3D2Track> = this.var_357.decode(protocolBuffer) as Vector.<A3D2Track>;
|
||||
var value_animationTracks:Vector.<A3D2Track> = this.§_-Aj§.decode(protocolBuffer) as Vector.<A3D2Track>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","animationTracks",value_animationTracks);
|
||||
var value_boxes:Vector.<A3D2Box> = this.var_359.decode(protocolBuffer) as Vector.<A3D2Box>;
|
||||
var value_boxes:Vector.<A3D2Box> = this.§_-EA§.decode(protocolBuffer) as Vector.<A3D2Box>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","boxes",value_boxes);
|
||||
var value_cubeMaps:Vector.<A3D2CubeMap> = this.var_367.decode(protocolBuffer) as Vector.<A3D2CubeMap>;
|
||||
var value_cubeMaps:Vector.<A3D2CubeMap> = this.§_-lJ§.decode(protocolBuffer) as Vector.<A3D2CubeMap>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","cubeMaps",value_cubeMaps);
|
||||
var value_decals:Vector.<A3D2Decal> = this.var_356.decode(protocolBuffer) as Vector.<A3D2Decal>;
|
||||
var value_decals:Vector.<A3D2Decal> = this.§_-9f§.decode(protocolBuffer) as Vector.<A3D2Decal>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","decals",value_decals);
|
||||
var value_directionalLights:Vector.<A3D2DirectionalLight> = this.var_361.decode(protocolBuffer) as Vector.<A3D2DirectionalLight>;
|
||||
var value_directionalLights:Vector.<A3D2DirectionalLight> = this.§_-GC§.decode(protocolBuffer) as Vector.<A3D2DirectionalLight>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","directionalLights",value_directionalLights);
|
||||
var value_images:Vector.<A3D2Image> = this.var_363.decode(protocolBuffer) as Vector.<A3D2Image>;
|
||||
var value_images:Vector.<A3D2Image> = this.§_-Sd§.decode(protocolBuffer) as Vector.<A3D2Image>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","images",value_images);
|
||||
var value_indexBuffers:Vector.<A3D2IndexBuffer> = this.var_353.decode(protocolBuffer) as Vector.<A3D2IndexBuffer>;
|
||||
var value_indexBuffers:Vector.<A3D2IndexBuffer> = this.§_-76§.decode(protocolBuffer) as Vector.<A3D2IndexBuffer>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","indexBuffers",value_indexBuffers);
|
||||
var value_joints:Vector.<A3D2Joint> = this.var_244.decode(protocolBuffer) as Vector.<A3D2Joint>;
|
||||
var value_joints:Vector.<A3D2Joint> = this.§_-3f§.decode(protocolBuffer) as Vector.<A3D2Joint>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","joints",value_joints);
|
||||
var value_maps:Vector.<A3D2Map> = this.var_365.decode(protocolBuffer) as Vector.<A3D2Map>;
|
||||
var value_maps:Vector.<A3D2Map> = this.§_-dB§.decode(protocolBuffer) as Vector.<A3D2Map>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","maps",value_maps);
|
||||
var value_materials:Vector.<A3D2Material> = this.var_354.decode(protocolBuffer) as Vector.<A3D2Material>;
|
||||
var value_materials:Vector.<A3D2Material> = this.§_-77§.decode(protocolBuffer) as Vector.<A3D2Material>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","materials",value_materials);
|
||||
var value_meshes:Vector.<A3D2Mesh> = this.var_362.decode(protocolBuffer) as Vector.<A3D2Mesh>;
|
||||
var value_meshes:Vector.<A3D2Mesh> = this.§_-PJ§.decode(protocolBuffer) as Vector.<A3D2Mesh>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","meshes",value_meshes);
|
||||
var value_objects:Vector.<A3D2Object> = this.var_351.decode(protocolBuffer) as Vector.<A3D2Object>;
|
||||
var value_objects:Vector.<A3D2Object> = this.§_-1x§.decode(protocolBuffer) as Vector.<A3D2Object>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","objects",value_objects);
|
||||
var value_omniLights:Vector.<A3D2OmniLight> = this.var_364.decode(protocolBuffer) as Vector.<A3D2OmniLight>;
|
||||
var value_omniLights:Vector.<A3D2OmniLight> = this.§_-aP§.decode(protocolBuffer) as Vector.<A3D2OmniLight>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","omniLights",value_omniLights);
|
||||
var value_skins:Vector.<A3D2Skin> = this.var_366.decode(protocolBuffer) as Vector.<A3D2Skin>;
|
||||
var value_skins:Vector.<A3D2Skin> = this.§_-e9§.decode(protocolBuffer) as Vector.<A3D2Skin>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","skins",value_skins);
|
||||
var value_spotLights:Vector.<A3D2SpotLight> = this.var_352.decode(protocolBuffer) as Vector.<A3D2SpotLight>;
|
||||
var value_spotLights:Vector.<A3D2SpotLight> = this.§_-3y§.decode(protocolBuffer) as Vector.<A3D2SpotLight>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","spotLights",value_spotLights);
|
||||
var value_sprites:Vector.<A3D2Sprite> = this.var_358.decode(protocolBuffer) as Vector.<A3D2Sprite>;
|
||||
var value_sprites:Vector.<A3D2Sprite> = this.§_-E2§.decode(protocolBuffer) as Vector.<A3D2Sprite>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","sprites",value_sprites);
|
||||
var value_vertexBuffers:Vector.<A3D2VertexBuffer> = this.var_250.decode(protocolBuffer) as Vector.<A3D2VertexBuffer>;
|
||||
var value_vertexBuffers:Vector.<A3D2VertexBuffer> = this.§_-U9§.decode(protocolBuffer) as Vector.<A3D2VertexBuffer>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","vertexBuffers",value_vertexBuffers);
|
||||
return new A3D2(value_ambientLights,value_animationClips,value_animationTracks,value_boxes,value_cubeMaps,value_decals,value_directionalLights,value_images,value_indexBuffers,value_joints,value_maps,value_materials,value_meshes,value_objects,value_omniLights,value_skins,value_spotLights,value_sprites,value_vertexBuffers);
|
||||
}
|
||||
@@ -149,25 +149,25 @@ package _codec.versions.version2.a3d
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2 = A3D2(object);
|
||||
this.var_355.encode(protocolBuffer,struct.ambientLights);
|
||||
this.var_360.encode(protocolBuffer,struct.animationClips);
|
||||
this.var_357.encode(protocolBuffer,struct.animationTracks);
|
||||
this.var_359.encode(protocolBuffer,struct.boxes);
|
||||
this.var_367.encode(protocolBuffer,struct.cubeMaps);
|
||||
this.var_356.encode(protocolBuffer,struct.decals);
|
||||
this.var_361.encode(protocolBuffer,struct.directionalLights);
|
||||
this.var_363.encode(protocolBuffer,struct.images);
|
||||
this.var_353.encode(protocolBuffer,struct.indexBuffers);
|
||||
this.var_244.encode(protocolBuffer,struct.joints);
|
||||
this.var_365.encode(protocolBuffer,struct.maps);
|
||||
this.var_354.encode(protocolBuffer,struct.materials);
|
||||
this.var_362.encode(protocolBuffer,struct.meshes);
|
||||
this.var_351.encode(protocolBuffer,struct.objects);
|
||||
this.var_364.encode(protocolBuffer,struct.omniLights);
|
||||
this.var_366.encode(protocolBuffer,struct.skins);
|
||||
this.var_352.encode(protocolBuffer,struct.spotLights);
|
||||
this.var_358.encode(protocolBuffer,struct.sprites);
|
||||
this.var_250.encode(protocolBuffer,struct.vertexBuffers);
|
||||
this.§_-8X§.encode(protocolBuffer,struct.ambientLights);
|
||||
this.§_-Fa§.encode(protocolBuffer,struct.animationClips);
|
||||
this.§_-Aj§.encode(protocolBuffer,struct.animationTracks);
|
||||
this.§_-EA§.encode(protocolBuffer,struct.boxes);
|
||||
this.§_-lJ§.encode(protocolBuffer,struct.cubeMaps);
|
||||
this.§_-9f§.encode(protocolBuffer,struct.decals);
|
||||
this.§_-GC§.encode(protocolBuffer,struct.directionalLights);
|
||||
this.§_-Sd§.encode(protocolBuffer,struct.images);
|
||||
this.§_-76§.encode(protocolBuffer,struct.indexBuffers);
|
||||
this.§_-3f§.encode(protocolBuffer,struct.joints);
|
||||
this.§_-dB§.encode(protocolBuffer,struct.maps);
|
||||
this.§_-77§.encode(protocolBuffer,struct.materials);
|
||||
this.§_-PJ§.encode(protocolBuffer,struct.meshes);
|
||||
this.§_-1x§.encode(protocolBuffer,struct.objects);
|
||||
this.§_-aP§.encode(protocolBuffer,struct.omniLights);
|
||||
this.§_-e9§.encode(protocolBuffer,struct.skins);
|
||||
this.§_-3y§.encode(protocolBuffer,struct.spotLights);
|
||||
this.§_-E2§.encode(protocolBuffer,struct.sprites);
|
||||
this.§_-U9§.encode(protocolBuffer,struct.vertexBuffers);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,15 +14,15 @@ package _codec.versions.version2.a3d.animation
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_304:ICodec;
|
||||
private var §_-HX§:ICodec;
|
||||
|
||||
private var var_251:ICodec;
|
||||
private var §_-XW§:ICodec;
|
||||
|
||||
private var var_305:ICodec;
|
||||
private var §_-Td§:ICodec;
|
||||
|
||||
private var var_306:ICodec;
|
||||
private var §_-Z-§:ICodec;
|
||||
|
||||
public function CodecA3D2AnimationClip()
|
||||
{
|
||||
@@ -31,25 +31,25 @@ package _codec.versions.version2.a3d.animation
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_304 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_305 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),true,1));
|
||||
this.var_306 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-HX§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-Td§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),true,1));
|
||||
this.§_-Z-§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_id:int = int(this.var_243.decode(protocolBuffer) as int);
|
||||
var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","id",value_id);
|
||||
var value_loop:Boolean = Boolean(this.var_304.decode(protocolBuffer) as Boolean);
|
||||
var value_loop:Boolean = Boolean(this.§_-HX§.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","loop",value_loop);
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","name",value_name);
|
||||
var value_objectIDs:Vector.<Long> = this.var_305.decode(protocolBuffer) as Vector.<Long>;
|
||||
var value_objectIDs:Vector.<Long> = this.§_-Td§.decode(protocolBuffer) as Vector.<Long>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","objectIDs",value_objectIDs);
|
||||
var value_tracks:Vector.<int> = this.var_306.decode(protocolBuffer) as Vector.<int>;
|
||||
var value_tracks:Vector.<int> = this.§_-Z-§.decode(protocolBuffer) as Vector.<int>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","tracks",value_tracks);
|
||||
return new A3D2AnimationClip(value_id,value_loop,value_name,value_objectIDs,value_tracks);
|
||||
}
|
||||
@@ -61,11 +61,11 @@ package _codec.versions.version2.a3d.animation
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2AnimationClip = A3D2AnimationClip(object);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_304.encode(protocolBuffer,struct.loop);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_305.encode(protocolBuffer,struct.objectIDs);
|
||||
this.var_306.encode(protocolBuffer,struct.tracks);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-HX§.encode(protocolBuffer,struct.loop);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-Td§.encode(protocolBuffer,struct.objectIDs);
|
||||
this.§_-Z-§.encode(protocolBuffer,struct.tracks);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,9 +14,9 @@ package _codec.versions.version2.a3d.animation
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_395:ICodec;
|
||||
private var §_-dk§:ICodec;
|
||||
|
||||
private var var_249:ICodec;
|
||||
private var §_-S2§:ICodec;
|
||||
|
||||
public function CodecA3D2Keyframe()
|
||||
{
|
||||
@@ -25,16 +25,16 @@ package _codec.versions.version2.a3d.animation
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_395 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false));
|
||||
this.§_-dk§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_time:Number = Number(this.var_395.decode(protocolBuffer) as Number);
|
||||
var value_time:Number = Number(this.§_-dk§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Keyframe","time",value_time);
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Keyframe","transform",value_transform);
|
||||
return new A3D2Keyframe(value_time,value_transform);
|
||||
}
|
||||
@@ -46,8 +46,8 @@ package _codec.versions.version2.a3d.animation
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Keyframe = A3D2Keyframe(object);
|
||||
this.var_395.encode(protocolBuffer,struct.time);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
this.§_-dk§.encode(protocolBuffer,struct.time);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,11 +14,11 @@ package _codec.versions.version2.a3d.animation
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_394:ICodec;
|
||||
private var §_-Ja§:ICodec;
|
||||
|
||||
private var var_393:ICodec;
|
||||
private var §_-Fo§:ICodec;
|
||||
|
||||
public function CodecA3D2Track()
|
||||
{
|
||||
@@ -27,19 +27,19 @@ package _codec.versions.version2.a3d.animation
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_394 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,false),false,1));
|
||||
this.var_393 = protocol.getCodec(new TypeCodecInfo(String,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-Ja§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,false),false,1));
|
||||
this.§_-Fo§ = protocol.getCodec(new TypeCodecInfo(String,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_id:int = int(this.var_243.decode(protocolBuffer) as int);
|
||||
var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Track","id",value_id);
|
||||
var value_keyframes:Vector.<A3D2Keyframe> = this.var_394.decode(protocolBuffer) as Vector.<A3D2Keyframe>;
|
||||
var value_keyframes:Vector.<A3D2Keyframe> = this.§_-Ja§.decode(protocolBuffer) as Vector.<A3D2Keyframe>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Track","keyframes",value_keyframes);
|
||||
var value_objectName:String = this.var_393.decode(protocolBuffer) as String;
|
||||
var value_objectName:String = this.§_-Fo§.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Track","objectName",value_objectName);
|
||||
return new A3D2Track(value_id,value_keyframes,value_objectName);
|
||||
}
|
||||
@@ -51,9 +51,9 @@ package _codec.versions.version2.a3d.animation
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Track = A3D2Track(object);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_394.encode(protocolBuffer,struct.keyframes);
|
||||
this.var_393.encode(protocolBuffer,struct.objectName);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-Ja§.encode(protocolBuffer,struct.keyframes);
|
||||
this.§_-Fo§.encode(protocolBuffer,struct.objectName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,11 +13,11 @@ package _codec.versions.version2.a3d.geometry
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_240:ICodec;
|
||||
private var §_-GN§:ICodec;
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_308:ICodec;
|
||||
private var §_-mz§:ICodec;
|
||||
|
||||
public function CodecA3D2IndexBuffer()
|
||||
{
|
||||
@@ -26,19 +26,19 @@ package _codec.versions.version2.a3d.geometry
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_240 = protocol.getCodec(new TypeCodecInfo(ByteArray,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_308 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-GN§ = protocol.getCodec(new TypeCodecInfo(ByteArray,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-mz§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_byteBuffer:ByteArray = this.var_240.decode(protocolBuffer) as ByteArray;
|
||||
var value_byteBuffer:ByteArray = this.§_-GN§.decode(protocolBuffer) as ByteArray;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2IndexBuffer","byteBuffer",value_byteBuffer);
|
||||
var value_id:int = int(this.var_243.decode(protocolBuffer) as int);
|
||||
var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2IndexBuffer","id",value_id);
|
||||
var value_indexCount:int = int(this.var_308.decode(protocolBuffer) as int);
|
||||
var value_indexCount:int = int(this.§_-mz§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2IndexBuffer","indexCount",value_indexCount);
|
||||
return new A3D2IndexBuffer(value_byteBuffer,value_id,value_indexCount);
|
||||
}
|
||||
@@ -50,9 +50,9 @@ package _codec.versions.version2.a3d.geometry
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2IndexBuffer = A3D2IndexBuffer(object);
|
||||
this.var_240.encode(protocolBuffer,struct.byteBuffer);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_308.encode(protocolBuffer,struct.indexCount);
|
||||
this.§_-GN§.encode(protocolBuffer,struct.byteBuffer);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-mz§.encode(protocolBuffer,struct.indexCount);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,13 +17,13 @@ package _codec.versions.version2.a3d.geometry
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_241:ICodec;
|
||||
private var §_-Lj§:ICodec;
|
||||
|
||||
private var var_240:ICodec;
|
||||
private var §_-GN§:ICodec;
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_242:ICodec;
|
||||
private var §_-hc§:ICodec;
|
||||
|
||||
public function CodecA3D2VertexBuffer()
|
||||
{
|
||||
@@ -32,22 +32,22 @@ package _codec.versions.version2.a3d.geometry
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_241 = protocol.getCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,false),false,1));
|
||||
this.var_240 = protocol.getCodec(new TypeCodecInfo(ByteArray,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_242 = protocol.getCodec(new TypeCodecInfo(UShort,false));
|
||||
this.§_-Lj§ = protocol.getCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,false),false,1));
|
||||
this.§_-GN§ = protocol.getCodec(new TypeCodecInfo(ByteArray,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-hc§ = protocol.getCodec(new TypeCodecInfo(UShort,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_attributes:Vector.<A3D2VertexAttributes> = this.var_241.decode(protocolBuffer) as Vector.<A3D2VertexAttributes>;
|
||||
var value_attributes:Vector.<A3D2VertexAttributes> = this.§_-Lj§.decode(protocolBuffer) as Vector.<A3D2VertexAttributes>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2VertexBuffer","attributes",value_attributes);
|
||||
var value_byteBuffer:ByteArray = this.var_240.decode(protocolBuffer) as ByteArray;
|
||||
var value_byteBuffer:ByteArray = this.§_-GN§.decode(protocolBuffer) as ByteArray;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2VertexBuffer","byteBuffer",value_byteBuffer);
|
||||
var value_id:int = int(this.var_243.decode(protocolBuffer) as int);
|
||||
var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2VertexBuffer","id",value_id);
|
||||
var value_vertexCount:uint = uint(this.var_242.decode(protocolBuffer) as uint);
|
||||
var value_vertexCount:uint = uint(this.§_-hc§.decode(protocolBuffer) as uint);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2VertexBuffer","vertexCount",value_vertexCount);
|
||||
return new A3D2VertexBuffer(value_attributes,value_byteBuffer,value_id,value_vertexCount);
|
||||
}
|
||||
@@ -59,10 +59,10 @@ package _codec.versions.version2.a3d.geometry
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2VertexBuffer = A3D2VertexBuffer(object);
|
||||
this.var_241.encode(protocolBuffer,struct.attributes);
|
||||
this.var_240.encode(protocolBuffer,struct.byteBuffer);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_242.encode(protocolBuffer,struct.vertexCount);
|
||||
this.§_-Lj§.encode(protocolBuffer,struct.attributes);
|
||||
this.§_-GN§.encode(protocolBuffer,struct.byteBuffer);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-hc§.encode(protocolBuffer,struct.vertexCount);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,19 +12,19 @@ package _codec.versions.version2.a3d.materials
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_372:ICodec;
|
||||
private var §_-Yc§:ICodec;
|
||||
|
||||
private var var_370:ICodec;
|
||||
private var §_-SV§:ICodec;
|
||||
|
||||
private var var_369:ICodec;
|
||||
private var §_-Ni§:ICodec;
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_373:ICodec;
|
||||
private var §_-nb§:ICodec;
|
||||
|
||||
private var var_368:ICodec;
|
||||
private var §_-23§:ICodec;
|
||||
|
||||
private var var_371:ICodec;
|
||||
private var §_-TW§:ICodec;
|
||||
|
||||
public function CodecA3D2CubeMap()
|
||||
{
|
||||
@@ -33,31 +33,31 @@ package _codec.versions.version2.a3d.materials
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_372 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_370 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_369 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_373 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_368 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_371 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-Yc§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-SV§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-Ni§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-nb§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-23§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-TW§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_backId:int = int(this.var_372.decode(protocolBuffer) as int);
|
||||
var value_backId:int = int(this.§_-Yc§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","backId",value_backId);
|
||||
var value_bottomId:int = int(this.var_370.decode(protocolBuffer) as int);
|
||||
var value_bottomId:int = int(this.§_-SV§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","bottomId",value_bottomId);
|
||||
var value_frontId:int = int(this.var_369.decode(protocolBuffer) as int);
|
||||
var value_frontId:int = int(this.§_-Ni§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","frontId",value_frontId);
|
||||
var value_id:int = int(this.var_243.decode(protocolBuffer) as int);
|
||||
var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","id",value_id);
|
||||
var value_leftId:int = int(this.var_373.decode(protocolBuffer) as int);
|
||||
var value_leftId:int = int(this.§_-nb§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","leftId",value_leftId);
|
||||
var value_rightId:int = int(this.var_368.decode(protocolBuffer) as int);
|
||||
var value_rightId:int = int(this.§_-23§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","rightId",value_rightId);
|
||||
var value_topId:int = int(this.var_371.decode(protocolBuffer) as int);
|
||||
var value_topId:int = int(this.§_-TW§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","topId",value_topId);
|
||||
return new A3D2CubeMap(value_backId,value_bottomId,value_frontId,value_id,value_leftId,value_rightId,value_topId);
|
||||
}
|
||||
@@ -69,13 +69,13 @@ package _codec.versions.version2.a3d.materials
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2CubeMap = A3D2CubeMap(object);
|
||||
this.var_372.encode(protocolBuffer,struct.backId);
|
||||
this.var_370.encode(protocolBuffer,struct.bottomId);
|
||||
this.var_369.encode(protocolBuffer,struct.frontId);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_373.encode(protocolBuffer,struct.leftId);
|
||||
this.var_368.encode(protocolBuffer,struct.rightId);
|
||||
this.var_371.encode(protocolBuffer,struct.topId);
|
||||
this.§_-Yc§.encode(protocolBuffer,struct.backId);
|
||||
this.§_-SV§.encode(protocolBuffer,struct.bottomId);
|
||||
this.§_-Ni§.encode(protocolBuffer,struct.frontId);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-nb§.encode(protocolBuffer,struct.leftId);
|
||||
this.§_-23§.encode(protocolBuffer,struct.rightId);
|
||||
this.§_-TW§.encode(protocolBuffer,struct.topId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,9 +12,9 @@ package _codec.versions.version2.a3d.materials
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_307:ICodec;
|
||||
private var §_-aV§:ICodec;
|
||||
|
||||
public function CodecA3D2Image()
|
||||
{
|
||||
@@ -23,16 +23,16 @@ package _codec.versions.version2.a3d.materials
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_307 = protocol.getCodec(new TypeCodecInfo(String,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-aV§ = protocol.getCodec(new TypeCodecInfo(String,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_id:int = int(this.var_243.decode(protocolBuffer) as int);
|
||||
var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Image","id",value_id);
|
||||
var value_url:String = this.var_307.decode(protocolBuffer) as String;
|
||||
var value_url:String = this.§_-aV§.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Image","url",value_url);
|
||||
return new A3D2Image(value_id,value_url);
|
||||
}
|
||||
@@ -44,8 +44,8 @@ package _codec.versions.version2.a3d.materials
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Image = A3D2Image(object);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_307.encode(protocolBuffer,struct.url);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-aV§.encode(protocolBuffer,struct.url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,11 +13,11 @@ package _codec.versions.version2.a3d.materials
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_322:ICodec;
|
||||
private var §_-mC§:ICodec;
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_321:ICodec;
|
||||
private var §_-2N§:ICodec;
|
||||
|
||||
public function CodecA3D2Map()
|
||||
{
|
||||
@@ -26,19 +26,19 @@ package _codec.versions.version2.a3d.materials
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_322 = protocol.getCodec(new TypeCodecInfo(UShort,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_321 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-mC§ = protocol.getCodec(new TypeCodecInfo(UShort,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-2N§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_channel:uint = uint(this.var_322.decode(protocolBuffer) as uint);
|
||||
var value_channel:uint = uint(this.§_-mC§.decode(protocolBuffer) as uint);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Map","channel",value_channel);
|
||||
var value_id:int = int(this.var_243.decode(protocolBuffer) as int);
|
||||
var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Map","id",value_id);
|
||||
var value_imageId:int = int(this.var_321.decode(protocolBuffer) as int);
|
||||
var value_imageId:int = int(this.§_-2N§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Map","imageId",value_imageId);
|
||||
return new A3D2Map(value_channel,value_id,value_imageId);
|
||||
}
|
||||
@@ -50,9 +50,9 @@ package _codec.versions.version2.a3d.materials
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Map = A3D2Map(object);
|
||||
this.var_322.encode(protocolBuffer,struct.channel);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_321.encode(protocolBuffer,struct.imageId);
|
||||
this.§_-mC§.encode(protocolBuffer,struct.channel);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-2N§.encode(protocolBuffer,struct.imageId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,21 +12,21 @@ package _codec.versions.version2.a3d.materials
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_381:ICodec;
|
||||
private var §_-9A§:ICodec;
|
||||
|
||||
private var var_386:ICodec;
|
||||
private var §_-hw§:ICodec;
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_384:ICodec;
|
||||
private var §_-Hu§:ICodec;
|
||||
|
||||
private var var_383:ICodec;
|
||||
private var §_-GK§:ICodec;
|
||||
|
||||
private var var_385:ICodec;
|
||||
private var §_-LZ§:ICodec;
|
||||
|
||||
private var var_418:ICodec;
|
||||
private var §_-bz§:ICodec;
|
||||
|
||||
private var var_382:ICodec;
|
||||
private var §_-FU§:ICodec;
|
||||
|
||||
public function CodecA3D2Material()
|
||||
{
|
||||
@@ -35,34 +35,34 @@ package _codec.versions.version2.a3d.materials
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_381 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_386 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_384 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_383 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_385 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_418 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_382 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-9A§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-hw§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-Hu§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-GK§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-LZ§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-bz§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-FU§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_diffuseMapId:int = int(this.var_381.decode(protocolBuffer) as int);
|
||||
var value_diffuseMapId:int = int(this.§_-9A§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","diffuseMapId",value_diffuseMapId);
|
||||
var value_glossinessMapId:int = int(this.var_386.decode(protocolBuffer) as int);
|
||||
var value_glossinessMapId:int = int(this.§_-hw§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","glossinessMapId",value_glossinessMapId);
|
||||
var value_id:int = int(this.var_243.decode(protocolBuffer) as int);
|
||||
var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","id",value_id);
|
||||
var value_lightMapId:int = int(this.var_384.decode(protocolBuffer) as int);
|
||||
var value_lightMapId:int = int(this.§_-Hu§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","lightMapId",value_lightMapId);
|
||||
var value_normalMapId:int = int(this.var_383.decode(protocolBuffer) as int);
|
||||
var value_normalMapId:int = int(this.§_-GK§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","normalMapId",value_normalMapId);
|
||||
var value_opacityMapId:int = int(this.var_385.decode(protocolBuffer) as int);
|
||||
var value_opacityMapId:int = int(this.§_-LZ§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","opacityMapId",value_opacityMapId);
|
||||
var value_reflectionCubeMapId:int = int(this.var_418.decode(protocolBuffer) as int);
|
||||
var value_reflectionCubeMapId:int = int(this.§_-bz§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","reflectionCubeMapId",value_reflectionCubeMapId);
|
||||
var value_specularMapId:int = int(this.var_382.decode(protocolBuffer) as int);
|
||||
var value_specularMapId:int = int(this.§_-FU§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","specularMapId",value_specularMapId);
|
||||
return new A3D2Material(value_diffuseMapId,value_glossinessMapId,value_id,value_lightMapId,value_normalMapId,value_opacityMapId,value_reflectionCubeMapId,value_specularMapId);
|
||||
}
|
||||
@@ -74,14 +74,14 @@ package _codec.versions.version2.a3d.materials
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Material = A3D2Material(object);
|
||||
this.var_381.encode(protocolBuffer,struct.diffuseMapId);
|
||||
this.var_386.encode(protocolBuffer,struct.glossinessMapId);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_384.encode(protocolBuffer,struct.lightMapId);
|
||||
this.var_383.encode(protocolBuffer,struct.normalMapId);
|
||||
this.var_385.encode(protocolBuffer,struct.opacityMapId);
|
||||
this.var_418.encode(protocolBuffer,struct.reflectionCubeMapId);
|
||||
this.var_382.encode(protocolBuffer,struct.specularMapId);
|
||||
this.§_-9A§.encode(protocolBuffer,struct.diffuseMapId);
|
||||
this.§_-hw§.encode(protocolBuffer,struct.glossinessMapId);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-Hu§.encode(protocolBuffer,struct.lightMapId);
|
||||
this.§_-GK§.encode(protocolBuffer,struct.normalMapId);
|
||||
this.§_-LZ§.encode(protocolBuffer,struct.opacityMapId);
|
||||
this.§_-bz§.encode(protocolBuffer,struct.reflectionCubeMapId);
|
||||
this.§_-FU§.encode(protocolBuffer,struct.specularMapId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,21 +15,21 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_245:ICodec;
|
||||
private var §_-Dh§:ICodec;
|
||||
|
||||
private var var_260:ICodec;
|
||||
private var §_-Po§:ICodec;
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_258:ICodec;
|
||||
private var §_-JX§:ICodec;
|
||||
|
||||
private var var_251:ICodec;
|
||||
private var §_-XW§:ICodec;
|
||||
|
||||
private var var_254:ICodec;
|
||||
private var §_-jk§:ICodec;
|
||||
|
||||
private var var_249:ICodec;
|
||||
private var §_-S2§:ICodec;
|
||||
|
||||
private var var_253:ICodec;
|
||||
private var §_-h9§:ICodec;
|
||||
|
||||
public function CodecA3D2AmbientLight()
|
||||
{
|
||||
@@ -38,34 +38,34 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_260 = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.var_258 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-Po§ = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.§_-JX§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_boundBoxId:int = int(this.var_245.decode(protocolBuffer) as int);
|
||||
var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","boundBoxId",value_boundBoxId);
|
||||
var value_color:uint = uint(this.var_260.decode(protocolBuffer) as uint);
|
||||
var value_color:uint = uint(this.§_-Po§.decode(protocolBuffer) as uint);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","color",value_color);
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","id",value_id);
|
||||
var value_intensity:Number = Number(this.var_258.decode(protocolBuffer) as Number);
|
||||
var value_intensity:Number = Number(this.§_-JX§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","intensity",value_intensity);
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","name",value_name);
|
||||
var value_parentId:Long = this.var_254.decode(protocolBuffer) as Long;
|
||||
var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","parentId",value_parentId);
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","transform",value_transform);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","visible",value_visible);
|
||||
return new A3D2AmbientLight(value_boundBoxId,value_color,value_id,value_intensity,value_name,value_parentId,value_transform,value_visible);
|
||||
}
|
||||
@@ -77,14 +77,14 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2AmbientLight = A3D2AmbientLight(object);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_260.encode(protocolBuffer,struct.color);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_258.encode(protocolBuffer,struct.intensity);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-Po§.encode(protocolBuffer,struct.color);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-JX§.encode(protocolBuffer,struct.intensity);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,9 +14,9 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_284:ICodec;
|
||||
private var §_-pM§:ICodec;
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
public function CodecA3D2Box()
|
||||
{
|
||||
@@ -25,16 +25,16 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_284 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),false,1));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-pM§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),false,1));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_box:Vector.<Number> = this.var_284.decode(protocolBuffer) as Vector.<Number>;
|
||||
var value_box:Vector.<Number> = this.§_-pM§.decode(protocolBuffer) as Vector.<Number>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Box","box",value_box);
|
||||
var value_id:int = int(this.var_243.decode(protocolBuffer) as int);
|
||||
var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Box","id",value_id);
|
||||
return new A3D2Box(value_box,value_id);
|
||||
}
|
||||
@@ -46,8 +46,8 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Box = A3D2Box(object);
|
||||
this.var_284.encode(protocolBuffer,struct.box);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.§_-pM§.encode(protocolBuffer,struct.box);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,25 +17,25 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_245:ICodec;
|
||||
private var §_-Dh§:ICodec;
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_247:ICodec;
|
||||
private var §_-PO§:ICodec;
|
||||
|
||||
private var var_251:ICodec;
|
||||
private var §_-XW§:ICodec;
|
||||
|
||||
private var var_309:ICodec;
|
||||
private var §_-Zb§:ICodec;
|
||||
|
||||
private var var_254:ICodec;
|
||||
private var §_-jk§:ICodec;
|
||||
|
||||
private var var_248:ICodec;
|
||||
private var §_-Qr§:ICodec;
|
||||
|
||||
private var var_249:ICodec;
|
||||
private var §_-S2§:ICodec;
|
||||
|
||||
private var var_250:ICodec;
|
||||
private var §_-U9§:ICodec;
|
||||
|
||||
private var var_253:ICodec;
|
||||
private var §_-h9§:ICodec;
|
||||
|
||||
public function CodecA3D2Decal()
|
||||
{
|
||||
@@ -44,40 +44,40 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.var_247 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_309 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.var_248 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.var_250 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.§_-PO§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-Zb§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.§_-Qr§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.§_-U9§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_boundBoxId:int = int(this.var_245.decode(protocolBuffer) as int);
|
||||
var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","boundBoxId",value_boundBoxId);
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","id",value_id);
|
||||
var value_indexBufferId:int = int(this.var_247.decode(protocolBuffer) as int);
|
||||
var value_indexBufferId:int = int(this.§_-PO§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","indexBufferId",value_indexBufferId);
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","name",value_name);
|
||||
var value_offset:Number = Number(this.var_309.decode(protocolBuffer) as Number);
|
||||
var value_offset:Number = Number(this.§_-Zb§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","offset",value_offset);
|
||||
var value_parentId:Long = this.var_254.decode(protocolBuffer) as Long;
|
||||
var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","parentId",value_parentId);
|
||||
var value_surfaces:Vector.<A3D2Surface> = this.var_248.decode(protocolBuffer) as Vector.<A3D2Surface>;
|
||||
var value_surfaces:Vector.<A3D2Surface> = this.§_-Qr§.decode(protocolBuffer) as Vector.<A3D2Surface>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","surfaces",value_surfaces);
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","transform",value_transform);
|
||||
var value_vertexBuffers:Vector.<int> = this.var_250.decode(protocolBuffer) as Vector.<int>;
|
||||
var value_vertexBuffers:Vector.<int> = this.§_-U9§.decode(protocolBuffer) as Vector.<int>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","vertexBuffers",value_vertexBuffers);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","visible",value_visible);
|
||||
return new A3D2Decal(value_boundBoxId,value_id,value_indexBufferId,value_name,value_offset,value_parentId,value_surfaces,value_transform,value_vertexBuffers,value_visible);
|
||||
}
|
||||
@@ -89,16 +89,16 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Decal = A3D2Decal(object);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_247.encode(protocolBuffer,struct.indexBufferId);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_309.encode(protocolBuffer,struct.offset);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_248.encode(protocolBuffer,struct.surfaces);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
this.var_250.encode(protocolBuffer,struct.vertexBuffers);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-PO§.encode(protocolBuffer,struct.indexBufferId);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-Zb§.encode(protocolBuffer,struct.offset);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-Qr§.encode(protocolBuffer,struct.surfaces);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
this.§_-U9§.encode(protocolBuffer,struct.vertexBuffers);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,21 +15,21 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_245:ICodec;
|
||||
private var §_-Dh§:ICodec;
|
||||
|
||||
private var var_260:ICodec;
|
||||
private var §_-Po§:ICodec;
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_258:ICodec;
|
||||
private var §_-JX§:ICodec;
|
||||
|
||||
private var var_251:ICodec;
|
||||
private var §_-XW§:ICodec;
|
||||
|
||||
private var var_254:ICodec;
|
||||
private var §_-jk§:ICodec;
|
||||
|
||||
private var var_249:ICodec;
|
||||
private var §_-S2§:ICodec;
|
||||
|
||||
private var var_253:ICodec;
|
||||
private var §_-h9§:ICodec;
|
||||
|
||||
public function CodecA3D2DirectionalLight()
|
||||
{
|
||||
@@ -38,34 +38,34 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_260 = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.var_258 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-Po§ = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.§_-JX§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_boundBoxId:int = int(this.var_245.decode(protocolBuffer) as int);
|
||||
var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","boundBoxId",value_boundBoxId);
|
||||
var value_color:uint = uint(this.var_260.decode(protocolBuffer) as uint);
|
||||
var value_color:uint = uint(this.§_-Po§.decode(protocolBuffer) as uint);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","color",value_color);
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","id",value_id);
|
||||
var value_intensity:Number = Number(this.var_258.decode(protocolBuffer) as Number);
|
||||
var value_intensity:Number = Number(this.§_-JX§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","intensity",value_intensity);
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","name",value_name);
|
||||
var value_parentId:Long = this.var_254.decode(protocolBuffer) as Long;
|
||||
var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","parentId",value_parentId);
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","transform",value_transform);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","visible",value_visible);
|
||||
return new A3D2DirectionalLight(value_boundBoxId,value_color,value_id,value_intensity,value_name,value_parentId,value_transform,value_visible);
|
||||
}
|
||||
@@ -77,14 +77,14 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2DirectionalLight = A3D2DirectionalLight(object);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_260.encode(protocolBuffer,struct.color);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_258.encode(protocolBuffer,struct.intensity);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-Po§.encode(protocolBuffer,struct.color);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-JX§.encode(protocolBuffer,struct.intensity);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,17 +14,17 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_245:ICodec;
|
||||
private var §_-Dh§:ICodec;
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_251:ICodec;
|
||||
private var §_-XW§:ICodec;
|
||||
|
||||
private var var_254:ICodec;
|
||||
private var §_-jk§:ICodec;
|
||||
|
||||
private var var_249:ICodec;
|
||||
private var §_-S2§:ICodec;
|
||||
|
||||
private var var_253:ICodec;
|
||||
private var §_-h9§:ICodec;
|
||||
|
||||
public function CodecA3D2Joint()
|
||||
{
|
||||
@@ -33,28 +33,28 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_boundBoxId:int = int(this.var_245.decode(protocolBuffer) as int);
|
||||
var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","boundBoxId",value_boundBoxId);
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","id",value_id);
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","name",value_name);
|
||||
var value_parentId:Long = this.var_254.decode(protocolBuffer) as Long;
|
||||
var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","parentId",value_parentId);
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","transform",value_transform);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","visible",value_visible);
|
||||
return new A3D2Joint(value_boundBoxId,value_id,value_name,value_parentId,value_transform,value_visible);
|
||||
}
|
||||
@@ -66,12 +66,12 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Joint = A3D2Joint(object);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,9 +14,9 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_380:ICodec;
|
||||
private var §_-Ov§:ICodec;
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
public function CodecA3D2JointBindTransform()
|
||||
{
|
||||
@@ -25,16 +25,16 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_380 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.§_-Ov§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_bindPoseTransform:A3D2Transform = this.var_380.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_bindPoseTransform:A3D2Transform = this.§_-Ov§.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2JointBindTransform","bindPoseTransform",value_bindPoseTransform);
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2JointBindTransform","id",value_id);
|
||||
return new A3D2JointBindTransform(value_bindPoseTransform,value_id);
|
||||
}
|
||||
@@ -46,8 +46,8 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2JointBindTransform = A3D2JointBindTransform(object);
|
||||
this.var_380.encode(protocolBuffer,struct.bindPoseTransform);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.§_-Ov§.encode(protocolBuffer,struct.bindPoseTransform);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,23 +16,23 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_245:ICodec;
|
||||
private var §_-Dh§:ICodec;
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_247:ICodec;
|
||||
private var §_-PO§:ICodec;
|
||||
|
||||
private var var_251:ICodec;
|
||||
private var §_-XW§:ICodec;
|
||||
|
||||
private var var_254:ICodec;
|
||||
private var §_-jk§:ICodec;
|
||||
|
||||
private var var_248:ICodec;
|
||||
private var §_-Qr§:ICodec;
|
||||
|
||||
private var var_249:ICodec;
|
||||
private var §_-S2§:ICodec;
|
||||
|
||||
private var var_250:ICodec;
|
||||
private var §_-U9§:ICodec;
|
||||
|
||||
private var var_253:ICodec;
|
||||
private var §_-h9§:ICodec;
|
||||
|
||||
public function CodecA3D2Mesh()
|
||||
{
|
||||
@@ -41,37 +41,37 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.var_247 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.var_248 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.var_250 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.§_-PO§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.§_-Qr§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.§_-U9§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_boundBoxId:int = int(this.var_245.decode(protocolBuffer) as int);
|
||||
var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","boundBoxId",value_boundBoxId);
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","id",value_id);
|
||||
var value_indexBufferId:int = int(this.var_247.decode(protocolBuffer) as int);
|
||||
var value_indexBufferId:int = int(this.§_-PO§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","indexBufferId",value_indexBufferId);
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","name",value_name);
|
||||
var value_parentId:Long = this.var_254.decode(protocolBuffer) as Long;
|
||||
var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","parentId",value_parentId);
|
||||
var value_surfaces:Vector.<A3D2Surface> = this.var_248.decode(protocolBuffer) as Vector.<A3D2Surface>;
|
||||
var value_surfaces:Vector.<A3D2Surface> = this.§_-Qr§.decode(protocolBuffer) as Vector.<A3D2Surface>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","surfaces",value_surfaces);
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","transform",value_transform);
|
||||
var value_vertexBuffers:Vector.<int> = this.var_250.decode(protocolBuffer) as Vector.<int>;
|
||||
var value_vertexBuffers:Vector.<int> = this.§_-U9§.decode(protocolBuffer) as Vector.<int>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","vertexBuffers",value_vertexBuffers);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","visible",value_visible);
|
||||
return new A3D2Mesh(value_boundBoxId,value_id,value_indexBufferId,value_name,value_parentId,value_surfaces,value_transform,value_vertexBuffers,value_visible);
|
||||
}
|
||||
@@ -83,15 +83,15 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Mesh = A3D2Mesh(object);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_247.encode(protocolBuffer,struct.indexBufferId);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_248.encode(protocolBuffer,struct.surfaces);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
this.var_250.encode(protocolBuffer,struct.vertexBuffers);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-PO§.encode(protocolBuffer,struct.indexBufferId);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-Qr§.encode(protocolBuffer,struct.surfaces);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
this.§_-U9§.encode(protocolBuffer,struct.vertexBuffers);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,17 +14,17 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_245:ICodec;
|
||||
private var §_-Dh§:ICodec;
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_251:ICodec;
|
||||
private var §_-XW§:ICodec;
|
||||
|
||||
private var var_254:ICodec;
|
||||
private var §_-jk§:ICodec;
|
||||
|
||||
private var var_249:ICodec;
|
||||
private var §_-S2§:ICodec;
|
||||
|
||||
private var var_253:ICodec;
|
||||
private var §_-h9§:ICodec;
|
||||
|
||||
public function CodecA3D2Object()
|
||||
{
|
||||
@@ -33,28 +33,28 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_boundBoxId:int = int(this.var_245.decode(protocolBuffer) as int);
|
||||
var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","boundBoxId",value_boundBoxId);
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","id",value_id);
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","name",value_name);
|
||||
var value_parentId:Long = this.var_254.decode(protocolBuffer) as Long;
|
||||
var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","parentId",value_parentId);
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","transform",value_transform);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","visible",value_visible);
|
||||
return new A3D2Object(value_boundBoxId,value_id,value_name,value_parentId,value_transform,value_visible);
|
||||
}
|
||||
@@ -66,12 +66,12 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Object = A3D2Object(object);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,25 +15,25 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_259:ICodec;
|
||||
private var §_-KK§:ICodec;
|
||||
|
||||
private var var_257:ICodec;
|
||||
private var §_-H3§:ICodec;
|
||||
|
||||
private var var_245:ICodec;
|
||||
private var §_-Dh§:ICodec;
|
||||
|
||||
private var var_260:ICodec;
|
||||
private var §_-Po§:ICodec;
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_258:ICodec;
|
||||
private var §_-JX§:ICodec;
|
||||
|
||||
private var var_251:ICodec;
|
||||
private var §_-XW§:ICodec;
|
||||
|
||||
private var var_254:ICodec;
|
||||
private var §_-jk§:ICodec;
|
||||
|
||||
private var var_249:ICodec;
|
||||
private var §_-S2§:ICodec;
|
||||
|
||||
private var var_253:ICodec;
|
||||
private var §_-h9§:ICodec;
|
||||
|
||||
public function CodecA3D2OmniLight()
|
||||
{
|
||||
@@ -42,40 +42,40 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_259 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_257 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_260 = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.var_258 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.§_-KK§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-H3§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-Po§ = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.§_-JX§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_attenuationBegin:Number = Number(this.var_259.decode(protocolBuffer) as Number);
|
||||
var value_attenuationBegin:Number = Number(this.§_-KK§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","attenuationBegin",value_attenuationBegin);
|
||||
var value_attenuationEnd:Number = Number(this.var_257.decode(protocolBuffer) as Number);
|
||||
var value_attenuationEnd:Number = Number(this.§_-H3§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","attenuationEnd",value_attenuationEnd);
|
||||
var value_boundBoxId:int = int(this.var_245.decode(protocolBuffer) as int);
|
||||
var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","boundBoxId",value_boundBoxId);
|
||||
var value_color:uint = uint(this.var_260.decode(protocolBuffer) as uint);
|
||||
var value_color:uint = uint(this.§_-Po§.decode(protocolBuffer) as uint);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","color",value_color);
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","id",value_id);
|
||||
var value_intensity:Number = Number(this.var_258.decode(protocolBuffer) as Number);
|
||||
var value_intensity:Number = Number(this.§_-JX§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","intensity",value_intensity);
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","name",value_name);
|
||||
var value_parentId:Long = this.var_254.decode(protocolBuffer) as Long;
|
||||
var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","parentId",value_parentId);
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","transform",value_transform);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","visible",value_visible);
|
||||
return new A3D2OmniLight(value_attenuationBegin,value_attenuationEnd,value_boundBoxId,value_color,value_id,value_intensity,value_name,value_parentId,value_transform,value_visible);
|
||||
}
|
||||
@@ -87,16 +87,16 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2OmniLight = A3D2OmniLight(object);
|
||||
this.var_259.encode(protocolBuffer,struct.attenuationBegin);
|
||||
this.var_257.encode(protocolBuffer,struct.attenuationEnd);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_260.encode(protocolBuffer,struct.color);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_258.encode(protocolBuffer,struct.intensity);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
this.§_-KK§.encode(protocolBuffer,struct.attenuationBegin);
|
||||
this.§_-H3§.encode(protocolBuffer,struct.attenuationEnd);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-Po§.encode(protocolBuffer,struct.color);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-JX§.encode(protocolBuffer,struct.intensity);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,29 +18,29 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_245:ICodec;
|
||||
private var §_-Dh§:ICodec;
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_247:ICodec;
|
||||
private var §_-PO§:ICodec;
|
||||
|
||||
private var var_252:ICodec;
|
||||
private var §_-dR§:ICodec;
|
||||
|
||||
private var var_244:ICodec;
|
||||
private var §_-3f§:ICodec;
|
||||
|
||||
private var var_251:ICodec;
|
||||
private var §_-XW§:ICodec;
|
||||
|
||||
private var var_246:ICodec;
|
||||
private var §_-Mx§:ICodec;
|
||||
|
||||
private var var_254:ICodec;
|
||||
private var §_-jk§:ICodec;
|
||||
|
||||
private var var_248:ICodec;
|
||||
private var §_-Qr§:ICodec;
|
||||
|
||||
private var var_249:ICodec;
|
||||
private var §_-S2§:ICodec;
|
||||
|
||||
private var var_250:ICodec;
|
||||
private var §_-U9§:ICodec;
|
||||
|
||||
private var var_253:ICodec;
|
||||
private var §_-h9§:ICodec;
|
||||
|
||||
public function CodecA3D2Skin()
|
||||
{
|
||||
@@ -49,46 +49,46 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.var_247 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_252 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,false),false,1));
|
||||
this.var_244 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),false,1));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_246 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,false),false,1));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.var_248 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.var_250 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.§_-PO§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-dR§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,false),false,1));
|
||||
this.§_-3f§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),false,1));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-Mx§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,false),false,1));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.§_-Qr§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.§_-U9§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_boundBoxId:int = int(this.var_245.decode(protocolBuffer) as int);
|
||||
var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","boundBoxId",value_boundBoxId);
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","id",value_id);
|
||||
var value_indexBufferId:int = int(this.var_247.decode(protocolBuffer) as int);
|
||||
var value_indexBufferId:int = int(this.§_-PO§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","indexBufferId",value_indexBufferId);
|
||||
var value_jointBindTransforms:Vector.<A3D2JointBindTransform> = this.var_252.decode(protocolBuffer) as Vector.<A3D2JointBindTransform>;
|
||||
var value_jointBindTransforms:Vector.<A3D2JointBindTransform> = this.§_-dR§.decode(protocolBuffer) as Vector.<A3D2JointBindTransform>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","jointBindTransforms",value_jointBindTransforms);
|
||||
var value_joints:Vector.<Long> = this.var_244.decode(protocolBuffer) as Vector.<Long>;
|
||||
var value_joints:Vector.<Long> = this.§_-3f§.decode(protocolBuffer) as Vector.<Long>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","joints",value_joints);
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","name",value_name);
|
||||
var value_numJoints:Vector.<uint> = this.var_246.decode(protocolBuffer) as Vector.<uint>;
|
||||
var value_numJoints:Vector.<uint> = this.§_-Mx§.decode(protocolBuffer) as Vector.<uint>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","numJoints",value_numJoints);
|
||||
var value_parentId:Long = this.var_254.decode(protocolBuffer) as Long;
|
||||
var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","parentId",value_parentId);
|
||||
var value_surfaces:Vector.<A3D2Surface> = this.var_248.decode(protocolBuffer) as Vector.<A3D2Surface>;
|
||||
var value_surfaces:Vector.<A3D2Surface> = this.§_-Qr§.decode(protocolBuffer) as Vector.<A3D2Surface>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","surfaces",value_surfaces);
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","transform",value_transform);
|
||||
var value_vertexBuffers:Vector.<int> = this.var_250.decode(protocolBuffer) as Vector.<int>;
|
||||
var value_vertexBuffers:Vector.<int> = this.§_-U9§.decode(protocolBuffer) as Vector.<int>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","vertexBuffers",value_vertexBuffers);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","visible",value_visible);
|
||||
return new A3D2Skin(value_boundBoxId,value_id,value_indexBufferId,value_jointBindTransforms,value_joints,value_name,value_numJoints,value_parentId,value_surfaces,value_transform,value_vertexBuffers,value_visible);
|
||||
}
|
||||
@@ -100,18 +100,18 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Skin = A3D2Skin(object);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_247.encode(protocolBuffer,struct.indexBufferId);
|
||||
this.var_252.encode(protocolBuffer,struct.jointBindTransforms);
|
||||
this.var_244.encode(protocolBuffer,struct.joints);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_246.encode(protocolBuffer,struct.numJoints);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_248.encode(protocolBuffer,struct.surfaces);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
this.var_250.encode(protocolBuffer,struct.vertexBuffers);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-PO§.encode(protocolBuffer,struct.indexBufferId);
|
||||
this.§_-dR§.encode(protocolBuffer,struct.jointBindTransforms);
|
||||
this.§_-3f§.encode(protocolBuffer,struct.joints);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-Mx§.encode(protocolBuffer,struct.numJoints);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-Qr§.encode(protocolBuffer,struct.surfaces);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
this.§_-U9§.encode(protocolBuffer,struct.vertexBuffers);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,29 +15,29 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_259:ICodec;
|
||||
private var §_-KK§:ICodec;
|
||||
|
||||
private var var_257:ICodec;
|
||||
private var §_-H3§:ICodec;
|
||||
|
||||
private var var_245:ICodec;
|
||||
private var §_-Dh§:ICodec;
|
||||
|
||||
private var var_260:ICodec;
|
||||
private var §_-Po§:ICodec;
|
||||
|
||||
private var var_286:ICodec;
|
||||
private var §_-GX§:ICodec;
|
||||
|
||||
private var var_287:ICodec;
|
||||
private var §_-YW§:ICodec;
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_258:ICodec;
|
||||
private var §_-JX§:ICodec;
|
||||
|
||||
private var var_251:ICodec;
|
||||
private var §_-XW§:ICodec;
|
||||
|
||||
private var var_254:ICodec;
|
||||
private var §_-jk§:ICodec;
|
||||
|
||||
private var var_249:ICodec;
|
||||
private var §_-S2§:ICodec;
|
||||
|
||||
private var var_253:ICodec;
|
||||
private var §_-h9§:ICodec;
|
||||
|
||||
public function CodecA3D2SpotLight()
|
||||
{
|
||||
@@ -46,46 +46,46 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_259 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_257 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_260 = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
this.var_286 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_287 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.var_258 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.§_-KK§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-H3§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-Po§ = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
this.§_-GX§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-YW§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.§_-JX§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_attenuationBegin:Number = Number(this.var_259.decode(protocolBuffer) as Number);
|
||||
var value_attenuationBegin:Number = Number(this.§_-KK§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","attenuationBegin",value_attenuationBegin);
|
||||
var value_attenuationEnd:Number = Number(this.var_257.decode(protocolBuffer) as Number);
|
||||
var value_attenuationEnd:Number = Number(this.§_-H3§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","attenuationEnd",value_attenuationEnd);
|
||||
var value_boundBoxId:int = int(this.var_245.decode(protocolBuffer) as int);
|
||||
var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","boundBoxId",value_boundBoxId);
|
||||
var value_color:uint = uint(this.var_260.decode(protocolBuffer) as uint);
|
||||
var value_color:uint = uint(this.§_-Po§.decode(protocolBuffer) as uint);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","color",value_color);
|
||||
var value_falloff:Number = Number(this.var_286.decode(protocolBuffer) as Number);
|
||||
var value_falloff:Number = Number(this.§_-GX§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","falloff",value_falloff);
|
||||
var value_hotspot:Number = Number(this.var_287.decode(protocolBuffer) as Number);
|
||||
var value_hotspot:Number = Number(this.§_-YW§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","hotspot",value_hotspot);
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","id",value_id);
|
||||
var value_intensity:Number = Number(this.var_258.decode(protocolBuffer) as Number);
|
||||
var value_intensity:Number = Number(this.§_-JX§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","intensity",value_intensity);
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","name",value_name);
|
||||
var value_parentId:Long = this.var_254.decode(protocolBuffer) as Long;
|
||||
var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","parentId",value_parentId);
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","transform",value_transform);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","visible",value_visible);
|
||||
return new A3D2SpotLight(value_attenuationBegin,value_attenuationEnd,value_boundBoxId,value_color,value_falloff,value_hotspot,value_id,value_intensity,value_name,value_parentId,value_transform,value_visible);
|
||||
}
|
||||
@@ -97,18 +97,18 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2SpotLight = A3D2SpotLight(object);
|
||||
this.var_259.encode(protocolBuffer,struct.attenuationBegin);
|
||||
this.var_257.encode(protocolBuffer,struct.attenuationEnd);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_260.encode(protocolBuffer,struct.color);
|
||||
this.var_286.encode(protocolBuffer,struct.falloff);
|
||||
this.var_287.encode(protocolBuffer,struct.hotspot);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_258.encode(protocolBuffer,struct.intensity);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
this.§_-KK§.encode(protocolBuffer,struct.attenuationBegin);
|
||||
this.§_-H3§.encode(protocolBuffer,struct.attenuationEnd);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-Po§.encode(protocolBuffer,struct.color);
|
||||
this.§_-GX§.encode(protocolBuffer,struct.falloff);
|
||||
this.§_-YW§.encode(protocolBuffer,struct.hotspot);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-JX§.encode(protocolBuffer,struct.intensity);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,33 +16,33 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_295:ICodec;
|
||||
private var §_-XZ§:ICodec;
|
||||
|
||||
private var var_245:ICodec;
|
||||
private var §_-Dh§:ICodec;
|
||||
|
||||
private var var_294:ICodec;
|
||||
private var §_-X§:ICodec;
|
||||
|
||||
private var var_243:ICodec;
|
||||
private var §_-2o§:ICodec;
|
||||
|
||||
private var var_291:ICodec;
|
||||
private var §_-Av§:ICodec;
|
||||
|
||||
private var var_251:ICodec;
|
||||
private var §_-XW§:ICodec;
|
||||
|
||||
private var var_292:ICodec;
|
||||
private var §_-Pk§:ICodec;
|
||||
|
||||
private var var_297:ICodec;
|
||||
private var §_-j1§:ICodec;
|
||||
|
||||
private var var_254:ICodec;
|
||||
private var §_-jk§:ICodec;
|
||||
|
||||
private var var_296:ICodec;
|
||||
private var §_-Yz§:ICodec;
|
||||
|
||||
private var var_293:ICodec;
|
||||
private var §_-SJ§:ICodec;
|
||||
|
||||
private var var_249:ICodec;
|
||||
private var §_-S2§:ICodec;
|
||||
|
||||
private var var_253:ICodec;
|
||||
private var §_-h9§:ICodec;
|
||||
|
||||
private var var_298:ICodec;
|
||||
private var §_-pD§:ICodec;
|
||||
|
||||
public function CodecA3D2Sprite()
|
||||
{
|
||||
@@ -51,52 +51,52 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_295 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_294 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.var_291 = protocol.getCodec(new TypeCodecInfo(Id,false));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_292 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_297 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.var_296 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.var_293 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.var_298 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-XZ§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-X§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.§_-Av§ = protocol.getCodec(new TypeCodecInfo(Id,false));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-Pk§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-j1§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.§_-Yz§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.§_-SJ§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.§_-pD§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_alwaysOnTop:Boolean = Boolean(this.var_295.decode(protocolBuffer) as Boolean);
|
||||
var value_alwaysOnTop:Boolean = Boolean(this.§_-XZ§.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","alwaysOnTop",value_alwaysOnTop);
|
||||
var value_boundBoxId:int = int(this.var_245.decode(protocolBuffer) as int);
|
||||
var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","boundBoxId",value_boundBoxId);
|
||||
var value_height:Number = Number(this.var_294.decode(protocolBuffer) as Number);
|
||||
var value_height:Number = Number(this.§_-X§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","height",value_height);
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","id",value_id);
|
||||
var value_materialId:Id = this.var_291.decode(protocolBuffer) as Id;
|
||||
var value_materialId:Id = this.§_-Av§.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","materialId",value_materialId);
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","name",value_name);
|
||||
var value_originX:Number = Number(this.var_292.decode(protocolBuffer) as Number);
|
||||
var value_originX:Number = Number(this.§_-Pk§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","originX",value_originX);
|
||||
var value_originY:Number = Number(this.var_297.decode(protocolBuffer) as Number);
|
||||
var value_originY:Number = Number(this.§_-j1§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","originY",value_originY);
|
||||
var value_parentId:Long = this.var_254.decode(protocolBuffer) as Long;
|
||||
var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","parentId",value_parentId);
|
||||
var value_perspectiveScale:Boolean = Boolean(this.var_296.decode(protocolBuffer) as Boolean);
|
||||
var value_perspectiveScale:Boolean = Boolean(this.§_-Yz§.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","perspectiveScale",value_perspectiveScale);
|
||||
var value_rotation:Number = Number(this.var_293.decode(protocolBuffer) as Number);
|
||||
var value_rotation:Number = Number(this.§_-SJ§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","rotation",value_rotation);
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","transform",value_transform);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","visible",value_visible);
|
||||
var value_width:Number = Number(this.var_298.decode(protocolBuffer) as Number);
|
||||
var value_width:Number = Number(this.§_-pD§.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","width",value_width);
|
||||
return new A3D2Sprite(value_alwaysOnTop,value_boundBoxId,value_height,value_id,value_materialId,value_name,value_originX,value_originY,value_parentId,value_perspectiveScale,value_rotation,value_transform,value_visible,value_width);
|
||||
}
|
||||
@@ -108,20 +108,20 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Sprite = A3D2Sprite(object);
|
||||
this.var_295.encode(protocolBuffer,struct.alwaysOnTop);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_294.encode(protocolBuffer,struct.height);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_291.encode(protocolBuffer,struct.materialId);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_292.encode(protocolBuffer,struct.originX);
|
||||
this.var_297.encode(protocolBuffer,struct.originY);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_296.encode(protocolBuffer,struct.perspectiveScale);
|
||||
this.var_293.encode(protocolBuffer,struct.rotation);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
this.var_298.encode(protocolBuffer,struct.width);
|
||||
this.§_-XZ§.encode(protocolBuffer,struct.alwaysOnTop);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-X§.encode(protocolBuffer,struct.height);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-Av§.encode(protocolBuffer,struct.materialId);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-Pk§.encode(protocolBuffer,struct.originX);
|
||||
this.§_-j1§.encode(protocolBuffer,struct.originY);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-Yz§.encode(protocolBuffer,struct.perspectiveScale);
|
||||
this.§_-SJ§.encode(protocolBuffer,struct.rotation);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
this.§_-pD§.encode(protocolBuffer,struct.width);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,11 +12,11 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_302:ICodec;
|
||||
private var §_-AL§:ICodec;
|
||||
|
||||
private var var_291:ICodec;
|
||||
private var §_-Av§:ICodec;
|
||||
|
||||
private var var_303:ICodec;
|
||||
private var §_-pJ§:ICodec;
|
||||
|
||||
public function CodecA3D2Surface()
|
||||
{
|
||||
@@ -25,19 +25,19 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_302 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_291 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_303 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-AL§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-Av§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-pJ§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_indexBegin:int = int(this.var_302.decode(protocolBuffer) as int);
|
||||
var value_indexBegin:int = int(this.§_-AL§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Surface","indexBegin",value_indexBegin);
|
||||
var value_materialId:int = int(this.var_291.decode(protocolBuffer) as int);
|
||||
var value_materialId:int = int(this.§_-Av§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Surface","materialId",value_materialId);
|
||||
var value_numTriangles:int = int(this.var_303.decode(protocolBuffer) as int);
|
||||
var value_numTriangles:int = int(this.§_-pJ§.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Surface","numTriangles",value_numTriangles);
|
||||
return new A3D2Surface(value_indexBegin,value_materialId,value_numTriangles);
|
||||
}
|
||||
@@ -49,9 +49,9 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Surface = A3D2Surface(object);
|
||||
this.var_302.encode(protocolBuffer,struct.indexBegin);
|
||||
this.var_291.encode(protocolBuffer,struct.materialId);
|
||||
this.var_303.encode(protocolBuffer,struct.numTriangles);
|
||||
this.§_-AL§.encode(protocolBuffer,struct.indexBegin);
|
||||
this.§_-Av§.encode(protocolBuffer,struct.materialId);
|
||||
this.§_-pJ§.encode(protocolBuffer,struct.numTriangles);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var var_411:ICodec;
|
||||
private var §_-dG§:ICodec;
|
||||
|
||||
public function CodecA3D2Transform()
|
||||
{
|
||||
@@ -22,13 +22,13 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.var_411 = protocol.getCodec(new TypeCodecInfo(A3DMatrix,false));
|
||||
this.§_-dG§ = protocol.getCodec(new TypeCodecInfo(A3DMatrix,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_matrix:A3DMatrix = this.var_411.decode(protocolBuffer) as A3DMatrix;
|
||||
var value_matrix:A3DMatrix = this.§_-dG§.decode(protocolBuffer) as A3DMatrix;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Transform","matrix",value_matrix);
|
||||
return new A3D2Transform(value_matrix);
|
||||
}
|
||||
@@ -40,7 +40,7 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Transform = A3D2Transform(object);
|
||||
this.var_411.encode(protocolBuffer,struct.matrix);
|
||||
this.§_-dG§.encode(protocolBuffer,struct.matrix);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
209
src/alternativa/ClientConfigurator.as
Normal file
209
src/alternativa/ClientConfigurator.as
Normal file
@@ -0,0 +1,209 @@
|
||||
package alternativa
|
||||
{
|
||||
import alternativa.osgi.OSGi;
|
||||
import alternativa.osgi.bundle.BundleDescriptor;
|
||||
import alternativa.osgi.service.clientlog.ClientLog;
|
||||
import alternativa.osgi.service.clientlog.IClientLog;
|
||||
import alternativa.osgi.service.console.ClientLogConnector;
|
||||
import alternativa.osgi.service.console.Console;
|
||||
import alternativa.osgi.service.console.IConsole;
|
||||
import alternativa.osgi.service.display.Display;
|
||||
import alternativa.osgi.service.display.IDisplay;
|
||||
import alternativa.osgi.service.dump.DumpService;
|
||||
import alternativa.osgi.service.dump.IDumpService;
|
||||
import alternativa.osgi.service.dump.dumper.BundleDumper;
|
||||
import alternativa.osgi.service.dump.dumper.ServiceDumper;
|
||||
import alternativa.osgi.service.launcherparams.ILauncherParams;
|
||||
import alternativa.osgi.service.launcherparams.LauncherParams;
|
||||
import alternativa.osgi.service.locale.ILocaleService;
|
||||
import alternativa.osgi.service.locale.LocaleService;
|
||||
import alternativa.osgi.service.network.INetworkService;
|
||||
import alternativa.osgi.service.network.NetworkService;
|
||||
import alternativa.startup.ConnectionParameters;
|
||||
import alternativa.startup.IClientConfigurator;
|
||||
import alternativa.startup.LibraryInfo;
|
||||
import alternativa.utils.Properties;
|
||||
import flash.display.DisplayObjectContainer;
|
||||
import flash.display.Stage;
|
||||
import flash.events.KeyboardEvent;
|
||||
import flash.ui.Keyboard;
|
||||
|
||||
public class ClientConfigurator implements IClientConfigurator
|
||||
{
|
||||
private var osgi:OSGi;
|
||||
|
||||
private var clientLog:IClientLog;
|
||||
|
||||
private var console:Console;
|
||||
|
||||
private var §_-UU§:KeyboardShortcut;
|
||||
|
||||
private var §_-jQ§:KeyboardShortcut;
|
||||
|
||||
public function ClientConfigurator()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function start(rootContainer:DisplayObjectContainer, urlParams:Properties, libraryInfos:Vector.<LibraryInfo>, connectionParameters:ConnectionParameters, startupLogStrings:Vector.<String>) : void
|
||||
{
|
||||
var libraryInfo:LibraryInfo = null;
|
||||
this.osgi = OSGi.getInstance();
|
||||
this.initClientLog(urlParams,startupLogStrings);
|
||||
this.initConsole(rootContainer.stage,urlParams);
|
||||
this.osgi.registerService(ILauncherParams,new LauncherParams(urlParams,libraryInfos));
|
||||
this.osgi.registerService(IDisplay,new Display(rootContainer));
|
||||
this.osgi.registerService(INetworkService,new NetworkService(connectionParameters.serverAddress,connectionParameters.serverPorts,connectionParameters.resourcesRootURL));
|
||||
var language:String = urlParams.getPropertyDef("lang","ru");
|
||||
this.osgi.registerService(ILocaleService,new LocaleService(language,"en"));
|
||||
var dumpService:IDumpService = new DumpService(this.osgi);
|
||||
this.osgi.registerService(IDumpService,dumpService);
|
||||
dumpService.registerDumper(new BundleDumper(this.osgi));
|
||||
dumpService.registerDumper(new ServiceDumper(this.osgi));
|
||||
for each(libraryInfo in libraryInfos)
|
||||
{
|
||||
this.osgi.installBundle(new BundleDescriptor(libraryInfo.manifestProperties));
|
||||
}
|
||||
}
|
||||
|
||||
private function initClientLog(urlParams:Properties, startupLogStrings:Vector.<String>) : void
|
||||
{
|
||||
var s:String = null;
|
||||
var logChannelBufferSize:int = int(int(urlParams.getPropertyDef("log_channel_buffer_size","1000")));
|
||||
this.clientLog = new ClientLog(logChannelBufferSize);
|
||||
OSGi.clientLog = this.clientLog;
|
||||
this.osgi.registerService(IClientLog,this.clientLog);
|
||||
for each(s in startupLogStrings)
|
||||
{
|
||||
this.clientLog.log("startup",s);
|
||||
}
|
||||
}
|
||||
|
||||
private function initConsole(stage:Stage, urlParams:Properties) : void
|
||||
{
|
||||
var _loc6_:String = null;
|
||||
this.console = new Console(stage,50,100,1,1);
|
||||
this.osgi.registerService(IConsole,this.console);
|
||||
var consoleParams:String = urlParams.getProperty("console");
|
||||
if(Boolean(consoleParams))
|
||||
{
|
||||
this.configureConsole(stage,this.console,consoleParams);
|
||||
}
|
||||
var clientLogConnector:ClientLogConnector = new ClientLogConnector(this.clientLog,this.console);
|
||||
this.console.setCommandHandler("log",clientLogConnector.onConsoleCommand);
|
||||
var logChannels:String = urlParams.getProperty("showlog");
|
||||
if(Boolean(logChannels))
|
||||
{
|
||||
if(logChannels == "all")
|
||||
{
|
||||
this.clientLog.addLogListener(clientLogConnector);
|
||||
}
|
||||
else
|
||||
{
|
||||
for each(_loc6_ in logChannels.split(","))
|
||||
{
|
||||
this.clientLog.addLogChannelListener(_loc6_,clientLogConnector);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function configureConsole(stage:Stage, console:Console, consoleParams:String) : void
|
||||
{
|
||||
var pair:String = null;
|
||||
var parts:Array = null;
|
||||
var pairs:Array = consoleParams.split(",");
|
||||
var params:Object = {};
|
||||
for each(pair in pairs)
|
||||
{
|
||||
parts = pair.split(":");
|
||||
params[parts[0]] = parts[1];
|
||||
}
|
||||
if(params["show"] != null)
|
||||
{
|
||||
console.show();
|
||||
}
|
||||
if(params["ha"] != null)
|
||||
{
|
||||
console.horizontalAlignment = int(params["ha"]);
|
||||
}
|
||||
if(params["va"] != null)
|
||||
{
|
||||
console.vericalAlignment = int(params["va"]);
|
||||
}
|
||||
if(params["w"] != null)
|
||||
{
|
||||
console.width = int(params["w"]);
|
||||
}
|
||||
if(params["h"] != null)
|
||||
{
|
||||
console.height = int(params["h"]);
|
||||
}
|
||||
if(params["alpha"] != null)
|
||||
{
|
||||
console.executeCommand("con_alpha " + params["alpha"]);
|
||||
}
|
||||
this.§_-UU§ = this.parseShortcut(params["hsw"],Keyboard.LEFT,false,true,true);
|
||||
this.§_-jQ§ = this.parseShortcut(params["vsw"],Keyboard.UP,false,true,true);
|
||||
stage.addEventListener(KeyboardEvent.KEY_DOWN,this.onKey,true);
|
||||
}
|
||||
|
||||
private function parseShortcut(s:String, defKey:int, defAlt:Boolean, defCtrl:Boolean, defShift:Boolean) : KeyboardShortcut
|
||||
{
|
||||
if(s == null)
|
||||
{
|
||||
return new KeyboardShortcut(defKey,defAlt,defCtrl,defShift);
|
||||
}
|
||||
return new KeyboardShortcut(parseInt(s),s.indexOf("a") > -1,s.indexOf("c") > -1,s.indexOf("s") > -1);
|
||||
}
|
||||
|
||||
private function onKey(e:KeyboardEvent) : void
|
||||
{
|
||||
switch(e.keyCode)
|
||||
{
|
||||
case this.§_-UU§.keyCode:
|
||||
if(this.§_-UU§.altKey == e.altKey && this.§_-UU§.shiftKey == e.shiftKey && this.§_-UU§.ctrlKey == e.ctrlKey)
|
||||
{
|
||||
if(this.console.horizontalAlignment == 1)
|
||||
{
|
||||
this.console.horizontalAlignment = 2;
|
||||
break;
|
||||
}
|
||||
this.console.horizontalAlignment = 1;
|
||||
}
|
||||
break;
|
||||
case this.§_-jQ§.keyCode:
|
||||
if(this.§_-jQ§.altKey == e.altKey && this.§_-jQ§.shiftKey == e.shiftKey && this.§_-jQ§.ctrlKey == e.ctrlKey)
|
||||
{
|
||||
if(this.console.vericalAlignment == 1)
|
||||
{
|
||||
this.console.vericalAlignment = 2;
|
||||
break;
|
||||
}
|
||||
this.console.vericalAlignment = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class KeyboardShortcut
|
||||
{
|
||||
public var keyCode:int;
|
||||
|
||||
public var altKey:Boolean;
|
||||
|
||||
public var ctrlKey:Boolean;
|
||||
|
||||
public var shiftKey:Boolean;
|
||||
|
||||
public function KeyboardShortcut(keyCode:int, altKey:Boolean, ctrlKey:Boolean, shiftKey:Boolean)
|
||||
{
|
||||
super();
|
||||
this.keyCode = keyCode;
|
||||
this.altKey = altKey;
|
||||
this.ctrlKey = ctrlKey;
|
||||
this.shiftKey = shiftKey;
|
||||
}
|
||||
}
|
||||
392
src/alternativa/engine3d/animation/AnimationClip.as
Normal file
392
src/alternativa/engine3d/animation/AnimationClip.as
Normal file
@@ -0,0 +1,392 @@
|
||||
package alternativa.engine3d.animation
|
||||
{
|
||||
import alternativa.engine3d.alternativa3d;
|
||||
import alternativa.engine3d.animation.keys.Track;
|
||||
import alternativa.engine3d.core.Object3D;
|
||||
|
||||
use namespace alternativa3d;
|
||||
|
||||
public class AnimationClip extends AnimationNode
|
||||
{
|
||||
alternativa3d var §_-Kq§:Array;
|
||||
|
||||
public var name:String;
|
||||
|
||||
public var loop:Boolean = true;
|
||||
|
||||
public var length:Number = 0;
|
||||
|
||||
public var animated:Boolean = true;
|
||||
|
||||
private var §_-qC§:Number = 0;
|
||||
|
||||
private var §_-Iv§:int = 0;
|
||||
|
||||
private var §_-cT§:Vector.<Track> = new Vector.<Track>();
|
||||
|
||||
private var §_-Ci§:AnimationNotify;
|
||||
|
||||
public function AnimationClip(name:String = null)
|
||||
{
|
||||
super();
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public function get objects() : Array
|
||||
{
|
||||
return this.alternativa3d::_-Kq == null ? null : [].concat(this.alternativa3d::_-Kq);
|
||||
}
|
||||
|
||||
public function set objects(value:Array) : void
|
||||
{
|
||||
this.updateObjects(this.alternativa3d::_-Kq,alternativa3d::controller,value,alternativa3d::controller);
|
||||
this.alternativa3d::_-Kq = value == null ? null : [].concat(value);
|
||||
}
|
||||
|
||||
override alternativa3d function setController(value:AnimationController) : void
|
||||
{
|
||||
this.updateObjects(this.alternativa3d::_-Kq,alternativa3d::controller,this.alternativa3d::_-Kq,value);
|
||||
this.alternativa3d::controller = value;
|
||||
}
|
||||
|
||||
private function addObject(object:Object) : void
|
||||
{
|
||||
if(this.alternativa3d::_-Kq == null)
|
||||
{
|
||||
this.alternativa3d::_-Kq = [object];
|
||||
}
|
||||
else
|
||||
{
|
||||
this.alternativa3d::_-Kq.push(object);
|
||||
}
|
||||
if(alternativa3d::controller != null)
|
||||
{
|
||||
alternativa3d::controller.alternativa3d::addObject(object);
|
||||
}
|
||||
}
|
||||
|
||||
private function updateObjects(oldObjects:Array, oldController:AnimationController, newObjects:Array, newController:AnimationController) : void
|
||||
{
|
||||
var i:int = 0;
|
||||
var count:int = 0;
|
||||
if(oldController != null && oldObjects != null)
|
||||
{
|
||||
for(i = 0,count = int(this.alternativa3d::_-Kq.length); i < count; i++)
|
||||
{
|
||||
oldController.alternativa3d::removeObject(oldObjects[i]);
|
||||
}
|
||||
}
|
||||
if(newController != null && newObjects != null)
|
||||
{
|
||||
for(i = 0,count = int(newObjects.length); i < count; i++)
|
||||
{
|
||||
newController.alternativa3d::addObject(newObjects[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function updateLength() : void
|
||||
{
|
||||
var track:Track = null;
|
||||
var len:Number = NaN;
|
||||
for(var i:int = 0; i < this.§_-Iv§; )
|
||||
{
|
||||
track = this.§_-cT§[i];
|
||||
len = track.length;
|
||||
if(len > this.length)
|
||||
{
|
||||
this.length = len;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
public function addTrack(track:Track) : Track
|
||||
{
|
||||
if(track == null)
|
||||
{
|
||||
throw new Error("Track can not be null");
|
||||
}
|
||||
var _loc2_:* = this.§_-Iv§++;
|
||||
this.§_-cT§[_loc2_] = track;
|
||||
if(track.length > this.length)
|
||||
{
|
||||
this.length = track.length;
|
||||
}
|
||||
return track;
|
||||
}
|
||||
|
||||
public function removeTrack(track:Track) : Track
|
||||
{
|
||||
var t:Track = null;
|
||||
var index:int = int(this.§_-cT§.indexOf(track));
|
||||
if(index < 0)
|
||||
{
|
||||
throw new ArgumentError("Track not found");
|
||||
}
|
||||
--this.§_-Iv§;
|
||||
for(var j:int = index + 1; index < this.§_-Iv§; )
|
||||
{
|
||||
this.§_-cT§[index] = this.§_-cT§[j];
|
||||
index++;
|
||||
j++;
|
||||
}
|
||||
this.§_-cT§.length = this.§_-Iv§;
|
||||
this.length = 0;
|
||||
for(var i:int = 0; i < this.§_-Iv§; )
|
||||
{
|
||||
t = this.§_-cT§[i];
|
||||
if(t.length > this.length)
|
||||
{
|
||||
this.length = t.length;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
return track;
|
||||
}
|
||||
|
||||
public function getTrackAt(index:int) : Track
|
||||
{
|
||||
return this.§_-cT§[index];
|
||||
}
|
||||
|
||||
public function get numTracks() : int
|
||||
{
|
||||
return this.§_-Iv§;
|
||||
}
|
||||
|
||||
override alternativa3d function update(interval:Number, weight:Number) : void
|
||||
{
|
||||
var i:int = 0;
|
||||
var track:Track = null;
|
||||
var state:AnimationState = null;
|
||||
var oldTime:Number = this.§_-qC§;
|
||||
if(this.animated)
|
||||
{
|
||||
this.§_-qC§ += interval * speed;
|
||||
if(this.loop)
|
||||
{
|
||||
if(this.§_-qC§ < 0)
|
||||
{
|
||||
this.§_-qC§ = 0;
|
||||
}
|
||||
else if(this.§_-qC§ >= this.length)
|
||||
{
|
||||
this.alternativa3d::collectNotifiers(oldTime,this.length);
|
||||
this.§_-qC§ = this.length <= 0 ? 0 : this.§_-qC§ % this.length;
|
||||
this.alternativa3d::collectNotifiers(0,this.§_-qC§);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.alternativa3d::collectNotifiers(oldTime,this.§_-qC§);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(this.§_-qC§ < 0)
|
||||
{
|
||||
this.§_-qC§ = 0;
|
||||
}
|
||||
else if(this.§_-qC§ >= this.length)
|
||||
{
|
||||
this.§_-qC§ = this.length;
|
||||
}
|
||||
this.alternativa3d::collectNotifiers(oldTime,this.§_-qC§);
|
||||
}
|
||||
}
|
||||
if(weight > 0)
|
||||
{
|
||||
for(i = 0; i < this.§_-Iv§; )
|
||||
{
|
||||
track = this.§_-cT§[i];
|
||||
if(track.object != null)
|
||||
{
|
||||
state = alternativa3d::controller.alternativa3d::getState(track.object);
|
||||
if(state != null)
|
||||
{
|
||||
track.alternativa3d::blend(this.§_-qC§,weight,state);
|
||||
}
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function get time() : Number
|
||||
{
|
||||
return this.§_-qC§;
|
||||
}
|
||||
|
||||
public function set time(value:Number) : void
|
||||
{
|
||||
this.§_-qC§ = value;
|
||||
}
|
||||
|
||||
public function get normalizedTime() : Number
|
||||
{
|
||||
return this.length == 0 ? 0 : this.§_-qC§ / this.length;
|
||||
}
|
||||
|
||||
public function set normalizedTime(value:Number) : void
|
||||
{
|
||||
this.§_-qC§ = value * this.length;
|
||||
}
|
||||
|
||||
private function getNumChildren(object:Object) : int
|
||||
{
|
||||
if(object is Object3D)
|
||||
{
|
||||
return Object3D(object).numChildren;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
private function getChildAt(object:Object, index:int) : Object
|
||||
{
|
||||
if(object is Object3D)
|
||||
{
|
||||
return Object3D(object).getChildAt(index);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private function addChildren(object:Object) : void
|
||||
{
|
||||
var child:Object = null;
|
||||
for(var i:int = 0,var numChildren:int = this.getNumChildren(object); i < numChildren; i++)
|
||||
{
|
||||
child = this.getChildAt(object,i);
|
||||
this.addObject(child);
|
||||
this.addChildren(child);
|
||||
}
|
||||
}
|
||||
|
||||
public function attach(object:Object, includeDescendants:Boolean) : void
|
||||
{
|
||||
this.updateObjects(this.alternativa3d::_-Kq,alternativa3d::controller,null,alternativa3d::controller);
|
||||
this.alternativa3d::_-Kq = null;
|
||||
this.addObject(object);
|
||||
if(includeDescendants)
|
||||
{
|
||||
this.addChildren(object);
|
||||
}
|
||||
}
|
||||
|
||||
alternativa3d function collectNotifiers(start:Number, end:Number) : void
|
||||
{
|
||||
for(var notify:AnimationNotify = this.§_-Ci§; notify != null; )
|
||||
{
|
||||
if(notify.alternativa3d::_-qC > start)
|
||||
{
|
||||
if(notify.alternativa3d::_-qC > end)
|
||||
{
|
||||
notify = notify.alternativa3d::next;
|
||||
continue;
|
||||
}
|
||||
notify.alternativa3d::_-XY = alternativa3d::controller.alternativa3d::nearestNotifyers;
|
||||
alternativa3d::controller.alternativa3d::nearestNotifyers = notify;
|
||||
}
|
||||
notify = notify.alternativa3d::next;
|
||||
}
|
||||
}
|
||||
|
||||
public function addNotify(time:Number, name:String = null) : AnimationNotify
|
||||
{
|
||||
var _loc4_:AnimationNotify = null;
|
||||
time = time <= 0 ? 0 : (time >= this.length ? this.length : time);
|
||||
var notify:AnimationNotify = new AnimationNotify(name);
|
||||
notify.alternativa3d::_-qC = time;
|
||||
if(this.§_-Ci§ == null)
|
||||
{
|
||||
this.§_-Ci§ = notify;
|
||||
return notify;
|
||||
}
|
||||
if(this.§_-Ci§.alternativa3d::_-qC > time)
|
||||
{
|
||||
notify.alternativa3d::next = this.§_-Ci§;
|
||||
this.§_-Ci§ = notify;
|
||||
return notify;
|
||||
}
|
||||
_loc4_ = this.§_-Ci§;
|
||||
while(_loc4_.alternativa3d::next != null && _loc4_.alternativa3d::next.alternativa3d::_-qC <= time)
|
||||
{
|
||||
_loc4_ = _loc4_.alternativa3d::next;
|
||||
}
|
||||
if(_loc4_.alternativa3d::next == null)
|
||||
{
|
||||
_loc4_.alternativa3d::next = notify;
|
||||
}
|
||||
else
|
||||
{
|
||||
notify.alternativa3d::next = _loc4_.alternativa3d::next;
|
||||
_loc4_.alternativa3d::next = notify;
|
||||
}
|
||||
return notify;
|
||||
}
|
||||
|
||||
public function addNotifyAtEnd(offsetFromEnd:Number = 0, name:String = null) : AnimationNotify
|
||||
{
|
||||
return this.addNotify(this.length - offsetFromEnd,name);
|
||||
}
|
||||
|
||||
public function removeNotify(notify:AnimationNotify) : AnimationNotify
|
||||
{
|
||||
var n:AnimationNotify = null;
|
||||
if(this.§_-Ci§ != null)
|
||||
{
|
||||
if(this.§_-Ci§ == notify)
|
||||
{
|
||||
this.§_-Ci§ = this.§_-Ci§.alternativa3d::next;
|
||||
return notify;
|
||||
}
|
||||
n = this.§_-Ci§;
|
||||
while(n.alternativa3d::next != null && n.alternativa3d::next != notify)
|
||||
{
|
||||
n = n.alternativa3d::next;
|
||||
}
|
||||
if(n.alternativa3d::next == notify)
|
||||
{
|
||||
n.alternativa3d::next = notify.alternativa3d::next;
|
||||
return notify;
|
||||
}
|
||||
}
|
||||
throw new Error("Notify not found");
|
||||
}
|
||||
|
||||
public function get notifiers() : Vector.<AnimationNotify>
|
||||
{
|
||||
var result:Vector.<AnimationNotify> = new Vector.<AnimationNotify>();
|
||||
var i:int = 0;
|
||||
for(var notify:AnimationNotify = this.§_-Ci§; notify != null; notify = notify.alternativa3d::next)
|
||||
{
|
||||
result[i] = notify;
|
||||
i++;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public function slice(start:Number, end:Number = 1.7976931348623157e+308) : AnimationClip
|
||||
{
|
||||
var sliced:AnimationClip = new AnimationClip(this.name);
|
||||
sliced.alternativa3d::_-Kq = this.alternativa3d::_-Kq == null ? null : [].concat(this.alternativa3d::_-Kq);
|
||||
for(var i:int = 0; i < this.§_-Iv§; i++)
|
||||
{
|
||||
sliced.addTrack(this.§_-cT§[i].slice(start,end));
|
||||
}
|
||||
return sliced;
|
||||
}
|
||||
|
||||
public function clone() : AnimationClip
|
||||
{
|
||||
var cloned:AnimationClip = new AnimationClip(this.name);
|
||||
cloned.alternativa3d::_-Kq = this.alternativa3d::_-Kq == null ? null : [].concat(this.alternativa3d::_-Kq);
|
||||
for(var i:int = 0; i < this.§_-Iv§; i++)
|
||||
{
|
||||
cloned.addTrack(this.§_-cT§[i]);
|
||||
}
|
||||
cloned.length = this.length;
|
||||
return cloned;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,17 +10,17 @@ package alternativa.engine3d.animation
|
||||
|
||||
public class AnimationController
|
||||
{
|
||||
private var var_733:AnimationNode;
|
||||
private var §_-cn§:AnimationNode;
|
||||
|
||||
private var var_348:Vector.<Object>;
|
||||
private var §_-Kq§:Vector.<Object>;
|
||||
|
||||
private var var_732:Vector.<Object3D> = new Vector.<Object3D>();
|
||||
private var §_-62§:Vector.<Object3D> = new Vector.<Object3D>();
|
||||
|
||||
private var var_734:Dictionary = new Dictionary();
|
||||
private var §_-oX§:Dictionary = new Dictionary();
|
||||
|
||||
private var var_619:Object = new Object();
|
||||
private var §_-eB§:Object = new Object();
|
||||
|
||||
private var var_210:int = -1;
|
||||
private var §_-Jl§:int = -1;
|
||||
|
||||
alternativa3d var nearestNotifyers:AnimationNotify;
|
||||
|
||||
@@ -31,24 +31,24 @@ package alternativa.engine3d.animation
|
||||
|
||||
public function get root() : AnimationNode
|
||||
{
|
||||
return this.var_733;
|
||||
return this.§_-cn§;
|
||||
}
|
||||
|
||||
public function set root(value:AnimationNode) : void
|
||||
{
|
||||
if(this.var_733 != value)
|
||||
if(this.§_-cn§ != value)
|
||||
{
|
||||
if(this.var_733 != null)
|
||||
if(this.§_-cn§ != null)
|
||||
{
|
||||
this.var_733.alternativa3d::setController(null);
|
||||
this.var_733.alternativa3d::var_694 = false;
|
||||
this.§_-cn§.alternativa3d::setController(null);
|
||||
this.§_-cn§.alternativa3d::_-Eo = false;
|
||||
}
|
||||
if(value != null)
|
||||
{
|
||||
value.alternativa3d::setController(this);
|
||||
value.alternativa3d::var_694 = true;
|
||||
value.alternativa3d::_-Eo = true;
|
||||
}
|
||||
this.var_733 = value;
|
||||
this.§_-cn§ = value;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,30 +60,30 @@ package alternativa.engine3d.animation
|
||||
var count:int = 0;
|
||||
var _loc6_:int = 0;
|
||||
var object:Object3D = null;
|
||||
if(this.var_210 < 0)
|
||||
if(this.§_-Jl§ < 0)
|
||||
{
|
||||
this.var_210 = getTimer();
|
||||
this.§_-Jl§ = getTimer();
|
||||
interval = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc6_ = int(getTimer());
|
||||
interval = 0.001 * (_loc6_ - this.var_210);
|
||||
this.var_210 = _loc6_;
|
||||
interval = 0.001 * (_loc6_ - this.§_-Jl§);
|
||||
this.§_-Jl§ = _loc6_;
|
||||
}
|
||||
if(this.var_733 == null)
|
||||
if(this.§_-cn§ == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
for each(data in this.var_619)
|
||||
for each(data in this.§_-eB§)
|
||||
{
|
||||
data.reset();
|
||||
}
|
||||
this.var_733.alternativa3d::update(interval,1);
|
||||
for(i = 0,count = int(this.var_732.length); i < count; )
|
||||
this.§_-cn§.alternativa3d::update(interval,1);
|
||||
for(i = 0,count = int(this.§_-62§.length); i < count; )
|
||||
{
|
||||
object = this.var_732[i];
|
||||
data = this.var_619[object.name];
|
||||
object = this.§_-62§[i];
|
||||
data = this.§_-eB§[object.name];
|
||||
if(data != null)
|
||||
{
|
||||
data.apply(object);
|
||||
@@ -96,28 +96,28 @@ package alternativa.engine3d.animation
|
||||
{
|
||||
notify.dispatchEvent(new NotifyEvent(notify));
|
||||
}
|
||||
notify = notify.alternativa3d::name_587;
|
||||
notify = notify.alternativa3d::_-XY;
|
||||
}
|
||||
this.alternativa3d::nearestNotifyers = null;
|
||||
}
|
||||
|
||||
alternativa3d function addObject(object:Object) : void
|
||||
{
|
||||
if(object in this.var_734)
|
||||
if(object in this.§_-oX§)
|
||||
{
|
||||
++this.var_734[object];
|
||||
++this.§_-oX§[object];
|
||||
}
|
||||
else
|
||||
{
|
||||
if(object is Object3D)
|
||||
{
|
||||
this.var_732.push(object);
|
||||
this.§_-62§.push(object);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.var_348.push(object);
|
||||
this.§_-Kq§.push(object);
|
||||
}
|
||||
this.var_734[object] = 1;
|
||||
this.§_-oX§[object] = 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -126,56 +126,56 @@ package alternativa.engine3d.animation
|
||||
var index:int = 0;
|
||||
var j:int = 0;
|
||||
var count:int = 0;
|
||||
var used:int = int(this.var_734[object]);
|
||||
var used:int = int(this.§_-oX§[object]);
|
||||
used--;
|
||||
if(used <= 0)
|
||||
{
|
||||
if(object is Object3D)
|
||||
{
|
||||
index = int(this.var_732.indexOf(object));
|
||||
count = this.var_732.length - 1;
|
||||
index = int(this.§_-62§.indexOf(object));
|
||||
count = this.§_-62§.length - 1;
|
||||
for(j = index + 1; index < count; )
|
||||
{
|
||||
this.var_732[index] = this.var_732[j];
|
||||
this.§_-62§[index] = this.§_-62§[j];
|
||||
index++;
|
||||
j++;
|
||||
}
|
||||
this.var_732.length = count;
|
||||
this.§_-62§.length = count;
|
||||
}
|
||||
else
|
||||
{
|
||||
index = int(this.var_348.indexOf(object));
|
||||
count = this.var_348.length - 1;
|
||||
index = int(this.§_-Kq§.indexOf(object));
|
||||
count = this.§_-Kq§.length - 1;
|
||||
for(j = index + 1; index < count; )
|
||||
{
|
||||
this.var_348[index] = this.var_348[j];
|
||||
this.§_-Kq§[index] = this.§_-Kq§[j];
|
||||
index++;
|
||||
j++;
|
||||
}
|
||||
this.var_348.length = count;
|
||||
this.§_-Kq§.length = count;
|
||||
}
|
||||
delete this.var_734[object];
|
||||
delete this.§_-oX§[object];
|
||||
}
|
||||
else
|
||||
{
|
||||
this.var_734[object] = used;
|
||||
this.§_-oX§[object] = used;
|
||||
}
|
||||
}
|
||||
|
||||
alternativa3d function getState(name:String) : AnimationState
|
||||
{
|
||||
var state:AnimationState = this.var_619[name];
|
||||
var state:AnimationState = this.§_-eB§[name];
|
||||
if(state == null)
|
||||
{
|
||||
state = new AnimationState();
|
||||
this.var_619[name] = state;
|
||||
this.§_-eB§[name] = state;
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
public function freeze() : void
|
||||
{
|
||||
this.var_210 = -1;
|
||||
this.§_-Jl§ = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ package alternativa.engine3d.animation
|
||||
|
||||
public class AnimationNode
|
||||
{
|
||||
alternativa3d var var_694:Boolean = false;
|
||||
alternativa3d var §_-Eo§:Boolean = false;
|
||||
|
||||
alternativa3d var _parent:AnimationNode;
|
||||
|
||||
@@ -21,7 +21,7 @@ package alternativa.engine3d.animation
|
||||
|
||||
public function get isActive() : Boolean
|
||||
{
|
||||
return this.alternativa3d::var_694 && this.alternativa3d::controller != null;
|
||||
return this.alternativa3d::_-Eo && this.alternativa3d::controller != null;
|
||||
}
|
||||
|
||||
public function get parent() : AnimationNode
|
||||
@@ -51,7 +51,7 @@ package alternativa.engine3d.animation
|
||||
alternativa3d function removeNode(node:AnimationNode) : void
|
||||
{
|
||||
node.alternativa3d::setController(null);
|
||||
node.alternativa3d::var_694 = false;
|
||||
node.alternativa3d::_-Eo = false;
|
||||
node.alternativa3d::_parent = null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,13 +9,13 @@ package alternativa.engine3d.animation
|
||||
{
|
||||
public var name:String;
|
||||
|
||||
alternativa3d var var_420:Number = 0;
|
||||
alternativa3d var §_-qC§:Number = 0;
|
||||
|
||||
alternativa3d var next:AnimationNotify;
|
||||
|
||||
alternativa3d var var_735:Number;
|
||||
alternativa3d var §_-1n§:Number;
|
||||
|
||||
alternativa3d var name_587:AnimationNotify;
|
||||
alternativa3d var §_-XY§:AnimationNotify;
|
||||
|
||||
public function AnimationNotify(name:String)
|
||||
{
|
||||
@@ -25,7 +25,7 @@ package alternativa.engine3d.animation
|
||||
|
||||
public function get time() : Number
|
||||
{
|
||||
return this.alternativa3d::var_420;
|
||||
return this.alternativa3d::_-qC;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,15 +9,15 @@ package alternativa.engine3d.animation
|
||||
|
||||
public class AnimationState
|
||||
{
|
||||
public var var_731:int = 0;
|
||||
public var §_-6V§:int = 0;
|
||||
|
||||
public var transform:TransformKey = new TransformKey();
|
||||
|
||||
public var var_729:Number = 0;
|
||||
public var §_-H1§:Number = 0;
|
||||
|
||||
public var numbers:Object = new Object();
|
||||
|
||||
public var var_730:Object = new Object();
|
||||
public var §_-NT§:Object = new Object();
|
||||
|
||||
public function AnimationState()
|
||||
{
|
||||
@@ -27,36 +27,36 @@ package alternativa.engine3d.animation
|
||||
public function reset() : void
|
||||
{
|
||||
var key:String = null;
|
||||
this.var_729 = 0;
|
||||
this.§_-H1§ = 0;
|
||||
for(key in this.numbers)
|
||||
{
|
||||
delete this.numbers[key];
|
||||
delete this.var_730[key];
|
||||
delete this.§_-NT§[key];
|
||||
}
|
||||
}
|
||||
|
||||
public function addWeightedTransform(key:TransformKey, weight:Number) : void
|
||||
{
|
||||
this.var_729 += weight;
|
||||
this.transform.interpolate(this.transform,key,weight / this.var_729);
|
||||
this.§_-H1§ += weight;
|
||||
this.transform.interpolate(this.transform,key,weight / this.§_-H1§);
|
||||
}
|
||||
|
||||
public function addWeightedNumber(property:String, value:Number, weight:Number) : void
|
||||
{
|
||||
var current:Number = NaN;
|
||||
var sum:Number = Number(this.var_730[property]);
|
||||
var sum:Number = Number(this.§_-NT§[property]);
|
||||
if(sum == sum)
|
||||
{
|
||||
sum += weight;
|
||||
weight /= sum;
|
||||
current = Number(this.numbers[property]);
|
||||
this.numbers[property] = (1 - weight) * current + weight * value;
|
||||
this.var_730[property] = sum;
|
||||
this.§_-NT§[property] = sum;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.numbers[property] = value;
|
||||
this.var_730[property] = weight;
|
||||
this.§_-NT§[property] = weight;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ package alternativa.engine3d.animation
|
||||
var sum:Number = NaN;
|
||||
var weight:Number = NaN;
|
||||
var key:String = null;
|
||||
if(this.var_729 > 0)
|
||||
if(this.§_-H1§ > 0)
|
||||
{
|
||||
object.x = this.transform.alternativa3d::x;
|
||||
object.y = this.transform.alternativa3d::y;
|
||||
@@ -80,48 +80,48 @@ package alternativa.engine3d.animation
|
||||
switch(key)
|
||||
{
|
||||
case "x":
|
||||
sum = Number(this.var_730["x"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
sum = Number(this.§_-NT§["x"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
object.x = (1 - weight) * object.x + weight * this.numbers["x"];
|
||||
break;
|
||||
case "y":
|
||||
sum = Number(this.var_730["y"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
sum = Number(this.§_-NT§["y"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
object.y = (1 - weight) * object.y + weight * this.numbers["y"];
|
||||
break;
|
||||
case "z":
|
||||
sum = Number(this.var_730["z"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
sum = Number(this.§_-NT§["z"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
object.z = (1 - weight) * object.z + weight * this.numbers["z"];
|
||||
break;
|
||||
case "rotationX":
|
||||
sum = Number(this.var_730["rotationX"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
sum = Number(this.§_-NT§["rotationX"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
object.rotationX = (1 - weight) * object.rotationX + weight * this.numbers["rotationX"];
|
||||
break;
|
||||
case "rotationY":
|
||||
sum = Number(this.var_730["rotationY"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
sum = Number(this.§_-NT§["rotationY"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
object.rotationY = (1 - weight) * object.rotationY + weight * this.numbers["rotationY"];
|
||||
break;
|
||||
case "rotationZ":
|
||||
sum = Number(this.var_730["rotationZ"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
sum = Number(this.§_-NT§["rotationZ"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
object.rotationZ = (1 - weight) * object.rotationZ + weight * this.numbers["rotationZ"];
|
||||
break;
|
||||
case "scaleX":
|
||||
sum = Number(this.var_730["scaleX"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
sum = Number(this.§_-NT§["scaleX"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
object.scaleX = (1 - weight) * object.scaleX + weight * this.numbers["scaleX"];
|
||||
break;
|
||||
case "scaleY":
|
||||
sum = Number(this.var_730["scaleY"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
sum = Number(this.§_-NT§["scaleY"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
object.scaleY = (1 - weight) * object.scaleY + weight * this.numbers["scaleY"];
|
||||
break;
|
||||
case "scaleZ":
|
||||
sum = Number(this.var_730["scaleZ"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
sum = Number(this.§_-NT§["scaleZ"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
object.scaleZ = (1 - weight) * object.scaleZ + weight * this.numbers["scaleZ"];
|
||||
break;
|
||||
default:
|
||||
@@ -136,7 +136,7 @@ package alternativa.engine3d.animation
|
||||
var sum:Number = NaN;
|
||||
var weight:Number = NaN;
|
||||
var key:String = null;
|
||||
if(this.var_729 > 0)
|
||||
if(this.§_-H1§ > 0)
|
||||
{
|
||||
object.x = this.transform.alternativa3d::x;
|
||||
object.y = this.transform.alternativa3d::y;
|
||||
@@ -151,48 +151,48 @@ package alternativa.engine3d.animation
|
||||
switch(key)
|
||||
{
|
||||
case "x":
|
||||
sum = Number(this.var_730["x"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
sum = Number(this.§_-NT§["x"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
object.x = (1 - weight) * object.x + weight * this.numbers["x"];
|
||||
break;
|
||||
case "y":
|
||||
sum = Number(this.var_730["y"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
sum = Number(this.§_-NT§["y"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
object.y = (1 - weight) * object.y + weight * this.numbers["y"];
|
||||
break;
|
||||
case "z":
|
||||
sum = Number(this.var_730["z"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
sum = Number(this.§_-NT§["z"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
object.z = (1 - weight) * object.z + weight * this.numbers["z"];
|
||||
break;
|
||||
case "rotationX":
|
||||
sum = Number(this.var_730["rotationX"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
sum = Number(this.§_-NT§["rotationX"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
object.rotationX = (1 - weight) * object.rotationX + weight * this.numbers["rotationX"];
|
||||
break;
|
||||
case "rotationY":
|
||||
sum = Number(this.var_730["rotationY"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
sum = Number(this.§_-NT§["rotationY"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
object.rotationY = (1 - weight) * object.rotationY + weight * this.numbers["rotationY"];
|
||||
break;
|
||||
case "rotationZ":
|
||||
sum = Number(this.var_730["rotationZ"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
sum = Number(this.§_-NT§["rotationZ"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
object.rotationZ = (1 - weight) * object.rotationZ + weight * this.numbers["rotationZ"];
|
||||
break;
|
||||
case "scaleX":
|
||||
sum = Number(this.var_730["scaleX"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
sum = Number(this.§_-NT§["scaleX"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
object.scaleX = (1 - weight) * object.scaleX + weight * this.numbers["scaleX"];
|
||||
break;
|
||||
case "scaleY":
|
||||
sum = Number(this.var_730["scaleY"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
sum = Number(this.§_-NT§["scaleY"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
object.scaleY = (1 - weight) * object.scaleY + weight * this.numbers["scaleY"];
|
||||
break;
|
||||
case "scaleZ":
|
||||
sum = Number(this.var_730["scaleZ"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
sum = Number(this.§_-NT§["scaleZ"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
object.scaleZ = (1 - weight) * object.scaleZ + weight * this.numbers["scaleZ"];
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -6,7 +6,7 @@ package alternativa.engine3d.animation.keys
|
||||
|
||||
public class Keyframe
|
||||
{
|
||||
alternativa3d var var_420:Number = 0;
|
||||
alternativa3d var §_-qC§:Number = 0;
|
||||
|
||||
public function Keyframe()
|
||||
{
|
||||
@@ -15,7 +15,7 @@ package alternativa.engine3d.animation.keys
|
||||
|
||||
public function get time() : Number
|
||||
{
|
||||
return this.alternativa3d::var_420;
|
||||
return this.alternativa3d::_-qC;
|
||||
}
|
||||
|
||||
public function get value() : Object
|
||||
@@ -38,7 +38,7 @@ package alternativa.engine3d.animation.keys
|
||||
|
||||
public function toString() : String
|
||||
{
|
||||
return "[Keyframe time = " + this.alternativa3d::var_420.toFixed(2) + " value = " + this.value + "]";
|
||||
return "[Keyframe time = " + this.alternativa3d::_-qC.toFixed(2) + " value = " + this.value + "]";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ package alternativa.engine3d.animation.keys
|
||||
|
||||
public class NumberKey extends Keyframe
|
||||
{
|
||||
alternativa3d var name_598:Number = 0;
|
||||
alternativa3d var §_-4O§:Number = 0;
|
||||
|
||||
alternativa3d var next:NumberKey;
|
||||
|
||||
@@ -17,17 +17,17 @@ package alternativa.engine3d.animation.keys
|
||||
|
||||
public function interpolate(a:NumberKey, b:NumberKey, c:Number) : void
|
||||
{
|
||||
this.alternativa3d::name_598 = (1 - c) * a.alternativa3d::name_598 + c * b.alternativa3d::name_598;
|
||||
this.alternativa3d::_-4O = (1 - c) * a.alternativa3d::_-4O + c * b.alternativa3d::_-4O;
|
||||
}
|
||||
|
||||
override public function get value() : Object
|
||||
{
|
||||
return this.alternativa3d::name_598;
|
||||
return this.alternativa3d::_-4O;
|
||||
}
|
||||
|
||||
override public function set value(v:Object) : void
|
||||
{
|
||||
this.alternativa3d::name_598 = Number(v);
|
||||
this.alternativa3d::_-4O = Number(v);
|
||||
}
|
||||
|
||||
override alternativa3d function get nextKeyFrame() : Keyframe
|
||||
|
||||
91
src/alternativa/engine3d/animation/keys/NumberTrack.as
Normal file
91
src/alternativa/engine3d/animation/keys/NumberTrack.as
Normal file
@@ -0,0 +1,91 @@
|
||||
package alternativa.engine3d.animation.keys
|
||||
{
|
||||
import alternativa.engine3d.alternativa3d;
|
||||
import alternativa.engine3d.animation.AnimationState;
|
||||
|
||||
use namespace alternativa3d;
|
||||
|
||||
public class NumberTrack extends Track
|
||||
{
|
||||
private static var temp:NumberKey = new NumberKey();
|
||||
|
||||
alternativa3d var §_-ku§:NumberKey;
|
||||
|
||||
public var property:String;
|
||||
|
||||
public function NumberTrack(object:String, property:String)
|
||||
{
|
||||
super();
|
||||
this.property = property;
|
||||
this.object = object;
|
||||
}
|
||||
|
||||
override alternativa3d function get keyFramesList() : Keyframe
|
||||
{
|
||||
return this.alternativa3d::_-ku;
|
||||
}
|
||||
|
||||
override alternativa3d function set keyFramesList(value:Keyframe) : void
|
||||
{
|
||||
this.alternativa3d::_-ku = NumberKey(value);
|
||||
}
|
||||
|
||||
public function addKey(time:Number, value:Number = 0) : Keyframe
|
||||
{
|
||||
var key:NumberKey = new NumberKey();
|
||||
key.alternativa3d::_-qC = time;
|
||||
key.value = value;
|
||||
alternativa3d::addKeyToList(key);
|
||||
return key;
|
||||
}
|
||||
|
||||
override alternativa3d function blend(time:Number, weight:Number, state:AnimationState) : void
|
||||
{
|
||||
var prev:NumberKey = null;
|
||||
if(this.property == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var next:NumberKey = this.alternativa3d::_-ku;
|
||||
while(next != null && next.alternativa3d::_-qC < time)
|
||||
{
|
||||
prev = next;
|
||||
next = next.alternativa3d::next;
|
||||
}
|
||||
if(prev != null)
|
||||
{
|
||||
if(next != null)
|
||||
{
|
||||
temp.interpolate(prev,next,(time - prev.alternativa3d::_-qC) / (next.alternativa3d::_-qC - prev.alternativa3d::_-qC));
|
||||
state.addWeightedNumber(this.property,temp.alternativa3d::_-4O,weight);
|
||||
}
|
||||
else
|
||||
{
|
||||
state.addWeightedNumber(this.property,prev.alternativa3d::_-4O,weight);
|
||||
}
|
||||
}
|
||||
else if(next != null)
|
||||
{
|
||||
state.addWeightedNumber(this.property,next.alternativa3d::_-4O,weight);
|
||||
}
|
||||
}
|
||||
|
||||
override alternativa3d function createKeyFrame() : Keyframe
|
||||
{
|
||||
return new NumberKey();
|
||||
}
|
||||
|
||||
override alternativa3d function interpolateKeyFrame(dest:Keyframe, a:Keyframe, b:Keyframe, value:Number) : void
|
||||
{
|
||||
NumberKey(dest).interpolate(NumberKey(a),NumberKey(b),value);
|
||||
}
|
||||
|
||||
override public function slice(start:Number, end:Number = 1.7976931348623157e+308) : Track
|
||||
{
|
||||
var track:NumberTrack = new NumberTrack(object,this.property);
|
||||
alternativa3d::sliceImplementation(track,start,end);
|
||||
return track;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,71 +1,71 @@
|
||||
package package_101
|
||||
package alternativa.engine3d.animation.keys
|
||||
{
|
||||
import alternativa.engine3d.alternativa3d;
|
||||
import package_102.name_584;
|
||||
import alternativa.engine3d.animation.AnimationState;
|
||||
|
||||
use namespace alternativa3d;
|
||||
|
||||
public class name_552
|
||||
public class Track
|
||||
{
|
||||
public var object:String;
|
||||
|
||||
alternativa3d var var_693:Number = 0;
|
||||
alternativa3d var §_-YC§:Number = 0;
|
||||
|
||||
public function name_552()
|
||||
public function Track()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function get length() : Number
|
||||
{
|
||||
return this.alternativa3d::var_693;
|
||||
return this.alternativa3d::_-YC;
|
||||
}
|
||||
|
||||
alternativa3d function get keyFramesList() : name_583
|
||||
alternativa3d function get keyFramesList() : Keyframe
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
alternativa3d function set keyFramesList(value:name_583) : void
|
||||
alternativa3d function set keyFramesList(value:Keyframe) : void
|
||||
{
|
||||
}
|
||||
|
||||
alternativa3d function method_350(key:name_583) : void
|
||||
alternativa3d function addKeyToList(key:Keyframe) : void
|
||||
{
|
||||
var k:name_583 = null;
|
||||
var time:Number = Number(key.alternativa3d::var_420);
|
||||
var _loc3_:Keyframe = null;
|
||||
var time:Number = key.alternativa3d::_-qC;
|
||||
if(this.alternativa3d::keyFramesList == null)
|
||||
{
|
||||
this.alternativa3d::keyFramesList = key;
|
||||
this.alternativa3d::var_693 = time <= 0 ? 0 : time;
|
||||
this.alternativa3d::_-YC = time <= 0 ? 0 : time;
|
||||
return;
|
||||
}
|
||||
if(this.alternativa3d::keyFramesList.alternativa3d::var_420 > time)
|
||||
if(this.alternativa3d::keyFramesList.alternativa3d::_-qC > time)
|
||||
{
|
||||
key.alternativa3d::nextKeyFrame = this.alternativa3d::keyFramesList;
|
||||
this.alternativa3d::keyFramesList = key;
|
||||
return;
|
||||
}
|
||||
k = this.alternativa3d::keyFramesList;
|
||||
while(k.alternativa3d::nextKeyFrame != null && k.alternativa3d::nextKeyFrame.alternativa3d::var_420 <= time)
|
||||
_loc3_ = this.alternativa3d::keyFramesList;
|
||||
while(_loc3_.alternativa3d::nextKeyFrame != null && _loc3_.alternativa3d::nextKeyFrame.alternativa3d::_-qC <= time)
|
||||
{
|
||||
k = k.alternativa3d::nextKeyFrame;
|
||||
_loc3_ = _loc3_.alternativa3d::nextKeyFrame;
|
||||
}
|
||||
if(k.alternativa3d::nextKeyFrame == null)
|
||||
if(_loc3_.alternativa3d::nextKeyFrame == null)
|
||||
{
|
||||
k.alternativa3d::nextKeyFrame = key;
|
||||
this.alternativa3d::var_693 = time <= 0 ? 0 : time;
|
||||
_loc3_.alternativa3d::nextKeyFrame = key;
|
||||
this.alternativa3d::_-YC = time <= 0 ? 0 : time;
|
||||
}
|
||||
else
|
||||
{
|
||||
key.alternativa3d::nextKeyFrame = k.alternativa3d::nextKeyFrame;
|
||||
k.alternativa3d::nextKeyFrame = key;
|
||||
key.alternativa3d::nextKeyFrame = _loc3_.alternativa3d::nextKeyFrame;
|
||||
_loc3_.alternativa3d::nextKeyFrame = key;
|
||||
}
|
||||
}
|
||||
|
||||
public function method_351(key:name_583) : name_583
|
||||
public function removeKey(key:Keyframe) : Keyframe
|
||||
{
|
||||
var k:name_583 = null;
|
||||
var k:Keyframe = null;
|
||||
if(this.alternativa3d::keyFramesList != null)
|
||||
{
|
||||
if(this.alternativa3d::keyFramesList == key)
|
||||
@@ -73,7 +73,7 @@ package package_101
|
||||
this.alternativa3d::keyFramesList = this.alternativa3d::keyFramesList.alternativa3d::nextKeyFrame;
|
||||
if(this.alternativa3d::keyFramesList == null)
|
||||
{
|
||||
this.alternativa3d::var_693 = 0;
|
||||
this.alternativa3d::_-YC = 0;
|
||||
}
|
||||
return key;
|
||||
}
|
||||
@@ -86,7 +86,7 @@ package package_101
|
||||
{
|
||||
if(key.alternativa3d::nextKeyFrame == null)
|
||||
{
|
||||
this.alternativa3d::var_693 = k.alternativa3d::var_420 <= 0 ? 0 : Number(k.alternativa3d::var_420);
|
||||
this.alternativa3d::_-YC = k.alternativa3d::_-qC <= 0 ? 0 : k.alternativa3d::_-qC;
|
||||
}
|
||||
k.alternativa3d::nextKeyFrame = key.alternativa3d::nextKeyFrame;
|
||||
return key;
|
||||
@@ -95,11 +95,11 @@ package package_101
|
||||
throw new Error("Key not found");
|
||||
}
|
||||
|
||||
public function get keys() : Vector.<name_583>
|
||||
public function get keys() : Vector.<Keyframe>
|
||||
{
|
||||
var result:Vector.<name_583> = new Vector.<name_583>();
|
||||
var result:Vector.<Keyframe> = new Vector.<Keyframe>();
|
||||
var i:int = 0;
|
||||
for(var key:name_583 = this.alternativa3d::keyFramesList; key != null; key = key.alternativa3d::nextKeyFrame)
|
||||
for(var key:Keyframe = this.alternativa3d::keyFramesList; key != null; key = key.alternativa3d::nextKeyFrame)
|
||||
{
|
||||
result[i] = key;
|
||||
i++;
|
||||
@@ -107,32 +107,32 @@ package package_101
|
||||
return result;
|
||||
}
|
||||
|
||||
alternativa3d function blend(time:Number, weight:Number, state:name_584) : void
|
||||
alternativa3d function blend(time:Number, weight:Number, state:AnimationState) : void
|
||||
{
|
||||
}
|
||||
|
||||
public function slice(start:Number, end:Number = 1.7976931348623157e+308) : name_552
|
||||
public function slice(start:Number, end:Number = 1.7976931348623157e+308) : Track
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
alternativa3d function createKeyFrame() : name_583
|
||||
alternativa3d function createKeyFrame() : Keyframe
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
alternativa3d function interpolateKeyFrame(dest:name_583, a:name_583, b:name_583, value:Number) : void
|
||||
alternativa3d function interpolateKeyFrame(dest:Keyframe, a:Keyframe, b:Keyframe, value:Number) : void
|
||||
{
|
||||
}
|
||||
|
||||
alternativa3d function method_352(dest:name_552, start:Number, end:Number) : void
|
||||
alternativa3d function sliceImplementation(dest:Track, start:Number, end:Number) : void
|
||||
{
|
||||
var prev:name_583 = null;
|
||||
var nextKey:name_583 = null;
|
||||
var prev:Keyframe = null;
|
||||
var nextKey:Keyframe = null;
|
||||
var shiftTime:Number = start > 0 ? start : 0;
|
||||
var next:name_583 = this.alternativa3d::keyFramesList;
|
||||
var key:name_583 = this.alternativa3d::createKeyFrame();
|
||||
while(next != null && next.alternativa3d::var_420 <= start)
|
||||
var next:Keyframe = this.alternativa3d::keyFramesList;
|
||||
var key:Keyframe = this.alternativa3d::createKeyFrame();
|
||||
while(next != null && next.alternativa3d::_-qC <= start)
|
||||
{
|
||||
prev = next;
|
||||
next = next.alternativa3d::nextKeyFrame;
|
||||
@@ -141,8 +141,8 @@ package package_101
|
||||
{
|
||||
if(next != null)
|
||||
{
|
||||
this.alternativa3d::interpolateKeyFrame(key,prev,next,(start - prev.alternativa3d::var_420) / (next.alternativa3d::var_420 - prev.alternativa3d::var_420));
|
||||
key.alternativa3d::var_420 = start - shiftTime;
|
||||
this.alternativa3d::interpolateKeyFrame(key,prev,next,(start - prev.alternativa3d::_-qC) / (next.alternativa3d::_-qC - prev.alternativa3d::_-qC));
|
||||
key.alternativa3d::_-qC = start - shiftTime;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -156,21 +156,21 @@ package package_101
|
||||
return;
|
||||
}
|
||||
this.alternativa3d::interpolateKeyFrame(key,key,next,1);
|
||||
key.alternativa3d::var_420 = next.alternativa3d::var_420 - shiftTime;
|
||||
key.alternativa3d::_-qC = next.alternativa3d::_-qC - shiftTime;
|
||||
prev = next;
|
||||
next = next.alternativa3d::nextKeyFrame;
|
||||
}
|
||||
dest.alternativa3d::keyFramesList = key;
|
||||
if(next == null || end <= start)
|
||||
{
|
||||
dest.alternativa3d::var_693 = key.alternativa3d::var_420 <= 0 ? 0 : Number(key.alternativa3d::var_420);
|
||||
dest.alternativa3d::_-YC = key.alternativa3d::_-qC <= 0 ? 0 : key.alternativa3d::_-qC;
|
||||
return;
|
||||
}
|
||||
while(next != null && next.alternativa3d::var_420 <= end)
|
||||
while(next != null && next.alternativa3d::_-qC <= end)
|
||||
{
|
||||
nextKey = this.alternativa3d::createKeyFrame();
|
||||
this.alternativa3d::interpolateKeyFrame(nextKey,nextKey,next,1);
|
||||
nextKey.alternativa3d::var_420 = next.alternativa3d::var_420 - shiftTime;
|
||||
nextKey.alternativa3d::_-qC = next.alternativa3d::_-qC - shiftTime;
|
||||
key.alternativa3d::nextKeyFrame = nextKey;
|
||||
key = nextKey;
|
||||
prev = next;
|
||||
@@ -179,13 +179,13 @@ package package_101
|
||||
if(next != null)
|
||||
{
|
||||
nextKey = this.alternativa3d::createKeyFrame();
|
||||
this.alternativa3d::interpolateKeyFrame(nextKey,prev,next,(end - prev.alternativa3d::var_420) / (next.alternativa3d::var_420 - prev.alternativa3d::var_420));
|
||||
nextKey.alternativa3d::var_420 = end - shiftTime;
|
||||
this.alternativa3d::interpolateKeyFrame(nextKey,prev,next,(end - prev.alternativa3d::_-qC) / (next.alternativa3d::_-qC - prev.alternativa3d::_-qC));
|
||||
nextKey.alternativa3d::_-qC = end - shiftTime;
|
||||
key.alternativa3d::nextKeyFrame = nextKey;
|
||||
}
|
||||
if(nextKey != null)
|
||||
{
|
||||
dest.alternativa3d::var_693 = nextKey.alternativa3d::var_420 <= 0 ? 0 : Number(nextKey.alternativa3d::var_420);
|
||||
dest.alternativa3d::_-YC = nextKey.alternativa3d::_-qC <= 0 ? 0 : nextKey.alternativa3d::_-qC;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,42 +1,42 @@
|
||||
package package_101
|
||||
package alternativa.engine3d.animation.keys
|
||||
{
|
||||
import alternativa.engine3d.alternativa3d;
|
||||
import alternativa.engine3d.animation.AnimationState;
|
||||
import flash.geom.Matrix3D;
|
||||
import flash.geom.Orientation3D;
|
||||
import flash.geom.Vector3D;
|
||||
import package_102.name_584;
|
||||
|
||||
use namespace alternativa3d;
|
||||
|
||||
public class name_590 extends name_552
|
||||
public class TransformTrack extends Track
|
||||
{
|
||||
private static var tempQuat:Vector3D = new Vector3D();
|
||||
|
||||
private static var temp:name_604 = new name_604();
|
||||
private static var temp:TransformKey = new TransformKey();
|
||||
|
||||
private var name_599:name_604;
|
||||
private var §_-ku§:TransformKey;
|
||||
|
||||
public function name_590(object:String)
|
||||
public function TransformTrack(object:String)
|
||||
{
|
||||
super();
|
||||
this.object = object;
|
||||
}
|
||||
|
||||
override alternativa3d function get keyFramesList() : name_583
|
||||
override alternativa3d function get keyFramesList() : Keyframe
|
||||
{
|
||||
return this.name_599;
|
||||
return this.§_-ku§;
|
||||
}
|
||||
|
||||
override alternativa3d function set keyFramesList(value:name_583) : void
|
||||
override alternativa3d function set keyFramesList(value:Keyframe) : void
|
||||
{
|
||||
this.name_599 = name_604(value);
|
||||
this.§_-ku§ = TransformKey(value);
|
||||
}
|
||||
|
||||
public function method_126(time:Number, matrix:Matrix3D) : name_604
|
||||
public function addKey(time:Number, matrix:Matrix3D) : TransformKey
|
||||
{
|
||||
var key:name_604 = null;
|
||||
key = new name_604();
|
||||
key.alternativa3d::var_420 = time;
|
||||
var key:TransformKey = null;
|
||||
key = new TransformKey();
|
||||
key.alternativa3d::_-qC = time;
|
||||
var components:Vector.<Vector3D> = matrix.decompose(Orientation3D.QUATERNION);
|
||||
key.alternativa3d::x = components[0].x;
|
||||
key.alternativa3d::y = components[0].y;
|
||||
@@ -45,26 +45,26 @@ package package_101
|
||||
key.alternativa3d::scaleX = components[2].x;
|
||||
key.alternativa3d::scaleY = components[2].y;
|
||||
key.alternativa3d::scaleZ = components[2].z;
|
||||
alternativa3d::method_350(key);
|
||||
alternativa3d::addKeyToList(key);
|
||||
return key;
|
||||
}
|
||||
|
||||
public function method_372(time:Number, x:Number = 0, y:Number = 0, z:Number = 0, rotationX:Number = 0, rotationY:Number = 0, rotationZ:Number = 0, scaleX:Number = 1, scaleY:Number = 1, scaleZ:Number = 1) : name_604
|
||||
public function addKeyComponents(time:Number, x:Number = 0, y:Number = 0, z:Number = 0, rotationX:Number = 0, rotationY:Number = 0, rotationZ:Number = 0, scaleX:Number = 1, scaleY:Number = 1, scaleZ:Number = 1) : TransformKey
|
||||
{
|
||||
var key:name_604 = new name_604();
|
||||
key.alternativa3d::var_420 = time;
|
||||
var key:TransformKey = new TransformKey();
|
||||
key.alternativa3d::_-qC = time;
|
||||
key.alternativa3d::x = x;
|
||||
key.alternativa3d::y = y;
|
||||
key.alternativa3d::z = z;
|
||||
key.alternativa3d::rotation = this.method_371(rotationX,rotationY,rotationZ);
|
||||
key.alternativa3d::rotation = this.createQuatFromEuler(rotationX,rotationY,rotationZ);
|
||||
key.alternativa3d::scaleX = scaleX;
|
||||
key.alternativa3d::scaleY = scaleY;
|
||||
key.alternativa3d::scaleZ = scaleZ;
|
||||
alternativa3d::method_350(key);
|
||||
alternativa3d::addKeyToList(key);
|
||||
return key;
|
||||
}
|
||||
|
||||
private function method_369(quat:Vector3D, additive:Vector3D) : void
|
||||
private function appendQuat(quat:Vector3D, additive:Vector3D) : void
|
||||
{
|
||||
var ww:Number = additive.w * quat.w - additive.x * quat.x - additive.y * quat.y - additive.z * quat.z;
|
||||
var xx:Number = additive.w * quat.x + additive.x * quat.w + additive.y * quat.z - additive.z * quat.y;
|
||||
@@ -76,7 +76,7 @@ package package_101
|
||||
quat.z = zz;
|
||||
}
|
||||
|
||||
private function method_370(quat:Vector3D) : void
|
||||
private function normalizeQuat(quat:Vector3D) : void
|
||||
{
|
||||
var d:Number = quat.w * quat.w + quat.x * quat.x + quat.y * quat.y + quat.z * quat.z;
|
||||
if(d == 0)
|
||||
@@ -93,7 +93,7 @@ package package_101
|
||||
}
|
||||
}
|
||||
|
||||
private function method_368(quat:Vector3D, x:Number, y:Number, z:Number, angle:Number) : void
|
||||
private function setQuatFromAxisAngle(quat:Vector3D, x:Number, y:Number, z:Number, angle:Number) : void
|
||||
{
|
||||
quat.w = Math.cos(0.5 * angle);
|
||||
var k:Number = Math.sin(0.5 * angle) / Math.sqrt(x * x + y * y + z * z);
|
||||
@@ -102,24 +102,24 @@ package package_101
|
||||
quat.z = z * k;
|
||||
}
|
||||
|
||||
private function method_371(x:Number, y:Number, z:Number) : Vector3D
|
||||
private function createQuatFromEuler(x:Number, y:Number, z:Number) : Vector3D
|
||||
{
|
||||
var result:Vector3D = new Vector3D();
|
||||
this.method_368(result,1,0,0,x);
|
||||
this.method_368(tempQuat,0,1,0,y);
|
||||
this.method_369(result,tempQuat);
|
||||
this.method_370(result);
|
||||
this.method_368(tempQuat,0,0,1,z);
|
||||
this.method_369(result,tempQuat);
|
||||
this.method_370(result);
|
||||
this.setQuatFromAxisAngle(result,1,0,0,x);
|
||||
this.setQuatFromAxisAngle(tempQuat,0,1,0,y);
|
||||
this.appendQuat(result,tempQuat);
|
||||
this.normalizeQuat(result);
|
||||
this.setQuatFromAxisAngle(tempQuat,0,0,1,z);
|
||||
this.appendQuat(result,tempQuat);
|
||||
this.normalizeQuat(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
override alternativa3d function blend(time:Number, weight:Number, state:name_584) : void
|
||||
override alternativa3d function blend(time:Number, weight:Number, state:AnimationState) : void
|
||||
{
|
||||
var prev:name_604 = null;
|
||||
var next:name_604 = this.name_599;
|
||||
while(next != null && next.alternativa3d::var_420 < time)
|
||||
var prev:TransformKey = null;
|
||||
var next:TransformKey = this.§_-ku§;
|
||||
while(next != null && next.alternativa3d::_-qC < time)
|
||||
{
|
||||
prev = next;
|
||||
next = next.alternativa3d::next;
|
||||
@@ -128,34 +128,34 @@ package package_101
|
||||
{
|
||||
if(next != null)
|
||||
{
|
||||
temp.interpolate(prev,next,(time - prev.alternativa3d::var_420) / (next.alternativa3d::var_420 - prev.alternativa3d::var_420));
|
||||
state.name_605(temp,weight);
|
||||
temp.interpolate(prev,next,(time - prev.alternativa3d::_-qC) / (next.alternativa3d::_-qC - prev.alternativa3d::_-qC));
|
||||
state.addWeightedTransform(temp,weight);
|
||||
}
|
||||
else
|
||||
{
|
||||
state.name_605(prev,weight);
|
||||
state.addWeightedTransform(prev,weight);
|
||||
}
|
||||
}
|
||||
else if(next != null)
|
||||
{
|
||||
state.name_605(next,weight);
|
||||
state.addWeightedTransform(next,weight);
|
||||
}
|
||||
}
|
||||
|
||||
override alternativa3d function createKeyFrame() : name_583
|
||||
override alternativa3d function createKeyFrame() : Keyframe
|
||||
{
|
||||
return new name_604();
|
||||
return new TransformKey();
|
||||
}
|
||||
|
||||
override alternativa3d function interpolateKeyFrame(dest:name_583, a:name_583, b:name_583, value:Number) : void
|
||||
override alternativa3d function interpolateKeyFrame(dest:Keyframe, a:Keyframe, b:Keyframe, value:Number) : void
|
||||
{
|
||||
name_604(dest).interpolate(name_604(a),name_604(b),value);
|
||||
TransformKey(dest).interpolate(TransformKey(a),TransformKey(b),value);
|
||||
}
|
||||
|
||||
override public function slice(start:Number, end:Number = 1.7976931348623157e+308) : name_552
|
||||
override public function slice(start:Number, end:Number = 1.7976931348623157e+308) : Track
|
||||
{
|
||||
var track:name_590 = new name_590(object);
|
||||
alternativa3d::method_352(track,start,end);
|
||||
var track:TransformTrack = new TransformTrack(object);
|
||||
alternativa3d::sliceImplementation(track,start,end);
|
||||
return track;
|
||||
}
|
||||
}
|
||||
@@ -21,15 +21,15 @@ package alternativa.engine3d.collisions
|
||||
|
||||
private var matrix:Transform3D = new Transform3D();
|
||||
|
||||
private var var_580:Transform3D = new Transform3D();
|
||||
private var §_-jX§:Transform3D = new Transform3D();
|
||||
|
||||
alternativa3d var geometries:Vector.<Geometry> = new Vector.<Geometry>();
|
||||
|
||||
alternativa3d var name_315:Vector.<Transform3D> = new Vector.<Transform3D>();
|
||||
alternativa3d var §_-QK§:Vector.<Transform3D> = new Vector.<Transform3D>();
|
||||
|
||||
private var vertices:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
private var var_581:Vector.<Number> = new Vector.<Number>();
|
||||
private var §_-g0§:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
private var indices:Vector.<int> = new Vector.<int>();
|
||||
|
||||
@@ -39,23 +39,23 @@ package alternativa.engine3d.collisions
|
||||
|
||||
private var src:Vector3D = new Vector3D();
|
||||
|
||||
private var var_574:Vector3D = new Vector3D();
|
||||
private var §_-o5§:Vector3D = new Vector3D();
|
||||
|
||||
private var dest:Vector3D = new Vector3D();
|
||||
|
||||
private var var_575:Vector3D = new Vector3D();
|
||||
private var §_-SE§:Vector3D = new Vector3D();
|
||||
|
||||
private var var_573:Vector3D = new Vector3D();
|
||||
private var §_-pU§:Vector3D = new Vector3D();
|
||||
|
||||
alternativa3d var sphere:Vector3D = new Vector3D();
|
||||
|
||||
private var var_579:Vector3D = new Vector3D();
|
||||
private var §_-SZ§:Vector3D = new Vector3D();
|
||||
|
||||
private var var_576:Vector3D = new Vector3D();
|
||||
private var §_-1v§:Vector3D = new Vector3D();
|
||||
|
||||
private var var_578:Vector3D = new Vector3D();
|
||||
private var §_-L9§:Vector3D = new Vector3D();
|
||||
|
||||
private var var_577:Vector3D = new Vector3D();
|
||||
private var §_-8B§:Vector3D = new Vector3D();
|
||||
|
||||
public function EllipsoidCollider(radiusX:Number, radiusY:Number, radiusZ:Number)
|
||||
{
|
||||
@@ -70,18 +70,18 @@ package alternativa.engine3d.collisions
|
||||
this.alternativa3d::sphere.x = transform.d;
|
||||
this.alternativa3d::sphere.y = transform.h;
|
||||
this.alternativa3d::sphere.z = transform.l;
|
||||
var sax:Number = transform.a * this.var_579.x + transform.b * this.var_579.y + transform.c * this.var_579.z + transform.d;
|
||||
var say:Number = transform.e * this.var_579.x + transform.f * this.var_579.y + transform.g * this.var_579.z + transform.h;
|
||||
var saz:Number = transform.i * this.var_579.x + transform.j * this.var_579.y + transform.k * this.var_579.z + transform.l;
|
||||
var sbx:Number = transform.a * this.var_576.x + transform.b * this.var_576.y + transform.c * this.var_576.z + transform.d;
|
||||
var sby:Number = transform.e * this.var_576.x + transform.f * this.var_576.y + transform.g * this.var_576.z + transform.h;
|
||||
var sbz:Number = transform.i * this.var_576.x + transform.j * this.var_576.y + transform.k * this.var_576.z + transform.l;
|
||||
var scx:Number = transform.a * this.var_578.x + transform.b * this.var_578.y + transform.c * this.var_578.z + transform.d;
|
||||
var scy:Number = transform.e * this.var_578.x + transform.f * this.var_578.y + transform.g * this.var_578.z + transform.h;
|
||||
var scz:Number = transform.i * this.var_578.x + transform.j * this.var_578.y + transform.k * this.var_578.z + transform.l;
|
||||
var sdx:Number = transform.a * this.var_577.x + transform.b * this.var_577.y + transform.c * this.var_577.z + transform.d;
|
||||
var sdy:Number = transform.e * this.var_577.x + transform.f * this.var_577.y + transform.g * this.var_577.z + transform.h;
|
||||
var sdz:Number = transform.i * this.var_577.x + transform.j * this.var_577.y + transform.k * this.var_577.z + transform.l;
|
||||
var sax:Number = transform.a * this.§_-SZ§.x + transform.b * this.§_-SZ§.y + transform.c * this.§_-SZ§.z + transform.d;
|
||||
var say:Number = transform.e * this.§_-SZ§.x + transform.f * this.§_-SZ§.y + transform.g * this.§_-SZ§.z + transform.h;
|
||||
var saz:Number = transform.i * this.§_-SZ§.x + transform.j * this.§_-SZ§.y + transform.k * this.§_-SZ§.z + transform.l;
|
||||
var sbx:Number = transform.a * this.§_-1v§.x + transform.b * this.§_-1v§.y + transform.c * this.§_-1v§.z + transform.d;
|
||||
var sby:Number = transform.e * this.§_-1v§.x + transform.f * this.§_-1v§.y + transform.g * this.§_-1v§.z + transform.h;
|
||||
var sbz:Number = transform.i * this.§_-1v§.x + transform.j * this.§_-1v§.y + transform.k * this.§_-1v§.z + transform.l;
|
||||
var scx:Number = transform.a * this.§_-L9§.x + transform.b * this.§_-L9§.y + transform.c * this.§_-L9§.z + transform.d;
|
||||
var scy:Number = transform.e * this.§_-L9§.x + transform.f * this.§_-L9§.y + transform.g * this.§_-L9§.z + transform.h;
|
||||
var scz:Number = transform.i * this.§_-L9§.x + transform.j * this.§_-L9§.y + transform.k * this.§_-L9§.z + transform.l;
|
||||
var sdx:Number = transform.a * this.§_-8B§.x + transform.b * this.§_-8B§.y + transform.c * this.§_-8B§.z + transform.d;
|
||||
var sdy:Number = transform.e * this.§_-8B§.x + transform.f * this.§_-8B§.y + transform.g * this.§_-8B§.z + transform.h;
|
||||
var sdz:Number = transform.i * this.§_-8B§.x + transform.j * this.§_-8B§.y + transform.k * this.§_-8B§.z + transform.l;
|
||||
var dx:Number = sax - this.alternativa3d::sphere.x;
|
||||
var dy:Number = say - this.alternativa3d::sphere.y;
|
||||
var dz:Number = saz - this.alternativa3d::sphere.z;
|
||||
@@ -162,30 +162,30 @@ package alternativa.engine3d.collisions
|
||||
this.radius = this.radiusZ;
|
||||
}
|
||||
this.matrix.compose(source.x,source.y,source.z,0,0,0,this.radiusX / this.radius,this.radiusY / this.radius,this.radiusZ / this.radius);
|
||||
this.var_580.copy(this.matrix);
|
||||
this.var_580.invert();
|
||||
this.§_-jX§.copy(this.matrix);
|
||||
this.§_-jX§.invert();
|
||||
this.src.x = 0;
|
||||
this.src.y = 0;
|
||||
this.src.z = 0;
|
||||
this.var_574.x = this.var_580.a * displacement.x + this.var_580.b * displacement.y + this.var_580.c * displacement.z;
|
||||
this.var_574.y = this.var_580.e * displacement.x + this.var_580.f * displacement.y + this.var_580.g * displacement.z;
|
||||
this.var_574.z = this.var_580.i * displacement.x + this.var_580.j * displacement.y + this.var_580.k * displacement.z;
|
||||
this.dest.x = this.src.x + this.var_574.x;
|
||||
this.dest.y = this.src.y + this.var_574.y;
|
||||
this.dest.z = this.src.z + this.var_574.z;
|
||||
var rad:Number = this.radius + this.var_574.length;
|
||||
this.var_579.x = -rad;
|
||||
this.var_579.y = -rad;
|
||||
this.var_579.z = -rad;
|
||||
this.var_576.x = rad;
|
||||
this.var_576.y = -rad;
|
||||
this.var_576.z = -rad;
|
||||
this.var_578.x = rad;
|
||||
this.var_578.y = rad;
|
||||
this.var_578.z = -rad;
|
||||
this.var_577.x = -rad;
|
||||
this.var_577.y = rad;
|
||||
this.var_577.z = -rad;
|
||||
this.§_-o5§.x = this.§_-jX§.a * displacement.x + this.§_-jX§.b * displacement.y + this.§_-jX§.c * displacement.z;
|
||||
this.§_-o5§.y = this.§_-jX§.e * displacement.x + this.§_-jX§.f * displacement.y + this.§_-jX§.g * displacement.z;
|
||||
this.§_-o5§.z = this.§_-jX§.i * displacement.x + this.§_-jX§.j * displacement.y + this.§_-jX§.k * displacement.z;
|
||||
this.dest.x = this.src.x + this.§_-o5§.x;
|
||||
this.dest.y = this.src.y + this.§_-o5§.y;
|
||||
this.dest.z = this.src.z + this.§_-o5§.z;
|
||||
var rad:Number = this.radius + this.§_-o5§.length;
|
||||
this.§_-SZ§.x = -rad;
|
||||
this.§_-SZ§.y = -rad;
|
||||
this.§_-SZ§.z = -rad;
|
||||
this.§_-1v§.x = rad;
|
||||
this.§_-1v§.y = -rad;
|
||||
this.§_-1v§.z = -rad;
|
||||
this.§_-L9§.x = rad;
|
||||
this.§_-L9§.y = rad;
|
||||
this.§_-L9§.z = -rad;
|
||||
this.§_-8B§.x = -rad;
|
||||
this.§_-8B§.y = rad;
|
||||
this.§_-8B§.z = -rad;
|
||||
if(excludedObjects == null || !excludedObjects[object])
|
||||
{
|
||||
if(object.alternativa3d::transformChanged)
|
||||
@@ -201,7 +201,7 @@ package alternativa.engine3d.collisions
|
||||
}
|
||||
if(intersects)
|
||||
{
|
||||
object.alternativa3d::localToGlobalTransform.combine(this.var_580,object.alternativa3d::transform);
|
||||
object.alternativa3d::localToGlobalTransform.combine(this.§_-jX§,object.alternativa3d::transform);
|
||||
object.alternativa3d::collectGeometry(this,excludedObjects);
|
||||
}
|
||||
if(object.alternativa3d::childrenList != null)
|
||||
@@ -218,11 +218,11 @@ package alternativa.engine3d.collisions
|
||||
for(var i:int = 0; i < geometriesLength; i++)
|
||||
{
|
||||
geometry = this.alternativa3d::geometries[i];
|
||||
transform = this.alternativa3d::name_315[i];
|
||||
transform = this.alternativa3d::_-QK[i];
|
||||
geometryIndicesLength = int(geometry.alternativa3d::_indices.length);
|
||||
if(!(geometry.alternativa3d::_numVertices == 0 || geometryIndicesLength == 0))
|
||||
{
|
||||
vBuffer = VertexAttributes.POSITION < geometry.alternativa3d::var_170.length ? geometry.alternativa3d::var_170[VertexAttributes.POSITION] : null;
|
||||
vBuffer = VertexAttributes.POSITION < geometry.alternativa3d::_-GM.length ? geometry.alternativa3d::_-GM[VertexAttributes.POSITION] : null;
|
||||
if(vBuffer != null)
|
||||
{
|
||||
attributesOffset = int(geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION]);
|
||||
@@ -300,13 +300,13 @@ package alternativa.engine3d.collisions
|
||||
indicesLength++;
|
||||
this.indices[indicesLength] = c;
|
||||
indicesLength++;
|
||||
this.var_581[normalsLength] = normalX;
|
||||
this.§_-g0§[normalsLength] = normalX;
|
||||
normalsLength++;
|
||||
this.var_581[normalsLength] = normalY;
|
||||
this.§_-g0§[normalsLength] = normalY;
|
||||
normalsLength++;
|
||||
this.var_581[normalsLength] = normalZ;
|
||||
this.§_-g0§[normalsLength] = normalZ;
|
||||
normalsLength++;
|
||||
this.var_581[normalsLength] = offset;
|
||||
this.§_-g0§[normalsLength] = offset;
|
||||
normalsLength++;
|
||||
++this.numTriangles;
|
||||
}
|
||||
@@ -319,7 +319,7 @@ package alternativa.engine3d.collisions
|
||||
}
|
||||
}
|
||||
this.alternativa3d::geometries.length = 0;
|
||||
this.alternativa3d::name_315.length = 0;
|
||||
this.alternativa3d::_-QK.length = 0;
|
||||
}
|
||||
|
||||
public function calculateDestination(source:Vector3D, displacement:Vector3D, object:Object3D, excludedObjects:Dictionary = null) : Vector3D
|
||||
@@ -341,17 +341,17 @@ package alternativa.engine3d.collisions
|
||||
{
|
||||
break;
|
||||
}
|
||||
offset = this.radius + this.threshold + this.var_573.w - this.dest.x * this.var_573.x - this.dest.y * this.var_573.y - this.dest.z * this.var_573.z;
|
||||
this.dest.x += this.var_573.x * offset;
|
||||
this.dest.y += this.var_573.y * offset;
|
||||
this.dest.z += this.var_573.z * offset;
|
||||
this.src.x = this.var_575.x + this.var_573.x * (this.radius + this.threshold);
|
||||
this.src.y = this.var_575.y + this.var_573.y * (this.radius + this.threshold);
|
||||
this.src.z = this.var_575.z + this.var_573.z * (this.radius + this.threshold);
|
||||
this.var_574.x = this.dest.x - this.src.x;
|
||||
this.var_574.y = this.dest.y - this.src.y;
|
||||
this.var_574.z = this.dest.z - this.src.z;
|
||||
if(this.var_574.length < this.threshold)
|
||||
offset = this.radius + this.threshold + this.§_-pU§.w - this.dest.x * this.§_-pU§.x - this.dest.y * this.§_-pU§.y - this.dest.z * this.§_-pU§.z;
|
||||
this.dest.x += this.§_-pU§.x * offset;
|
||||
this.dest.y += this.§_-pU§.y * offset;
|
||||
this.dest.z += this.§_-pU§.z * offset;
|
||||
this.src.x = this.§_-SE§.x + this.§_-pU§.x * (this.radius + this.threshold);
|
||||
this.src.y = this.§_-SE§.y + this.§_-pU§.y * (this.radius + this.threshold);
|
||||
this.src.z = this.§_-SE§.z + this.§_-pU§.z * (this.radius + this.threshold);
|
||||
this.§_-o5§.x = this.dest.x - this.src.x;
|
||||
this.§_-o5§.y = this.dest.y - this.src.y;
|
||||
this.§_-o5§.z = this.dest.z - this.src.z;
|
||||
if(this.§_-o5§.length < this.threshold)
|
||||
{
|
||||
break;
|
||||
}
|
||||
@@ -385,39 +385,39 @@ package alternativa.engine3d.collisions
|
||||
{
|
||||
if(this.checkCollision())
|
||||
{
|
||||
resCollisionPoint.x = this.matrix.a * this.var_575.x + this.matrix.b * this.var_575.y + this.matrix.c * this.var_575.z + this.matrix.d;
|
||||
resCollisionPoint.y = this.matrix.e * this.var_575.x + this.matrix.f * this.var_575.y + this.matrix.g * this.var_575.z + this.matrix.h;
|
||||
resCollisionPoint.z = this.matrix.i * this.var_575.x + this.matrix.j * this.var_575.y + this.matrix.k * this.var_575.z + this.matrix.l;
|
||||
if(this.var_573.x < this.var_573.y)
|
||||
resCollisionPoint.x = this.matrix.a * this.§_-SE§.x + this.matrix.b * this.§_-SE§.y + this.matrix.c * this.§_-SE§.z + this.matrix.d;
|
||||
resCollisionPoint.y = this.matrix.e * this.§_-SE§.x + this.matrix.f * this.§_-SE§.y + this.matrix.g * this.§_-SE§.z + this.matrix.h;
|
||||
resCollisionPoint.z = this.matrix.i * this.§_-SE§.x + this.matrix.j * this.§_-SE§.y + this.matrix.k * this.§_-SE§.z + this.matrix.l;
|
||||
if(this.§_-pU§.x < this.§_-pU§.y)
|
||||
{
|
||||
if(this.var_573.x < this.var_573.z)
|
||||
if(this.§_-pU§.x < this.§_-pU§.z)
|
||||
{
|
||||
abx = 0;
|
||||
aby = -this.var_573.z;
|
||||
abz = Number(this.var_573.y);
|
||||
aby = -this.§_-pU§.z;
|
||||
abz = Number(this.§_-pU§.y);
|
||||
}
|
||||
else
|
||||
{
|
||||
abx = -this.var_573.y;
|
||||
aby = Number(this.var_573.x);
|
||||
abx = -this.§_-pU§.y;
|
||||
aby = Number(this.§_-pU§.x);
|
||||
abz = 0;
|
||||
}
|
||||
}
|
||||
else if(this.var_573.y < this.var_573.z)
|
||||
else if(this.§_-pU§.y < this.§_-pU§.z)
|
||||
{
|
||||
abx = Number(this.var_573.z);
|
||||
abx = Number(this.§_-pU§.z);
|
||||
aby = 0;
|
||||
abz = -this.var_573.x;
|
||||
abz = -this.§_-pU§.x;
|
||||
}
|
||||
else
|
||||
{
|
||||
abx = -this.var_573.y;
|
||||
aby = Number(this.var_573.x);
|
||||
abx = -this.§_-pU§.y;
|
||||
aby = Number(this.§_-pU§.x);
|
||||
abz = 0;
|
||||
}
|
||||
acx = this.var_573.z * aby - this.var_573.y * abz;
|
||||
acy = this.var_573.x * abz - this.var_573.z * abx;
|
||||
acz = this.var_573.y * abx - this.var_573.x * aby;
|
||||
acx = this.§_-pU§.z * aby - this.§_-pU§.y * abz;
|
||||
acy = this.§_-pU§.x * abz - this.§_-pU§.z * abx;
|
||||
acz = this.§_-pU§.y * abx - this.§_-pU§.x * aby;
|
||||
abx2 = this.matrix.a * abx + this.matrix.b * aby + this.matrix.c * abz;
|
||||
aby2 = this.matrix.e * abx + this.matrix.f * aby + this.matrix.g * abz;
|
||||
abz2 = this.matrix.i * abx + this.matrix.j * aby + this.matrix.k * abz;
|
||||
@@ -492,7 +492,7 @@ package alternativa.engine3d.collisions
|
||||
var projectionInsideLength:Number = NaN;
|
||||
var time:Number = NaN;
|
||||
var minTime:Number = 1;
|
||||
var displacementLength:Number = Number(this.var_574.length);
|
||||
var displacementLength:Number = Number(this.§_-o5§.length);
|
||||
var indicesLength:int = this.numTriangles * 3;
|
||||
for(var i:int = 0,var j:int = 0; i < indicesLength; )
|
||||
{
|
||||
@@ -517,13 +517,13 @@ package alternativa.engine3d.collisions
|
||||
cy = this.vertices[index];
|
||||
index++;
|
||||
cz = this.vertices[index];
|
||||
normalX = this.var_581[j];
|
||||
normalX = this.§_-g0§[j];
|
||||
j++;
|
||||
normalY = this.var_581[j];
|
||||
normalY = this.§_-g0§[j];
|
||||
j++;
|
||||
normalZ = this.var_581[j];
|
||||
normalZ = this.§_-g0§[j];
|
||||
j++;
|
||||
offset = this.var_581[j];
|
||||
offset = this.§_-g0§[j];
|
||||
j++;
|
||||
distance = this.src.x * normalX + this.src.y * normalY + this.src.z * normalZ - offset;
|
||||
if(distance < this.radius)
|
||||
@@ -535,9 +535,9 @@ package alternativa.engine3d.collisions
|
||||
else
|
||||
{
|
||||
_loc33_ = (distance - this.radius) / (distance - this.dest.x * normalX - this.dest.y * normalY - this.dest.z * normalZ + offset);
|
||||
pointX = this.src.x + this.var_574.x * _loc33_ - normalX * this.radius;
|
||||
pointY = this.src.y + this.var_574.y * _loc33_ - normalY * this.radius;
|
||||
pointZ = this.src.z + this.var_574.z * _loc33_ - normalZ * this.radius;
|
||||
pointX = this.src.x + this.§_-o5§.x * _loc33_ - normalX * this.radius;
|
||||
pointY = this.src.y + this.§_-o5§.y * _loc33_ - normalY * this.radius;
|
||||
pointZ = this.src.z + this.§_-o5§.z * _loc33_ - normalZ * this.radius;
|
||||
}
|
||||
min = 1e+22;
|
||||
inside = true;
|
||||
@@ -636,11 +636,11 @@ package alternativa.engine3d.collisions
|
||||
deltaX = this.src.x - faceX;
|
||||
deltaY = this.src.y - faceY;
|
||||
deltaZ = this.src.z - faceZ;
|
||||
if(deltaX * this.var_574.x + deltaY * this.var_574.y + deltaZ * this.var_574.z <= 0)
|
||||
if(deltaX * this.§_-o5§.x + deltaY * this.§_-o5§.y + deltaZ * this.§_-o5§.z <= 0)
|
||||
{
|
||||
backX = -this.var_574.x / displacementLength;
|
||||
backY = -this.var_574.y / displacementLength;
|
||||
backZ = -this.var_574.z / displacementLength;
|
||||
backX = -this.§_-o5§.x / displacementLength;
|
||||
backY = -this.§_-o5§.y / displacementLength;
|
||||
backZ = -this.§_-o5§.z / displacementLength;
|
||||
deltaLength = deltaX * deltaX + deltaY * deltaY + deltaZ * deltaZ;
|
||||
projectionLength = deltaX * backX + deltaY * backY + deltaZ * backZ;
|
||||
projectionInsideLength = this.radius * this.radius - deltaLength + projectionLength * projectionLength;
|
||||
@@ -650,23 +650,23 @@ package alternativa.engine3d.collisions
|
||||
if(time < minTime)
|
||||
{
|
||||
minTime = time;
|
||||
this.var_575.x = faceX;
|
||||
this.var_575.y = faceY;
|
||||
this.var_575.z = faceZ;
|
||||
this.§_-SE§.x = faceX;
|
||||
this.§_-SE§.y = faceY;
|
||||
this.§_-SE§.z = faceZ;
|
||||
if(inside)
|
||||
{
|
||||
this.var_573.x = normalX;
|
||||
this.var_573.y = normalY;
|
||||
this.var_573.z = normalZ;
|
||||
this.var_573.w = offset;
|
||||
this.§_-pU§.x = normalX;
|
||||
this.§_-pU§.y = normalY;
|
||||
this.§_-pU§.z = normalZ;
|
||||
this.§_-pU§.w = offset;
|
||||
}
|
||||
else
|
||||
{
|
||||
deltaLength = Number(Math.sqrt(deltaLength));
|
||||
this.var_573.x = deltaX / deltaLength;
|
||||
this.var_573.y = deltaY / deltaLength;
|
||||
this.var_573.z = deltaZ / deltaLength;
|
||||
this.var_573.w = this.var_575.x * this.var_573.x + this.var_575.y * this.var_573.y + this.var_575.z * this.var_573.z;
|
||||
this.§_-pU§.x = deltaX / deltaLength;
|
||||
this.§_-pU§.y = deltaY / deltaLength;
|
||||
this.§_-pU§.z = deltaZ / deltaLength;
|
||||
this.§_-pU§.w = this.§_-SE§.x * this.§_-pU§.x + this.§_-SE§.y * this.§_-pU§.y + this.§_-SE§.z * this.§_-pU§.z;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package package_33
|
||||
package alternativa.engine3d.core
|
||||
{
|
||||
import alternativa.engine3d.alternativa3d;
|
||||
import flash.display.Bitmap;
|
||||
@@ -24,9 +24,9 @@ package package_33
|
||||
|
||||
use namespace alternativa3d;
|
||||
|
||||
public class name_135 extends name_130
|
||||
public class Camera3D extends Object3D
|
||||
{
|
||||
public var view:class_14;
|
||||
public var view:View;
|
||||
|
||||
public var fov:Number = 1.5707963267948966;
|
||||
|
||||
@@ -50,15 +50,15 @@ package package_33
|
||||
|
||||
alternativa3d var correctionY:Number;
|
||||
|
||||
alternativa3d var lights:Vector.<name_121> = new Vector.<name_121>();
|
||||
alternativa3d var lights:Vector.<Light3D> = new Vector.<Light3D>();
|
||||
|
||||
alternativa3d var lightsLength:int = 0;
|
||||
|
||||
alternativa3d var ambient:Vector.<Number> = new Vector.<Number>(4);
|
||||
|
||||
alternativa3d var childLights:Vector.<name_121> = new Vector.<name_121>();
|
||||
alternativa3d var childLights:Vector.<Light3D> = new Vector.<Light3D>();
|
||||
|
||||
alternativa3d var frustum:name_337;
|
||||
alternativa3d var frustum:CullingPlane;
|
||||
|
||||
alternativa3d var origins:Vector.<Vector3D> = new Vector.<Vector3D>();
|
||||
|
||||
@@ -66,13 +66,13 @@ package package_33
|
||||
|
||||
alternativa3d var raysLength:int = 0;
|
||||
|
||||
alternativa3d var occluders:Vector.<name_339> = new Vector.<name_339>();
|
||||
alternativa3d var occluders:Vector.<Occluder> = new Vector.<Occluder>();
|
||||
|
||||
alternativa3d var occludersLength:int = 0;
|
||||
|
||||
alternativa3d var context3D:Context3D;
|
||||
|
||||
alternativa3d var renderer:name_338;
|
||||
alternativa3d var renderer:Renderer;
|
||||
|
||||
alternativa3d var numDraws:int;
|
||||
|
||||
@@ -124,25 +124,25 @@ package package_33
|
||||
|
||||
private var timer:int;
|
||||
|
||||
public function name_135(nearClipping:Number, farClipping:Number)
|
||||
public function Camera3D(nearClipping:Number, farClipping:Number)
|
||||
{
|
||||
super();
|
||||
this.nearClipping = nearClipping;
|
||||
this.farClipping = farClipping;
|
||||
this.alternativa3d::renderer = new name_338();
|
||||
this.alternativa3d::frustum = new name_337();
|
||||
this.alternativa3d::frustum.next = new name_337();
|
||||
this.alternativa3d::frustum.next.next = new name_337();
|
||||
this.alternativa3d::frustum.next.next.next = new name_337();
|
||||
this.alternativa3d::frustum.next.next.next.next = new name_337();
|
||||
this.alternativa3d::frustum.next.next.next.next.next = new name_337();
|
||||
this.alternativa3d::renderer = new Renderer();
|
||||
this.alternativa3d::frustum = new CullingPlane();
|
||||
this.alternativa3d::frustum.next = new CullingPlane();
|
||||
this.alternativa3d::frustum.next.next = new CullingPlane();
|
||||
this.alternativa3d::frustum.next.next.next = new CullingPlane();
|
||||
this.alternativa3d::frustum.next.next.next.next = new CullingPlane();
|
||||
this.alternativa3d::frustum.next.next.next.next.next = new CullingPlane();
|
||||
}
|
||||
|
||||
public function render(stage3D:Stage3D) : void
|
||||
{
|
||||
var i:int = 0;
|
||||
var light:name_121 = null;
|
||||
var root:name_130 = null;
|
||||
var light:Light3D = null;
|
||||
var root:Object3D = null;
|
||||
var childLightsLength:int = 0;
|
||||
if(stage3D == null)
|
||||
{
|
||||
@@ -157,11 +157,11 @@ package package_33
|
||||
this.alternativa3d::ambient[2] = 0;
|
||||
this.alternativa3d::ambient[3] = 1;
|
||||
this.alternativa3d::context3D = stage3D.context3D;
|
||||
if(this.alternativa3d::context3D != null && this.view != null && this.alternativa3d::renderer != null && (this.view.stage != null || this.view.alternativa3d::var_114 != null))
|
||||
if(this.alternativa3d::context3D != null && this.view != null && this.alternativa3d::renderer != null && (this.view.stage != null || this.view.alternativa3d::_-gJ != null))
|
||||
{
|
||||
this.alternativa3d::renderer.alternativa3d::camera = this;
|
||||
this.alternativa3d::calculateProjection(this.view.alternativa3d::var_110,this.view.alternativa3d::_height);
|
||||
this.view.alternativa3d::method_122(stage3D,this.alternativa3d::context3D);
|
||||
this.alternativa3d::calculateProjection(this.view.alternativa3d::_-qj,this.view.alternativa3d::_height);
|
||||
this.view.alternativa3d::prepareToRender(stage3D,this.alternativa3d::context3D);
|
||||
if(alternativa3d::transformChanged)
|
||||
{
|
||||
alternativa3d::composeTransforms();
|
||||
@@ -192,7 +192,7 @@ package package_33
|
||||
if(root.boundBox != null)
|
||||
{
|
||||
this.alternativa3d::calculateFrustum(root.alternativa3d::cameraToLocalTransform);
|
||||
root.alternativa3d::culling = root.boundBox.alternativa3d::name_341(this.alternativa3d::frustum,63);
|
||||
root.alternativa3d::culling = root.boundBox.alternativa3d::checkFrustumCulling(this.alternativa3d::frustum,63);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -212,14 +212,14 @@ package package_33
|
||||
light.alternativa3d::blue = (light.color & 0xFF) * light.intensity / 255;
|
||||
}
|
||||
root.alternativa3d::localToCameraTransform.combine(alternativa3d::globalToLocalTransform,root.alternativa3d::transform);
|
||||
if(root.alternativa3d::culling >= 0 && (root.boundBox == null || this.alternativa3d::occludersLength == 0 || Boolean(root.boundBox.alternativa3d::name_340(this,root))))
|
||||
if(root.alternativa3d::culling >= 0 && (root.boundBox == null || this.alternativa3d::occludersLength == 0 || Boolean(root.boundBox.alternativa3d::checkOcclusionCulling(this,root))))
|
||||
{
|
||||
if(Boolean(root.alternativa3d::listening) && root.boundBox != null)
|
||||
if(root.alternativa3d::listening && root.boundBox != null)
|
||||
{
|
||||
this.alternativa3d::calculateRays(root.alternativa3d::cameraToLocalTransform);
|
||||
root.alternativa3d::listening = root.boundBox.alternativa3d::name_342(this.alternativa3d::origins,this.alternativa3d::directions,this.alternativa3d::raysLength);
|
||||
root.alternativa3d::listening = root.boundBox.alternativa3d::checkRays(this.alternativa3d::origins,this.alternativa3d::directions,this.alternativa3d::raysLength);
|
||||
}
|
||||
if(this.alternativa3d::lightsLength > 0 && Boolean(root.alternativa3d::useLights))
|
||||
if(this.alternativa3d::lightsLength > 0 && root.alternativa3d::useLights)
|
||||
{
|
||||
if(root.boundBox != null)
|
||||
{
|
||||
@@ -227,8 +227,8 @@ package package_33
|
||||
for(i = 0; i < this.alternativa3d::lightsLength; )
|
||||
{
|
||||
light = this.alternativa3d::lights[i];
|
||||
light.alternativa3d::name_80.combine(root.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform);
|
||||
if(light.boundBox == null || Boolean(light.alternativa3d::checkBound(root)))
|
||||
light.alternativa3d::_-cl.combine(root.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform);
|
||||
if(light.boundBox == null || light.alternativa3d::checkBound(root))
|
||||
{
|
||||
this.alternativa3d::childLights[childLightsLength] = light;
|
||||
childLightsLength++;
|
||||
@@ -242,7 +242,7 @@ package package_33
|
||||
for(i = 0; i < this.alternativa3d::lightsLength; )
|
||||
{
|
||||
light = this.alternativa3d::lights[i];
|
||||
light.alternativa3d::name_80.combine(root.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform);
|
||||
light.alternativa3d::_-cl.combine(root.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform);
|
||||
i++;
|
||||
}
|
||||
root.alternativa3d::collectDraws(this,this.alternativa3d::lights,this.alternativa3d::lightsLength);
|
||||
@@ -255,15 +255,15 @@ package package_33
|
||||
}
|
||||
root.alternativa3d::collectChildrenDraws(this,this.alternativa3d::lights,this.alternativa3d::lightsLength);
|
||||
}
|
||||
this.view.alternativa3d::method_121(this.alternativa3d::context3D,this);
|
||||
this.view.alternativa3d::processMouseEvents(this.alternativa3d::context3D,this);
|
||||
this.alternativa3d::renderer.alternativa3d::render(this.alternativa3d::context3D);
|
||||
if(this.view.alternativa3d::var_114 == null)
|
||||
if(this.view.alternativa3d::_-gJ == null)
|
||||
{
|
||||
this.alternativa3d::context3D.present();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.alternativa3d::context3D.drawToBitmapData(this.view.alternativa3d::var_114);
|
||||
this.alternativa3d::context3D.drawToBitmapData(this.view.alternativa3d::_-gJ);
|
||||
this.alternativa3d::context3D.present();
|
||||
}
|
||||
}
|
||||
@@ -279,7 +279,7 @@ package package_33
|
||||
{
|
||||
throw new Error("It is necessary to have view set.");
|
||||
}
|
||||
var viewSizeX:Number = this.view.alternativa3d::var_110 * 0.5;
|
||||
var viewSizeX:Number = this.view.alternativa3d::_-qj * 0.5;
|
||||
var viewSizeY:Number = this.view.alternativa3d::_height * 0.5;
|
||||
var focalLength:Number = Math.sqrt(viewSizeX * viewSizeX + viewSizeY * viewSizeY) / Math.tan(this.fov * 0.5);
|
||||
var res:Vector3D = globalToLocal(point);
|
||||
@@ -294,7 +294,7 @@ package package_33
|
||||
{
|
||||
throw new Error("It is necessary to have view set.");
|
||||
}
|
||||
var viewSizeX:Number = this.view.alternativa3d::var_110 * 0.5;
|
||||
var viewSizeX:Number = this.view.alternativa3d::_-qj * 0.5;
|
||||
var viewSizeY:Number = this.view.alternativa3d::_height * 0.5;
|
||||
var focalLength:Number = Math.sqrt(viewSizeX * viewSizeX + viewSizeY * viewSizeY) / Math.tan(this.fov * 0.5);
|
||||
var dx:Number = viewX - viewSizeX;
|
||||
@@ -307,7 +307,7 @@ package package_33
|
||||
alternativa3d::composeTransforms();
|
||||
}
|
||||
trm.copy(alternativa3d::transform);
|
||||
for(var root:name_130 = this; root.parent != null; )
|
||||
for(var root:Object3D = this; root.parent != null; )
|
||||
{
|
||||
root = root.parent;
|
||||
if(root.alternativa3d::transformChanged)
|
||||
@@ -328,17 +328,17 @@ package package_33
|
||||
direction.z *= directionL;
|
||||
}
|
||||
|
||||
override public function clone() : name_130
|
||||
override public function clone() : Object3D
|
||||
{
|
||||
var res:name_135 = new name_135(this.nearClipping,this.farClipping);
|
||||
var res:Camera3D = new Camera3D(this.nearClipping,this.farClipping);
|
||||
res.clonePropertiesFrom(this);
|
||||
return res;
|
||||
}
|
||||
|
||||
override protected function clonePropertiesFrom(source:name_130) : void
|
||||
override protected function clonePropertiesFrom(source:Object3D) : void
|
||||
{
|
||||
super.clonePropertiesFrom(source);
|
||||
this.view = (source as name_135).view;
|
||||
this.view = (source as Camera3D).view;
|
||||
}
|
||||
|
||||
alternativa3d function calculateProjection(width:Number, height:Number) : void
|
||||
@@ -364,7 +364,7 @@ package package_33
|
||||
this.alternativa3d::correctionY = viewSizeY / this.alternativa3d::focalLength;
|
||||
}
|
||||
|
||||
alternativa3d function calculateFrustum(transform:name_129) : void
|
||||
alternativa3d function calculateFrustum(transform:Transform3D) : void
|
||||
{
|
||||
var fa:Number = NaN;
|
||||
var fe:Number = NaN;
|
||||
@@ -378,14 +378,14 @@ package package_33
|
||||
var bx:Number = NaN;
|
||||
var by:Number = NaN;
|
||||
var bz:Number = NaN;
|
||||
var viewSizeX:Number = NaN;
|
||||
var viewSizeY:Number = NaN;
|
||||
var nearPlane:name_337 = this.alternativa3d::frustum;
|
||||
var farPlane:name_337 = nearPlane.next;
|
||||
var leftPlane:name_337 = farPlane.next;
|
||||
var rightPlane:name_337 = leftPlane.next;
|
||||
var topPlane:name_337 = rightPlane.next;
|
||||
var bottomPlane:name_337 = topPlane.next;
|
||||
var _loc20_:Number = NaN;
|
||||
var _loc21_:Number = NaN;
|
||||
var nearPlane:CullingPlane = this.alternativa3d::frustum;
|
||||
var farPlane:CullingPlane = nearPlane.next;
|
||||
var leftPlane:CullingPlane = farPlane.next;
|
||||
var rightPlane:CullingPlane = leftPlane.next;
|
||||
var topPlane:CullingPlane = rightPlane.next;
|
||||
var bottomPlane:CullingPlane = topPlane.next;
|
||||
if(!this.orthographic)
|
||||
{
|
||||
fa = transform.a * this.alternativa3d::correctionX;
|
||||
@@ -445,8 +445,8 @@ package package_33
|
||||
}
|
||||
else
|
||||
{
|
||||
viewSizeX = this.view.alternativa3d::var_110 * 0.5;
|
||||
viewSizeY = this.view.alternativa3d::_height * 0.5;
|
||||
_loc20_ = this.view.alternativa3d::_-qj * 0.5;
|
||||
_loc21_ = this.view.alternativa3d::_height * 0.5;
|
||||
nearPlane.x = transform.j * transform.e - transform.f * transform.i;
|
||||
nearPlane.y = transform.b * transform.i - transform.j * transform.a;
|
||||
nearPlane.z = transform.f * transform.a - transform.b * transform.e;
|
||||
@@ -458,23 +458,23 @@ package package_33
|
||||
topPlane.x = transform.i * transform.g - transform.e * transform.k;
|
||||
topPlane.y = transform.a * transform.k - transform.i * transform.c;
|
||||
topPlane.z = transform.e * transform.c - transform.a * transform.g;
|
||||
topPlane.offset = (transform.d - transform.b * viewSizeY) * topPlane.x + (transform.h - transform.f * viewSizeY) * topPlane.y + (transform.l - transform.j * viewSizeY) * topPlane.z;
|
||||
topPlane.offset = (transform.d - transform.b * _loc21_) * topPlane.x + (transform.h - transform.f * _loc21_) * topPlane.y + (transform.l - transform.j * _loc21_) * topPlane.z;
|
||||
bottomPlane.x = -topPlane.x;
|
||||
bottomPlane.y = -topPlane.y;
|
||||
bottomPlane.z = -topPlane.z;
|
||||
bottomPlane.offset = (transform.d + transform.b * viewSizeY) * bottomPlane.x + (transform.h + transform.f * viewSizeY) * bottomPlane.y + (transform.l + transform.j * viewSizeY) * bottomPlane.z;
|
||||
bottomPlane.offset = (transform.d + transform.b * _loc21_) * bottomPlane.x + (transform.h + transform.f * _loc21_) * bottomPlane.y + (transform.l + transform.j * _loc21_) * bottomPlane.z;
|
||||
leftPlane.x = transform.k * transform.f - transform.g * transform.j;
|
||||
leftPlane.y = transform.c * transform.j - transform.k * transform.b;
|
||||
leftPlane.z = transform.g * transform.b - transform.c * transform.f;
|
||||
leftPlane.offset = (transform.d - transform.a * viewSizeX) * leftPlane.x + (transform.h - transform.e * viewSizeX) * leftPlane.y + (transform.l - transform.i * viewSizeX) * leftPlane.z;
|
||||
leftPlane.offset = (transform.d - transform.a * _loc20_) * leftPlane.x + (transform.h - transform.e * _loc20_) * leftPlane.y + (transform.l - transform.i * _loc20_) * leftPlane.z;
|
||||
rightPlane.x = -leftPlane.x;
|
||||
rightPlane.y = -leftPlane.y;
|
||||
rightPlane.z = -leftPlane.z;
|
||||
rightPlane.offset = (transform.d + transform.a * viewSizeX) * rightPlane.x + (transform.h + transform.e * viewSizeX) * rightPlane.y + (transform.l + transform.i * viewSizeX) * rightPlane.z;
|
||||
rightPlane.offset = (transform.d + transform.a * _loc20_) * rightPlane.x + (transform.h + transform.e * _loc20_) * rightPlane.y + (transform.l + transform.i * _loc20_) * rightPlane.z;
|
||||
}
|
||||
}
|
||||
|
||||
alternativa3d function calculateRays(transform:name_129) : void
|
||||
alternativa3d function calculateRays(transform:Transform3D) : void
|
||||
{
|
||||
var o:Vector3D = null;
|
||||
var d:Vector3D = null;
|
||||
@@ -482,8 +482,8 @@ package package_33
|
||||
var direction:Vector3D = null;
|
||||
for(var i:int = 0; i < this.alternativa3d::raysLength; i++)
|
||||
{
|
||||
o = this.view.alternativa3d::var_127[i];
|
||||
d = this.view.alternativa3d::var_133[i];
|
||||
o = this.view.alternativa3d::_-Cr[i];
|
||||
d = this.view.alternativa3d::_-g4[i];
|
||||
origin = this.alternativa3d::origins[i];
|
||||
direction = this.alternativa3d::directions[i];
|
||||
origin.x = transform.a * o.x + transform.b * o.y + transform.c * o.z + transform.d;
|
||||
@@ -522,28 +522,28 @@ package package_33
|
||||
}
|
||||
}
|
||||
|
||||
alternativa3d function checkInDebug(object:name_130) : int
|
||||
alternativa3d function checkInDebug(object:Object3D) : int
|
||||
{
|
||||
var objectClass:Class = null;
|
||||
var _loc4_:Class = null;
|
||||
var res:int = 0;
|
||||
for(var debug:int = 1; debug <= 512; )
|
||||
{
|
||||
if(Boolean(this.debugSet[debug]))
|
||||
{
|
||||
if(Boolean(this.debugSet[debug][name_130]) || Boolean(this.debugSet[debug][object]))
|
||||
if(Boolean(this.debugSet[debug][Object3D]) || Boolean(this.debugSet[debug][object]))
|
||||
{
|
||||
res |= debug;
|
||||
}
|
||||
else
|
||||
{
|
||||
for(objectClass = getDefinitionByName(getQualifiedClassName(object)) as Class; objectClass != name_130; )
|
||||
for(_loc4_ = getDefinitionByName(getQualifiedClassName(object)) as Class; _loc4_ != Object3D; )
|
||||
{
|
||||
if(Boolean(this.debugSet[debug][objectClass]))
|
||||
if(Boolean(this.debugSet[debug][_loc4_]))
|
||||
{
|
||||
res |= debug;
|
||||
break;
|
||||
}
|
||||
objectClass = Class(getDefinitionByName(getQualifiedSuperclassName(objectClass)));
|
||||
_loc4_ = Class(getDefinitionByName(getQualifiedSuperclassName(_loc4_)));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -32,27 +32,27 @@ package alternativa.engine3d.core
|
||||
|
||||
alternativa3d var textures:Vector.<TextureBase> = new Vector.<TextureBase>();
|
||||
|
||||
alternativa3d var var_183:Vector.<int> = new Vector.<int>();
|
||||
alternativa3d var §_-kR§:Vector.<int> = new Vector.<int>();
|
||||
|
||||
alternativa3d var var_182:int = 0;
|
||||
alternativa3d var §_-Oq§:int = 0;
|
||||
|
||||
alternativa3d var vertexBuffers:Vector.<VertexBuffer3D> = new Vector.<VertexBuffer3D>();
|
||||
|
||||
alternativa3d var name_318:Vector.<int> = new Vector.<int>();
|
||||
alternativa3d var §else §:Vector.<int> = new Vector.<int>();
|
||||
|
||||
alternativa3d var name_324:Vector.<int> = new Vector.<int>();
|
||||
alternativa3d var §_-nw§:Vector.<int> = new Vector.<int>();
|
||||
|
||||
alternativa3d var name_322:Vector.<String> = new Vector.<String>();
|
||||
alternativa3d var §_-EL§:Vector.<String> = new Vector.<String>();
|
||||
|
||||
alternativa3d var name_316:int = 0;
|
||||
alternativa3d var §_-3G§:int = 0;
|
||||
|
||||
alternativa3d var name_323:Vector.<Number> = new Vector.<Number>();
|
||||
alternativa3d var §_-Aq§:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
alternativa3d var name_317:int = 0;
|
||||
alternativa3d var §_-9X§:int = 0;
|
||||
|
||||
alternativa3d var name_321:Vector.<Number> = new Vector.<Number>(28 * 4,true);
|
||||
alternativa3d var §_-Cl§:Vector.<Number> = new Vector.<Number>(28 * 4,true);
|
||||
|
||||
alternativa3d var name_320:int = 0;
|
||||
alternativa3d var §_-Kv§:int = 0;
|
||||
|
||||
public function DrawUnit()
|
||||
{
|
||||
@@ -68,11 +68,11 @@ package alternativa.engine3d.core
|
||||
this.alternativa3d::blendDestination = Context3DBlendFactor.ZERO;
|
||||
this.alternativa3d::culling = Context3DTriangleFace.FRONT;
|
||||
this.alternativa3d::textures.length = 0;
|
||||
this.alternativa3d::var_182 = 0;
|
||||
this.alternativa3d::_-Oq = 0;
|
||||
this.alternativa3d::vertexBuffers.length = 0;
|
||||
this.alternativa3d::name_316 = 0;
|
||||
this.alternativa3d::name_317 = 0;
|
||||
this.alternativa3d::name_320 = 0;
|
||||
this.alternativa3d::_-3G = 0;
|
||||
this.alternativa3d::_-9X = 0;
|
||||
this.alternativa3d::_-Kv = 0;
|
||||
}
|
||||
|
||||
alternativa3d function setTextureAt(sampler:int, texture:TextureBase) : void
|
||||
@@ -85,9 +85,9 @@ package alternativa.engine3d.core
|
||||
{
|
||||
throw new Error("Texture is null");
|
||||
}
|
||||
this.alternativa3d::var_183[this.alternativa3d::var_182] = sampler;
|
||||
this.alternativa3d::textures[this.alternativa3d::var_182] = texture;
|
||||
++this.alternativa3d::var_182;
|
||||
this.alternativa3d::_-kR[this.alternativa3d::_-Oq] = sampler;
|
||||
this.alternativa3d::textures[this.alternativa3d::_-Oq] = texture;
|
||||
++this.alternativa3d::_-Oq;
|
||||
}
|
||||
|
||||
alternativa3d function setVertexBufferAt(index:int, buffer:VertexBuffer3D, bufferOffset:int, format:String) : void
|
||||
@@ -100,11 +100,11 @@ package alternativa.engine3d.core
|
||||
{
|
||||
throw new Error("Buffer is null");
|
||||
}
|
||||
this.alternativa3d::name_318[this.alternativa3d::name_316] = index;
|
||||
this.alternativa3d::vertexBuffers[this.alternativa3d::name_316] = buffer;
|
||||
this.alternativa3d::name_324[this.alternativa3d::name_316] = bufferOffset;
|
||||
this.alternativa3d::name_322[this.alternativa3d::name_316] = format;
|
||||
++this.alternativa3d::name_316;
|
||||
this.alternativa3d::else [this.alternativa3d::_-3G] = index;
|
||||
this.alternativa3d::vertexBuffers[this.alternativa3d::_-3G] = buffer;
|
||||
this.alternativa3d::_-nw[this.alternativa3d::_-3G] = bufferOffset;
|
||||
this.alternativa3d::_-EL[this.alternativa3d::_-3G] = format;
|
||||
++this.alternativa3d::_-3G;
|
||||
}
|
||||
|
||||
alternativa3d function setVertexConstantsFromVector(firstRegister:int, data:Vector.<Number>, numRegisters:int) : void
|
||||
@@ -114,14 +114,14 @@ package alternativa.engine3d.core
|
||||
throw new Error("Register index " + firstRegister + " is out of bounds.");
|
||||
}
|
||||
var offset:int = firstRegister << 2;
|
||||
if(firstRegister + numRegisters > this.alternativa3d::name_317)
|
||||
if(firstRegister + numRegisters > this.alternativa3d::_-9X)
|
||||
{
|
||||
this.alternativa3d::name_317 = firstRegister + numRegisters;
|
||||
this.alternativa3d::name_323.length = this.alternativa3d::name_317 << 2;
|
||||
this.alternativa3d::_-9X = firstRegister + numRegisters;
|
||||
this.alternativa3d::_-Aq.length = this.alternativa3d::_-9X << 2;
|
||||
}
|
||||
for(var i:int = 0,var len:int = numRegisters << 2; i < len; )
|
||||
{
|
||||
this.alternativa3d::name_323[offset] = data[i];
|
||||
this.alternativa3d::_-Aq[offset] = data[i];
|
||||
offset++;
|
||||
i++;
|
||||
}
|
||||
@@ -134,18 +134,18 @@ package alternativa.engine3d.core
|
||||
throw new Error("Register index " + firstRegister + " is out of bounds.");
|
||||
}
|
||||
var offset:int = firstRegister << 2;
|
||||
if(firstRegister + 1 > this.alternativa3d::name_317)
|
||||
if(firstRegister + 1 > this.alternativa3d::_-9X)
|
||||
{
|
||||
this.alternativa3d::name_317 = firstRegister + 1;
|
||||
this.alternativa3d::name_323.length = this.alternativa3d::name_317 << 2;
|
||||
this.alternativa3d::_-9X = firstRegister + 1;
|
||||
this.alternativa3d::_-Aq.length = this.alternativa3d::_-9X << 2;
|
||||
}
|
||||
this.alternativa3d::name_323[offset] = x;
|
||||
this.alternativa3d::_-Aq[offset] = x;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = y;
|
||||
this.alternativa3d::_-Aq[offset] = y;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = z;
|
||||
this.alternativa3d::_-Aq[offset] = z;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = w;
|
||||
this.alternativa3d::_-Aq[offset] = w;
|
||||
}
|
||||
|
||||
alternativa3d function setVertexConstantsFromTransform(firstRegister:int, transform:Transform3D) : void
|
||||
@@ -155,34 +155,34 @@ package alternativa.engine3d.core
|
||||
throw new Error("Register index " + firstRegister + " is out of bounds.");
|
||||
}
|
||||
var offset:int = firstRegister << 2;
|
||||
if(firstRegister + 3 > this.alternativa3d::name_317)
|
||||
if(firstRegister + 3 > this.alternativa3d::_-9X)
|
||||
{
|
||||
this.alternativa3d::name_317 = firstRegister + 3;
|
||||
this.alternativa3d::name_323.length = this.alternativa3d::name_317 << 2;
|
||||
this.alternativa3d::_-9X = firstRegister + 3;
|
||||
this.alternativa3d::_-Aq.length = this.alternativa3d::_-9X << 2;
|
||||
}
|
||||
this.alternativa3d::name_323[offset] = transform.a;
|
||||
this.alternativa3d::_-Aq[offset] = transform.a;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.b;
|
||||
this.alternativa3d::_-Aq[offset] = transform.b;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.c;
|
||||
this.alternativa3d::_-Aq[offset] = transform.c;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.d;
|
||||
this.alternativa3d::_-Aq[offset] = transform.d;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.e;
|
||||
this.alternativa3d::_-Aq[offset] = transform.e;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.f;
|
||||
this.alternativa3d::_-Aq[offset] = transform.f;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.g;
|
||||
this.alternativa3d::_-Aq[offset] = transform.g;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.h;
|
||||
this.alternativa3d::_-Aq[offset] = transform.h;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.i;
|
||||
this.alternativa3d::_-Aq[offset] = transform.i;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.j;
|
||||
this.alternativa3d::_-Aq[offset] = transform.j;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.k;
|
||||
this.alternativa3d::_-Aq[offset] = transform.k;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.l;
|
||||
this.alternativa3d::_-Aq[offset] = transform.l;
|
||||
}
|
||||
|
||||
alternativa3d function setProjectionConstants(camera:Camera3D, firstRegister:int, transform:Transform3D = null) : void
|
||||
@@ -192,99 +192,99 @@ package alternativa.engine3d.core
|
||||
throw new Error("Register index is out of bounds.");
|
||||
}
|
||||
var offset:int = firstRegister << 2;
|
||||
if(firstRegister + 4 > this.alternativa3d::name_317)
|
||||
if(firstRegister + 4 > this.alternativa3d::_-9X)
|
||||
{
|
||||
this.alternativa3d::name_317 = firstRegister + 4;
|
||||
this.alternativa3d::name_323.length = this.alternativa3d::name_317 << 2;
|
||||
this.alternativa3d::_-9X = firstRegister + 4;
|
||||
this.alternativa3d::_-Aq.length = this.alternativa3d::_-9X << 2;
|
||||
}
|
||||
if(transform != null)
|
||||
{
|
||||
this.alternativa3d::name_323[offset] = transform.a * camera.alternativa3d::m0;
|
||||
this.alternativa3d::_-Aq[offset] = transform.a * camera.alternativa3d::m0;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.b * camera.alternativa3d::m0;
|
||||
this.alternativa3d::_-Aq[offset] = transform.b * camera.alternativa3d::m0;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.c * camera.alternativa3d::m0;
|
||||
this.alternativa3d::_-Aq[offset] = transform.c * camera.alternativa3d::m0;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.d * camera.alternativa3d::m0;
|
||||
this.alternativa3d::_-Aq[offset] = transform.d * camera.alternativa3d::m0;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.e * camera.alternativa3d::m5;
|
||||
this.alternativa3d::_-Aq[offset] = transform.e * camera.alternativa3d::m5;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.f * camera.alternativa3d::m5;
|
||||
this.alternativa3d::_-Aq[offset] = transform.f * camera.alternativa3d::m5;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.g * camera.alternativa3d::m5;
|
||||
this.alternativa3d::_-Aq[offset] = transform.g * camera.alternativa3d::m5;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.h * camera.alternativa3d::m5;
|
||||
this.alternativa3d::_-Aq[offset] = transform.h * camera.alternativa3d::m5;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.i * camera.alternativa3d::m10;
|
||||
this.alternativa3d::_-Aq[offset] = transform.i * camera.alternativa3d::m10;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.j * camera.alternativa3d::m10;
|
||||
this.alternativa3d::_-Aq[offset] = transform.j * camera.alternativa3d::m10;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.k * camera.alternativa3d::m10;
|
||||
this.alternativa3d::_-Aq[offset] = transform.k * camera.alternativa3d::m10;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.l * camera.alternativa3d::m10 + camera.alternativa3d::m14;
|
||||
this.alternativa3d::_-Aq[offset] = transform.l * camera.alternativa3d::m10 + camera.alternativa3d::m14;
|
||||
offset++;
|
||||
if(!camera.orthographic)
|
||||
{
|
||||
this.alternativa3d::name_323[offset] = transform.i;
|
||||
this.alternativa3d::_-Aq[offset] = transform.i;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.j;
|
||||
this.alternativa3d::_-Aq[offset] = transform.j;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.k;
|
||||
this.alternativa3d::_-Aq[offset] = transform.k;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = transform.l;
|
||||
this.alternativa3d::_-Aq[offset] = transform.l;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = 1;
|
||||
this.alternativa3d::_-Aq[offset] = 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.alternativa3d::name_323[offset] = camera.alternativa3d::m0;
|
||||
this.alternativa3d::_-Aq[offset] = camera.alternativa3d::m0;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = camera.alternativa3d::m5;
|
||||
this.alternativa3d::_-Aq[offset] = camera.alternativa3d::m5;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = camera.alternativa3d::m10;
|
||||
this.alternativa3d::_-Aq[offset] = camera.alternativa3d::m10;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = camera.alternativa3d::m14;
|
||||
this.alternativa3d::_-Aq[offset] = camera.alternativa3d::m14;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
offset++;
|
||||
if(!camera.orthographic)
|
||||
{
|
||||
this.alternativa3d::name_323[offset] = 1;
|
||||
this.alternativa3d::_-Aq[offset] = 1;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::name_323[offset] = 1;
|
||||
this.alternativa3d::_-Aq[offset] = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -296,13 +296,13 @@ package alternativa.engine3d.core
|
||||
throw new Error("Register index " + firstRegister + " is out of bounds.");
|
||||
}
|
||||
var offset:int = firstRegister << 2;
|
||||
if(firstRegister + numRegisters > this.alternativa3d::name_320)
|
||||
if(firstRegister + numRegisters > this.alternativa3d::_-Kv)
|
||||
{
|
||||
this.alternativa3d::name_320 = firstRegister + numRegisters;
|
||||
this.alternativa3d::_-Kv = firstRegister + numRegisters;
|
||||
}
|
||||
for(var i:int = 0,var len:int = numRegisters << 2; i < len; )
|
||||
{
|
||||
this.alternativa3d::name_321[offset] = data[i];
|
||||
this.alternativa3d::_-Cl[offset] = data[i];
|
||||
offset++;
|
||||
i++;
|
||||
}
|
||||
@@ -315,17 +315,17 @@ package alternativa.engine3d.core
|
||||
throw new Error("Register index " + firstRegister + " is out of bounds.");
|
||||
}
|
||||
var offset:int = firstRegister << 2;
|
||||
if(firstRegister + 1 > this.alternativa3d::name_320)
|
||||
if(firstRegister + 1 > this.alternativa3d::_-Kv)
|
||||
{
|
||||
this.alternativa3d::name_320 = firstRegister + 1;
|
||||
this.alternativa3d::_-Kv = firstRegister + 1;
|
||||
}
|
||||
this.alternativa3d::name_321[offset] = x;
|
||||
this.alternativa3d::_-Cl[offset] = x;
|
||||
offset++;
|
||||
this.alternativa3d::name_321[offset] = y;
|
||||
this.alternativa3d::_-Cl[offset] = y;
|
||||
offset++;
|
||||
this.alternativa3d::name_321[offset] = z;
|
||||
this.alternativa3d::_-Cl[offset] = z;
|
||||
offset++;
|
||||
this.alternativa3d::name_321[offset] = w;
|
||||
this.alternativa3d::_-Cl[offset] = w;
|
||||
}
|
||||
|
||||
alternativa3d function setFragmentConstantsFromTransform(firstRegister:int, transform:Transform3D) : void
|
||||
@@ -335,33 +335,33 @@ package alternativa.engine3d.core
|
||||
throw new Error("Register index " + firstRegister + " is out of bounds.");
|
||||
}
|
||||
var offset:int = firstRegister << 2;
|
||||
if(firstRegister + 3 > this.alternativa3d::name_320)
|
||||
if(firstRegister + 3 > this.alternativa3d::_-Kv)
|
||||
{
|
||||
this.alternativa3d::name_320 = firstRegister + 3;
|
||||
this.alternativa3d::_-Kv = firstRegister + 3;
|
||||
}
|
||||
this.alternativa3d::name_321[offset] = transform.a;
|
||||
this.alternativa3d::_-Cl[offset] = transform.a;
|
||||
offset++;
|
||||
this.alternativa3d::name_321[offset] = transform.b;
|
||||
this.alternativa3d::_-Cl[offset] = transform.b;
|
||||
offset++;
|
||||
this.alternativa3d::name_321[offset] = transform.c;
|
||||
this.alternativa3d::_-Cl[offset] = transform.c;
|
||||
offset++;
|
||||
this.alternativa3d::name_321[offset] = transform.d;
|
||||
this.alternativa3d::_-Cl[offset] = transform.d;
|
||||
offset++;
|
||||
this.alternativa3d::name_321[offset] = transform.e;
|
||||
this.alternativa3d::_-Cl[offset] = transform.e;
|
||||
offset++;
|
||||
this.alternativa3d::name_321[offset] = transform.f;
|
||||
this.alternativa3d::_-Cl[offset] = transform.f;
|
||||
offset++;
|
||||
this.alternativa3d::name_321[offset] = transform.g;
|
||||
this.alternativa3d::_-Cl[offset] = transform.g;
|
||||
offset++;
|
||||
this.alternativa3d::name_321[offset] = transform.h;
|
||||
this.alternativa3d::_-Cl[offset] = transform.h;
|
||||
offset++;
|
||||
this.alternativa3d::name_321[offset] = transform.i;
|
||||
this.alternativa3d::_-Cl[offset] = transform.i;
|
||||
offset++;
|
||||
this.alternativa3d::name_321[offset] = transform.j;
|
||||
this.alternativa3d::_-Cl[offset] = transform.j;
|
||||
offset++;
|
||||
this.alternativa3d::name_321[offset] = transform.k;
|
||||
this.alternativa3d::_-Cl[offset] = transform.k;
|
||||
offset++;
|
||||
this.alternativa3d::name_321[offset] = transform.l;
|
||||
this.alternativa3d::_-Cl[offset] = transform.l;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,9 +12,9 @@ package alternativa.engine3d.core
|
||||
|
||||
public var intensity:Number = 1;
|
||||
|
||||
alternativa3d var name_80:Transform3D = new Transform3D();
|
||||
alternativa3d var §_-cl§:Transform3D = new Transform3D();
|
||||
|
||||
alternativa3d var name_79:String;
|
||||
alternativa3d var §_-oG§:String;
|
||||
|
||||
alternativa3d var red:Number;
|
||||
|
||||
@@ -25,7 +25,7 @@ package alternativa.engine3d.core
|
||||
public function Light3D()
|
||||
{
|
||||
super();
|
||||
this.alternativa3d::name_79 = "l" + lastLightNumber.toString(16);
|
||||
this.alternativa3d::_-oG = "l" + lastLightNumber.toString(16);
|
||||
name = "L" + (lastLightNumber++).toString();
|
||||
}
|
||||
|
||||
|
||||
@@ -551,7 +551,7 @@ package alternativa.engine3d.core
|
||||
var event3D:Event3D = event as Event3D;
|
||||
if(event3D != null)
|
||||
{
|
||||
event3D.alternativa3d::name_314 = this;
|
||||
event3D.alternativa3d::_-5E = this;
|
||||
}
|
||||
var branch:Vector.<Object3D> = new Vector.<Object3D>();
|
||||
var branchLength:int = 0;
|
||||
@@ -565,8 +565,8 @@ package alternativa.engine3d.core
|
||||
object = branch[i];
|
||||
if(event3D != null)
|
||||
{
|
||||
event3D.alternativa3d::name_313 = object;
|
||||
event3D.alternativa3d::name_312 = EventPhase.CAPTURING_PHASE;
|
||||
event3D.alternativa3d::_-Kh = object;
|
||||
event3D.alternativa3d::_-VE = EventPhase.CAPTURING_PHASE;
|
||||
}
|
||||
if(object.alternativa3d::captureListeners != null)
|
||||
{
|
||||
@@ -587,17 +587,17 @@ package alternativa.engine3d.core
|
||||
}
|
||||
if(event3D != null)
|
||||
{
|
||||
event3D.alternativa3d::name_312 = EventPhase.AT_TARGET;
|
||||
event3D.alternativa3d::_-VE = EventPhase.AT_TARGET;
|
||||
}
|
||||
for(i = 0; i < branchLength; )
|
||||
{
|
||||
object = branch[i];
|
||||
if(event3D != null)
|
||||
{
|
||||
event3D.alternativa3d::name_313 = object;
|
||||
event3D.alternativa3d::_-Kh = object;
|
||||
if(i > 0)
|
||||
{
|
||||
event3D.alternativa3d::name_312 = EventPhase.BUBBLING_PHASE;
|
||||
event3D.alternativa3d::_-VE = EventPhase.BUBBLING_PHASE;
|
||||
}
|
||||
}
|
||||
if(object.alternativa3d::bubbleListeners != null)
|
||||
@@ -1164,7 +1164,7 @@ package alternativa.engine3d.core
|
||||
for(i = 0; i < lightsLength; )
|
||||
{
|
||||
light = lights[i];
|
||||
light.alternativa3d::name_80.combine(child.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform);
|
||||
light.alternativa3d::_-cl.combine(child.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform);
|
||||
if(light.boundBox == null || light.alternativa3d::checkBound(child))
|
||||
{
|
||||
camera.alternativa3d::childLights[childLightsLength] = light;
|
||||
@@ -1179,7 +1179,7 @@ package alternativa.engine3d.core
|
||||
for(i = 0; i < lightsLength; )
|
||||
{
|
||||
light = lights[i];
|
||||
light.alternativa3d::name_80.combine(child.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform);
|
||||
light.alternativa3d::_-cl.combine(child.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform);
|
||||
i++;
|
||||
}
|
||||
child.alternativa3d::collectDraws(camera,lights,lightsLength);
|
||||
|
||||
@@ -20,7 +20,7 @@ package alternativa.engine3d.core
|
||||
|
||||
alternativa3d var camera:Camera3D;
|
||||
|
||||
alternativa3d var var_585:Vector.<DrawUnit> = new Vector.<DrawUnit>();
|
||||
alternativa3d var §_-T5§:Vector.<DrawUnit> = new Vector.<DrawUnit>();
|
||||
|
||||
public function Renderer()
|
||||
{
|
||||
@@ -31,10 +31,10 @@ package alternativa.engine3d.core
|
||||
{
|
||||
var list:DrawUnit = null;
|
||||
var next:DrawUnit = null;
|
||||
var drawUnitsLength:int = int(this.alternativa3d::var_585.length);
|
||||
var drawUnitsLength:int = int(this.alternativa3d::_-T5.length);
|
||||
for(var i:int = 0; i < drawUnitsLength; )
|
||||
{
|
||||
list = this.alternativa3d::var_585[i];
|
||||
list = this.alternativa3d::_-T5[i];
|
||||
if(list != null)
|
||||
{
|
||||
switch(i)
|
||||
@@ -90,7 +90,7 @@ package alternativa.engine3d.core
|
||||
}
|
||||
i++;
|
||||
}
|
||||
this.alternativa3d::var_585.length = 0;
|
||||
this.alternativa3d::_-T5.length = 0;
|
||||
}
|
||||
|
||||
alternativa3d function createDrawUnit(object:Object3D, program:Program3D, indexBuffer:IndexBuffer3D, firstIndex:int, numTriangles:int, debugShader:ShaderProgram = null) : DrawUnit
|
||||
@@ -116,12 +116,12 @@ package alternativa.engine3d.core
|
||||
|
||||
alternativa3d function addDrawUnit(drawUnit:DrawUnit, renderPriority:int) : void
|
||||
{
|
||||
if(renderPriority >= this.alternativa3d::var_585.length)
|
||||
if(renderPriority >= this.alternativa3d::_-T5.length)
|
||||
{
|
||||
this.alternativa3d::var_585.length = renderPriority + 1;
|
||||
this.alternativa3d::_-T5.length = renderPriority + 1;
|
||||
}
|
||||
drawUnit.alternativa3d::next = this.alternativa3d::var_585[renderPriority];
|
||||
this.alternativa3d::var_585[renderPriority] = drawUnit;
|
||||
drawUnit.alternativa3d::next = this.alternativa3d::_-T5[renderPriority];
|
||||
this.alternativa3d::_-T5[renderPriority] = drawUnit;
|
||||
}
|
||||
|
||||
protected function renderDrawUnit(drawUnit:DrawUnit, context:Context3D, camera:Camera3D) : void
|
||||
@@ -134,25 +134,25 @@ package alternativa.engine3d.core
|
||||
var currentTextures:int = 0;
|
||||
context.setBlendFactors(drawUnit.alternativa3d::blendSource,drawUnit.alternativa3d::blendDestination);
|
||||
context.setCulling(drawUnit.alternativa3d::culling);
|
||||
for(var i:int = 0; i < drawUnit.alternativa3d::name_316; i++)
|
||||
for(var i:int = 0; i < drawUnit.alternativa3d::_-3G; i++)
|
||||
{
|
||||
bufferIndex = int(drawUnit.alternativa3d::name_318[i]);
|
||||
bufferIndex = int(drawUnit.alternativa3d::else [i]);
|
||||
bufferBit = 1 << bufferIndex;
|
||||
currentBuffers |= bufferBit;
|
||||
_usedBuffers &= ~bufferBit;
|
||||
context.setVertexBufferAt(bufferIndex,drawUnit.alternativa3d::vertexBuffers[i],drawUnit.alternativa3d::name_324[i],drawUnit.alternativa3d::name_322[i]);
|
||||
context.setVertexBufferAt(bufferIndex,drawUnit.alternativa3d::vertexBuffers[i],drawUnit.alternativa3d::_-nw[i],drawUnit.alternativa3d::_-EL[i]);
|
||||
}
|
||||
if(drawUnit.alternativa3d::name_317 > 0)
|
||||
if(drawUnit.alternativa3d::_-9X > 0)
|
||||
{
|
||||
context.setProgramConstantsFromVector(Context3DProgramType.VERTEX,0,drawUnit.alternativa3d::name_323,drawUnit.alternativa3d::name_317);
|
||||
context.setProgramConstantsFromVector(Context3DProgramType.VERTEX,0,drawUnit.alternativa3d::_-Aq,drawUnit.alternativa3d::_-9X);
|
||||
}
|
||||
if(drawUnit.alternativa3d::name_320 > 0)
|
||||
if(drawUnit.alternativa3d::_-Kv > 0)
|
||||
{
|
||||
context.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,0,drawUnit.alternativa3d::name_321,drawUnit.alternativa3d::name_320);
|
||||
context.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,0,drawUnit.alternativa3d::_-Cl,drawUnit.alternativa3d::_-Kv);
|
||||
}
|
||||
for(i = 0; i < drawUnit.alternativa3d::var_182; )
|
||||
for(i = 0; i < drawUnit.alternativa3d::_-Oq; )
|
||||
{
|
||||
textureSampler = int(drawUnit.alternativa3d::var_183[i]);
|
||||
textureSampler = int(drawUnit.alternativa3d::_-kR[i]);
|
||||
textureBit = 1 << textureSampler;
|
||||
currentTextures |= textureBit;
|
||||
_usedTextures &= ~textureBit;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -12,42 +12,42 @@ package alternativa.engine3d.core.events
|
||||
|
||||
public static const REMOVED:String = "removed3D";
|
||||
|
||||
alternativa3d var name_314:Object3D;
|
||||
alternativa3d var §_-5E§:Object3D;
|
||||
|
||||
alternativa3d var name_313:Object3D;
|
||||
alternativa3d var §_-Kh§:Object3D;
|
||||
|
||||
alternativa3d var var_107:Boolean;
|
||||
alternativa3d var §_-iJ§:Boolean;
|
||||
|
||||
alternativa3d var name_312:uint = 3;
|
||||
alternativa3d var §_-VE§:uint = 3;
|
||||
|
||||
alternativa3d var stop:Boolean = false;
|
||||
|
||||
alternativa3d var var_108:Boolean = false;
|
||||
alternativa3d var §_-XD§:Boolean = false;
|
||||
|
||||
public function Event3D(type:String, bubbles:Boolean = true)
|
||||
{
|
||||
super(type,bubbles);
|
||||
this.alternativa3d::var_107 = bubbles;
|
||||
this.alternativa3d::_-iJ = bubbles;
|
||||
}
|
||||
|
||||
override public function get bubbles() : Boolean
|
||||
{
|
||||
return this.alternativa3d::var_107;
|
||||
return this.alternativa3d::_-iJ;
|
||||
}
|
||||
|
||||
override public function get eventPhase() : uint
|
||||
{
|
||||
return this.alternativa3d::name_312;
|
||||
return this.alternativa3d::_-VE;
|
||||
}
|
||||
|
||||
override public function get target() : Object
|
||||
{
|
||||
return this.alternativa3d::name_314;
|
||||
return this.alternativa3d::_-5E;
|
||||
}
|
||||
|
||||
override public function get currentTarget() : Object
|
||||
{
|
||||
return this.alternativa3d::name_313;
|
||||
return this.alternativa3d::_-Kh;
|
||||
}
|
||||
|
||||
override public function stopPropagation() : void
|
||||
@@ -57,15 +57,15 @@ package alternativa.engine3d.core.events
|
||||
|
||||
override public function stopImmediatePropagation() : void
|
||||
{
|
||||
this.alternativa3d::var_108 = true;
|
||||
this.alternativa3d::_-XD = true;
|
||||
}
|
||||
|
||||
override public function clone() : Event
|
||||
{
|
||||
var result:Event3D = new Event3D(type,this.alternativa3d::var_107);
|
||||
result.alternativa3d::name_314 = this.alternativa3d::name_314;
|
||||
result.alternativa3d::name_313 = this.alternativa3d::name_313;
|
||||
result.alternativa3d::name_312 = this.alternativa3d::name_312;
|
||||
var result:Event3D = new Event3D(type,this.alternativa3d::_-iJ);
|
||||
result.alternativa3d::_-5E = this.alternativa3d::_-5E;
|
||||
result.alternativa3d::_-Kh = this.alternativa3d::_-Kh;
|
||||
result.alternativa3d::_-VE = this.alternativa3d::_-VE;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ package alternativa.engine3d.core.events
|
||||
|
||||
public var localZ:Number;
|
||||
|
||||
alternativa3d var var_109:Surface;
|
||||
alternativa3d var §_-BX§:Surface;
|
||||
|
||||
public function MouseEvent3D(type:String, bubbles:Boolean = true, localX:Number = NaN, localY:Number = NaN, localZ:Number = NaN, relatedObject:Object3D = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, buttonDown:Boolean = false, delta:int = 0)
|
||||
{
|
||||
@@ -65,12 +65,12 @@ package alternativa.engine3d.core.events
|
||||
|
||||
public function get surface() : Surface
|
||||
{
|
||||
return this.alternativa3d::var_109;
|
||||
return this.alternativa3d::_-BX;
|
||||
}
|
||||
|
||||
override public function clone() : Event
|
||||
{
|
||||
return new MouseEvent3D(type,alternativa3d::var_107,this.localX,this.localY,this.localZ,this.relatedObject,this.ctrlKey,this.altKey,this.shiftKey,this.buttonDown,this.delta);
|
||||
return new MouseEvent3D(type,alternativa3d::_-iJ,this.localX,this.localY,this.localZ,this.relatedObject,this.ctrlKey,this.altKey,this.shiftKey,this.buttonDown,this.delta);
|
||||
}
|
||||
|
||||
override public function toString() : String
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package package_48
|
||||
package alternativa.engine3d.effects
|
||||
{
|
||||
import flash.utils.*;
|
||||
|
||||
public class class_24
|
||||
public class AGALMiniAssembler
|
||||
{
|
||||
private static var initialized:Boolean = false;
|
||||
|
||||
@@ -190,16 +190,16 @@ package package_48
|
||||
|
||||
private static const CLAMP:String = "clamp";
|
||||
|
||||
private var var_584:ByteArray = null;
|
||||
private var §_-0e§:ByteArray = null;
|
||||
|
||||
private var var_582:String = "";
|
||||
private var §_-iF§:String = "";
|
||||
|
||||
private var var_583:Boolean = false;
|
||||
private var §_-9J§:Boolean = false;
|
||||
|
||||
public function class_24(debugging:Boolean = false)
|
||||
public function AGALMiniAssembler(debugging:Boolean = false)
|
||||
{
|
||||
super();
|
||||
this.var_583 = debugging;
|
||||
this.§_-9J§ = debugging;
|
||||
if(!initialized)
|
||||
{
|
||||
init();
|
||||
@@ -281,12 +281,12 @@ package package_48
|
||||
|
||||
public function get error() : String
|
||||
{
|
||||
return this.var_582;
|
||||
return this.§_-iF§;
|
||||
}
|
||||
|
||||
public function get method_235() : ByteArray
|
||||
public function get agalcode() : ByteArray
|
||||
{
|
||||
return this.var_584;
|
||||
return this.§_-0e§;
|
||||
}
|
||||
|
||||
public function assemble(mode:String, source:String, verbose:Boolean = false) : ByteArray
|
||||
@@ -332,8 +332,8 @@ package package_48
|
||||
var index:uint = 0;
|
||||
var byteStr:String = null;
|
||||
var start:uint = uint(getTimer());
|
||||
this.var_584 = new ByteArray();
|
||||
this.var_582 = "";
|
||||
this.§_-0e§ = new ByteArray();
|
||||
this.§_-iF§ = "";
|
||||
var isFrag:Boolean = false;
|
||||
if(mode == FRAGMENT)
|
||||
{
|
||||
@@ -341,19 +341,19 @@ package package_48
|
||||
}
|
||||
else if(mode != VERTEX)
|
||||
{
|
||||
this.var_582 = "ERROR: mode needs to be \"" + FRAGMENT + "\" or \"" + VERTEX + "\" but is \"" + mode + "\".";
|
||||
this.§_-iF§ = "ERROR: mode needs to be \"" + FRAGMENT + "\" or \"" + VERTEX + "\" but is \"" + mode + "\".";
|
||||
}
|
||||
this.method_235.endian = Endian.LITTLE_ENDIAN;
|
||||
this.method_235.writeByte(160);
|
||||
this.method_235.writeUnsignedInt(1);
|
||||
this.method_235.writeByte(161);
|
||||
this.method_235.writeByte(isFrag ? 1 : 0);
|
||||
this.agalcode.endian = Endian.LITTLE_ENDIAN;
|
||||
this.agalcode.writeByte(160);
|
||||
this.agalcode.writeUnsignedInt(1);
|
||||
this.agalcode.writeByte(161);
|
||||
this.agalcode.writeByte(isFrag ? 1 : 0);
|
||||
var lines:Array = source.replace(/[\f\n\r\v]+/g,"\n").split("\n");
|
||||
var nest:int = 0;
|
||||
var nops:int = 0;
|
||||
var lng:int = int(lines.length);
|
||||
i = 0;
|
||||
while(i < lng && this.var_582 == "")
|
||||
while(i < lng && this.§_-iF§ == "")
|
||||
{
|
||||
line = new String(lines[i]);
|
||||
startcomment = int(line.search("//"));
|
||||
@@ -369,7 +369,7 @@ package package_48
|
||||
}
|
||||
opCode = line.match(/^\w{3}/ig);
|
||||
opFound = OPMAP[opCode[0]];
|
||||
if(this.var_583)
|
||||
if(this.§_-9J§)
|
||||
{
|
||||
trace(opFound);
|
||||
}
|
||||
@@ -388,7 +388,7 @@ package package_48
|
||||
nest--;
|
||||
if(nest < 0)
|
||||
{
|
||||
this.var_582 = "error: conditional closes without open.";
|
||||
this.§_-iF§ = "error: conditional closes without open.";
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -397,30 +397,30 @@ package package_48
|
||||
nest++;
|
||||
if(nest > MAX_NESTING)
|
||||
{
|
||||
this.var_582 = "error: nesting to deep, maximum allowed is " + MAX_NESTING + ".";
|
||||
this.§_-iF§ = "error: nesting to deep, maximum allowed is " + MAX_NESTING + ".";
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(Boolean(opFound.flags & OP_FRAG_ONLY) && !isFrag)
|
||||
{
|
||||
this.var_582 = "error: opcode is only allowed in fragment programs.";
|
||||
this.§_-iF§ = "error: opcode is only allowed in fragment programs.";
|
||||
break;
|
||||
}
|
||||
if(verbose)
|
||||
{
|
||||
trace("emit opcode=" + opFound);
|
||||
}
|
||||
this.method_235.writeUnsignedInt(opFound.emitCode);
|
||||
this.agalcode.writeUnsignedInt(opFound.emitCode);
|
||||
nops++;
|
||||
if(nops > MAX_OPCODES)
|
||||
{
|
||||
this.var_582 = "error: too many opcodes. maximum is " + MAX_OPCODES + ".";
|
||||
this.§_-iF§ = "error: too many opcodes. maximum is " + MAX_OPCODES + ".";
|
||||
break;
|
||||
}
|
||||
regs = line.match(/vc\[([vof][actps]?)(\d*)?(\.[xyzw](\+\d{1,3})?)?\](\.[xyzw]{1,4})?|([vof][actps]?)(\d*)?(\.[xyzw]{1,4})?/gi);
|
||||
if(regs.length != opFound.numRegister)
|
||||
{
|
||||
this.var_582 = "error: wrong number of operands. found " + regs.length + " but expected " + opFound.numRegister + ".";
|
||||
this.§_-iF§ = "error: wrong number of operands. found " + regs.length + " but expected " + opFound.numRegister + ".";
|
||||
break;
|
||||
}
|
||||
badreg = false;
|
||||
@@ -441,13 +441,13 @@ package package_48
|
||||
}
|
||||
res = regs[j].match(/^\b[A-Za-z]{1,2}/ig);
|
||||
regFound = REGMAP[res[0]];
|
||||
if(this.var_583)
|
||||
if(this.§_-9J§)
|
||||
{
|
||||
trace(regFound);
|
||||
}
|
||||
if(regFound == null)
|
||||
{
|
||||
this.var_582 = "error: could not parse operand " + j + " (" + regs[j] + ").";
|
||||
this.§_-iF§ = "error: could not parse operand " + j + " (" + regs[j] + ").";
|
||||
badreg = true;
|
||||
break;
|
||||
}
|
||||
@@ -455,20 +455,20 @@ package package_48
|
||||
{
|
||||
if(!(regFound.flags & REG_FRAG))
|
||||
{
|
||||
this.var_582 = "error: register operand " + j + " (" + regs[j] + ") only allowed in vertex programs.";
|
||||
this.§_-iF§ = "error: register operand " + j + " (" + regs[j] + ") only allowed in vertex programs.";
|
||||
badreg = true;
|
||||
break;
|
||||
}
|
||||
if(isRelative)
|
||||
{
|
||||
this.var_582 = "error: register operand " + j + " (" + regs[j] + ") relative adressing not allowed in fragment programs.";
|
||||
this.§_-iF§ = "error: register operand " + j + " (" + regs[j] + ") relative adressing not allowed in fragment programs.";
|
||||
badreg = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if(!(regFound.flags & REG_VERT))
|
||||
{
|
||||
this.var_582 = "error: register operand " + j + " (" + regs[j] + ") only allowed in fragment programs.";
|
||||
this.§_-iF§ = "error: register operand " + j + " (" + regs[j] + ") only allowed in fragment programs.";
|
||||
badreg = true;
|
||||
break;
|
||||
}
|
||||
@@ -481,7 +481,7 @@ package package_48
|
||||
}
|
||||
if(regFound.range < regidx)
|
||||
{
|
||||
this.var_582 = "error: register operand " + j + " (" + regs[j] + ") index exceeds limit of " + (regFound.range + 1) + ".";
|
||||
this.§_-iF§ = "error: register operand " + j + " (" + regs[j] + ") index exceeds limit of " + (regFound.range + 1) + ".";
|
||||
badreg = true;
|
||||
break;
|
||||
}
|
||||
@@ -494,7 +494,7 @@ package package_48
|
||||
reloffset = 0;
|
||||
if(isDest && isRelative)
|
||||
{
|
||||
this.var_582 = "error: relative can not be destination";
|
||||
this.§_-iF§ = "error: relative can not be destination";
|
||||
badreg = true;
|
||||
break;
|
||||
}
|
||||
@@ -537,7 +537,7 @@ package package_48
|
||||
regFoundRel = REGMAP[relname[0]];
|
||||
if(regFoundRel == null)
|
||||
{
|
||||
this.var_582 = "error: bad index register";
|
||||
this.§_-iF§ = "error: bad index register";
|
||||
badreg = true;
|
||||
break;
|
||||
}
|
||||
@@ -545,7 +545,7 @@ package package_48
|
||||
selmatch = relreg[0].match(/(\.[xyzw]{1,1})/);
|
||||
if(selmatch.length == 0)
|
||||
{
|
||||
this.var_582 = "error: bad index register select";
|
||||
this.§_-iF§ = "error: bad index register select";
|
||||
badreg = true;
|
||||
break;
|
||||
}
|
||||
@@ -561,7 +561,7 @@ package package_48
|
||||
}
|
||||
if(reloffset < 0 || reloffset > 255)
|
||||
{
|
||||
this.var_582 = "error: index offset " + reloffset + " out of bounds. [0..255]";
|
||||
this.§_-iF§ = "error: index offset " + reloffset + " out of bounds. [0..255]";
|
||||
badreg = true;
|
||||
break;
|
||||
}
|
||||
@@ -576,9 +576,9 @@ package package_48
|
||||
}
|
||||
if(isDest)
|
||||
{
|
||||
this.method_235.writeShort(regidx);
|
||||
this.method_235.writeByte(regmask);
|
||||
this.method_235.writeByte(regFound.emitCode);
|
||||
this.agalcode.writeShort(regidx);
|
||||
this.agalcode.writeByte(regmask);
|
||||
this.agalcode.writeByte(regFound.emitCode);
|
||||
pad -= 32;
|
||||
}
|
||||
else if(isSampler)
|
||||
@@ -614,10 +614,10 @@ package package_48
|
||||
samplerbits |= uint(optfound.mask) << uint(optfound.flag);
|
||||
}
|
||||
}
|
||||
this.method_235.writeShort(regidx);
|
||||
this.method_235.writeByte(int(bias * 8));
|
||||
this.method_235.writeByte(0);
|
||||
this.method_235.writeUnsignedInt(samplerbits);
|
||||
this.agalcode.writeShort(regidx);
|
||||
this.agalcode.writeByte(int(bias * 8));
|
||||
this.agalcode.writeByte(0);
|
||||
this.agalcode.writeUnsignedInt(samplerbits);
|
||||
if(verbose)
|
||||
{
|
||||
trace(" bits: " + (samplerbits - 5));
|
||||
@@ -628,21 +628,21 @@ package package_48
|
||||
{
|
||||
if(j == 0)
|
||||
{
|
||||
this.method_235.writeUnsignedInt(0);
|
||||
this.agalcode.writeUnsignedInt(0);
|
||||
pad -= 32;
|
||||
}
|
||||
this.method_235.writeShort(regidx);
|
||||
this.method_235.writeByte(reloffset);
|
||||
this.method_235.writeByte(regmask);
|
||||
this.method_235.writeByte(regFound.emitCode);
|
||||
this.method_235.writeByte(reltype);
|
||||
this.method_235.writeShort(isRelative ? relsel | 1 << 15 : 0);
|
||||
this.agalcode.writeShort(regidx);
|
||||
this.agalcode.writeByte(reloffset);
|
||||
this.agalcode.writeByte(regmask);
|
||||
this.agalcode.writeByte(regFound.emitCode);
|
||||
this.agalcode.writeByte(reltype);
|
||||
this.agalcode.writeShort(isRelative ? relsel | 1 << 15 : 0);
|
||||
pad -= 64;
|
||||
}
|
||||
}
|
||||
for(j = 0; j < pad; )
|
||||
{
|
||||
this.method_235.writeByte(0);
|
||||
this.agalcode.writeByte(0);
|
||||
j += 8;
|
||||
}
|
||||
if(badreg)
|
||||
@@ -652,16 +652,16 @@ package package_48
|
||||
}
|
||||
i++;
|
||||
}
|
||||
if(this.var_582 != "")
|
||||
if(this.§_-iF§ != "")
|
||||
{
|
||||
this.var_582 += "\n at line " + i + " " + lines[i];
|
||||
this.method_235.length = 0;
|
||||
trace(this.var_582);
|
||||
this.§_-iF§ += "\n at line " + i + " " + lines[i];
|
||||
this.agalcode.length = 0;
|
||||
trace(this.§_-iF§);
|
||||
}
|
||||
if(this.var_583)
|
||||
if(this.§_-9J§)
|
||||
{
|
||||
dbgLine = "generated bytecode:";
|
||||
agalLength = uint(this.method_235.length);
|
||||
agalLength = uint(this.agalcode.length);
|
||||
for(index = 0; index < agalLength; index++)
|
||||
{
|
||||
if(!(index % 16))
|
||||
@@ -672,7 +672,7 @@ package package_48
|
||||
{
|
||||
dbgLine += " ";
|
||||
}
|
||||
byteStr = this.method_235[index].toString(16);
|
||||
byteStr = this.agalcode[index].toString(16);
|
||||
if(byteStr.length < 2)
|
||||
{
|
||||
byteStr = "0" + byteStr;
|
||||
@@ -685,7 +685,7 @@ package package_48
|
||||
{
|
||||
trace("AGALMiniAssembler.assemble time: " + (getTimer() - start) / 1000 + "s");
|
||||
}
|
||||
return this.method_235;
|
||||
return this.agalcode;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -30,13 +30,13 @@ package alternativa.engine3d.effects
|
||||
|
||||
public var originY:Number;
|
||||
|
||||
public var name_333:Number;
|
||||
public var §_-q§:Number;
|
||||
|
||||
public var name_330:Number;
|
||||
public var §_-Ts§:Number;
|
||||
|
||||
public var name_332:Number;
|
||||
public var §_-ej§:Number;
|
||||
|
||||
public var name_331:Number;
|
||||
public var §_-W5§:Number;
|
||||
|
||||
public var red:Number;
|
||||
|
||||
|
||||
232
src/alternativa/engine3d/effects/ParticleEffect.as
Normal file
232
src/alternativa/engine3d/effects/ParticleEffect.as
Normal file
@@ -0,0 +1,232 @@
|
||||
package alternativa.engine3d.effects
|
||||
{
|
||||
import alternativa.engine3d.alternativa3d;
|
||||
import alternativa.engine3d.core.BoundBox;
|
||||
import alternativa.engine3d.core.Transform3D;
|
||||
import flash.geom.Vector3D;
|
||||
|
||||
use namespace alternativa3d;
|
||||
|
||||
public class ParticleEffect
|
||||
{
|
||||
private static var randomNumbers:Vector.<Number>;
|
||||
|
||||
private static const randomNumbersCount:int = 1000;
|
||||
|
||||
private static const vector:Vector3D = new Vector3D();
|
||||
|
||||
public var name:String;
|
||||
|
||||
public var scale:Number = 1;
|
||||
|
||||
public var boundBox:BoundBox;
|
||||
|
||||
alternativa3d var next:ParticleEffect;
|
||||
|
||||
alternativa3d var §implements§:ParticleEffect;
|
||||
|
||||
alternativa3d var system:ParticleSystem;
|
||||
|
||||
alternativa3d var startTime:Number;
|
||||
|
||||
alternativa3d var lifeTime:Number = 1.7976931348623157e+308;
|
||||
|
||||
alternativa3d var particleList:Particle;
|
||||
|
||||
alternativa3d var aabb:BoundBox;
|
||||
|
||||
alternativa3d var §_-M7§:Vector3D;
|
||||
|
||||
protected var §_-cF§:Vector3D;
|
||||
|
||||
protected var §_-gV§:Vector.<Number>;
|
||||
|
||||
protected var §_-lB§:Vector.<Vector3D>;
|
||||
|
||||
protected var §_-ib§:Vector.<Vector3D>;
|
||||
|
||||
protected var §_-Nz§:Vector.<Function>;
|
||||
|
||||
protected var §_-kf§:int = 0;
|
||||
|
||||
private var §_-TK§:int;
|
||||
|
||||
private var §_-hs§:int;
|
||||
|
||||
private var §_-G1§:Vector3D;
|
||||
|
||||
private var §_-Q2§:Vector3D;
|
||||
|
||||
public function ParticleEffect()
|
||||
{
|
||||
var i:int = 0;
|
||||
this.alternativa3d::aabb = new BoundBox();
|
||||
this.§_-gV§ = new Vector.<Number>();
|
||||
this.§_-lB§ = new Vector.<Vector3D>();
|
||||
this.§_-ib§ = new Vector.<Vector3D>();
|
||||
this.§_-Nz§ = new Vector.<Function>();
|
||||
this.§_-G1§ = new Vector3D(0,0,0);
|
||||
this.§_-Q2§ = new Vector3D(0,0,1);
|
||||
super();
|
||||
if(randomNumbers == null)
|
||||
{
|
||||
randomNumbers = new Vector.<Number>();
|
||||
for(i = 0; i < randomNumbersCount; randomNumbers[i] = Math.random(),i++)
|
||||
{
|
||||
}
|
||||
}
|
||||
this.§_-TK§ = Math.random() * randomNumbersCount;
|
||||
}
|
||||
|
||||
public function get position() : Vector3D
|
||||
{
|
||||
return this.§_-G1§.clone();
|
||||
}
|
||||
|
||||
public function set position(value:Vector3D) : void
|
||||
{
|
||||
this.§_-G1§.x = value.x;
|
||||
this.§_-G1§.y = value.y;
|
||||
this.§_-G1§.z = value.z;
|
||||
this.§_-G1§.w = value.w;
|
||||
if(this.alternativa3d::system != null)
|
||||
{
|
||||
this.alternativa3d::setPositionKeys(this.alternativa3d::system.alternativa3d::getTime() - this.alternativa3d::startTime);
|
||||
}
|
||||
}
|
||||
|
||||
public function get direction() : Vector3D
|
||||
{
|
||||
return this.§_-Q2§.clone();
|
||||
}
|
||||
|
||||
public function set direction(value:Vector3D) : void
|
||||
{
|
||||
this.§_-Q2§.x = value.x;
|
||||
this.§_-Q2§.y = value.y;
|
||||
this.§_-Q2§.z = value.z;
|
||||
this.§_-Q2§.w = value.w;
|
||||
if(this.alternativa3d::system != null)
|
||||
{
|
||||
this.alternativa3d::setDirectionKeys(this.alternativa3d::system.alternativa3d::getTime() - this.alternativa3d::startTime);
|
||||
}
|
||||
}
|
||||
|
||||
public function stop() : void
|
||||
{
|
||||
var time:Number = this.alternativa3d::system.alternativa3d::getTime() - this.alternativa3d::startTime;
|
||||
for(var i:int = 0; i < this.§_-kf§; )
|
||||
{
|
||||
if(time < this.§_-gV§[i])
|
||||
{
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
this.§_-kf§ = i;
|
||||
}
|
||||
|
||||
protected function get particleSystem() : ParticleSystem
|
||||
{
|
||||
return this.alternativa3d::system;
|
||||
}
|
||||
|
||||
protected function get cameraTransform() : Transform3D
|
||||
{
|
||||
return this.alternativa3d::system.alternativa3d::cameraToLocalTransform;
|
||||
}
|
||||
|
||||
protected function random() : Number
|
||||
{
|
||||
var res:Number = randomNumbers[this.§_-hs§];
|
||||
++this.§_-hs§;
|
||||
if(this.§_-hs§ == randomNumbersCount)
|
||||
{
|
||||
this.§_-hs§ = 0;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
protected function addKey(time:Number, script:Function) : void
|
||||
{
|
||||
this.§_-gV§[this.§_-kf§] = time;
|
||||
this.§_-lB§[this.§_-kf§] = new Vector3D();
|
||||
this.§_-ib§[this.§_-kf§] = new Vector3D();
|
||||
this.§_-Nz§[this.§_-kf§] = script;
|
||||
++this.§_-kf§;
|
||||
}
|
||||
|
||||
protected function setLife(time:Number) : void
|
||||
{
|
||||
this.alternativa3d::lifeTime = time;
|
||||
}
|
||||
|
||||
alternativa3d function calculateAABB() : void
|
||||
{
|
||||
this.alternativa3d::aabb.minX = this.boundBox.minX * this.scale + this.§_-G1§.x;
|
||||
this.alternativa3d::aabb.minY = this.boundBox.minY * this.scale + this.§_-G1§.y;
|
||||
this.alternativa3d::aabb.minZ = this.boundBox.minZ * this.scale + this.§_-G1§.z;
|
||||
this.alternativa3d::aabb.maxX = this.boundBox.maxX * this.scale + this.§_-G1§.x;
|
||||
this.alternativa3d::aabb.maxY = this.boundBox.maxY * this.scale + this.§_-G1§.y;
|
||||
this.alternativa3d::aabb.maxZ = this.boundBox.maxZ * this.scale + this.§_-G1§.z;
|
||||
}
|
||||
|
||||
alternativa3d function setPositionKeys(time:Number) : void
|
||||
{
|
||||
var pos:Vector3D = null;
|
||||
for(var i:int = 0; i < this.§_-kf§; )
|
||||
{
|
||||
if(time <= this.§_-gV§[i])
|
||||
{
|
||||
pos = this.§_-lB§[i];
|
||||
pos.x = this.§_-G1§.x;
|
||||
pos.y = this.§_-G1§.y;
|
||||
pos.z = this.§_-G1§.z;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
alternativa3d function setDirectionKeys(time:Number) : void
|
||||
{
|
||||
var dir:Vector3D = null;
|
||||
vector.x = this.§_-Q2§.x;
|
||||
vector.y = this.§_-Q2§.y;
|
||||
vector.z = this.§_-Q2§.z;
|
||||
vector.normalize();
|
||||
for(var i:int = 0; i < this.§_-kf§; )
|
||||
{
|
||||
if(time <= this.§_-gV§[i])
|
||||
{
|
||||
dir = this.§_-ib§[i];
|
||||
dir.x = vector.x;
|
||||
dir.y = vector.y;
|
||||
dir.z = vector.z;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
alternativa3d function calculate(time:Number) : Boolean
|
||||
{
|
||||
var keyTime:Number = NaN;
|
||||
var script:Function = null;
|
||||
this.§_-hs§ = this.§_-TK§;
|
||||
for(var i:int = 0; i < this.§_-kf§; )
|
||||
{
|
||||
keyTime = this.§_-gV§[i];
|
||||
if(time < keyTime)
|
||||
{
|
||||
break;
|
||||
}
|
||||
this.alternativa3d::_-M7 = this.§_-lB§[i];
|
||||
this.§_-cF§ = this.§_-ib§[i];
|
||||
script = this.§_-Nz§[i];
|
||||
script.call(this,keyTime,time - keyTime);
|
||||
i++;
|
||||
}
|
||||
return i < this.§_-kf§ || this.alternativa3d::particleList != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,23 +21,23 @@ package alternativa.engine3d.effects
|
||||
|
||||
private var height:Number;
|
||||
|
||||
private var var_151:Vector.<Number> = new Vector.<Number>();
|
||||
private var §_-gV§:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
private var var_657:Vector.<Number> = new Vector.<Number>();
|
||||
private var §_-0r§:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
private var var_659:Vector.<Number> = new Vector.<Number>();
|
||||
private var §_-4e§:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
private var var_662:Vector.<Number> = new Vector.<Number>();
|
||||
private var §_-Oj§:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
private var var_656:Vector.<Number> = new Vector.<Number>();
|
||||
private var §_-07§:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
private var var_658:Vector.<Number> = new Vector.<Number>();
|
||||
private var §_-3l§:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
private var var_660:Vector.<Number> = new Vector.<Number>();
|
||||
private var §_-7S§:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
private var var_661:Vector.<Number> = new Vector.<Number>();
|
||||
private var §_-Ch§:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
private var var_148:int = 0;
|
||||
private var §_-kf§:int = 0;
|
||||
|
||||
public function ParticlePrototype(width:Number, height:Number, atlas:TextureAtlas, animated:Boolean = false, blendSource:String = "sourceAlpha", blendDestination:String = "oneMinusSourceAlpha")
|
||||
{
|
||||
@@ -52,23 +52,23 @@ package alternativa.engine3d.effects
|
||||
|
||||
public function addKey(time:Number, rotation:Number = 0, scaleX:Number = 1, scaleY:Number = 1, red:Number = 1, green:Number = 1, blue:Number = 1, alpha:Number = 1) : void
|
||||
{
|
||||
var lastIndex:int = this.var_148 - 1;
|
||||
if(this.var_148 > 0 && time <= this.var_151[lastIndex])
|
||||
var lastIndex:int = this.§_-kf§ - 1;
|
||||
if(this.§_-kf§ > 0 && time <= this.§_-gV§[lastIndex])
|
||||
{
|
||||
throw new Error("Keys must be successively.");
|
||||
}
|
||||
this.var_151[this.var_148] = time;
|
||||
this.var_657[this.var_148] = rotation;
|
||||
this.var_659[this.var_148] = scaleX;
|
||||
this.var_662[this.var_148] = scaleY;
|
||||
this.var_656[this.var_148] = red;
|
||||
this.var_658[this.var_148] = green;
|
||||
this.var_660[this.var_148] = blue;
|
||||
this.var_661[this.var_148] = alpha;
|
||||
++this.var_148;
|
||||
this.§_-gV§[this.§_-kf§] = time;
|
||||
this.§_-0r§[this.§_-kf§] = rotation;
|
||||
this.§_-4e§[this.§_-kf§] = scaleX;
|
||||
this.§_-Oj§[this.§_-kf§] = scaleY;
|
||||
this.§_-07§[this.§_-kf§] = red;
|
||||
this.§_-3l§[this.§_-kf§] = green;
|
||||
this.§_-7S§[this.§_-kf§] = blue;
|
||||
this.§_-Ch§[this.§_-kf§] = alpha;
|
||||
++this.§_-kf§;
|
||||
}
|
||||
|
||||
public function createParticle(effect:name_77, time:Number, position:Vector3D, rotation:Number = 0, scaleX:Number = 1, scaleY:Number = 1, alpha:Number = 1, firstFrame:int = 0) : void
|
||||
public function createParticle(effect:ParticleEffect, time:Number, position:Vector3D, rotation:Number = 0, scaleX:Number = 1, scaleY:Number = 1, alpha:Number = 1, firstFrame:int = 0) : void
|
||||
{
|
||||
var systemScale:Number = NaN;
|
||||
var effectScale:Number = NaN;
|
||||
@@ -85,20 +85,20 @@ package alternativa.engine3d.effects
|
||||
var cy:Number = NaN;
|
||||
var cz:Number = NaN;
|
||||
var rot:Number = NaN;
|
||||
var b:int = this.var_148 - 1;
|
||||
if(this.atlas.diffuse.alternativa3d::_texture != null && this.var_148 > 1 && time >= this.var_151[0] && time < this.var_151[b])
|
||||
var b:int = this.§_-kf§ - 1;
|
||||
if(this.atlas.diffuse.alternativa3d::_texture != null && this.§_-kf§ > 1 && time >= this.§_-gV§[0] && time < this.§_-gV§[b])
|
||||
{
|
||||
for(b = 1; b < this.var_148; )
|
||||
for(b = 1; b < this.§_-kf§; )
|
||||
{
|
||||
if(time < this.var_151[b])
|
||||
if(time < this.§_-gV§[b])
|
||||
{
|
||||
systemScale = Number(effect.alternativa3d::system.alternativa3d::scale);
|
||||
effectScale = Number(effect.scale);
|
||||
effectScale = effect.scale;
|
||||
transform = effect.alternativa3d::system.alternativa3d::localToCameraTransform;
|
||||
wind = effect.alternativa3d::system.wind;
|
||||
gravity = effect.alternativa3d::system.gravity;
|
||||
a = b - 1;
|
||||
t = (time - this.var_151[a]) / (this.var_151[b] - this.var_151[a]);
|
||||
t = (time - this.§_-gV§[a]) / (this.§_-gV§[b] - this.§_-gV§[a]);
|
||||
pos = firstFrame + (this.animated ? time * this.atlas.fps : 0);
|
||||
if(this.atlas.loop)
|
||||
{
|
||||
@@ -127,26 +127,26 @@ package alternativa.engine3d.effects
|
||||
particle.opacity = this.atlas.opacity != null ? this.atlas.opacity.alternativa3d::_texture : null;
|
||||
particle.blendSource = this.blendSource;
|
||||
particle.blendDestination = this.blendDestination;
|
||||
cx = effect.alternativa3d::var_157.x + position.x * effectScale;
|
||||
cy = effect.alternativa3d::var_157.y + position.y * effectScale;
|
||||
cz = effect.alternativa3d::var_157.z + position.z * effectScale;
|
||||
cx = effect.alternativa3d::_-M7.x + position.x * effectScale;
|
||||
cy = effect.alternativa3d::_-M7.y + position.y * effectScale;
|
||||
cz = effect.alternativa3d::_-M7.z + position.z * effectScale;
|
||||
particle.x = cx * transform.a + cy * transform.b + cz * transform.c + transform.d;
|
||||
particle.y = cx * transform.e + cy * transform.f + cz * transform.g + transform.h;
|
||||
particle.z = cx * transform.i + cy * transform.j + cz * transform.k + transform.l;
|
||||
rot = this.var_657[a] + (this.var_657[b] - this.var_657[a]) * t;
|
||||
rot = this.§_-0r§[a] + (this.§_-0r§[b] - this.§_-0r§[a]) * t;
|
||||
particle.rotation = scaleX * scaleY > 0 ? rotation + rot : rotation - rot;
|
||||
particle.width = systemScale * effectScale * scaleX * this.width * (this.var_659[a] + (this.var_659[b] - this.var_659[a]) * t);
|
||||
particle.height = systemScale * effectScale * scaleY * this.height * (this.var_662[a] + (this.var_662[b] - this.var_662[a]) * t);
|
||||
particle.width = systemScale * effectScale * scaleX * this.width * (this.§_-4e§[a] + (this.§_-4e§[b] - this.§_-4e§[a]) * t);
|
||||
particle.height = systemScale * effectScale * scaleY * this.height * (this.§_-Oj§[a] + (this.§_-Oj§[b] - this.§_-Oj§[a]) * t);
|
||||
particle.originX = this.atlas.originX;
|
||||
particle.originY = this.atlas.originY;
|
||||
particle.name_333 = 1 / this.atlas.columnsCount;
|
||||
particle.name_330 = 1 / this.atlas.rowsCount;
|
||||
particle.name_332 = col / this.atlas.columnsCount;
|
||||
particle.name_331 = row / this.atlas.rowsCount;
|
||||
particle.red = this.var_656[a] + (this.var_656[b] - this.var_656[a]) * t;
|
||||
particle.green = this.var_658[a] + (this.var_658[b] - this.var_658[a]) * t;
|
||||
particle.blue = this.var_660[a] + (this.var_660[b] - this.var_660[a]) * t;
|
||||
particle.alpha = alpha * (this.var_661[a] + (this.var_661[b] - this.var_661[a]) * t);
|
||||
particle.§_-q§ = 1 / this.atlas.columnsCount;
|
||||
particle.§_-Ts§ = 1 / this.atlas.rowsCount;
|
||||
particle.§_-ej§ = col / this.atlas.columnsCount;
|
||||
particle.§_-W5§ = row / this.atlas.rowsCount;
|
||||
particle.red = this.§_-07§[a] + (this.§_-07§[b] - this.§_-07§[a]) * t;
|
||||
particle.green = this.§_-3l§[a] + (this.§_-3l§[b] - this.§_-3l§[a]) * t;
|
||||
particle.blue = this.§_-7S§[a] + (this.§_-7S§[b] - this.§_-7S§[a]) * t;
|
||||
particle.alpha = alpha * (this.§_-Ch§[a] + (this.§_-Ch§[b] - this.§_-Ch§[a]) * t);
|
||||
particle.next = effect.alternativa3d::particleList;
|
||||
effect.alternativa3d::particleList = particle;
|
||||
break;
|
||||
@@ -158,8 +158,8 @@ package alternativa.engine3d.effects
|
||||
|
||||
public function get lifeTime() : Number
|
||||
{
|
||||
var lastIndex:int = this.var_148 - 1;
|
||||
return this.var_151[lastIndex];
|
||||
var lastIndex:int = this.§_-kf§ - 1;
|
||||
return this.§_-gV§[lastIndex];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,13 +38,13 @@ package alternativa.engine3d.effects
|
||||
|
||||
private static const limit:int = 31;
|
||||
|
||||
public var var_141:Boolean = true;
|
||||
public var §_-jW§:Boolean = true;
|
||||
|
||||
public var gravity:Vector3D = new Vector3D(0,0,-1);
|
||||
|
||||
public var wind:Vector3D = new Vector3D();
|
||||
|
||||
public var name_76:int = 0;
|
||||
public var §_-IN§:int = 0;
|
||||
|
||||
public var fogMaxDensity:Number = 0;
|
||||
|
||||
@@ -54,7 +54,7 @@ package alternativa.engine3d.effects
|
||||
|
||||
alternativa3d var scale:Number = 1;
|
||||
|
||||
alternativa3d var effectList:name_77;
|
||||
alternativa3d var effectList:ParticleEffect;
|
||||
|
||||
private var drawUnit:DrawUnit = null;
|
||||
|
||||
@@ -68,19 +68,19 @@ package alternativa.engine3d.effects
|
||||
|
||||
private var counter:int;
|
||||
|
||||
private var var_139:Number;
|
||||
private var §_-La§:Number;
|
||||
|
||||
private var var_140:Number;
|
||||
private var §_-p3§:Number;
|
||||
|
||||
private var var_138:Vector.<Object3D> = new Vector.<Object3D>();
|
||||
private var §_-ZN§:Vector.<Object3D> = new Vector.<Object3D>();
|
||||
|
||||
private var var_136:int = 0;
|
||||
private var §_-hr§:int = 0;
|
||||
|
||||
private var pause:Boolean = false;
|
||||
|
||||
private var var_135:Number;
|
||||
private var §_-pK§:Number;
|
||||
|
||||
private var var_137:Number = 0;
|
||||
private var §_-L5§:Number = 0;
|
||||
|
||||
public function ParticleSystem()
|
||||
{
|
||||
@@ -91,7 +91,7 @@ package alternativa.engine3d.effects
|
||||
{
|
||||
if(!this.pause)
|
||||
{
|
||||
this.var_135 = getTimer() * 0.001;
|
||||
this.§_-pK§ = getTimer() * 0.001;
|
||||
this.pause = true;
|
||||
}
|
||||
}
|
||||
@@ -100,22 +100,22 @@ package alternativa.engine3d.effects
|
||||
{
|
||||
if(this.pause)
|
||||
{
|
||||
this.var_137 += getTimer() * 0.001 - this.var_135;
|
||||
this.§_-L5§ += getTimer() * 0.001 - this.§_-pK§;
|
||||
this.pause = false;
|
||||
}
|
||||
}
|
||||
|
||||
public function prevFrame() : void
|
||||
{
|
||||
this.var_135 -= 0.001;
|
||||
this.§_-pK§ -= 0.001;
|
||||
}
|
||||
|
||||
public function nextFrame() : void
|
||||
{
|
||||
this.var_135 += 0.001;
|
||||
this.§_-pK§ += 0.001;
|
||||
}
|
||||
|
||||
public function method_21(effect:name_77) : name_77
|
||||
public function each(effect:ParticleEffect) : ParticleEffect
|
||||
{
|
||||
if(effect.alternativa3d::system != null)
|
||||
{
|
||||
@@ -123,34 +123,34 @@ package alternativa.engine3d.effects
|
||||
}
|
||||
effect.alternativa3d::startTime = this.alternativa3d::getTime();
|
||||
effect.alternativa3d::system = this;
|
||||
effect.alternativa3d::name_329(0);
|
||||
effect.alternativa3d::name_327(0);
|
||||
effect.alternativa3d::name_326 = this.alternativa3d::effectList;
|
||||
effect.alternativa3d::setPositionKeys(0);
|
||||
effect.alternativa3d::setDirectionKeys(0);
|
||||
effect.alternativa3d::implements = this.alternativa3d::effectList;
|
||||
this.alternativa3d::effectList = effect;
|
||||
return effect;
|
||||
}
|
||||
|
||||
public function getEffectByName(name:String) : name_77
|
||||
public function getEffectByName(name:String) : ParticleEffect
|
||||
{
|
||||
for(var effect:name_77 = this.alternativa3d::effectList; effect != null; )
|
||||
for(var effect:ParticleEffect = this.alternativa3d::effectList; effect != null; )
|
||||
{
|
||||
if(effect.name == name)
|
||||
{
|
||||
return effect;
|
||||
}
|
||||
effect = effect.alternativa3d::name_326;
|
||||
effect = effect.alternativa3d::implements;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
alternativa3d function getTime() : Number
|
||||
{
|
||||
return this.pause ? this.var_135 - this.var_137 : getTimer() * 0.001 - this.var_137;
|
||||
return this.pause ? this.§_-pK§ - this.§_-L5§ : getTimer() * 0.001 - this.§_-L5§;
|
||||
}
|
||||
|
||||
override alternativa3d function collectDraws(camera:Camera3D, lights:Vector.<Light3D>, lightsLength:int) : void
|
||||
{
|
||||
var visibleEffectList:name_77 = null;
|
||||
var visibleEffectList:ParticleEffect = null;
|
||||
var effectTime:Number = NaN;
|
||||
var culling:int = 0;
|
||||
var debug:int = 0;
|
||||
@@ -165,7 +165,7 @@ package alternativa.engine3d.effects
|
||||
camera.alternativa3d::calculateFrustum(alternativa3d::cameraToLocalTransform);
|
||||
var conflictAnyway:Boolean = false;
|
||||
var time:Number = this.alternativa3d::getTime();
|
||||
for(var effect:name_77 = this.alternativa3d::effectList,var prev:name_77 = null; effect != null; )
|
||||
for(var effect:ParticleEffect = this.alternativa3d::effectList,var prev:ParticleEffect = null; effect != null; )
|
||||
{
|
||||
effectTime = time - effect.alternativa3d::startTime;
|
||||
if(effectTime <= effect.alternativa3d::lifeTime)
|
||||
@@ -178,7 +178,7 @@ package alternativa.engine3d.effects
|
||||
}
|
||||
if(culling >= 0)
|
||||
{
|
||||
if(effect.alternativa3d::name_328(effectTime))
|
||||
if(effect.alternativa3d::calculate(effectTime))
|
||||
{
|
||||
if(effect.alternativa3d::particleList != null)
|
||||
{
|
||||
@@ -187,33 +187,33 @@ package alternativa.engine3d.effects
|
||||
conflictAnyway ||= effect.boundBox == null;
|
||||
}
|
||||
prev = effect;
|
||||
effect = effect.alternativa3d::name_326;
|
||||
effect = effect.alternativa3d::implements;
|
||||
}
|
||||
else if(prev != null)
|
||||
{
|
||||
prev.alternativa3d::name_326 = effect.alternativa3d::name_326;
|
||||
effect = prev.alternativa3d::name_326;
|
||||
prev.alternativa3d::implements = effect.alternativa3d::implements;
|
||||
effect = prev.alternativa3d::implements;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.alternativa3d::effectList = effect.alternativa3d::name_326;
|
||||
this.alternativa3d::effectList = effect.alternativa3d::implements;
|
||||
effect = this.alternativa3d::effectList;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
prev = effect;
|
||||
effect = effect.alternativa3d::name_326;
|
||||
effect = effect.alternativa3d::implements;
|
||||
}
|
||||
}
|
||||
else if(prev != null)
|
||||
{
|
||||
prev.alternativa3d::name_326 = effect.alternativa3d::name_326;
|
||||
effect = prev.alternativa3d::name_326;
|
||||
prev.alternativa3d::implements = effect.alternativa3d::implements;
|
||||
effect = prev.alternativa3d::implements;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.alternativa3d::effectList = effect.alternativa3d::name_326;
|
||||
this.alternativa3d::effectList = effect.alternativa3d::implements;
|
||||
effect = this.alternativa3d::effectList;
|
||||
}
|
||||
}
|
||||
@@ -227,7 +227,7 @@ package alternativa.engine3d.effects
|
||||
{
|
||||
this.drawParticleList(camera,visibleEffectList.alternativa3d::particleList);
|
||||
visibleEffectList.alternativa3d::particleList = null;
|
||||
if(Boolean(camera.debug) && visibleEffectList.boundBox != null && Boolean(camera.alternativa3d::checkInDebug(this) & Debug.BOUNDS))
|
||||
if(camera.debug && visibleEffectList.boundBox != null && Boolean(camera.alternativa3d::checkInDebug(this) & Debug.BOUNDS))
|
||||
{
|
||||
Debug.alternativa3d::drawBoundBox(camera,visibleEffectList.alternativa3d::aabb,alternativa3d::localToCameraTransform);
|
||||
}
|
||||
@@ -238,11 +238,11 @@ package alternativa.engine3d.effects
|
||||
this.opacity = null;
|
||||
this.blendSource = null;
|
||||
this.blendDestination = null;
|
||||
this.var_136 = 0;
|
||||
this.§_-hr§ = 0;
|
||||
}
|
||||
if(camera.debug)
|
||||
{
|
||||
debug = int(camera.alternativa3d::checkInDebug(this));
|
||||
debug = camera.alternativa3d::checkInDebug(this);
|
||||
if(Boolean(debug & Debug.BOUNDS) && boundBox != null)
|
||||
{
|
||||
Debug.alternativa3d::drawBoundBox(camera,boundBox,alternativa3d::localToCameraTransform);
|
||||
@@ -294,13 +294,13 @@ package alternativa.engine3d.effects
|
||||
|
||||
private function flush(camera:Camera3D) : void
|
||||
{
|
||||
if(this.var_136 == this.var_138.length)
|
||||
if(this.§_-hr§ == this.§_-ZN§.length)
|
||||
{
|
||||
this.var_138[this.var_136] = new Object3D();
|
||||
this.§_-ZN§[this.§_-hr§] = new Object3D();
|
||||
}
|
||||
var object:Object3D = this.var_138[this.var_136];
|
||||
++this.var_136;
|
||||
object.alternativa3d::localToCameraTransform.l = (this.var_139 + this.var_140) / 2;
|
||||
var object:Object3D = this.§_-ZN§[this.§_-hr§];
|
||||
++this.§_-hr§;
|
||||
object.alternativa3d::localToCameraTransform.l = (this.§_-La§ + this.§_-p3§) / 2;
|
||||
this.drawUnit.alternativa3d::object = object;
|
||||
this.drawUnit.alternativa3d::numTriangles = this.counter << 1;
|
||||
if(this.blendDestination == Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA)
|
||||
@@ -314,7 +314,7 @@ package alternativa.engine3d.effects
|
||||
this.drawUnit.alternativa3d::setVertexBufferAt(0,vertexBuffer,0,Context3DVertexBufferFormat.FLOAT_3);
|
||||
this.drawUnit.alternativa3d::setVertexBufferAt(1,vertexBuffer,3,Context3DVertexBufferFormat.FLOAT_3);
|
||||
this.drawUnit.alternativa3d::setProjectionConstants(camera,124);
|
||||
this.drawUnit.alternativa3d::setFragmentConstantsFromNumbers(0,(this.name_76 >> 16 & 0xFF) / 255,(this.name_76 >> 8 & 0xFF) / 255,(this.name_76 & 0xFF) / 255,this.fogMaxDensity);
|
||||
this.drawUnit.alternativa3d::setFragmentConstantsFromNumbers(0,(this.§_-IN§ >> 16 & 0xFF) / 255,(this.§_-IN§ >> 8 & 0xFF) / 255,(this.§_-IN§ & 0xFF) / 255,this.fogMaxDensity);
|
||||
this.drawUnit.alternativa3d::setFragmentConstantsFromNumbers(1,this.fogNear,this.fogFar - this.fogNear,0,1);
|
||||
this.drawUnit.alternativa3d::setTextureAt(0,this.diffuse);
|
||||
if(this.opacity != null)
|
||||
@@ -349,15 +349,15 @@ package alternativa.engine3d.effects
|
||||
this.blendSource = particle.blendSource;
|
||||
this.blendDestination = particle.blendDestination;
|
||||
this.counter = 0;
|
||||
this.var_139 = particle.z;
|
||||
this.§_-La§ = particle.z;
|
||||
}
|
||||
offset = this.counter << 2;
|
||||
this.drawUnit.alternativa3d::setVertexConstantsFromNumbers(offset++,particle.originX,particle.originY,particle.width,particle.height);
|
||||
this.drawUnit.alternativa3d::setVertexConstantsFromNumbers(offset++,particle.x,particle.y,particle.z,particle.rotation);
|
||||
this.drawUnit.alternativa3d::setVertexConstantsFromNumbers(offset++,particle.name_333,particle.name_330,particle.name_332,particle.name_331);
|
||||
this.drawUnit.alternativa3d::setVertexConstantsFromNumbers(offset++,particle.§_-q§,particle.§_-Ts§,particle.§_-ej§,particle.§_-W5§);
|
||||
this.drawUnit.alternativa3d::setVertexConstantsFromNumbers(offset++,particle.red,particle.green,particle.blue,particle.alpha);
|
||||
++this.counter;
|
||||
this.var_140 = particle.z;
|
||||
this.§_-p3§ = particle.z;
|
||||
last = particle;
|
||||
particle = particle.next;
|
||||
}
|
||||
@@ -435,12 +435,12 @@ package alternativa.engine3d.effects
|
||||
return list;
|
||||
}
|
||||
|
||||
private function drawConflictEffects(camera:Camera3D, effectList:name_77) : void
|
||||
private function drawConflictEffects(camera:Camera3D, effectList:ParticleEffect) : void
|
||||
{
|
||||
var particleList:Particle = null;
|
||||
var next:name_77 = null;
|
||||
var next:ParticleEffect = null;
|
||||
var last:Particle = null;
|
||||
for(var effect:name_77 = effectList; effect != null; )
|
||||
for(var effect:ParticleEffect = effectList; effect != null; )
|
||||
{
|
||||
next = effect.alternativa3d::next;
|
||||
effect.alternativa3d::next = null;
|
||||
@@ -451,7 +451,7 @@ package alternativa.engine3d.effects
|
||||
last.next = particleList;
|
||||
particleList = effect.alternativa3d::particleList;
|
||||
effect.alternativa3d::particleList = null;
|
||||
if(Boolean(camera.debug) && effect.boundBox != null && Boolean(camera.alternativa3d::checkInDebug(this) & Debug.BOUNDS))
|
||||
if(camera.debug && effect.boundBox != null && Boolean(camera.alternativa3d::checkInDebug(this) & Debug.BOUNDS))
|
||||
{
|
||||
Debug.alternativa3d::drawBoundBox(camera,effect.alternativa3d::aabb,alternativa3d::localToCameraTransform,16711680);
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ package alternativa.engine3d.lights
|
||||
var debug:int = 0;
|
||||
if(camera.debug)
|
||||
{
|
||||
debug = int(camera.alternativa3d::checkInDebug(this));
|
||||
debug = camera.alternativa3d::checkInDebug(this);
|
||||
if(Boolean(debug & Debug.BOUNDS) && boundBox != null)
|
||||
{
|
||||
Debug.alternativa3d::drawBoundBox(camera,boundBox,alternativa3d::localToCameraTransform);
|
||||
|
||||
@@ -34,7 +34,7 @@ package alternativa.engine3d.lights
|
||||
var debug:int = 0;
|
||||
if(camera.debug)
|
||||
{
|
||||
debug = int(camera.alternativa3d::checkInDebug(this));
|
||||
debug = camera.alternativa3d::checkInDebug(this);
|
||||
if(Boolean(debug & Debug.BOUNDS) && boundBox != null)
|
||||
{
|
||||
Debug.alternativa3d::drawBoundBox(camera,boundBox,alternativa3d::localToCameraTransform);
|
||||
|
||||
@@ -62,7 +62,7 @@ package alternativa.engine3d.lights
|
||||
var debug:int = 0;
|
||||
if(camera.debug)
|
||||
{
|
||||
debug = int(camera.alternativa3d::checkInDebug(this));
|
||||
debug = camera.alternativa3d::checkInDebug(this);
|
||||
if(Boolean(debug & Debug.BOUNDS) && boundBox != null)
|
||||
{
|
||||
Debug.alternativa3d::drawBoundBox(camera,boundBox,alternativa3d::localToCameraTransform);
|
||||
@@ -72,9 +72,9 @@ package alternativa.engine3d.lights
|
||||
|
||||
override alternativa3d function checkBound(targetObject:Object3D) : Boolean
|
||||
{
|
||||
var rScale:Number = Number(Math.sqrt(alternativa3d::name_80.a * alternativa3d::name_80.a + alternativa3d::name_80.e * alternativa3d::name_80.e + alternativa3d::name_80.i * alternativa3d::name_80.i));
|
||||
rScale += Math.sqrt(alternativa3d::name_80.b * alternativa3d::name_80.b + alternativa3d::name_80.f * alternativa3d::name_80.f + alternativa3d::name_80.j * alternativa3d::name_80.j);
|
||||
rScale += Math.sqrt(alternativa3d::name_80.c * alternativa3d::name_80.c + alternativa3d::name_80.g * alternativa3d::name_80.g + alternativa3d::name_80.k * alternativa3d::name_80.k);
|
||||
var rScale:Number = Number(Math.sqrt(alternativa3d::_-cl.a * alternativa3d::_-cl.a + alternativa3d::_-cl.e * alternativa3d::_-cl.e + alternativa3d::_-cl.i * alternativa3d::_-cl.i));
|
||||
rScale += Math.sqrt(alternativa3d::_-cl.b * alternativa3d::_-cl.b + alternativa3d::_-cl.f * alternativa3d::_-cl.f + alternativa3d::_-cl.j * alternativa3d::_-cl.j);
|
||||
rScale += Math.sqrt(alternativa3d::_-cl.c * alternativa3d::_-cl.c + alternativa3d::_-cl.g * alternativa3d::_-cl.g + alternativa3d::_-cl.k * alternativa3d::_-cl.k);
|
||||
rScale /= 3;
|
||||
rScale *= this.attenuationEnd;
|
||||
rScale *= rScale;
|
||||
@@ -84,9 +84,9 @@ package alternativa.engine3d.lights
|
||||
var minY:Number = bb.minY;
|
||||
var minZ:Number = bb.minZ;
|
||||
var maxX:Number = bb.maxX;
|
||||
var px:Number = Number(alternativa3d::name_80.d);
|
||||
var py:Number = Number(alternativa3d::name_80.h);
|
||||
var pz:Number = Number(alternativa3d::name_80.l);
|
||||
var px:Number = Number(alternativa3d::_-cl.d);
|
||||
var py:Number = Number(alternativa3d::_-cl.h);
|
||||
var pz:Number = Number(alternativa3d::_-cl.l);
|
||||
var maxY:Number = bb.maxY;
|
||||
var maxZ:Number = bb.maxZ;
|
||||
if(px < minX)
|
||||
|
||||
@@ -59,7 +59,7 @@ package alternativa.engine3d.lights
|
||||
var debug:int = 0;
|
||||
if(camera.debug)
|
||||
{
|
||||
debug = int(camera.alternativa3d::checkInDebug(this));
|
||||
debug = camera.alternativa3d::checkInDebug(this);
|
||||
if(Boolean(debug & Debug.BOUNDS) && boundBox != null)
|
||||
{
|
||||
Debug.alternativa3d::drawBoundBox(camera,boundBox,alternativa3d::localToCameraTransform);
|
||||
@@ -80,22 +80,22 @@ package alternativa.engine3d.lights
|
||||
var w:Number = (maxX - minX) * 0.5;
|
||||
var l:Number = (maxY - minY) * 0.5;
|
||||
var h:Number = (maxZ - minZ) * 0.5;
|
||||
var ax:Number = alternativa3d::name_80.a * w;
|
||||
var ay:Number = alternativa3d::name_80.e * w;
|
||||
var az:Number = alternativa3d::name_80.i * w;
|
||||
var bx:Number = alternativa3d::name_80.b * l;
|
||||
var by:Number = alternativa3d::name_80.f * l;
|
||||
var bz:Number = alternativa3d::name_80.j * l;
|
||||
var cx:Number = alternativa3d::name_80.c * h;
|
||||
var cy:Number = alternativa3d::name_80.g * h;
|
||||
var cz:Number = alternativa3d::name_80.k * h;
|
||||
var ax:Number = alternativa3d::_-cl.a * w;
|
||||
var ay:Number = alternativa3d::_-cl.e * w;
|
||||
var az:Number = alternativa3d::_-cl.i * w;
|
||||
var bx:Number = alternativa3d::_-cl.b * l;
|
||||
var by:Number = alternativa3d::_-cl.f * l;
|
||||
var bz:Number = alternativa3d::_-cl.j * l;
|
||||
var cx:Number = alternativa3d::_-cl.c * h;
|
||||
var cy:Number = alternativa3d::_-cl.g * h;
|
||||
var cz:Number = alternativa3d::_-cl.k * h;
|
||||
var objectBB:BoundBox = targetObject.boundBox;
|
||||
var hw:Number = (objectBB.maxX - objectBB.minX) * 0.5;
|
||||
var hl:Number = (objectBB.maxY - objectBB.minY) * 0.5;
|
||||
var hh:Number = (objectBB.maxZ - objectBB.minZ) * 0.5;
|
||||
var dx:Number = alternativa3d::name_80.a * (minX + w) + alternativa3d::name_80.b * (minY + l) + alternativa3d::name_80.c * (minZ + h) + alternativa3d::name_80.d - objectBB.minX - hw;
|
||||
var dy:Number = alternativa3d::name_80.e * (minX + w) + alternativa3d::name_80.f * (minY + l) + alternativa3d::name_80.g * (minZ + h) + alternativa3d::name_80.h - objectBB.minY - hl;
|
||||
var dz:Number = alternativa3d::name_80.i * (minX + w) + alternativa3d::name_80.j * (minY + l) + alternativa3d::name_80.k * (minZ + h) + alternativa3d::name_80.l - objectBB.minZ - hh;
|
||||
var dx:Number = alternativa3d::_-cl.a * (minX + w) + alternativa3d::_-cl.b * (minY + l) + alternativa3d::_-cl.c * (minZ + h) + alternativa3d::_-cl.d - objectBB.minX - hw;
|
||||
var dy:Number = alternativa3d::_-cl.e * (minX + w) + alternativa3d::_-cl.f * (minY + l) + alternativa3d::_-cl.g * (minZ + h) + alternativa3d::_-cl.h - objectBB.minY - hl;
|
||||
var dz:Number = alternativa3d::_-cl.i * (minX + w) + alternativa3d::_-cl.j * (minY + l) + alternativa3d::_-cl.k * (minZ + h) + alternativa3d::_-cl.l - objectBB.minZ - hh;
|
||||
sum = 0;
|
||||
if(ax >= 0)
|
||||
{
|
||||
@@ -208,7 +208,7 @@ package alternativa.engine3d.lights
|
||||
return false;
|
||||
}
|
||||
sum = 0;
|
||||
pro = alternativa3d::name_80.a * ax + alternativa3d::name_80.e * ay + alternativa3d::name_80.i * az;
|
||||
pro = alternativa3d::_-cl.a * ax + alternativa3d::_-cl.e * ay + alternativa3d::_-cl.i * az;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum += pro;
|
||||
@@ -217,7 +217,7 @@ package alternativa.engine3d.lights
|
||||
{
|
||||
sum -= pro;
|
||||
}
|
||||
pro = alternativa3d::name_80.a * bx + alternativa3d::name_80.e * by + alternativa3d::name_80.i * bz;
|
||||
pro = alternativa3d::_-cl.a * bx + alternativa3d::_-cl.e * by + alternativa3d::_-cl.i * bz;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum += pro;
|
||||
@@ -226,7 +226,7 @@ package alternativa.engine3d.lights
|
||||
{
|
||||
sum -= pro;
|
||||
}
|
||||
pro = alternativa3d::name_80.a * cx + alternativa3d::name_80.e * cy + alternativa3d::name_80.i * cz;
|
||||
pro = alternativa3d::_-cl.a * cx + alternativa3d::_-cl.e * cy + alternativa3d::_-cl.i * cz;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum += pro;
|
||||
@@ -235,31 +235,31 @@ package alternativa.engine3d.lights
|
||||
{
|
||||
sum -= pro;
|
||||
}
|
||||
if(alternativa3d::name_80.a >= 0)
|
||||
if(alternativa3d::_-cl.a >= 0)
|
||||
{
|
||||
sum += alternativa3d::name_80.a * hw;
|
||||
sum += alternativa3d::_-cl.a * hw;
|
||||
}
|
||||
else
|
||||
{
|
||||
sum -= alternativa3d::name_80.a * hw;
|
||||
sum -= alternativa3d::_-cl.a * hw;
|
||||
}
|
||||
if(alternativa3d::name_80.e >= 0)
|
||||
if(alternativa3d::_-cl.e >= 0)
|
||||
{
|
||||
sum += alternativa3d::name_80.e * hl;
|
||||
sum += alternativa3d::_-cl.e * hl;
|
||||
}
|
||||
else
|
||||
{
|
||||
sum -= alternativa3d::name_80.e * hl;
|
||||
sum -= alternativa3d::_-cl.e * hl;
|
||||
}
|
||||
if(alternativa3d::name_80.i >= 0)
|
||||
if(alternativa3d::_-cl.i >= 0)
|
||||
{
|
||||
sum += alternativa3d::name_80.i * hh;
|
||||
sum += alternativa3d::_-cl.i * hh;
|
||||
}
|
||||
else
|
||||
{
|
||||
sum -= alternativa3d::name_80.i * hh;
|
||||
sum -= alternativa3d::_-cl.i * hh;
|
||||
}
|
||||
pro = alternativa3d::name_80.a * dx + alternativa3d::name_80.e * dy + alternativa3d::name_80.i * dz;
|
||||
pro = alternativa3d::_-cl.a * dx + alternativa3d::_-cl.e * dy + alternativa3d::_-cl.i * dz;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum -= pro;
|
||||
@@ -273,7 +273,7 @@ package alternativa.engine3d.lights
|
||||
return false;
|
||||
}
|
||||
sum = 0;
|
||||
pro = alternativa3d::name_80.b * ax + alternativa3d::name_80.f * ay + alternativa3d::name_80.j * az;
|
||||
pro = alternativa3d::_-cl.b * ax + alternativa3d::_-cl.f * ay + alternativa3d::_-cl.j * az;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum += pro;
|
||||
@@ -282,7 +282,7 @@ package alternativa.engine3d.lights
|
||||
{
|
||||
sum -= pro;
|
||||
}
|
||||
pro = alternativa3d::name_80.b * bx + alternativa3d::name_80.f * by + alternativa3d::name_80.j * bz;
|
||||
pro = alternativa3d::_-cl.b * bx + alternativa3d::_-cl.f * by + alternativa3d::_-cl.j * bz;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum += pro;
|
||||
@@ -291,7 +291,7 @@ package alternativa.engine3d.lights
|
||||
{
|
||||
sum -= pro;
|
||||
}
|
||||
pro = alternativa3d::name_80.b * cx + alternativa3d::name_80.f * cy + alternativa3d::name_80.j * cz;
|
||||
pro = alternativa3d::_-cl.b * cx + alternativa3d::_-cl.f * cy + alternativa3d::_-cl.j * cz;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum += pro;
|
||||
@@ -300,31 +300,31 @@ package alternativa.engine3d.lights
|
||||
{
|
||||
sum -= pro;
|
||||
}
|
||||
if(alternativa3d::name_80.b >= 0)
|
||||
if(alternativa3d::_-cl.b >= 0)
|
||||
{
|
||||
sum += alternativa3d::name_80.b * hw;
|
||||
sum += alternativa3d::_-cl.b * hw;
|
||||
}
|
||||
else
|
||||
{
|
||||
sum -= alternativa3d::name_80.b * hw;
|
||||
sum -= alternativa3d::_-cl.b * hw;
|
||||
}
|
||||
if(alternativa3d::name_80.f >= 0)
|
||||
if(alternativa3d::_-cl.f >= 0)
|
||||
{
|
||||
sum += alternativa3d::name_80.f * hl;
|
||||
sum += alternativa3d::_-cl.f * hl;
|
||||
}
|
||||
else
|
||||
{
|
||||
sum -= alternativa3d::name_80.f * hl;
|
||||
sum -= alternativa3d::_-cl.f * hl;
|
||||
}
|
||||
if(alternativa3d::name_80.j >= 0)
|
||||
if(alternativa3d::_-cl.j >= 0)
|
||||
{
|
||||
sum += alternativa3d::name_80.j * hh;
|
||||
sum += alternativa3d::_-cl.j * hh;
|
||||
}
|
||||
else
|
||||
{
|
||||
sum -= alternativa3d::name_80.j * hh;
|
||||
sum -= alternativa3d::_-cl.j * hh;
|
||||
}
|
||||
pro = alternativa3d::name_80.b * dx + alternativa3d::name_80.f * dy + alternativa3d::name_80.j * dz;
|
||||
pro = alternativa3d::_-cl.b * dx + alternativa3d::_-cl.f * dy + alternativa3d::_-cl.j * dz;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum -= pro;
|
||||
@@ -335,7 +335,7 @@ package alternativa.engine3d.lights
|
||||
return false;
|
||||
}
|
||||
sum = 0;
|
||||
pro = alternativa3d::name_80.c * ax + alternativa3d::name_80.g * ay + alternativa3d::name_80.k * az;
|
||||
pro = alternativa3d::_-cl.c * ax + alternativa3d::_-cl.g * ay + alternativa3d::_-cl.k * az;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum += pro;
|
||||
@@ -344,7 +344,7 @@ package alternativa.engine3d.lights
|
||||
{
|
||||
sum -= pro;
|
||||
}
|
||||
pro = alternativa3d::name_80.c * bx + alternativa3d::name_80.g * by + alternativa3d::name_80.k * bz;
|
||||
pro = alternativa3d::_-cl.c * bx + alternativa3d::_-cl.g * by + alternativa3d::_-cl.k * bz;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum += pro;
|
||||
@@ -353,7 +353,7 @@ package alternativa.engine3d.lights
|
||||
{
|
||||
sum -= pro;
|
||||
}
|
||||
pro = alternativa3d::name_80.c * cx + alternativa3d::name_80.g * cy + alternativa3d::name_80.k * cz;
|
||||
pro = alternativa3d::_-cl.c * cx + alternativa3d::_-cl.g * cy + alternativa3d::_-cl.k * cz;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum += pro;
|
||||
@@ -362,31 +362,31 @@ package alternativa.engine3d.lights
|
||||
{
|
||||
sum -= pro;
|
||||
}
|
||||
if(alternativa3d::name_80.c >= 0)
|
||||
if(alternativa3d::_-cl.c >= 0)
|
||||
{
|
||||
sum += alternativa3d::name_80.c * hw;
|
||||
sum += alternativa3d::_-cl.c * hw;
|
||||
}
|
||||
else
|
||||
{
|
||||
sum -= alternativa3d::name_80.c * hw;
|
||||
sum -= alternativa3d::_-cl.c * hw;
|
||||
}
|
||||
if(alternativa3d::name_80.g >= 0)
|
||||
if(alternativa3d::_-cl.g >= 0)
|
||||
{
|
||||
sum += alternativa3d::name_80.g * hl;
|
||||
sum += alternativa3d::_-cl.g * hl;
|
||||
}
|
||||
else
|
||||
{
|
||||
sum -= alternativa3d::name_80.g * hl;
|
||||
sum -= alternativa3d::_-cl.g * hl;
|
||||
}
|
||||
if(alternativa3d::name_80.k >= 0)
|
||||
if(alternativa3d::_-cl.k >= 0)
|
||||
{
|
||||
sum += alternativa3d::name_80.k * hh;
|
||||
sum += alternativa3d::_-cl.k * hh;
|
||||
}
|
||||
else
|
||||
{
|
||||
sum -= alternativa3d::name_80.k * hh;
|
||||
sum -= alternativa3d::_-cl.k * hh;
|
||||
}
|
||||
pro = alternativa3d::name_80.c * dx + alternativa3d::name_80.g * dy + alternativa3d::name_80.k * dz;
|
||||
pro = alternativa3d::_-cl.c * dx + alternativa3d::_-cl.g * dy + alternativa3d::_-cl.k * dz;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum -= pro;
|
||||
|
||||
@@ -1,96 +1,96 @@
|
||||
package package_83
|
||||
package alternativa.engine3d.loaders
|
||||
{
|
||||
import alternativa.engine3d.alternativa3d;
|
||||
import alternativa.engine3d.core.BoundBox;
|
||||
import alternativa.engine3d.core.Object3D;
|
||||
import alternativa.engine3d.core.VertexAttributes;
|
||||
import alternativa.engine3d.core.VertexStream;
|
||||
import alternativa.engine3d.lights.AmbientLight;
|
||||
import alternativa.engine3d.lights.DirectionalLight;
|
||||
import alternativa.engine3d.lights.OmniLight;
|
||||
import alternativa.engine3d.lights.SpotLight;
|
||||
import alternativa.engine3d.materials.A3DUtils;
|
||||
import alternativa.engine3d.objects.Joint;
|
||||
import alternativa.engine3d.objects.Mesh;
|
||||
import alternativa.engine3d.objects.Skin;
|
||||
import alternativa.engine3d.resources.ExternalTextureResource;
|
||||
import alternativa.engine3d.resources.Geometry;
|
||||
import alternativa.osgi.OSGi;
|
||||
import alternativa.osgi.service.clientlog.IClientLog;
|
||||
import alternativa.protocol.ICodec;
|
||||
import alternativa.protocol.IProtocol;
|
||||
import alternativa.protocol.OptionalMap;
|
||||
import alternativa.protocol.ProtocolBuffer;
|
||||
import alternativa.protocol.impl.OptionalMapCodecHelper;
|
||||
import alternativa.protocol.impl.PacketHelper;
|
||||
import alternativa.protocol.impl.Protocol;
|
||||
import alternativa.protocol.info.TypeCodecInfo;
|
||||
import alternativa.protocol.osgi.ProtocolActivator;
|
||||
import alternativa.types.Long;
|
||||
import commons.A3DMatrix;
|
||||
import commons.Id;
|
||||
import flash.geom.Matrix3D;
|
||||
import flash.geom.Vector3D;
|
||||
import flash.utils.ByteArray;
|
||||
import flash.utils.Dictionary;
|
||||
import flash.utils.Endian;
|
||||
import package_10.name_23;
|
||||
import package_13.name_28;
|
||||
import package_14.name_3;
|
||||
import package_17.name_28;
|
||||
import package_19.class_16;
|
||||
import package_19.name_523;
|
||||
import package_19.name_531;
|
||||
import package_21.name_136;
|
||||
import package_21.name_85;
|
||||
import package_3.name_29;
|
||||
import package_32.name_180;
|
||||
import package_33.name_117;
|
||||
import package_33.name_130;
|
||||
import package_33.name_334;
|
||||
import package_33.name_542;
|
||||
import package_35.DirectionalLight;
|
||||
import package_35.OmniLight;
|
||||
import package_35.SpotLight;
|
||||
import package_35.name_530;
|
||||
import package_85.A3D2AmbientLight;
|
||||
import package_85.A3D2Box;
|
||||
import package_85.A3D2DirectionalLight;
|
||||
import package_85.A3D2Joint;
|
||||
import package_85.A3D2Mesh;
|
||||
import package_85.A3D2Object;
|
||||
import package_85.A3D2OmniLight;
|
||||
import package_85.A3D2Skin;
|
||||
import package_85.A3D2SpotLight;
|
||||
import package_85.A3D2Surface;
|
||||
import package_85.A3D2Transform;
|
||||
import package_86.A3D2IndexBuffer;
|
||||
import package_86.A3D2VertexAttributes;
|
||||
import package_86.A3D2VertexBuffer;
|
||||
import package_87.A3D2Image;
|
||||
import package_87.A3D2Map;
|
||||
import package_87.A3D2Material;
|
||||
import package_88.name_522;
|
||||
import package_89.name_525;
|
||||
import package_89.name_529;
|
||||
import package_89.name_533;
|
||||
import package_89.name_536;
|
||||
import package_90.name_524;
|
||||
import package_91.A3DImage;
|
||||
import package_91.A3DMap;
|
||||
import package_91.A3DMaterial;
|
||||
import package_92.name_527;
|
||||
import package_92.name_535;
|
||||
import package_92.name_538;
|
||||
import package_93.A3DBox;
|
||||
import package_93.A3DObject;
|
||||
import package_93.A3DSurface;
|
||||
import package_94.A3DGeometry;
|
||||
import package_94.A3DIndexBuffer;
|
||||
import package_94.A3DVertexBuffer;
|
||||
import package_95.name_526;
|
||||
import package_96.name_528;
|
||||
import package_97.name_534;
|
||||
import package_97.name_540;
|
||||
import package_98.name_543;
|
||||
import platform.client.a3d.osgi.Activator;
|
||||
import platform.clients.fp10.libraries.alternativaprotocol.Activator;
|
||||
import versions.version1.a3d.A3D;
|
||||
import versions.version1.a3d.geometry.A3DGeometry;
|
||||
import versions.version1.a3d.geometry.A3DIndexBuffer;
|
||||
import versions.version1.a3d.geometry.A3DVertexBuffer;
|
||||
import versions.version1.a3d.id.ParentId;
|
||||
import versions.version1.a3d.materials.A3DImage;
|
||||
import versions.version1.a3d.materials.A3DMap;
|
||||
import versions.version1.a3d.materials.A3DMaterial;
|
||||
import versions.version1.a3d.objects.A3DBox;
|
||||
import versions.version1.a3d.objects.A3DObject;
|
||||
import versions.version1.a3d.objects.A3DSurface;
|
||||
import versions.version2.a3d.A3D2;
|
||||
import versions.version2.a3d.geometry.A3D2IndexBuffer;
|
||||
import versions.version2.a3d.geometry.A3D2VertexAttributes;
|
||||
import versions.version2.a3d.geometry.A3D2VertexBuffer;
|
||||
import versions.version2.a3d.materials.A3D2Image;
|
||||
import versions.version2.a3d.materials.A3D2Map;
|
||||
import versions.version2.a3d.materials.A3D2Material;
|
||||
import versions.version2.a3d.objects.A3D2AmbientLight;
|
||||
import versions.version2.a3d.objects.A3D2Box;
|
||||
import versions.version2.a3d.objects.A3D2DirectionalLight;
|
||||
import versions.version2.a3d.objects.A3D2Joint;
|
||||
import versions.version2.a3d.objects.A3D2Mesh;
|
||||
import versions.version2.a3d.objects.A3D2Object;
|
||||
import versions.version2.a3d.objects.A3D2OmniLight;
|
||||
import versions.version2.a3d.objects.A3D2Skin;
|
||||
import versions.version2.a3d.objects.A3D2SpotLight;
|
||||
import versions.version2.a3d.objects.A3D2Surface;
|
||||
import versions.version2.a3d.objects.A3D2Transform;
|
||||
|
||||
use namespace alternativa3d;
|
||||
|
||||
public class name_470
|
||||
public class ParserA3D
|
||||
{
|
||||
public var hierarchy:Vector.<name_130>;
|
||||
public var hierarchy:Vector.<Object3D>;
|
||||
|
||||
public var objects:Vector.<name_130>;
|
||||
public var objects:Vector.<Object3D>;
|
||||
|
||||
private var maps:Dictionary;
|
||||
|
||||
private var materials:Dictionary;
|
||||
|
||||
private var protocol:name_527;
|
||||
private var protocol:Protocol;
|
||||
|
||||
private var var_628:Object;
|
||||
private var §_-gk§:Object;
|
||||
|
||||
private var var_629:Boolean = false;
|
||||
private var §_-Y8§:Boolean = false;
|
||||
|
||||
public function name_470()
|
||||
public function ParserA3D()
|
||||
{
|
||||
super();
|
||||
this.init();
|
||||
}
|
||||
|
||||
private static function method_290(source:name_526) : name_524
|
||||
private static function convert1_2(source:A3D) : A3D2
|
||||
{
|
||||
var i:int = 0;
|
||||
var count:int = 0;
|
||||
@@ -119,7 +119,7 @@ package package_83
|
||||
var kCount:int = 0;
|
||||
var destVertexBuffer:A3D2VertexBuffer = null;
|
||||
var attr:int = 0;
|
||||
var destObject:A3D2Object = null;
|
||||
var _loc47_:A3D2Object = null;
|
||||
var sourceBoxes:Vector.<A3DBox> = source.boxes;
|
||||
var destBoxes:Vector.<A3D2Box> = null;
|
||||
if(sourceBoxes != null)
|
||||
@@ -172,7 +172,7 @@ package package_83
|
||||
for(i = 0,count = int(sourceMaterials.length); i < count; i++)
|
||||
{
|
||||
sourceMaterial = sourceMaterials[i];
|
||||
destMaterial = new A3D2Material(method_280(sourceMaterial.diffuseMapId),method_280(sourceMaterial.glossinessMapId),method_280(sourceMaterial.id),method_280(sourceMaterial.lightMapId),method_280(sourceMaterial.normalMapId),method_280(sourceMaterial.opacityMapId),-1,method_280(sourceMaterial.specularMapId));
|
||||
destMaterial = new A3D2Material(idToInt(sourceMaterial.diffuseMapId),idToInt(sourceMaterial.glossinessMapId),idToInt(sourceMaterial.id),idToInt(sourceMaterial.lightMapId),idToInt(sourceMaterial.normalMapId),idToInt(sourceMaterial.opacityMapId),-1,idToInt(sourceMaterial.specularMapId));
|
||||
destMaterials[i] = destMaterial;
|
||||
}
|
||||
}
|
||||
@@ -204,7 +204,7 @@ package package_83
|
||||
sourceIndexBuffer = sourceGeometry.indexBuffer;
|
||||
sourceVertexBuffers = sourceGeometry.vertexBuffers;
|
||||
destIndexBuffer = new A3D2IndexBuffer(sourceIndexBuffer.byteBuffer,lastIndexBufferIndex++,sourceIndexBuffer.indexCount);
|
||||
destIndexBufferId = int(destIndexBuffer.id);
|
||||
destIndexBufferId = destIndexBuffer.id;
|
||||
destIndexBuffers.push(destIndexBuffer);
|
||||
for(j = 0,inCount = int(sourceVertexBuffers.length); j < inCount; j++)
|
||||
{
|
||||
@@ -240,41 +240,41 @@ package package_83
|
||||
destVertexBuffersIds.push(destVertexBuffer.id);
|
||||
}
|
||||
}
|
||||
destMesh = new A3D2Mesh(method_280(sourceObject.boundBoxId),method_284(sourceObject.id),destIndexBufferId,sourceObject.name,method_285(sourceObject.parentId),method_288(sourceObject.surfaces),new A3D2Transform(sourceObject.transformation.matrix),destVertexBuffersIds,sourceObject.visible);
|
||||
destMesh = new A3D2Mesh(idToInt(sourceObject.boundBoxId),idToLong(sourceObject.id),destIndexBufferId,sourceObject.name,convertParent1_2(sourceObject.parentId),convertSurfaces1_2(sourceObject.surfaces),new A3D2Transform(sourceObject.transformation.matrix),destVertexBuffersIds,sourceObject.visible);
|
||||
destMeshes.push(destMesh);
|
||||
objectsMap[sourceObject.id.id] = destMesh;
|
||||
}
|
||||
else
|
||||
{
|
||||
destObject = new A3D2Object(method_280(sourceObject.boundBoxId),method_284(sourceObject.id),sourceObject.name,method_285(sourceObject.parentId),new A3D2Transform(sourceObject.transformation.matrix),sourceObject.visible);
|
||||
destObjects.push(destObject);
|
||||
objectsMap[sourceObject.id.id] = destObject;
|
||||
_loc47_ = new A3D2Object(idToInt(sourceObject.boundBoxId),idToLong(sourceObject.id),sourceObject.name,convertParent1_2(sourceObject.parentId),new A3D2Transform(sourceObject.transformation.matrix),sourceObject.visible);
|
||||
destObjects.push(_loc47_);
|
||||
objectsMap[sourceObject.id.id] = _loc47_;
|
||||
}
|
||||
}
|
||||
}
|
||||
return new name_524(null,null,null,destBoxes,null,null,null,destImages,destIndexBuffers,null,destMaps,destMaterials,destMeshes != null && destMeshes.length > 0 ? destMeshes : null,destObjects != null && destObjects.length > 0 ? destObjects : null,null,null,null,null,destVertexBuffers);
|
||||
return new A3D2(null,null,null,destBoxes,null,null,null,destImages,destIndexBuffers,null,destMaps,destMaterials,destMeshes != null && destMeshes.length > 0 ? destMeshes : null,destObjects != null && destObjects.length > 0 ? destObjects : null,null,null,null,null,destVertexBuffers);
|
||||
}
|
||||
|
||||
private static function method_280(id:name_540) : int
|
||||
private static function idToInt(id:Id) : int
|
||||
{
|
||||
return id != null ? int(id.id) : -1;
|
||||
}
|
||||
|
||||
private static function method_284(id:name_540) : name_522
|
||||
private static function idToLong(id:Id) : Long
|
||||
{
|
||||
return id != null ? name_522.name_532(id.id) : name_522.name_532(-1);
|
||||
return id != null ? Long.fromInt(id.id) : Long.fromInt(-1);
|
||||
}
|
||||
|
||||
private static function method_285(parentId:name_543) : name_522
|
||||
private static function convertParent1_2(parentId:ParentId) : Long
|
||||
{
|
||||
if(parentId == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return parentId != null ? name_522.name_532(parentId.id) : null;
|
||||
return parentId != null ? Long.fromInt(parentId.id) : null;
|
||||
}
|
||||
|
||||
private static function method_288(source:Vector.<A3DSurface>) : Vector.<A3D2Surface>
|
||||
private static function convertSurfaces1_2(source:Vector.<A3DSurface>) : Vector.<A3D2Surface>
|
||||
{
|
||||
var sourceSurface:A3DSurface = null;
|
||||
var destSurface:A3D2Surface = null;
|
||||
@@ -282,13 +282,13 @@ package package_83
|
||||
for(var i:int = 0,var count:int = int(source.length); i < count; i++)
|
||||
{
|
||||
sourceSurface = source[i];
|
||||
destSurface = new A3D2Surface(sourceSurface.indexBegin,method_280(sourceSurface.materialId),sourceSurface.numTriangles);
|
||||
destSurface = new A3D2Surface(sourceSurface.indexBegin,idToInt(sourceSurface.materialId),sourceSurface.numTriangles);
|
||||
dest[i] = destSurface;
|
||||
}
|
||||
return dest;
|
||||
}
|
||||
|
||||
public function method_132(input:ByteArray) : void
|
||||
public function parse(input:ByteArray) : void
|
||||
{
|
||||
var version:int = 0;
|
||||
try
|
||||
@@ -301,7 +301,7 @@ package package_83
|
||||
}
|
||||
else
|
||||
{
|
||||
this.method_292(input);
|
||||
this.parseVersionOver1(input);
|
||||
}
|
||||
}
|
||||
catch(e:Error)
|
||||
@@ -310,9 +310,9 @@ package package_83
|
||||
}
|
||||
}
|
||||
|
||||
public function method_295(name:String) : name_130
|
||||
public function getObjectByName(name:String) : Object3D
|
||||
{
|
||||
var object:name_130 = null;
|
||||
var object:Object3D = null;
|
||||
for each(object in this.objects)
|
||||
{
|
||||
if(object.name == name)
|
||||
@@ -325,41 +325,41 @@ package package_83
|
||||
|
||||
private function init() : void
|
||||
{
|
||||
if(this.var_629)
|
||||
if(this.§_-Y8§)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if(name_3.name_8() != null)
|
||||
if(OSGi.getInstance() != null)
|
||||
{
|
||||
this.protocol = name_527(name_3.name_8().name_21(name_529));
|
||||
this.protocol = Protocol(OSGi.getInstance().getService(IProtocol));
|
||||
return;
|
||||
}
|
||||
name_3.clientLog = new DummyClientLog();
|
||||
var osgi:name_3 = new name_3();
|
||||
osgi.method_38(name_180,new DummyClientLog());
|
||||
new name_23().start(osgi);
|
||||
new package_17.name_28().start(osgi);
|
||||
new package_13.name_28().start(osgi);
|
||||
this.protocol = name_527(osgi.name_21(name_529));
|
||||
this.var_629 = true;
|
||||
OSGi.clientLog = new DummyClientLog();
|
||||
var osgi:OSGi = new OSGi();
|
||||
osgi.registerService(IClientLog,new DummyClientLog());
|
||||
new ProtocolActivator().start(osgi);
|
||||
new platform.client.a3d.osgi.Activator().start(osgi);
|
||||
new platform.clients.fp10.libraries.alternativaprotocol.Activator().start(osgi);
|
||||
this.protocol = Protocol(osgi.getService(IProtocol));
|
||||
this.§_-Y8§ = true;
|
||||
}
|
||||
|
||||
private function parseVersion1(input:ByteArray) : void
|
||||
{
|
||||
input.position = 4;
|
||||
var nullMap:name_533 = name_538.name_541(input);
|
||||
nullMap.name_548(0);
|
||||
var nullMap:OptionalMap = OptionalMapCodecHelper.decodeNullMap(input);
|
||||
nullMap.setReadPosition(0);
|
||||
var data:ByteArray = new ByteArray();
|
||||
data.writeBytes(input,input.position);
|
||||
data.position = 0;
|
||||
var buffer:name_525 = new name_525(data,data,nullMap);
|
||||
var codec:name_536 = this.protocol.name_539(new name_528(name_526,false));
|
||||
var _a3d:name_526 = name_526(codec.name_537(buffer));
|
||||
var a3d2:name_524 = method_290(_a3d);
|
||||
this.method_286(a3d2);
|
||||
var buffer:ProtocolBuffer = new ProtocolBuffer(data,data,nullMap);
|
||||
var codec:ICodec = this.protocol.getCodec(new TypeCodecInfo(A3D,false));
|
||||
var _a3d:A3D = A3D(codec.decode(buffer));
|
||||
var a3d2:A3D2 = convert1_2(_a3d);
|
||||
this.doParse2_0(a3d2);
|
||||
}
|
||||
|
||||
private function method_286(a3d:name_524) : void
|
||||
private function doParse2_0(a3d:A3D2) : void
|
||||
{
|
||||
var a3DObject:A3D2Object = null;
|
||||
var a3DMesh:A3D2Mesh = null;
|
||||
@@ -375,17 +375,17 @@ package package_83
|
||||
var a3DDirLight:A3D2DirectionalLight = null;
|
||||
var a3DSkin:A3D2Skin = null;
|
||||
var a3DJoint:A3D2Joint = null;
|
||||
var parent:name_522 = null;
|
||||
var p:name_130 = null;
|
||||
var object:name_130 = null;
|
||||
var resJoint:name_523 = null;
|
||||
var resSkin:class_16 = null;
|
||||
var resAmbientLight:name_530 = null;
|
||||
var resObject:name_130 = null;
|
||||
var parent:Long = null;
|
||||
var p:Object3D = null;
|
||||
var object:Object3D = null;
|
||||
var resJoint:Joint = null;
|
||||
var resSkin:Mesh = null;
|
||||
var resAmbientLight:AmbientLight = null;
|
||||
var resObject:Object3D = null;
|
||||
var resOmniLight:OmniLight = null;
|
||||
var resSpotLight:SpotLight = null;
|
||||
var resDirLight:DirectionalLight = null;
|
||||
var resMesh:class_16 = null;
|
||||
var resMesh:Mesh = null;
|
||||
var objectsMap:Dictionary = new Dictionary();
|
||||
var a3DIndexBuffers:Dictionary = new Dictionary();
|
||||
var a3DVertexBuffers:Dictionary = new Dictionary();
|
||||
@@ -418,14 +418,14 @@ package package_83
|
||||
{
|
||||
a3DImages[a3DImage.id] = a3DImage;
|
||||
}
|
||||
this.hierarchy = new Vector.<name_130>();
|
||||
this.objects = new Vector.<name_130>();
|
||||
this.hierarchy = new Vector.<Object3D>();
|
||||
this.objects = new Vector.<Object3D>();
|
||||
this.maps = new Dictionary();
|
||||
this.materials = new Dictionary();
|
||||
this.var_628 = new Dictionary();
|
||||
this.§_-gk§ = new Dictionary();
|
||||
for each(a3DJoint in a3d.joints)
|
||||
{
|
||||
resJoint = new name_523();
|
||||
resJoint = new Joint();
|
||||
resJoint.visible = a3DJoint.visible;
|
||||
resJoint.name = a3DJoint.name;
|
||||
parents[resJoint] = a3DJoint.parentId;
|
||||
@@ -435,16 +435,16 @@ package package_83
|
||||
this.hierarchy.push(resJoint);
|
||||
}
|
||||
this.objects.push(resJoint);
|
||||
this.method_281(a3DJoint.transform,resJoint);
|
||||
this.decomposeTransformation(a3DJoint.transform,resJoint);
|
||||
a3DBox = a3DBoxes[a3DJoint.boundBoxId];
|
||||
if(a3DBox != null)
|
||||
{
|
||||
this.method_283(a3DBox.box,resJoint);
|
||||
this.parseBoundBox(a3DBox.box,resJoint);
|
||||
}
|
||||
}
|
||||
for each(a3DSkin in a3d.skins)
|
||||
{
|
||||
resSkin = this.method_291(a3DSkin,a3DIndexBuffers,a3DVertexBuffers,a3DMaterials,a3DMaps,a3DImages);
|
||||
resSkin = this.parseSkin(a3DSkin,a3DIndexBuffers,a3DVertexBuffers,a3DMaterials,a3DMaps,a3DImages);
|
||||
resSkin.visible = a3DSkin.visible;
|
||||
resSkin.name = a3DSkin.name;
|
||||
parents[resSkin] = a3DSkin.parentId;
|
||||
@@ -454,16 +454,16 @@ package package_83
|
||||
this.hierarchy.push(resSkin);
|
||||
}
|
||||
this.objects.push(resSkin);
|
||||
this.method_281(a3DSkin.transform,resSkin);
|
||||
this.decomposeTransformation(a3DSkin.transform,resSkin);
|
||||
a3DBox = a3DBoxes[a3DSkin.boundBoxId];
|
||||
if(a3DBox != null)
|
||||
{
|
||||
this.method_283(a3DBox.box,resSkin);
|
||||
this.parseBoundBox(a3DBox.box,resSkin);
|
||||
}
|
||||
}
|
||||
for each(a3DAmbientLight in a3d.ambientLights)
|
||||
{
|
||||
resAmbientLight = new name_530(a3DAmbientLight.color);
|
||||
resAmbientLight = new AmbientLight(a3DAmbientLight.color);
|
||||
resAmbientLight.intensity = a3DAmbientLight.intensity;
|
||||
resAmbientLight.visible = a3DAmbientLight.visible;
|
||||
resAmbientLight.name = a3DAmbientLight.name;
|
||||
@@ -474,16 +474,16 @@ package package_83
|
||||
this.hierarchy.push(resAmbientLight);
|
||||
}
|
||||
this.objects.push(resAmbientLight);
|
||||
this.method_281(a3DAmbientLight.transform,resAmbientLight);
|
||||
this.decomposeTransformation(a3DAmbientLight.transform,resAmbientLight);
|
||||
a3DBox = a3DBoxes[a3DAmbientLight.boundBoxId];
|
||||
if(a3DBox != null)
|
||||
{
|
||||
this.method_283(a3DBox.box,resAmbientLight);
|
||||
this.parseBoundBox(a3DBox.box,resAmbientLight);
|
||||
}
|
||||
}
|
||||
for each(a3DObject in a3d.objects)
|
||||
{
|
||||
resObject = new name_130();
|
||||
resObject = new Object3D();
|
||||
resObject.visible = a3DObject.visible;
|
||||
resObject.name = a3DObject.name;
|
||||
parents[resObject] = a3DObject.parentId;
|
||||
@@ -493,11 +493,11 @@ package package_83
|
||||
this.hierarchy.push(resObject);
|
||||
}
|
||||
this.objects.push(resObject);
|
||||
this.method_281(a3DObject.transform,resObject);
|
||||
this.decomposeTransformation(a3DObject.transform,resObject);
|
||||
a3DBox = a3DBoxes[a3DObject.boundBoxId];
|
||||
if(a3DBox != null)
|
||||
{
|
||||
this.method_283(a3DBox.box,resObject);
|
||||
this.parseBoundBox(a3DBox.box,resObject);
|
||||
}
|
||||
}
|
||||
for each(a3DOmniLight in a3d.omniLights)
|
||||
@@ -512,7 +512,7 @@ package package_83
|
||||
this.hierarchy.push(resOmniLight);
|
||||
}
|
||||
this.objects.push(resOmniLight);
|
||||
this.method_281(a3DOmniLight.transform,resOmniLight);
|
||||
this.decomposeTransformation(a3DOmniLight.transform,resOmniLight);
|
||||
}
|
||||
for each(a3DSpotLight in a3d.spotLights)
|
||||
{
|
||||
@@ -526,7 +526,7 @@ package package_83
|
||||
this.hierarchy.push(resSpotLight);
|
||||
}
|
||||
this.objects.push(resSpotLight);
|
||||
this.method_281(a3DSpotLight.transform,resSpotLight);
|
||||
this.decomposeTransformation(a3DSpotLight.transform,resSpotLight);
|
||||
}
|
||||
for each(a3DDirLight in a3d.directionalLights)
|
||||
{
|
||||
@@ -540,11 +540,11 @@ package package_83
|
||||
this.hierarchy.push(resDirLight);
|
||||
}
|
||||
this.objects.push(resDirLight);
|
||||
this.method_281(a3DDirLight.transform,resDirLight);
|
||||
this.decomposeTransformation(a3DDirLight.transform,resDirLight);
|
||||
}
|
||||
for each(a3DMesh in a3d.meshes)
|
||||
{
|
||||
resMesh = this.method_293(a3DMesh,a3DIndexBuffers,a3DVertexBuffers,a3DMaterials,a3DMaps,a3DImages);
|
||||
resMesh = this.parseMesh(a3DMesh,a3DIndexBuffers,a3DVertexBuffers,a3DMaterials,a3DMaps,a3DImages);
|
||||
resMesh.visible = a3DMesh.visible;
|
||||
resMesh.name = a3DMesh.name;
|
||||
parents[resMesh] = a3DMesh.parentId;
|
||||
@@ -554,11 +554,11 @@ package package_83
|
||||
this.hierarchy.push(resMesh);
|
||||
}
|
||||
this.objects.push(resMesh);
|
||||
this.method_281(a3DMesh.transform,resMesh);
|
||||
this.decomposeTransformation(a3DMesh.transform,resMesh);
|
||||
a3DBox = a3DBoxes[a3DMesh.boundBoxId];
|
||||
if(a3DBox != null)
|
||||
{
|
||||
this.method_283(a3DBox.box,resMesh);
|
||||
this.parseBoundBox(a3DBox.box,resMesh);
|
||||
}
|
||||
}
|
||||
for each(object in objectsMap)
|
||||
@@ -572,17 +572,17 @@ package package_83
|
||||
}
|
||||
}
|
||||
|
||||
private function method_296(source:Vector.<Vector.<name_522>>, objectsMap:Dictionary) : Vector.<Vector.<name_523>>
|
||||
private function parseSurfaceJoints(source:Vector.<Vector.<Long>>, objectsMap:Dictionary) : Vector.<Vector.<Joint>>
|
||||
{
|
||||
var vector:Vector.<name_522> = null;
|
||||
var resultVector:Vector.<name_523> = null;
|
||||
var vector:Vector.<Long> = null;
|
||||
var resultVector:Vector.<Joint> = null;
|
||||
var j:int = 0;
|
||||
var jcount:int = 0;
|
||||
var result:Vector.<Vector.<name_523>> = new Vector.<Vector.<name_523>>();
|
||||
var result:Vector.<Vector.<Joint>> = new Vector.<Vector.<Joint>>();
|
||||
for(var i:int = 0,var count:int = int(source.length); i < count; i++)
|
||||
{
|
||||
vector = source[i];
|
||||
resultVector = new Vector.<name_523>();
|
||||
resultVector = new Vector.<Joint>();
|
||||
for(j = 0,jcount = int(vector.length); j < jcount; j++)
|
||||
{
|
||||
resultVector[j] = objectsMap[vector[j]];
|
||||
@@ -592,12 +592,12 @@ package package_83
|
||||
return result;
|
||||
}
|
||||
|
||||
private function method_292(input:ByteArray) : void
|
||||
private function parseVersionOver1(input:ByteArray) : void
|
||||
{
|
||||
input.position = 0;
|
||||
var data:ByteArray = new ByteArray();
|
||||
var buffer:name_525 = new name_525(data,data,new name_533());
|
||||
name_535.name_546(input,buffer);
|
||||
var buffer:ProtocolBuffer = new ProtocolBuffer(data,data,new OptionalMap());
|
||||
PacketHelper.unwrapPacket(input,buffer);
|
||||
input.position = 0;
|
||||
var versionMajor:int = int(buffer.reader.readUnsignedShort());
|
||||
var versionMinor:int = int(buffer.reader.readUnsignedShort());
|
||||
@@ -608,16 +608,16 @@ package package_83
|
||||
}
|
||||
}
|
||||
|
||||
private function parseVersion2_0(buffer:name_525) : void
|
||||
private function parseVersion2_0(buffer:ProtocolBuffer) : void
|
||||
{
|
||||
var codec:name_536 = this.protocol.name_539(new name_528(name_524,false));
|
||||
var a3d:name_524 = name_524(codec.name_537(buffer));
|
||||
this.method_286(a3d);
|
||||
var codec:ICodec = this.protocol.getCodec(new TypeCodecInfo(A3D2,false));
|
||||
var a3d:A3D2 = A3D2(codec.decode(buffer));
|
||||
this.doParse2_0(a3d);
|
||||
}
|
||||
|
||||
private function method_283(box:Vector.<Number>, destination:name_130) : void
|
||||
private function parseBoundBox(box:Vector.<Number>, destination:Object3D) : void
|
||||
{
|
||||
destination.boundBox = new name_334();
|
||||
destination.boundBox = new BoundBox();
|
||||
destination.boundBox.minX = box[0];
|
||||
destination.boundBox.minY = box[1];
|
||||
destination.boundBox.minZ = box[2];
|
||||
@@ -626,13 +626,13 @@ package package_83
|
||||
destination.boundBox.maxZ = box[5];
|
||||
}
|
||||
|
||||
private function method_281(transform:A3D2Transform, obj:name_130) : void
|
||||
private function decomposeTransformation(transform:A3D2Transform, obj:Object3D) : void
|
||||
{
|
||||
if(transform == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var matrix:name_534 = transform.matrix;
|
||||
var matrix:A3DMatrix = transform.matrix;
|
||||
var mat:Matrix3D = new Matrix3D(Vector.<Number>([matrix.a,matrix.e,matrix.i,0,matrix.b,matrix.f,matrix.j,0,matrix.c,matrix.g,matrix.k,0,matrix.d,matrix.h,matrix.l,1]));
|
||||
var vecs:Vector.<Vector3D> = mat.decompose();
|
||||
obj.x = vecs[0].x;
|
||||
@@ -646,55 +646,55 @@ package package_83
|
||||
obj.scaleZ = vecs[2].z;
|
||||
}
|
||||
|
||||
private function method_294(transform:A3D2Transform, obj:name_523) : void
|
||||
private function decomposeBindTransformation(transform:A3D2Transform, obj:Joint) : void
|
||||
{
|
||||
if(transform == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var matrix:name_534 = transform.matrix;
|
||||
var matrix:A3DMatrix = transform.matrix;
|
||||
var mat:Vector.<Number> = Vector.<Number>([matrix.a,matrix.b,matrix.c,matrix.d,matrix.e,matrix.f,matrix.g,matrix.h,matrix.i,matrix.j,matrix.k,matrix.l]);
|
||||
obj.alternativa3d::name_545(mat);
|
||||
obj.alternativa3d::setBindPoseMatrix(mat);
|
||||
}
|
||||
|
||||
private function method_293(a3DMesh:A3D2Mesh, indexBuffers:Dictionary, vertexBuffers:Dictionary, materials:Dictionary, maps:Dictionary, images:Dictionary) : class_16
|
||||
private function parseMesh(a3DMesh:A3D2Mesh, indexBuffers:Dictionary, vertexBuffers:Dictionary, materials:Dictionary, maps:Dictionary, images:Dictionary) : Mesh
|
||||
{
|
||||
var s:A3D2Surface = null;
|
||||
var m:name_471 = null;
|
||||
var res:class_16 = new class_16();
|
||||
res.geometry = this.method_289(a3DMesh.indexBufferId,a3DMesh.vertexBuffers,indexBuffers,vertexBuffers);
|
||||
var m:ParserMaterial = null;
|
||||
var res:Mesh = new Mesh();
|
||||
res.geometry = this.parseGeometry(a3DMesh.indexBufferId,a3DMesh.vertexBuffers,indexBuffers,vertexBuffers);
|
||||
var surfaces:Vector.<A3D2Surface> = a3DMesh.surfaces;
|
||||
for(var i:int = 0; i < surfaces.length; i++)
|
||||
{
|
||||
s = surfaces[i];
|
||||
m = this.method_287(materials[s.materialId],maps,images);
|
||||
m = this.parseMaterial(materials[s.materialId],maps,images);
|
||||
res.addSurface(m,s.indexBegin,s.numTriangles);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
private function method_291(a3DSkin:A3D2Skin, indexBuffers:Dictionary, vertexBuffers:Dictionary, materials:Dictionary, maps:Dictionary, images:Dictionary) : name_531
|
||||
private function parseSkin(a3DSkin:A3D2Skin, indexBuffers:Dictionary, vertexBuffers:Dictionary, materials:Dictionary, maps:Dictionary, images:Dictionary) : Skin
|
||||
{
|
||||
var s:A3D2Surface = null;
|
||||
var m:name_471 = null;
|
||||
var res:name_531 = new name_531(1,a3DSkin.joints.length);
|
||||
res.geometry = this.method_289(a3DSkin.indexBufferId,a3DSkin.vertexBuffers,indexBuffers,vertexBuffers);
|
||||
var m:ParserMaterial = null;
|
||||
var res:Skin = new Skin(1,a3DSkin.joints.length);
|
||||
res.geometry = this.parseGeometry(a3DSkin.indexBufferId,a3DSkin.vertexBuffers,indexBuffers,vertexBuffers);
|
||||
var surfaces:Vector.<A3D2Surface> = a3DSkin.surfaces;
|
||||
for(var i:int = 0; i < surfaces.length; i++)
|
||||
{
|
||||
s = surfaces[i];
|
||||
m = this.method_287(materials[s.materialId],maps,images);
|
||||
m = this.parseMaterial(materials[s.materialId],maps,images);
|
||||
res.addSurface(m,s.indexBegin,s.numTriangles);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
private function method_297(geometry:name_136) : void
|
||||
private function traceGeometry(geometry:Geometry) : void
|
||||
{
|
||||
var offset:int = 0;
|
||||
var i:int = 0;
|
||||
var attr:int = 0;
|
||||
var vertexStream:name_542 = geometry.alternativa3d::_vertexStreams[0];
|
||||
var vertexStream:VertexStream = geometry.alternativa3d::_vertexStreams[0];
|
||||
var prev:int = -1;
|
||||
var stride:int = vertexStream.attributes.length * 4;
|
||||
var length:int = vertexStream.data.length / stride;
|
||||
@@ -710,11 +710,11 @@ package package_83
|
||||
{
|
||||
switch(attr)
|
||||
{
|
||||
case name_117.JOINTS[0]:
|
||||
case VertexAttributes.JOINTS[0]:
|
||||
data.position = j * stride + offset;
|
||||
trace("JOINT0:",data.readFloat(),data.readFloat(),data.readFloat(),data.readFloat());
|
||||
break;
|
||||
case name_117.JOINTS[1]:
|
||||
case VertexAttributes.JOINTS[1]:
|
||||
data.position = j * stride + offset;
|
||||
trace("JOINT1:",data.readFloat(),data.readFloat(),data.readFloat(),data.readFloat());
|
||||
}
|
||||
@@ -724,10 +724,10 @@ package package_83
|
||||
}
|
||||
}
|
||||
|
||||
private function method_289(indexBufferID:int, vertexBuffersIDs:Vector.<int>, indexBuffers:Dictionary, vertexBuffers:Dictionary) : name_136
|
||||
private function parseGeometry(indexBufferID:int, vertexBuffersIDs:Vector.<int>, indexBuffers:Dictionary, vertexBuffers:Dictionary) : Geometry
|
||||
{
|
||||
var id:int = 0;
|
||||
var geometry:name_136 = null;
|
||||
var geometry:Geometry = null;
|
||||
var vertexCount:uint = 0;
|
||||
var buffer:A3D2VertexBuffer = null;
|
||||
var byteArray:ByteArray = null;
|
||||
@@ -743,21 +743,21 @@ package package_83
|
||||
{
|
||||
key += "v" + id.toString();
|
||||
}
|
||||
geometry = this.var_628[key];
|
||||
geometry = this.§_-gk§[key];
|
||||
if(geometry != null)
|
||||
{
|
||||
return geometry;
|
||||
}
|
||||
geometry = new name_136();
|
||||
geometry = new Geometry();
|
||||
var a3dIB:A3D2IndexBuffer = indexBuffers[indexBufferID];
|
||||
var indices:Vector.<uint> = name_29.name_544(a3dIB.byteBuffer);
|
||||
var indices:Vector.<uint> = A3DUtils.byteArrayToVectorUint(a3dIB.byteBuffer);
|
||||
var uvoffset:int = 0;
|
||||
geometry.alternativa3d::_indices = indices;
|
||||
var buffers:Vector.<int> = vertexBuffersIDs;
|
||||
for(var j:int = 0; j < buffers.length; j++)
|
||||
{
|
||||
buffer = vertexBuffers[buffers[j]];
|
||||
vertexCount = uint(buffer.vertexCount);
|
||||
vertexCount = buffer.vertexCount;
|
||||
byteArray = buffer.byteBuffer;
|
||||
byteArray.endian = Endian.LITTLE_ENDIAN;
|
||||
offset = 0;
|
||||
@@ -768,23 +768,23 @@ package package_83
|
||||
switch(buffer.attributes[k])
|
||||
{
|
||||
case A3D2VertexAttributes.POSITION:
|
||||
attr = int(name_117.POSITION);
|
||||
attr = int(VertexAttributes.POSITION);
|
||||
break;
|
||||
case A3D2VertexAttributes.NORMAL:
|
||||
attr = int(name_117.NORMAL);
|
||||
attr = int(VertexAttributes.NORMAL);
|
||||
break;
|
||||
case A3D2VertexAttributes.TANGENT4:
|
||||
attr = int(name_117.TANGENT4);
|
||||
attr = int(VertexAttributes.TANGENT4);
|
||||
break;
|
||||
case A3D2VertexAttributes.TEXCOORD:
|
||||
attr = int(name_117.TEXCOORDS[uvoffset]);
|
||||
attr = int(VertexAttributes.TEXCOORDS[uvoffset]);
|
||||
uvoffset++;
|
||||
break;
|
||||
case A3D2VertexAttributes.JOINT:
|
||||
attr = int(name_117.JOINTS[jointsOffset]);
|
||||
attr = int(VertexAttributes.JOINTS[jointsOffset]);
|
||||
jointsOffset++;
|
||||
}
|
||||
numFloats = int(name_117.name_547(attr));
|
||||
numFloats = VertexAttributes.getAttributeStride(attr);
|
||||
numFloats = numFloats < 1 ? 1 : numFloats;
|
||||
for(t = 0; t < numFloats; t++)
|
||||
{
|
||||
@@ -796,51 +796,51 @@ package package_83
|
||||
geometry.alternativa3d::_vertexStreams[0].data = byteArray;
|
||||
}
|
||||
geometry.alternativa3d::_numVertices = buffers.length > 0 ? int(vertexCount) : 0;
|
||||
this.var_628[key] = geometry;
|
||||
this.§_-gk§[key] = geometry;
|
||||
return geometry;
|
||||
}
|
||||
|
||||
private function method_282(source:A3D2Map, images:Dictionary) : name_85
|
||||
private function parseMap(source:A3D2Map, images:Dictionary) : ExternalTextureResource
|
||||
{
|
||||
if(source == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
var res:name_85 = this.maps[source.imageId];
|
||||
var res:ExternalTextureResource = this.maps[source.imageId];
|
||||
if(res != null)
|
||||
{
|
||||
return res;
|
||||
}
|
||||
return this.maps[source.imageId] = new name_85(images[source.imageId].url);
|
||||
return this.maps[source.imageId] = new ExternalTextureResource(images[source.imageId].url);
|
||||
}
|
||||
|
||||
private function method_287(source:A3D2Material, a3DMaps:Dictionary, images:Dictionary) : name_471
|
||||
private function parseMaterial(source:A3D2Material, a3DMaps:Dictionary, images:Dictionary) : ParserMaterial
|
||||
{
|
||||
if(source == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
var res:name_471 = this.materials[source.id];
|
||||
var res:ParserMaterial = this.materials[source.id];
|
||||
if(res != null)
|
||||
{
|
||||
return res;
|
||||
}
|
||||
res = this.materials[source.id] = new name_471();
|
||||
res.textures["diffuse"] = this.method_282(a3DMaps[source.diffuseMapId],images);
|
||||
res.textures["emission"] = this.method_282(a3DMaps[source.lightMapId],images);
|
||||
res.textures["bump"] = this.method_282(a3DMaps[source.normalMapId],images);
|
||||
res.textures["specular"] = this.method_282(a3DMaps[source.specularMapId],images);
|
||||
res.textures["glossiness"] = this.method_282(a3DMaps[source.glossinessMapId],images);
|
||||
res.textures["transparent"] = this.method_282(a3DMaps[source.opacityMapId],images);
|
||||
res = this.materials[source.id] = new ParserMaterial();
|
||||
res.textures["diffuse"] = this.parseMap(a3DMaps[source.diffuseMapId],images);
|
||||
res.textures["emission"] = this.parseMap(a3DMaps[source.lightMapId],images);
|
||||
res.textures["bump"] = this.parseMap(a3DMaps[source.normalMapId],images);
|
||||
res.textures["specular"] = this.parseMap(a3DMaps[source.specularMapId],images);
|
||||
res.textures["glossiness"] = this.parseMap(a3DMaps[source.glossinessMapId],images);
|
||||
res.textures["transparent"] = this.parseMap(a3DMaps[source.opacityMapId],images);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
import package_32.class_23;
|
||||
import package_32.name_180;
|
||||
import alternativa.osgi.service.clientlog.IClientLog;
|
||||
import alternativa.osgi.service.clientlog.IClientLogChannelListener;
|
||||
|
||||
class DummyClientLog implements name_180
|
||||
class DummyClientLog implements IClientLog
|
||||
{
|
||||
public function DummyClientLog()
|
||||
{
|
||||
@@ -860,19 +860,19 @@ class DummyClientLog implements name_180
|
||||
return null;
|
||||
}
|
||||
|
||||
public function addLogListener(listener:class_23) : void
|
||||
public function addLogListener(listener:IClientLogChannelListener) : void
|
||||
{
|
||||
}
|
||||
|
||||
public function removeLogListener(listener:class_23) : void
|
||||
public function removeLogListener(listener:IClientLogChannelListener) : void
|
||||
{
|
||||
}
|
||||
|
||||
public function addLogChannelListener(channelName:String, listener:class_23) : void
|
||||
public function addLogChannelListener(channelName:String, listener:IClientLogChannelListener) : void
|
||||
{
|
||||
}
|
||||
|
||||
public function removeLogChannelListener(channelName:String, listener:class_23) : void
|
||||
public function removeLogChannelListener(channelName:String, listener:IClientLogChannelListener) : void
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package alternativa.engine3d.loaders
|
||||
{
|
||||
import alternativa.engine3d.alternativa3d;
|
||||
import alternativa.engine3d.animation.keys.name_552;
|
||||
import alternativa.engine3d.animation.name_550;
|
||||
import alternativa.engine3d.animation.AnimationClip;
|
||||
import alternativa.engine3d.animation.keys.Track;
|
||||
import alternativa.engine3d.core.Light3D;
|
||||
import alternativa.engine3d.core.Object3D;
|
||||
import alternativa.engine3d.loaders.collada.DaeDocument;
|
||||
@@ -24,45 +24,45 @@ package alternativa.engine3d.loaders
|
||||
|
||||
public var materials:Vector.<ParserMaterial>;
|
||||
|
||||
public var var_635:Vector.<name_550>;
|
||||
public var §_-eL§:Vector.<AnimationClip>;
|
||||
|
||||
private var var_634:Dictionary;
|
||||
private var §_-W6§:Dictionary;
|
||||
|
||||
public function ParserCollada()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public static function parseAnimation(data:XML) : name_550
|
||||
public static function parseAnimation(data:XML) : AnimationClip
|
||||
{
|
||||
var document:DaeDocument = new DaeDocument(data,0);
|
||||
var clip:name_550 = new name_550();
|
||||
var clip:AnimationClip = new AnimationClip();
|
||||
collectAnimation(clip,document.scene.nodes);
|
||||
return clip.numTracks > 0 ? clip : null;
|
||||
}
|
||||
|
||||
private static function collectAnimation(clip:name_550, nodes:Vector.<DaeNode>) : void
|
||||
private static function collectAnimation(clip:AnimationClip, nodes:Vector.<DaeNode>) : void
|
||||
{
|
||||
var node:DaeNode = null;
|
||||
var animation:name_550 = null;
|
||||
var animation:AnimationClip = null;
|
||||
var t:int = 0;
|
||||
var numTracks:int = 0;
|
||||
var track:name_552 = null;
|
||||
var track:Track = null;
|
||||
for(var i:int = 0,var count:int = int(nodes.length); i < count; i++)
|
||||
{
|
||||
node = nodes[i];
|
||||
animation = node.parseAnimation();
|
||||
if(animation != null)
|
||||
{
|
||||
for(t = 0,numTracks = int(animation.numTracks); t < numTracks; t++)
|
||||
for(t = 0,numTracks = animation.numTracks; t < numTracks; t++)
|
||||
{
|
||||
track = animation.name_553(t);
|
||||
clip.name_551(track);
|
||||
track = animation.getTrackAt(t);
|
||||
clip.addTrack(track);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
clip.name_551(node.createStaticTransformTrack());
|
||||
clip.addTrack(node.createStaticTransformTrack());
|
||||
}
|
||||
collectAnimation(clip,node.nodes);
|
||||
}
|
||||
@@ -73,14 +73,14 @@ package alternativa.engine3d.loaders
|
||||
this.objects = null;
|
||||
this.hierarchy = null;
|
||||
this.lights = null;
|
||||
this.var_635 = null;
|
||||
this.§_-eL§ = null;
|
||||
this.materials = null;
|
||||
this.var_634 = null;
|
||||
this.§_-W6§ = null;
|
||||
}
|
||||
|
||||
public function getObjectLayer(object:Object3D) : String
|
||||
{
|
||||
return this.var_634[object];
|
||||
return this.§_-W6§[object];
|
||||
}
|
||||
|
||||
private function init(data:XML, units:Number) : DaeDocument
|
||||
@@ -89,9 +89,9 @@ package alternativa.engine3d.loaders
|
||||
this.objects = new Vector.<Object3D>();
|
||||
this.hierarchy = new Vector.<Object3D>();
|
||||
this.lights = new Vector.<Light3D>();
|
||||
this.var_635 = new Vector.<name_550>();
|
||||
this.§_-eL§ = new Vector.<AnimationClip>();
|
||||
this.materials = new Vector.<ParserMaterial>();
|
||||
this.var_634 = new Dictionary(true);
|
||||
this.§_-W6§ = new Dictionary(true);
|
||||
return new DaeDocument(data,units);
|
||||
}
|
||||
|
||||
@@ -129,11 +129,11 @@ package alternativa.engine3d.loaders
|
||||
}
|
||||
if(animatedObject.animation != null)
|
||||
{
|
||||
this.var_635.push(animatedObject.animation);
|
||||
this.§_-eL§.push(animatedObject.animation);
|
||||
}
|
||||
if(Boolean(layer))
|
||||
{
|
||||
this.var_634[object] = layer;
|
||||
this.§_-W6§[object] = layer;
|
||||
}
|
||||
return object;
|
||||
}
|
||||
@@ -421,13 +421,13 @@ package alternativa.engine3d.loaders
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getAnimationByObject(object:Object) : name_550
|
||||
public function getAnimationByObject(object:Object) : AnimationClip
|
||||
{
|
||||
var animation:name_550 = null;
|
||||
var animation:AnimationClip = null;
|
||||
var objects:Array = null;
|
||||
for each(animation in this.var_635)
|
||||
for each(animation in this.§_-eL§)
|
||||
{
|
||||
objects = animation.alternativa3d::var_348;
|
||||
objects = animation.alternativa3d::_-Kq;
|
||||
if(objects.indexOf(object) >= 0)
|
||||
{
|
||||
return animation;
|
||||
|
||||
@@ -22,11 +22,11 @@ package alternativa.engine3d.loaders
|
||||
|
||||
public var transparency:Number = 0;
|
||||
|
||||
public var var_670:String = "diffuse";
|
||||
public var §_-3m§:String = "diffuse";
|
||||
|
||||
private var textureMaterial:TextureMaterial;
|
||||
|
||||
private var var_669:FillMaterial;
|
||||
private var §_-h7§:FillMaterial;
|
||||
|
||||
public function ParserMaterial()
|
||||
{
|
||||
@@ -51,22 +51,22 @@ package alternativa.engine3d.loaders
|
||||
override alternativa3d function collectDraws(camera:Camera3D, surface:Surface, geometry:Geometry, lights:Vector.<Light3D>, lightsLength:int, objectRenderPriority:int = -1) : void
|
||||
{
|
||||
var map:ExternalTextureResource = null;
|
||||
var colorO:Object = this.colors[this.var_670];
|
||||
var colorO:Object = this.colors[this.§_-3m§];
|
||||
if(colorO != null)
|
||||
{
|
||||
if(this.var_669 == null)
|
||||
if(this.§_-h7§ == null)
|
||||
{
|
||||
this.var_669 = new FillMaterial(int(colorO));
|
||||
this.§_-h7§ = new FillMaterial(int(colorO));
|
||||
}
|
||||
else
|
||||
{
|
||||
this.var_669.color = int(colorO);
|
||||
this.§_-h7§.color = int(colorO);
|
||||
}
|
||||
this.var_669.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength,objectRenderPriority);
|
||||
this.§_-h7§.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength,objectRenderPriority);
|
||||
}
|
||||
else
|
||||
{
|
||||
map = this.textures[this.var_670];
|
||||
map = this.textures[this.§_-3m§];
|
||||
if(map != null)
|
||||
{
|
||||
if(this.textureMaterial == null)
|
||||
|
||||
@@ -2,8 +2,8 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
import alternativa.engine3d.alternativa3d;
|
||||
import alternativa.engine3d.animation.keys.NumberKey;
|
||||
import alternativa.engine3d.animation.keys.name_552;
|
||||
import alternativa.engine3d.animation.keys.name_591;
|
||||
import alternativa.engine3d.animation.keys.NumberTrack;
|
||||
import alternativa.engine3d.animation.keys.Track;
|
||||
|
||||
use namespace alternativa3d;
|
||||
|
||||
@@ -35,9 +35,9 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public static const PARAM_MATRIX:String = "matrix";
|
||||
|
||||
public var tracks:Vector.<name_552>;
|
||||
public var tracks:Vector.<Track>;
|
||||
|
||||
public var name_589:String = "undefined";
|
||||
public var §_-dS§:String = "undefined";
|
||||
|
||||
public var animName:String;
|
||||
|
||||
@@ -129,13 +129,13 @@ package alternativa.engine3d.loaders.collada
|
||||
switch(componentName)
|
||||
{
|
||||
case "X":
|
||||
this.name_589 = PARAM_TRANSLATE_X;
|
||||
this.§_-dS§ = PARAM_TRANSLATE_X;
|
||||
break loop1;
|
||||
case "Y":
|
||||
this.name_589 = PARAM_TRANSLATE_Y;
|
||||
this.§_-dS§ = PARAM_TRANSLATE_Y;
|
||||
break loop1;
|
||||
case "Z":
|
||||
this.name_589 = PARAM_TRANSLATE_Z;
|
||||
this.§_-dS§ = PARAM_TRANSLATE_Z;
|
||||
}
|
||||
break;
|
||||
case "rotate":
|
||||
@@ -143,26 +143,26 @@ package alternativa.engine3d.loaders.collada
|
||||
switch(axis.indexOf(1))
|
||||
{
|
||||
case 0:
|
||||
this.name_589 = PARAM_ROTATION_X;
|
||||
this.§_-dS§ = PARAM_ROTATION_X;
|
||||
break loop1;
|
||||
case 1:
|
||||
this.name_589 = PARAM_ROTATION_Y;
|
||||
this.§_-dS§ = PARAM_ROTATION_Y;
|
||||
break loop1;
|
||||
case 2:
|
||||
this.name_589 = PARAM_ROTATION_Z;
|
||||
this.§_-dS§ = PARAM_ROTATION_Z;
|
||||
}
|
||||
break;
|
||||
case "scale":
|
||||
switch(componentName)
|
||||
{
|
||||
case "X":
|
||||
this.name_589 = PARAM_SCALE_X;
|
||||
this.§_-dS§ = PARAM_SCALE_X;
|
||||
break loop1;
|
||||
case "Y":
|
||||
this.name_589 = PARAM_SCALE_Y;
|
||||
this.§_-dS§ = PARAM_SCALE_Y;
|
||||
break loop1;
|
||||
case "Z":
|
||||
this.name_589 = PARAM_SCALE_Z;
|
||||
this.§_-dS§ = PARAM_SCALE_Z;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -171,55 +171,55 @@ package alternativa.engine3d.loaders.collada
|
||||
switch(transformationName)
|
||||
{
|
||||
case "translate":
|
||||
this.name_589 = PARAM_TRANSLATE;
|
||||
this.§_-dS§ = PARAM_TRANSLATE;
|
||||
break;
|
||||
case "scale":
|
||||
this.name_589 = PARAM_SCALE;
|
||||
this.§_-dS§ = PARAM_SCALE;
|
||||
break;
|
||||
case "matrix":
|
||||
this.name_589 = PARAM_MATRIX;
|
||||
this.§_-dS§ = PARAM_MATRIX;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function parseSampler() : void
|
||||
{
|
||||
var track:name_591 = null;
|
||||
var track:NumberTrack = null;
|
||||
var toRad:Number = NaN;
|
||||
var key:NumberKey = null;
|
||||
var sampler:DaeSampler = document.findSampler(data.@source[0]);
|
||||
if(sampler != null)
|
||||
{
|
||||
sampler.parse();
|
||||
if(this.name_589 == PARAM_MATRIX)
|
||||
if(this.§_-dS§ == PARAM_MATRIX)
|
||||
{
|
||||
this.tracks = Vector.<name_552>([sampler.parseTransformationTrack(this.animName)]);
|
||||
this.tracks = Vector.<Track>([sampler.parseTransformationTrack(this.animName)]);
|
||||
return;
|
||||
}
|
||||
if(this.name_589 == PARAM_TRANSLATE)
|
||||
if(this.§_-dS§ == PARAM_TRANSLATE)
|
||||
{
|
||||
this.tracks = sampler.parsePointsTracks(this.animName,"x","y","z");
|
||||
return;
|
||||
}
|
||||
if(this.name_589 == PARAM_SCALE)
|
||||
if(this.§_-dS§ == PARAM_SCALE)
|
||||
{
|
||||
this.tracks = sampler.parsePointsTracks(this.animName,"scaleX","scaleY","scaleZ");
|
||||
return;
|
||||
}
|
||||
if(this.name_589 == PARAM_ROTATION_X || this.name_589 == PARAM_ROTATION_Y || this.name_589 == PARAM_ROTATION_Z)
|
||||
if(this.§_-dS§ == PARAM_ROTATION_X || this.§_-dS§ == PARAM_ROTATION_Y || this.§_-dS§ == PARAM_ROTATION_Z)
|
||||
{
|
||||
track = sampler.parseNumbersTrack(this.animName,this.name_589);
|
||||
track = sampler.parseNumbersTrack(this.animName,this.§_-dS§);
|
||||
toRad = Math.PI / 180;
|
||||
for(key = track.alternativa3d::name_599; key != null; key = key.alternativa3d::next)
|
||||
for(key = track.alternativa3d::_-ku; key != null; key = key.alternativa3d::next)
|
||||
{
|
||||
key.alternativa3d::name_598 *= toRad;
|
||||
key.alternativa3d::_-4O *= toRad;
|
||||
}
|
||||
this.tracks = Vector.<name_552>([track]);
|
||||
this.tracks = Vector.<Track>([track]);
|
||||
return;
|
||||
}
|
||||
if(this.name_589 == PARAM_TRANSLATE_X || this.name_589 == PARAM_TRANSLATE_Y || this.name_589 == PARAM_TRANSLATE_Z || this.name_589 == PARAM_SCALE_X || this.name_589 == PARAM_SCALE_Y || this.name_589 == PARAM_SCALE_Z)
|
||||
if(this.§_-dS§ == PARAM_TRANSLATE_X || this.§_-dS§ == PARAM_TRANSLATE_Y || this.§_-dS§ == PARAM_TRANSLATE_Z || this.§_-dS§ == PARAM_SCALE_X || this.§_-dS§ == PARAM_SCALE_Y || this.§_-dS§ == PARAM_SCALE_Z)
|
||||
{
|
||||
this.tracks = Vector.<name_552>([sampler.parseNumbersTrack(this.animName,this.name_589)]);
|
||||
this.tracks = Vector.<Track>([sampler.parseNumbersTrack(this.animName,this.§_-dS§)]);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
import alternativa.engine3d.*;
|
||||
import alternativa.engine3d.animation.name_550;
|
||||
import alternativa.engine3d.animation.AnimationClip;
|
||||
import alternativa.engine3d.core.Object3D;
|
||||
import alternativa.engine3d.core.VertexAttributes;
|
||||
import alternativa.engine3d.loaders.ParserMaterial;
|
||||
@@ -17,25 +17,25 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public class DaeController extends DaeElement
|
||||
{
|
||||
private var var_725:Vector.<Vector.<Number>>;
|
||||
private var §_-A6§:Vector.<Vector.<Number>>;
|
||||
|
||||
private var var_724:Array;
|
||||
private var §_-2j§:Array;
|
||||
|
||||
private var indices:Array;
|
||||
|
||||
private var var_727:DaeInput;
|
||||
private var §_-4h§:DaeInput;
|
||||
|
||||
private var var_726:DaeInput;
|
||||
private var §_-NK§:DaeInput;
|
||||
|
||||
private var var_728:int;
|
||||
private var §_-5O§:int;
|
||||
|
||||
private var geometry:Geometry;
|
||||
|
||||
private var primitives:Vector.<DaePrimitive>;
|
||||
|
||||
private var var_723:int = 0;
|
||||
private var §_-1U§:int = 0;
|
||||
|
||||
private var var_722:Vector.<Number>;
|
||||
private var §_-I§:Vector.<Number>;
|
||||
|
||||
public function DaeController(data:XML, document:DaeDocument)
|
||||
{
|
||||
@@ -78,7 +78,7 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
return false;
|
||||
}
|
||||
this.var_724 = parseIntsArray(vcountsXML);
|
||||
this.§_-2j§ = parseIntsArray(vcountsXML);
|
||||
var indicesXML:XML = vertexWeightsXML.v[0];
|
||||
if(indicesXML == null)
|
||||
{
|
||||
@@ -87,23 +87,23 @@ package alternativa.engine3d.loaders.collada
|
||||
this.indices = parseIntsArray(indicesXML);
|
||||
this.parseInputs();
|
||||
this.parseJointsBindMatrices();
|
||||
for(i = 0; i < this.var_724.length; )
|
||||
for(i = 0; i < this.§_-2j§.length; )
|
||||
{
|
||||
count = int(this.var_724[i]);
|
||||
if(this.var_723 < count)
|
||||
count = int(this.§_-2j§[i]);
|
||||
if(this.§_-1U§ < count)
|
||||
{
|
||||
this.var_723 = count;
|
||||
this.§_-1U§ = count;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
var geom:DaeGeometry = this.daeGeometry;
|
||||
this.var_722 = this.getBindShapeMatrix();
|
||||
this.§_-I§ = this.getBindShapeMatrix();
|
||||
if(geom != null)
|
||||
{
|
||||
geom.parse();
|
||||
vertices = geom.var_715;
|
||||
vertices = geom.§_-FV§;
|
||||
source = geom.geometry;
|
||||
localMaxJointsPerVertex = this.var_723 % 2 != 0 ? this.var_723 + 1 : this.var_723;
|
||||
localMaxJointsPerVertex = this.§_-1U§ % 2 != 0 ? this.§_-1U§ + 1 : this.§_-1U§;
|
||||
this.geometry = new Geometry();
|
||||
this.geometry.alternativa3d::_indices = source.alternativa3d::_indices.slice();
|
||||
attributes = source.getVertexStreamAttributes(0);
|
||||
@@ -165,9 +165,9 @@ package alternativa.engine3d.loaders.collada
|
||||
y = Number(data.readFloat());
|
||||
z = Number(data.readFloat());
|
||||
data.position -= 12;
|
||||
data.writeFloat(x * this.var_722[0] + y * this.var_722[1] + z * this.var_722[2] + this.var_722[3]);
|
||||
data.writeFloat(x * this.var_722[4] + y * this.var_722[5] + z * this.var_722[6] + this.var_722[7]);
|
||||
data.writeFloat(x * this.var_722[8] + y * this.var_722[9] + z * this.var_722[10] + this.var_722[11]);
|
||||
data.writeFloat(x * this.§_-I§[0] + y * this.§_-I§[1] + z * this.§_-I§[2] + this.§_-I§[3]);
|
||||
data.writeFloat(x * this.§_-I§[4] + y * this.§_-I§[5] + z * this.§_-I§[6] + this.§_-I§[7]);
|
||||
data.writeFloat(x * this.§_-I§[8] + y * this.§_-I§[9] + z * this.§_-I§[10] + this.§_-I§[11]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -184,9 +184,9 @@ package alternativa.engine3d.loaders.collada
|
||||
var index:int = 0;
|
||||
var jointIndex:int = 0;
|
||||
var weightIndex:int = 0;
|
||||
var jointsOffset:int = this.var_727.offset;
|
||||
var weightsOffset:int = this.var_726.offset;
|
||||
var weightsSource:DaeSource = this.var_726.prepareSource(1);
|
||||
var jointsOffset:int = this.§_-4h§.offset;
|
||||
var weightsOffset:int = this.§_-NK§.offset;
|
||||
var weightsSource:DaeSource = this.§_-NK§.prepareSource(1);
|
||||
var weights:Vector.<Number> = weightsSource.numbers;
|
||||
var weightsStride:int = weightsSource.stride;
|
||||
var verticesDict:Dictionary = new Dictionary();
|
||||
@@ -198,25 +198,25 @@ package alternativa.engine3d.loaders.collada
|
||||
vertex = vertices[i];
|
||||
if(vertex != null)
|
||||
{
|
||||
vec = verticesDict[vertex.name_600];
|
||||
vec = verticesDict[vertex.§_-Eq§];
|
||||
if(vec == null)
|
||||
{
|
||||
vec = verticesDict[vertex.name_600] = new Vector.<uint>();
|
||||
vec = verticesDict[vertex.§_-Eq§] = new Vector.<uint>();
|
||||
}
|
||||
vec.push(vertex.name_601);
|
||||
vec.push(vertex.§_-AR§);
|
||||
}
|
||||
}
|
||||
var vertexIndex:int = 0;
|
||||
for(i = 0,count = int(this.var_724.length); i < count; i++)
|
||||
for(i = 0,count = int(this.§_-2j§.length); i < count; i++)
|
||||
{
|
||||
jointsPerVertex = int(this.var_724[i]);
|
||||
jointsPerVertex = int(this.§_-2j§[i]);
|
||||
vertexOutIndices = verticesDict[i];
|
||||
for(j = 0; j < vertexOutIndices.length; j++)
|
||||
{
|
||||
byteArray.position = vertexOutIndices[j] * localMaxJointsPerVertex * 8;
|
||||
for(k = 0; k < jointsPerVertex; k++)
|
||||
{
|
||||
index = this.var_728 * (vertexIndex + k);
|
||||
index = this.§_-5O§ * (vertexIndex + k);
|
||||
jointIndex = int(this.indices[int(index + jointsOffset)]);
|
||||
if(jointIndex >= 0)
|
||||
{
|
||||
@@ -254,20 +254,20 @@ package alternativa.engine3d.loaders.collada
|
||||
switch(semantic)
|
||||
{
|
||||
case "JOINT":
|
||||
if(this.var_727 == null)
|
||||
if(this.§_-4h§ == null)
|
||||
{
|
||||
this.var_727 = input;
|
||||
this.§_-4h§ = input;
|
||||
}
|
||||
break;
|
||||
case "WEIGHT":
|
||||
if(this.var_726 == null)
|
||||
if(this.§_-NK§ == null)
|
||||
{
|
||||
this.var_726 = input;
|
||||
this.§_-NK§ = input;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
this.var_728 = maxInputOffset + 1;
|
||||
this.§_-5O§ = maxInputOffset + 1;
|
||||
}
|
||||
|
||||
private function parseJointsBindMatrices() : void
|
||||
@@ -290,12 +290,12 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
stride = jointsSource.stride;
|
||||
count = jointsSource.numbers.length / stride;
|
||||
this.var_725 = new Vector.<Vector.<Number>>(count);
|
||||
this.§_-A6§ = new Vector.<Vector.<Number>>(count);
|
||||
for(i = 0; i < count; i++)
|
||||
{
|
||||
index = stride * i;
|
||||
matrix = new Vector.<Number>(16);
|
||||
this.var_725[i] = matrix;
|
||||
this.§_-A6§[i] = matrix;
|
||||
for(j = 0; j < 16; j++)
|
||||
{
|
||||
matrix[j] = jointsSource.numbers[int(index + j)];
|
||||
@@ -323,13 +323,13 @@ package alternativa.engine3d.loaders.collada
|
||||
var skinXML:XML = data.skin[0];
|
||||
if(skinXML != null)
|
||||
{
|
||||
this.var_722 = this.getBindShapeMatrix();
|
||||
numJoints = int(this.var_725.length);
|
||||
skin = new Skin(this.var_723,numJoints);
|
||||
this.§_-I§ = this.getBindShapeMatrix();
|
||||
numJoints = int(this.§_-A6§.length);
|
||||
skin = new Skin(this.§_-1U§,numJoints);
|
||||
skin.geometry = this.geometry;
|
||||
joints = this.addJointsToSkin(skin,topmostJoints,this.findNodes(skeletons));
|
||||
this.setJointsBindMatrices(joints);
|
||||
skin.var_633 = this.collectRenderedJoints(joints,numJoints);
|
||||
skin.§_-WA§ = this.collectRenderedJoints(joints,numJoints);
|
||||
if(this.primitives != null)
|
||||
{
|
||||
for(i = 0; i < this.primitives.length; i++)
|
||||
@@ -364,17 +364,17 @@ package alternativa.engine3d.loaders.collada
|
||||
return result;
|
||||
}
|
||||
|
||||
private function mergeJointsClips(skin:Skin, joints:Vector.<DaeObject>) : name_550
|
||||
private function mergeJointsClips(skin:Skin, joints:Vector.<DaeObject>) : AnimationClip
|
||||
{
|
||||
var animatedObject:DaeObject = null;
|
||||
var clip:name_550 = null;
|
||||
var clip:AnimationClip = null;
|
||||
var object:Object3D = null;
|
||||
var t:int = 0;
|
||||
if(!this.hasJointsAnimation(joints))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
var result:name_550 = new name_550();
|
||||
var result:AnimationClip = new AnimationClip();
|
||||
var resultObjects:Array = [skin];
|
||||
for(var i:int = 0,var count:int = int(joints.length); i < count; i++)
|
||||
{
|
||||
@@ -384,18 +384,18 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
for(t = 0; t < clip.numTracks; t++)
|
||||
{
|
||||
result.name_551(clip.name_553(t));
|
||||
result.addTrack(clip.getTrackAt(t));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
result.name_551(animatedObject.jointNode.createStaticTransformTrack());
|
||||
result.addTrack(animatedObject.jointNode.createStaticTransformTrack());
|
||||
}
|
||||
object = animatedObject.object;
|
||||
object.name = animatedObject.jointNode.animName;
|
||||
resultObjects.push(object);
|
||||
}
|
||||
result.alternativa3d::var_348 = resultObjects;
|
||||
result.alternativa3d::_-Kq = resultObjects;
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -418,10 +418,10 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
var animatedJoint:DaeObject = null;
|
||||
var bindMatrix:Vector.<Number> = null;
|
||||
for(var i:int = 0,var count:int = int(this.var_725.length); i < count; i++)
|
||||
for(var i:int = 0,var count:int = int(this.§_-A6§.length); i < count; i++)
|
||||
{
|
||||
animatedJoint = animatedJoints[i];
|
||||
bindMatrix = this.var_725[i];
|
||||
bindMatrix = this.§_-A6§[i];
|
||||
Joint(animatedJoint.object).alternativa3d::setBindPoseMatrix(bindMatrix);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
private var data:XML;
|
||||
|
||||
internal var var_690:Object;
|
||||
internal var §_-DR§:Object;
|
||||
|
||||
internal var arrays:Object;
|
||||
|
||||
@@ -24,9 +24,9 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
internal var effects:Object;
|
||||
|
||||
internal var var_691:Object;
|
||||
internal var §_-DW§:Object;
|
||||
|
||||
internal var var_692:Object;
|
||||
internal var §_-GB§:Object;
|
||||
|
||||
public var materials:Object;
|
||||
|
||||
@@ -83,14 +83,14 @@ package alternativa.engine3d.loaders.collada
|
||||
var geom:DaeGeometry = null;
|
||||
var controller:DaeController = null;
|
||||
var node:DaeNode = null;
|
||||
this.var_690 = new Object();
|
||||
this.§_-DR§ = new Object();
|
||||
this.arrays = new Object();
|
||||
for each(element in this.data..source)
|
||||
{
|
||||
source = new DaeSource(element,this);
|
||||
if(source.id != null)
|
||||
{
|
||||
this.var_690[source.id] = source;
|
||||
this.§_-DR§[source.id] = source;
|
||||
}
|
||||
}
|
||||
this.lights = new Object();
|
||||
@@ -139,13 +139,13 @@ package alternativa.engine3d.loaders.collada
|
||||
this.geometries[geom.id] = geom;
|
||||
}
|
||||
}
|
||||
this.var_691 = new Object();
|
||||
this.§_-DW§ = new Object();
|
||||
for each(element in this.data.library_controllers.controller)
|
||||
{
|
||||
controller = new DaeController(element,this);
|
||||
if(controller.id != null)
|
||||
{
|
||||
this.var_691[controller.id] = controller;
|
||||
this.§_-DW§[controller.id] = controller;
|
||||
}
|
||||
}
|
||||
this.nodes = new Object();
|
||||
@@ -198,13 +198,13 @@ package alternativa.engine3d.loaders.collada
|
||||
var sampler:DaeSampler = null;
|
||||
var channel:DaeChannel = null;
|
||||
var node:DaeNode = null;
|
||||
this.var_692 = new Object();
|
||||
this.§_-GB§ = new Object();
|
||||
for each(element in this.data.library_animations..sampler)
|
||||
{
|
||||
sampler = new DaeSampler(element,this);
|
||||
if(sampler.id != null)
|
||||
{
|
||||
this.var_692[sampler.id] = sampler;
|
||||
this.§_-GB§[sampler.id] = sampler;
|
||||
}
|
||||
}
|
||||
for each(element in this.data.library_animations..channel)
|
||||
@@ -225,7 +225,7 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public function findSource(url:XML) : DaeSource
|
||||
{
|
||||
return this.var_690[this.getLocalID(url)];
|
||||
return this.§_-DR§[this.getLocalID(url)];
|
||||
}
|
||||
|
||||
public function findLight(url:XML) : DaeLight
|
||||
@@ -275,12 +275,12 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public function findController(url:XML) : DaeController
|
||||
{
|
||||
return this.var_691[this.getLocalID(url)];
|
||||
return this.§_-DW§[this.getLocalID(url)];
|
||||
}
|
||||
|
||||
public function findSampler(url:XML) : DaeSampler
|
||||
{
|
||||
return this.var_692[this.getLocalID(url)];
|
||||
return this.§_-GB§[this.getLocalID(url)];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,11 +9,11 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
public static var commonAlways:Boolean = false;
|
||||
|
||||
private var var_717:Object;
|
||||
private var §_-3x§:Object;
|
||||
|
||||
private var var_718:Object;
|
||||
private var §_-El§:Object;
|
||||
|
||||
private var var_716:Object;
|
||||
private var §_-3H§:Object;
|
||||
|
||||
private var diffuse:DaeEffectParam;
|
||||
|
||||
@@ -66,26 +66,26 @@ package alternativa.engine3d.loaders.collada
|
||||
var reflectiveXML:XML = null;
|
||||
var emissionXML:XML = null;
|
||||
var specularXML:XML = null;
|
||||
this.var_717 = new Object();
|
||||
this.§_-3x§ = new Object();
|
||||
for each(element in data.newparam)
|
||||
{
|
||||
param = new DaeParam(element,document);
|
||||
this.var_717[param.sid] = param;
|
||||
this.§_-3x§[param.sid] = param;
|
||||
}
|
||||
this.var_718 = new Object();
|
||||
this.§_-El§ = new Object();
|
||||
for each(element in data.profile_COMMON.newparam)
|
||||
{
|
||||
param = new DaeParam(element,document);
|
||||
this.var_718[param.sid] = param;
|
||||
this.§_-El§[param.sid] = param;
|
||||
}
|
||||
this.var_716 = new Object();
|
||||
this.§_-3H§ = new Object();
|
||||
technique = data.profile_COMMON.technique[0];
|
||||
if(technique != null)
|
||||
{
|
||||
for each(element in technique.newparam)
|
||||
{
|
||||
param = new DaeParam(element,document);
|
||||
this.var_716[param.sid] = param;
|
||||
this.§_-3H§[param.sid] = param;
|
||||
}
|
||||
}
|
||||
shader = data.profile_COMMON.technique.*.(localName() == "constant" || localName() == "lambert" || localName() == "phong" || localName() == "blinn")[0];
|
||||
@@ -153,17 +153,17 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
return param;
|
||||
}
|
||||
param = this.var_716[name];
|
||||
param = this.§_-3H§[name];
|
||||
if(param != null)
|
||||
{
|
||||
return param;
|
||||
}
|
||||
param = this.var_718[name];
|
||||
param = this.§_-El§[name];
|
||||
if(param != null)
|
||||
{
|
||||
return param;
|
||||
}
|
||||
return this.var_717[name];
|
||||
return this.§_-3x§[name];
|
||||
}
|
||||
|
||||
private function float4ToUint(value:Array, alpha:Boolean = true) : uint
|
||||
|
||||
@@ -12,7 +12,7 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public var data:XML;
|
||||
|
||||
private var var_697:int = -1;
|
||||
private var §_-Ba§:int = -1;
|
||||
|
||||
public function DaeElement(data:XML, document:DaeDocument)
|
||||
{
|
||||
@@ -35,12 +35,12 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public function parse() : Boolean
|
||||
{
|
||||
if(this.var_697 < 0)
|
||||
if(this.§_-Ba§ < 0)
|
||||
{
|
||||
this.var_697 = this.parseImplementation() ? 1 : 0;
|
||||
return this.var_697 != 0;
|
||||
this.§_-Ba§ = this.parseImplementation() ? 1 : 0;
|
||||
return this.§_-Ba§ != 0;
|
||||
}
|
||||
return this.var_697 != 0;
|
||||
return this.§_-Ba§ != 0;
|
||||
}
|
||||
|
||||
protected function parseImplementation() : Boolean
|
||||
|
||||
@@ -13,7 +13,7 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public class DaeGeometry extends DaeElement
|
||||
{
|
||||
internal var var_715:Vector.<DaeVertex>;
|
||||
internal var §_-FV§:Vector.<DaeVertex>;
|
||||
|
||||
internal var primitives:Vector.<DaePrimitive>;
|
||||
|
||||
@@ -53,9 +53,9 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
this.parsePrimitives();
|
||||
this.vertices.parse();
|
||||
numVertices = this.vertices.name_597.numbers.length / this.vertices.name_597.stride;
|
||||
numVertices = this.vertices.§_-E6§.numbers.length / this.vertices.§_-E6§.stride;
|
||||
this.geometry = new Geometry();
|
||||
this.var_715 = new Vector.<DaeVertex>(numVertices);
|
||||
this.§_-FV§ = new Vector.<DaeVertex>(numVertices);
|
||||
channels = 0;
|
||||
for(i = 0; i < this.primitives.length; )
|
||||
{
|
||||
@@ -63,8 +63,8 @@ package alternativa.engine3d.loaders.collada
|
||||
p.parse();
|
||||
if(p.verticesEquals(this.vertices))
|
||||
{
|
||||
numVertices = int(this.var_715.length);
|
||||
channels |= p.fillGeometry(this.geometry,this.var_715);
|
||||
numVertices = int(this.§_-FV§.length);
|
||||
channels |= p.fillGeometry(this.geometry,this.§_-FV§);
|
||||
}
|
||||
i++;
|
||||
}
|
||||
@@ -105,14 +105,14 @@ package alternativa.engine3d.loaders.collada
|
||||
i++;
|
||||
}
|
||||
this.geometry.addVertexStream(attributes);
|
||||
numVertices = int(this.var_715.length);
|
||||
numVertices = int(this.§_-FV§.length);
|
||||
data = new ByteArray();
|
||||
data.endian = Endian.LITTLE_ENDIAN;
|
||||
numMappings = int(attributes.length);
|
||||
data.length = 4 * numMappings * numVertices;
|
||||
for(i = 0; i < numVertices; )
|
||||
{
|
||||
vertex = this.var_715[i];
|
||||
vertex = this.§_-FV§[i];
|
||||
if(vertex != null)
|
||||
{
|
||||
data.position = 4 * numMappings * i;
|
||||
@@ -125,12 +125,12 @@ package alternativa.engine3d.loaders.collada
|
||||
data.writeFloat(vertex.normal.y);
|
||||
data.writeFloat(vertex.normal.z);
|
||||
}
|
||||
if(vertex.name_596 != null)
|
||||
if(vertex.§_-hC§ != null)
|
||||
{
|
||||
data.writeFloat(vertex.name_596.x);
|
||||
data.writeFloat(vertex.name_596.y);
|
||||
data.writeFloat(vertex.name_596.z);
|
||||
data.writeFloat(vertex.name_596.w);
|
||||
data.writeFloat(vertex.§_-hC§.x);
|
||||
data.writeFloat(vertex.§_-hC§.y);
|
||||
data.writeFloat(vertex.§_-hC§.z);
|
||||
data.writeFloat(vertex.§_-hC§.w);
|
||||
}
|
||||
for(j = 0; j < vertex.uvs.length; )
|
||||
{
|
||||
|
||||
@@ -28,7 +28,7 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public function get setNum() : int
|
||||
{
|
||||
var attr:XML = data.@name_616[0];
|
||||
var attr:XML = data.@set[0];
|
||||
return attr == null ? 0 : int(parseInt(attr.toString(),10));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
import alternativa.engine3d.animation.keys.name_552;
|
||||
import alternativa.engine3d.animation.keys.name_590;
|
||||
import alternativa.engine3d.animation.keys.name_591;
|
||||
import alternativa.engine3d.animation.name_550;
|
||||
import alternativa.engine3d.animation.AnimationClip;
|
||||
import alternativa.engine3d.animation.keys.NumberTrack;
|
||||
import alternativa.engine3d.animation.keys.Track;
|
||||
import alternativa.engine3d.animation.keys.TransformTrack;
|
||||
import alternativa.engine3d.core.Light3D;
|
||||
import alternativa.engine3d.core.Object3D;
|
||||
import alternativa.engine3d.objects.Mesh;
|
||||
@@ -23,7 +23,7 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
private var channels:Vector.<DaeChannel>;
|
||||
|
||||
private var var_698:Vector.<DaeInstanceController>;
|
||||
private var §_-DE§:Vector.<DaeInstanceController>;
|
||||
|
||||
public var nodes:Vector.<DaeNode>;
|
||||
|
||||
@@ -112,11 +112,11 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public function addInstanceController(controller:DaeInstanceController) : void
|
||||
{
|
||||
if(this.var_698 == null)
|
||||
if(this.§_-DE§ == null)
|
||||
{
|
||||
this.var_698 = new Vector.<DaeInstanceController>();
|
||||
this.§_-DE§ = new Vector.<DaeInstanceController>();
|
||||
}
|
||||
this.var_698.push(controller);
|
||||
this.§_-DE§.push(controller);
|
||||
}
|
||||
|
||||
override protected function parseImplementation() : Boolean
|
||||
@@ -188,14 +188,14 @@ package alternativa.engine3d.loaders.collada
|
||||
var instanceController:DaeInstanceController = null;
|
||||
var skinAndAnimatedJoints:DaeObject = null;
|
||||
var skin:Skin = null;
|
||||
if(this.var_698 == null)
|
||||
if(this.§_-DE§ == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
var skins:Vector.<DaeObject> = new Vector.<DaeObject>();
|
||||
for(var i:int = 0,var count:int = int(this.var_698.length); i < count; )
|
||||
for(var i:int = 0,var count:int = int(this.§_-DE§.length); i < count; )
|
||||
{
|
||||
instanceController = this.var_698[i];
|
||||
instanceController = this.§_-DE§[i];
|
||||
instanceController.parse();
|
||||
skinAndAnimatedJoints = instanceController.parseSkin(this.parseInstanceMaterials(instanceController.data));
|
||||
if(skinAndAnimatedJoints != null)
|
||||
@@ -345,17 +345,17 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public function applyAnimation(object:Object3D) : DaeObject
|
||||
{
|
||||
var animation:name_550 = this.parseAnimation(object);
|
||||
var animation:AnimationClip = this.parseAnimation(object);
|
||||
if(animation == null)
|
||||
{
|
||||
return new DaeObject(object);
|
||||
}
|
||||
object.name = this.animName;
|
||||
animation.method_360(object,false);
|
||||
animation.attach(object,false);
|
||||
return new DaeObject(object,animation);
|
||||
}
|
||||
|
||||
public function parseAnimation(object:Object3D = null) : name_550
|
||||
public function parseAnimation(object:Object3D = null) : AnimationClip
|
||||
{
|
||||
if(this.channels == null || !this.hasTransformationAnimation())
|
||||
{
|
||||
@@ -366,7 +366,7 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
return this.createClip(channel.tracks);
|
||||
}
|
||||
var clip:name_550 = new name_550();
|
||||
var clip:AnimationClip = new AnimationClip();
|
||||
var components:Vector.<Vector3D> = object != null ? null : this.getMatrix().decompose();
|
||||
channel = this.getChannel(DaeChannel.PARAM_TRANSLATE);
|
||||
if(channel != null)
|
||||
@@ -382,7 +382,7 @@ package alternativa.engine3d.loaders.collada
|
||||
}
|
||||
else
|
||||
{
|
||||
clip.name_551(this.createValueStaticTrack("x",object == null ? Number(components[0].x) : object.x));
|
||||
clip.addTrack(this.createValueStaticTrack("x",object == null ? Number(components[0].x) : object.x));
|
||||
}
|
||||
channel = this.getChannel(DaeChannel.PARAM_TRANSLATE_Y);
|
||||
if(channel != null)
|
||||
@@ -391,7 +391,7 @@ package alternativa.engine3d.loaders.collada
|
||||
}
|
||||
else
|
||||
{
|
||||
clip.name_551(this.createValueStaticTrack("y",object == null ? Number(components[0].y) : object.y));
|
||||
clip.addTrack(this.createValueStaticTrack("y",object == null ? Number(components[0].y) : object.y));
|
||||
}
|
||||
channel = this.getChannel(DaeChannel.PARAM_TRANSLATE_Z);
|
||||
if(channel != null)
|
||||
@@ -400,7 +400,7 @@ package alternativa.engine3d.loaders.collada
|
||||
}
|
||||
else
|
||||
{
|
||||
clip.name_551(this.createValueStaticTrack("z",object == null ? Number(components[0].z) : object.z));
|
||||
clip.addTrack(this.createValueStaticTrack("z",object == null ? Number(components[0].z) : object.z));
|
||||
}
|
||||
}
|
||||
channel = this.getChannel(DaeChannel.PARAM_ROTATION_X);
|
||||
@@ -410,7 +410,7 @@ package alternativa.engine3d.loaders.collada
|
||||
}
|
||||
else
|
||||
{
|
||||
clip.name_551(this.createValueStaticTrack("rotationX",object == null ? Number(components[1].x) : object.rotationX));
|
||||
clip.addTrack(this.createValueStaticTrack("rotationX",object == null ? Number(components[1].x) : object.rotationX));
|
||||
}
|
||||
channel = this.getChannel(DaeChannel.PARAM_ROTATION_Y);
|
||||
if(channel != null)
|
||||
@@ -419,7 +419,7 @@ package alternativa.engine3d.loaders.collada
|
||||
}
|
||||
else
|
||||
{
|
||||
clip.name_551(this.createValueStaticTrack("rotationY",object == null ? Number(components[1].y) : object.rotationY));
|
||||
clip.addTrack(this.createValueStaticTrack("rotationY",object == null ? Number(components[1].y) : object.rotationY));
|
||||
}
|
||||
channel = this.getChannel(DaeChannel.PARAM_ROTATION_Z);
|
||||
if(channel != null)
|
||||
@@ -428,7 +428,7 @@ package alternativa.engine3d.loaders.collada
|
||||
}
|
||||
else
|
||||
{
|
||||
clip.name_551(this.createValueStaticTrack("rotationZ",object == null ? Number(components[1].z) : object.rotationZ));
|
||||
clip.addTrack(this.createValueStaticTrack("rotationZ",object == null ? Number(components[1].z) : object.rotationZ));
|
||||
}
|
||||
channel = this.getChannel(DaeChannel.PARAM_SCALE);
|
||||
if(channel != null)
|
||||
@@ -444,7 +444,7 @@ package alternativa.engine3d.loaders.collada
|
||||
}
|
||||
else
|
||||
{
|
||||
clip.name_551(this.createValueStaticTrack("scaleX",object == null ? Number(components[2].x) : object.scaleX));
|
||||
clip.addTrack(this.createValueStaticTrack("scaleX",object == null ? Number(components[2].x) : object.scaleX));
|
||||
}
|
||||
channel = this.getChannel(DaeChannel.PARAM_SCALE_Y);
|
||||
if(channel != null)
|
||||
@@ -453,7 +453,7 @@ package alternativa.engine3d.loaders.collada
|
||||
}
|
||||
else
|
||||
{
|
||||
clip.name_551(this.createValueStaticTrack("scaleY",object == null ? Number(components[2].y) : object.scaleY));
|
||||
clip.addTrack(this.createValueStaticTrack("scaleY",object == null ? Number(components[2].y) : object.scaleY));
|
||||
}
|
||||
channel = this.getChannel(DaeChannel.PARAM_SCALE_Z);
|
||||
if(channel != null)
|
||||
@@ -462,7 +462,7 @@ package alternativa.engine3d.loaders.collada
|
||||
}
|
||||
else
|
||||
{
|
||||
clip.name_551(this.createValueStaticTrack("scaleZ",object == null ? Number(components[2].z) : object.scaleZ));
|
||||
clip.addTrack(this.createValueStaticTrack("scaleZ",object == null ? Number(components[2].z) : object.scaleZ));
|
||||
}
|
||||
}
|
||||
if(clip.numTracks > 0)
|
||||
@@ -472,21 +472,21 @@ package alternativa.engine3d.loaders.collada
|
||||
return null;
|
||||
}
|
||||
|
||||
private function createClip(tracks:Vector.<name_552>) : name_550
|
||||
private function createClip(tracks:Vector.<Track>) : AnimationClip
|
||||
{
|
||||
var clip:name_550 = new name_550();
|
||||
var clip:AnimationClip = new AnimationClip();
|
||||
for(var i:int = 0,var count:int = int(tracks.length); i < count; i++)
|
||||
{
|
||||
clip.name_551(tracks[i]);
|
||||
clip.addTrack(tracks[i]);
|
||||
}
|
||||
return clip;
|
||||
}
|
||||
|
||||
private function addTracksToClip(clip:name_550, tracks:Vector.<name_552>) : void
|
||||
private function addTracksToClip(clip:AnimationClip, tracks:Vector.<Track>) : void
|
||||
{
|
||||
for(var i:int = 0,var count:int = int(tracks.length); i < count; i++)
|
||||
{
|
||||
clip.name_551(tracks[i]);
|
||||
clip.addTrack(tracks[i]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -498,18 +498,18 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
channel = this.channels[i];
|
||||
channel.parse();
|
||||
result = channel.name_589 == DaeChannel.PARAM_MATRIX;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_TRANSLATE;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_TRANSLATE_X;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_TRANSLATE_Y;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_TRANSLATE_Z;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_ROTATION_X;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_ROTATION_Y;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_ROTATION_Z;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_SCALE;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_SCALE_X;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_SCALE_Y;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_SCALE_Z;
|
||||
result = channel.§_-dS§ == DaeChannel.PARAM_MATRIX;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_TRANSLATE;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_TRANSLATE_X;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_TRANSLATE_Y;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_TRANSLATE_Z;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_ROTATION_X;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_ROTATION_Y;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_ROTATION_Z;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_SCALE;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_SCALE_X;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_SCALE_Y;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_SCALE_Z;
|
||||
if(result)
|
||||
{
|
||||
return true;
|
||||
@@ -526,7 +526,7 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
channel = this.channels[i];
|
||||
channel.parse();
|
||||
if(channel.name_589 == param)
|
||||
if(channel.§_-dS§ == param)
|
||||
{
|
||||
return channel;
|
||||
}
|
||||
@@ -535,7 +535,7 @@ package alternativa.engine3d.loaders.collada
|
||||
return null;
|
||||
}
|
||||
|
||||
private function concatTracks(source:Vector.<name_552>, dest:Vector.<name_552>) : void
|
||||
private function concatTracks(source:Vector.<Track>, dest:Vector.<Track>) : void
|
||||
{
|
||||
for(var i:int = 0,var count:int = int(source.length); i < count; i++)
|
||||
{
|
||||
@@ -543,16 +543,16 @@ package alternativa.engine3d.loaders.collada
|
||||
}
|
||||
}
|
||||
|
||||
private function createValueStaticTrack(property:String, value:Number) : name_552
|
||||
private function createValueStaticTrack(property:String, value:Number) : Track
|
||||
{
|
||||
var track:name_591 = new name_591(this.animName,property);
|
||||
var track:NumberTrack = new NumberTrack(this.animName,property);
|
||||
track.addKey(0,value);
|
||||
return track;
|
||||
}
|
||||
|
||||
public function createStaticTransformTrack() : name_590
|
||||
public function createStaticTransformTrack() : TransformTrack
|
||||
{
|
||||
var track:name_590 = new name_590(this.animName);
|
||||
var track:TransformTrack = new TransformTrack(this.animName);
|
||||
track.addKey(0,this.getMatrix());
|
||||
return track;
|
||||
}
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
import alternativa.engine3d.animation.name_550;
|
||||
import alternativa.engine3d.animation.AnimationClip;
|
||||
import alternativa.engine3d.core.Object3D;
|
||||
|
||||
public class DaeObject
|
||||
{
|
||||
public var object:Object3D;
|
||||
|
||||
public var animation:name_550;
|
||||
public var animation:AnimationClip;
|
||||
|
||||
public var jointNode:DaeNode;
|
||||
|
||||
public function DaeObject(object:Object3D, animation:name_550 = null)
|
||||
public function DaeObject(object:Object3D, animation:AnimationClip = null)
|
||||
{
|
||||
super();
|
||||
this.object = object;
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
package package_103
|
||||
package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
import alternativa.engine3d.alternativa3d;
|
||||
import alternativa.engine3d.loaders.collada.collada;
|
||||
import package_21.name_136;
|
||||
import alternativa.engine3d.resources.Geometry;
|
||||
|
||||
use namespace collada;
|
||||
use namespace alternativa3d;
|
||||
|
||||
public class class_37 extends class_38
|
||||
public class DaePrimitive extends DaeElement
|
||||
{
|
||||
internal static const NORMALS:int = 1;
|
||||
|
||||
@@ -15,33 +14,33 @@ package package_103
|
||||
|
||||
internal static const TEXCOORDS:Vector.<uint> = Vector.<uint>([8,16,32,64,128,256,512,1024]);
|
||||
|
||||
internal var var_739:name_606;
|
||||
internal var §_-2g§:DaeInput;
|
||||
|
||||
internal var var_740:Vector.<name_606>;
|
||||
internal var §_-aL§:Vector.<DaeInput>;
|
||||
|
||||
internal var var_742:name_606;
|
||||
internal var §_-Fl§:DaeInput;
|
||||
|
||||
internal var var_741:Vector.<name_606>;
|
||||
internal var §_-jU§:Vector.<DaeInput>;
|
||||
|
||||
internal var var_743:Vector.<name_606>;
|
||||
internal var §_-ly§:Vector.<DaeInput>;
|
||||
|
||||
internal var indices:Vector.<uint>;
|
||||
|
||||
internal var var_728:int;
|
||||
internal var §_-5O§:int;
|
||||
|
||||
public var indexBegin:int;
|
||||
|
||||
public var numTriangles:int;
|
||||
|
||||
public function class_37(data:XML, document:name_612)
|
||||
public function DaePrimitive(data:XML, document:DaeDocument)
|
||||
{
|
||||
super(data,document);
|
||||
}
|
||||
|
||||
override protected function parseImplementation() : Boolean
|
||||
{
|
||||
this.method_373();
|
||||
this.method_376();
|
||||
this.parseInputs();
|
||||
this.parseIndices();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -50,19 +49,19 @@ package package_103
|
||||
return data.localName() as String;
|
||||
}
|
||||
|
||||
private function method_373() : void
|
||||
private function parseInputs() : void
|
||||
{
|
||||
var input:name_606 = null;
|
||||
var input:DaeInput = null;
|
||||
var semantic:String = null;
|
||||
var offset:int = 0;
|
||||
this.var_740 = new Vector.<name_606>();
|
||||
this.var_743 = new Vector.<name_606>();
|
||||
this.var_741 = new Vector.<name_606>();
|
||||
this.§_-aL§ = new Vector.<DaeInput>();
|
||||
this.§_-ly§ = new Vector.<DaeInput>();
|
||||
this.§_-jU§ = new Vector.<DaeInput>();
|
||||
var inputsList:XMLList = data.input;
|
||||
var maxInputOffset:int = 0;
|
||||
for(var i:int = 0,var count:int = int(inputsList.length()); i < count; offset = int(input.offset),maxInputOffset = offset > maxInputOffset ? offset : maxInputOffset,i++)
|
||||
for(var i:int = 0,var count:int = int(inputsList.length()); i < count; offset = input.offset,maxInputOffset = offset > maxInputOffset ? offset : maxInputOffset,i++)
|
||||
{
|
||||
input = new name_606(inputsList[i],document);
|
||||
input = new DaeInput(inputsList[i],document);
|
||||
semantic = input.semantic;
|
||||
if(semantic == null)
|
||||
{
|
||||
@@ -71,36 +70,36 @@ package package_103
|
||||
switch(semantic)
|
||||
{
|
||||
case "VERTEX":
|
||||
if(this.var_739 == null)
|
||||
if(this.§_-2g§ == null)
|
||||
{
|
||||
this.var_739 = input;
|
||||
this.§_-2g§ = input;
|
||||
}
|
||||
break;
|
||||
case "TEXCOORD":
|
||||
this.var_740.push(input);
|
||||
this.§_-aL§.push(input);
|
||||
break;
|
||||
case "NORMAL":
|
||||
if(this.var_742 == null)
|
||||
if(this.§_-Fl§ == null)
|
||||
{
|
||||
this.var_742 = input;
|
||||
this.§_-Fl§ = input;
|
||||
}
|
||||
break;
|
||||
case "TEXTANGENT":
|
||||
this.var_743.push(input);
|
||||
this.§_-ly§.push(input);
|
||||
break;
|
||||
case "TEXBINORMAL":
|
||||
this.var_741.push(input);
|
||||
this.§_-jU§.push(input);
|
||||
break;
|
||||
}
|
||||
}
|
||||
this.var_728 = maxInputOffset + 1;
|
||||
this.§_-5O§ = maxInputOffset + 1;
|
||||
}
|
||||
|
||||
private function method_376() : void
|
||||
private function parseIndices() : void
|
||||
{
|
||||
var array:Array = null;
|
||||
var vcountXML:XMLList = null;
|
||||
var pList:XMLList = null;
|
||||
var _loc5_:XMLList = null;
|
||||
var _loc6_:XMLList = null;
|
||||
var j:int = 0;
|
||||
this.indices = new Vector.<uint>();
|
||||
var vcount:Vector.<int> = new Vector.<int>();
|
||||
@@ -110,8 +109,8 @@ package package_103
|
||||
{
|
||||
case "polylist":
|
||||
case "polygons":
|
||||
vcountXML = data.vcount;
|
||||
array = name_609(vcountXML[0]);
|
||||
_loc5_ = data.vcount;
|
||||
array = parseStringArray(_loc5_[0]);
|
||||
i = 0;
|
||||
count = int(array.length);
|
||||
while(true)
|
||||
@@ -124,24 +123,24 @@ package package_103
|
||||
}
|
||||
}
|
||||
case "triangles":
|
||||
pList = data.p;
|
||||
for(i = 0,count = int(pList.length()); i < count; )
|
||||
_loc6_ = data.p;
|
||||
for(i = 0,count = int(_loc6_.length()); i < count; )
|
||||
{
|
||||
array = name_609(pList[i]);
|
||||
array = parseStringArray(_loc6_[i]);
|
||||
for(j = 0; j < array.length; j++)
|
||||
{
|
||||
this.indices.push(parseInt(array[j],10));
|
||||
}
|
||||
if(vcount.length > 0)
|
||||
{
|
||||
this.indices = this.method_374(this.indices,vcount);
|
||||
this.indices = this.triangulate(this.indices,vcount);
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function method_374(input:Vector.<uint>, vcount:Vector.<int>) : Vector.<uint>
|
||||
private function triangulate(input:Vector.<uint>, vcount:Vector.<int>) : Vector.<uint>
|
||||
{
|
||||
var indexIn:uint = 0;
|
||||
var i:int = 0;
|
||||
@@ -155,7 +154,7 @@ package package_103
|
||||
for(i = 0,count = int(vcount.length); i < count; i++)
|
||||
{
|
||||
verticesCount = vcount[i];
|
||||
attributesCount = verticesCount * this.var_728;
|
||||
attributesCount = verticesCount * this.§_-5O§;
|
||||
if(verticesCount == 3)
|
||||
{
|
||||
j = 0;
|
||||
@@ -171,124 +170,124 @@ package package_103
|
||||
{
|
||||
for(j = 1; j < verticesCount - 1; )
|
||||
{
|
||||
for(k = 0; k < this.var_728; k++,indexOut++)
|
||||
for(k = 0; k < this.§_-5O§; k++,indexOut++)
|
||||
{
|
||||
res[indexOut] = input[int(indexIn + k)];
|
||||
}
|
||||
for(k = 0; k < this.var_728; k++,indexOut++)
|
||||
for(k = 0; k < this.§_-5O§; k++,indexOut++)
|
||||
{
|
||||
res[indexOut] = input[int(indexIn + this.var_728 * j + k)];
|
||||
res[indexOut] = input[int(indexIn + this.§_-5O§ * j + k)];
|
||||
}
|
||||
for(k = 0; k < this.var_728; k++,indexOut++)
|
||||
for(k = 0; k < this.§_-5O§; k++,indexOut++)
|
||||
{
|
||||
res[indexOut] = input[int(indexIn + this.var_728 * (j + 1) + k)];
|
||||
res[indexOut] = input[int(indexIn + this.§_-5O§ * (j + 1) + k)];
|
||||
}
|
||||
j++;
|
||||
}
|
||||
indexIn += this.var_728 * verticesCount;
|
||||
indexIn += this.§_-5O§ * verticesCount;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
public function method_380(geometry:name_136, vertices:Vector.<name_608>) : uint
|
||||
public function fillGeometry(geometry:Geometry, vertices:Vector.<DaeVertex>) : uint
|
||||
{
|
||||
var tangentSource:name_607 = null;
|
||||
var binormalSource:name_607 = null;
|
||||
var normalSource:name_607 = null;
|
||||
var tangentSource:DaeSource = null;
|
||||
var binormalSource:DaeSource = null;
|
||||
var normalSource:DaeSource = null;
|
||||
var index:uint = 0;
|
||||
var vertex:name_608 = null;
|
||||
var s:name_607 = null;
|
||||
var vertex:DaeVertex = null;
|
||||
var s:DaeSource = null;
|
||||
var j:int = 0;
|
||||
if(this.var_739 == null)
|
||||
if(this.§_-2g§ == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
this.var_739.method_132();
|
||||
this.§_-2g§.parse();
|
||||
var numIndices:int = int(this.indices.length);
|
||||
var daeVertices:name_610 = document.findVertices(this.var_739.source);
|
||||
var daeVertices:DaeVertices = document.findVertices(this.§_-2g§.source);
|
||||
if(daeVertices == null)
|
||||
{
|
||||
document.logger.logNotFoundError(this.var_739.source);
|
||||
document.logger.logNotFoundError(this.§_-2g§.source);
|
||||
return 0;
|
||||
}
|
||||
daeVertices.method_132();
|
||||
var positionSource:name_607 = daeVertices.name_597;
|
||||
daeVertices.parse();
|
||||
var positionSource:DaeSource = daeVertices.§_-E6§;
|
||||
var vertexStride:int = 3;
|
||||
var mainSource:name_607 = positionSource;
|
||||
var mainInput:name_606 = this.var_739;
|
||||
var mainSource:DaeSource = positionSource;
|
||||
var mainInput:DaeInput = this.§_-2g§;
|
||||
var channels:uint = 0;
|
||||
var inputOffsets:Vector.<int> = new Vector.<int>();
|
||||
inputOffsets.push(this.var_739.offset);
|
||||
if(this.var_742 != null)
|
||||
inputOffsets.push(this.§_-2g§.offset);
|
||||
if(this.§_-Fl§ != null)
|
||||
{
|
||||
normalSource = this.var_742.prepareSource(3);
|
||||
inputOffsets.push(this.var_742.offset);
|
||||
normalSource = this.§_-Fl§.prepareSource(3);
|
||||
inputOffsets.push(this.§_-Fl§.offset);
|
||||
vertexStride += 3;
|
||||
channels |= NORMALS;
|
||||
if(this.var_743.length > 0 && this.var_741.length > 0)
|
||||
if(this.§_-ly§.length > 0 && this.§_-jU§.length > 0)
|
||||
{
|
||||
tangentSource = this.var_743[0].prepareSource(3);
|
||||
inputOffsets.push(this.var_743[0].offset);
|
||||
binormalSource = this.var_741[0].prepareSource(3);
|
||||
inputOffsets.push(this.var_741[0].offset);
|
||||
tangentSource = this.§_-ly§[0].prepareSource(3);
|
||||
inputOffsets.push(this.§_-ly§[0].offset);
|
||||
binormalSource = this.§_-jU§[0].prepareSource(3);
|
||||
inputOffsets.push(this.§_-jU§[0].offset);
|
||||
vertexStride += 4;
|
||||
channels |= TANGENT4;
|
||||
}
|
||||
}
|
||||
var textureSources:Vector.<name_607> = new Vector.<name_607>();
|
||||
var numTexCoordsInputs:int = int(this.var_740.length);
|
||||
var textureSources:Vector.<DaeSource> = new Vector.<DaeSource>();
|
||||
var numTexCoordsInputs:int = int(this.§_-aL§.length);
|
||||
if(numTexCoordsInputs > 8)
|
||||
{
|
||||
numTexCoordsInputs = 8;
|
||||
}
|
||||
for(var i:int = 0; i < numTexCoordsInputs; )
|
||||
{
|
||||
s = this.var_740[i].prepareSource(2);
|
||||
s = this.§_-aL§[i].prepareSource(2);
|
||||
textureSources.push(s);
|
||||
inputOffsets.push(this.var_740[i].offset);
|
||||
inputOffsets.push(this.§_-aL§[i].offset);
|
||||
vertexStride += 2;
|
||||
channels |= TEXCOORDS[i];
|
||||
i++;
|
||||
}
|
||||
var verticesLength:int = int(vertices.length);
|
||||
this.indexBegin = geometry.alternativa3d::_indices.length;
|
||||
for(i = 0; i < numIndices; i += this.var_728)
|
||||
for(i = 0; i < numIndices; i += this.§_-5O§)
|
||||
{
|
||||
index = this.indices[int(i + mainInput.offset)];
|
||||
vertex = vertices[index];
|
||||
if(vertex == null || !this.method_377(vertex,this.indices,i,inputOffsets))
|
||||
if(vertex == null || !this.isEqual(vertex,this.indices,i,inputOffsets))
|
||||
{
|
||||
if(vertex != null)
|
||||
{
|
||||
index = uint(verticesLength++);
|
||||
}
|
||||
vertex = new name_608();
|
||||
vertex = new DaeVertex();
|
||||
vertices[index] = vertex;
|
||||
vertex.name_600 = this.indices[int(i + this.var_739.offset)];
|
||||
vertex.name_614(positionSource.numbers,vertex.name_600,positionSource.stride,document.unitScaleFactor);
|
||||
vertex.§_-Eq§ = this.indices[int(i + this.§_-2g§.offset)];
|
||||
vertex.addPosition(positionSource.numbers,vertex.§_-Eq§,positionSource.stride,document.unitScaleFactor);
|
||||
if(normalSource != null)
|
||||
{
|
||||
vertex.name_611(normalSource.numbers,this.indices[int(i + this.var_742.offset)],normalSource.stride);
|
||||
vertex.addNormal(normalSource.numbers,this.indices[int(i + this.§_-Fl§.offset)],normalSource.stride);
|
||||
}
|
||||
if(tangentSource != null)
|
||||
{
|
||||
vertex.name_613(tangentSource.numbers,this.indices[int(i + this.var_743[0].offset)],tangentSource.stride,binormalSource.numbers,this.indices[int(i + this.var_741[0].offset)],binormalSource.stride);
|
||||
vertex.addTangentBiDirection(tangentSource.numbers,this.indices[int(i + this.§_-ly§[0].offset)],tangentSource.stride,binormalSource.numbers,this.indices[int(i + this.§_-jU§[0].offset)],binormalSource.stride);
|
||||
}
|
||||
for(j = 0; j < textureSources.length; )
|
||||
{
|
||||
vertex.name_615(textureSources[j].numbers,this.indices[int(i + this.var_740[j].offset)],textureSources[j].stride);
|
||||
vertex.appendUV(textureSources[j].numbers,this.indices[int(i + this.§_-aL§[j].offset)],textureSources[j].stride);
|
||||
j++;
|
||||
}
|
||||
}
|
||||
vertex.name_601 = index;
|
||||
vertex.§_-AR§ = index;
|
||||
geometry.alternativa3d::_indices.push(index);
|
||||
}
|
||||
this.numTriangles = (geometry.alternativa3d::_indices.length - this.indexBegin) / 3;
|
||||
return channels;
|
||||
}
|
||||
|
||||
private function method_377(vertex:name_608, indices:Vector.<uint>, index:int, offsets:Vector.<int>) : Boolean
|
||||
private function isEqual(vertex:DaeVertex, indices:Vector.<uint>, index:int, offsets:Vector.<int>) : Boolean
|
||||
{
|
||||
var numOffsets:int = int(offsets.length);
|
||||
for(var j:int = 0; j < numOffsets; )
|
||||
@@ -302,9 +301,9 @@ package package_103
|
||||
return true;
|
||||
}
|
||||
|
||||
private function method_375(inputs:Vector.<name_606>, setNum:int) : name_606
|
||||
private function findInputBySet(inputs:Vector.<DaeInput>, setNum:int) : DaeInput
|
||||
{
|
||||
var input:name_606 = null;
|
||||
var input:DaeInput = null;
|
||||
for(var i:int = 0,var numInputs:int = int(inputs.length); i < numInputs; )
|
||||
{
|
||||
input = inputs[i];
|
||||
@@ -317,18 +316,18 @@ package package_103
|
||||
return null;
|
||||
}
|
||||
|
||||
private function method_379(mainSetNum:int) : Vector.<VertexChannelData>
|
||||
private function getTexCoordsDatas(mainSetNum:int) : Vector.<VertexChannelData>
|
||||
{
|
||||
var i:int = 0;
|
||||
var texCoordsInput:name_606 = null;
|
||||
var texCoordsSource:name_607 = null;
|
||||
var texCoordsInput:DaeInput = null;
|
||||
var texCoordsSource:DaeSource = null;
|
||||
var data:VertexChannelData = null;
|
||||
var mainInput:name_606 = this.method_375(this.var_740,mainSetNum);
|
||||
var numInputs:int = int(this.var_740.length);
|
||||
var mainInput:DaeInput = this.findInputBySet(this.§_-aL§,mainSetNum);
|
||||
var numInputs:int = int(this.§_-aL§.length);
|
||||
var datas:Vector.<VertexChannelData> = new Vector.<VertexChannelData>();
|
||||
for(i = 0; i < numInputs; )
|
||||
{
|
||||
texCoordsInput = this.var_740[i];
|
||||
texCoordsInput = this.§_-aL§[i];
|
||||
texCoordsSource = texCoordsInput.prepareSource(2);
|
||||
if(texCoordsSource != null)
|
||||
{
|
||||
@@ -347,17 +346,17 @@ package package_103
|
||||
return datas.length > 0 ? datas : null;
|
||||
}
|
||||
|
||||
public function method_378(otherVertices:name_610) : Boolean
|
||||
public function verticesEquals(otherVertices:DaeVertices) : Boolean
|
||||
{
|
||||
var vertices:name_610 = document.findVertices(this.var_739.source);
|
||||
var vertices:DaeVertices = document.findVertices(this.§_-2g§.source);
|
||||
if(vertices == null)
|
||||
{
|
||||
document.logger.logNotFoundError(this.var_739.source);
|
||||
document.logger.logNotFoundError(this.§_-2g§.source);
|
||||
}
|
||||
return vertices == otherVertices;
|
||||
}
|
||||
|
||||
public function get method_381() : String
|
||||
public function get materialSymbol() : String
|
||||
{
|
||||
var attr:XML = data.@material[0];
|
||||
return attr == null ? null : attr.toString();
|
||||
@@ -1,21 +1,21 @@
|
||||
package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
import alternativa.engine3d.animation.keys.name_552;
|
||||
import alternativa.engine3d.animation.keys.name_590;
|
||||
import alternativa.engine3d.animation.keys.name_591;
|
||||
import alternativa.engine3d.animation.keys.NumberTrack;
|
||||
import alternativa.engine3d.animation.keys.Track;
|
||||
import alternativa.engine3d.animation.keys.TransformTrack;
|
||||
import flash.geom.Matrix3D;
|
||||
|
||||
use namespace collada;
|
||||
|
||||
public class DaeSampler extends DaeElement
|
||||
{
|
||||
private var var_719:Vector.<Number>;
|
||||
private var §_-G6§:Vector.<Number>;
|
||||
|
||||
private var values:Vector.<Number>;
|
||||
|
||||
private var var_720:int;
|
||||
private var §_-JC§:int;
|
||||
|
||||
private var var_721:int;
|
||||
private var §_-7i§:int;
|
||||
|
||||
public function DaeSampler(data:XML, document:DaeDocument)
|
||||
{
|
||||
@@ -43,8 +43,8 @@ package alternativa.engine3d.loaders.collada
|
||||
inputSource = input.prepareSource(1);
|
||||
if(inputSource != null)
|
||||
{
|
||||
this.var_719 = inputSource.numbers;
|
||||
this.var_720 = inputSource.stride;
|
||||
this.§_-G6§ = inputSource.numbers;
|
||||
this.§_-JC§ = inputSource.stride;
|
||||
}
|
||||
break;
|
||||
case "OUTPUT":
|
||||
@@ -52,7 +52,7 @@ package alternativa.engine3d.loaders.collada
|
||||
if(outputSource != null)
|
||||
{
|
||||
this.values = outputSource.numbers;
|
||||
this.var_721 = outputSource.stride;
|
||||
this.§_-7i§ = outputSource.stride;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -60,73 +60,73 @@ package alternativa.engine3d.loaders.collada
|
||||
return true;
|
||||
}
|
||||
|
||||
public function parseNumbersTrack(objectName:String, property:String) : name_591
|
||||
public function parseNumbersTrack(objectName:String, property:String) : NumberTrack
|
||||
{
|
||||
var track:name_591 = null;
|
||||
var track:NumberTrack = null;
|
||||
var count:int = 0;
|
||||
var i:int = 0;
|
||||
if(this.var_719 != null && this.values != null && this.var_720 > 0)
|
||||
if(this.§_-G6§ != null && this.values != null && this.§_-JC§ > 0)
|
||||
{
|
||||
track = new name_591(objectName,property);
|
||||
count = this.var_719.length / this.var_720;
|
||||
track = new NumberTrack(objectName,property);
|
||||
count = this.§_-G6§.length / this.§_-JC§;
|
||||
for(i = 0; i < count; i++)
|
||||
{
|
||||
track.addKey(this.var_719[int(this.var_720 * i)],this.values[int(this.var_721 * i)]);
|
||||
track.addKey(this.§_-G6§[int(this.§_-JC§ * i)],this.values[int(this.§_-7i§ * i)]);
|
||||
}
|
||||
return track;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public function parseTransformationTrack(objectName:String) : name_552
|
||||
public function parseTransformationTrack(objectName:String) : Track
|
||||
{
|
||||
var track:name_590 = null;
|
||||
var track:TransformTrack = null;
|
||||
var count:int = 0;
|
||||
var i:int = 0;
|
||||
var index:int = 0;
|
||||
var matrix:Matrix3D = null;
|
||||
if(this.var_719 != null && this.values != null && this.var_720 != 0)
|
||||
if(this.§_-G6§ != null && this.values != null && this.§_-JC§ != 0)
|
||||
{
|
||||
track = new name_590(objectName);
|
||||
count = this.var_719.length / this.var_720;
|
||||
track = new TransformTrack(objectName);
|
||||
count = this.§_-G6§.length / this.§_-JC§;
|
||||
for(i = 0; i < count; i++)
|
||||
{
|
||||
index = this.var_721 * i;
|
||||
index = this.§_-7i§ * i;
|
||||
matrix = new Matrix3D(Vector.<Number>([this.values[index],this.values[index + 4],this.values[index + 8],this.values[index + 12],this.values[index + 1],this.values[index + 5],this.values[index + 9],this.values[index + 13],this.values[index + 2],this.values[index + 6],this.values[index + 10],this.values[index + 14],this.values[index + 3],this.values[index + 7],this.values[index + 11],this.values[index + 15]]));
|
||||
track.addKey(this.var_719[i * this.var_720],matrix);
|
||||
track.addKey(this.§_-G6§[i * this.§_-JC§],matrix);
|
||||
}
|
||||
return track;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public function parsePointsTracks(objectName:String, xProperty:String, yProperty:String, zProperty:String) : Vector.<name_552>
|
||||
public function parsePointsTracks(objectName:String, xProperty:String, yProperty:String, zProperty:String) : Vector.<Track>
|
||||
{
|
||||
var xTrack:name_591 = null;
|
||||
var yTrack:name_591 = null;
|
||||
var zTrack:name_591 = null;
|
||||
var xTrack:NumberTrack = null;
|
||||
var yTrack:NumberTrack = null;
|
||||
var zTrack:NumberTrack = null;
|
||||
var count:int = 0;
|
||||
var i:int = 0;
|
||||
var index:int = 0;
|
||||
var time:Number = NaN;
|
||||
if(this.var_719 != null && this.values != null && this.var_720 != 0)
|
||||
if(this.§_-G6§ != null && this.values != null && this.§_-JC§ != 0)
|
||||
{
|
||||
xTrack = new name_591(objectName,xProperty);
|
||||
xTrack = new NumberTrack(objectName,xProperty);
|
||||
xTrack.object = objectName;
|
||||
yTrack = new name_591(objectName,yProperty);
|
||||
yTrack = new NumberTrack(objectName,yProperty);
|
||||
yTrack.object = objectName;
|
||||
zTrack = new name_591(objectName,zProperty);
|
||||
zTrack = new NumberTrack(objectName,zProperty);
|
||||
zTrack.object = objectName;
|
||||
count = this.var_719.length / this.var_720;
|
||||
count = this.§_-G6§.length / this.§_-JC§;
|
||||
for(i = 0; i < count; i++)
|
||||
{
|
||||
index = i * this.var_721;
|
||||
time = this.var_719[i * this.var_720];
|
||||
index = i * this.§_-7i§;
|
||||
time = this.§_-G6§[i * this.§_-JC§];
|
||||
xTrack.addKey(time,this.values[index]);
|
||||
yTrack.addKey(time,this.values[index + 1]);
|
||||
zTrack.addKey(time,this.values[index + 2]);
|
||||
}
|
||||
return Vector.<name_552>([xTrack,yTrack,zTrack]);
|
||||
return Vector.<Track>([xTrack,yTrack,zTrack]);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -4,15 +4,15 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public class DaeSource extends DaeElement
|
||||
{
|
||||
private const const_7:String = "float_array";
|
||||
private const §_-XM§:String = "float_array";
|
||||
|
||||
private const const_9:String = "int_array";
|
||||
private const §_-g6§:String = "int_array";
|
||||
|
||||
private const const_8:String = "Name_array";
|
||||
private const §_-ZJ§:String = "Name_array";
|
||||
|
||||
public var numbers:Vector.<Number>;
|
||||
|
||||
public var var_550:Vector.<int>;
|
||||
public var §_-op§:Vector.<int>;
|
||||
|
||||
public var names:Vector.<String>;
|
||||
|
||||
@@ -34,9 +34,9 @@ package alternativa.engine3d.loaders.collada
|
||||
child = children[i];
|
||||
switch(child.localName())
|
||||
{
|
||||
case this.const_7:
|
||||
case this.const_9:
|
||||
case this.const_8:
|
||||
case this.§_-XM§:
|
||||
case this.§_-g6§:
|
||||
case this.§_-ZJ§:
|
||||
_loc5_ = new DaeArray(child,document);
|
||||
if(_loc5_.id != null)
|
||||
{
|
||||
@@ -119,13 +119,13 @@ package alternativa.engine3d.loaders.collada
|
||||
var arrStride:int = int(Math.max(this.numValidParams(params),stride));
|
||||
switch(type)
|
||||
{
|
||||
case this.const_7:
|
||||
case this.§_-XM§:
|
||||
this.numbers = new Vector.<Number>(int(arrStride * count));
|
||||
break;
|
||||
case this.const_9:
|
||||
this.var_550 = new Vector.<int>(int(arrStride * count));
|
||||
case this.§_-g6§:
|
||||
this.§_-op§ = new Vector.<int>(int(arrStride * count));
|
||||
break;
|
||||
case this.const_8:
|
||||
case this.§_-ZJ§:
|
||||
this.names = new Vector.<String>(int(arrStride * count));
|
||||
}
|
||||
var curr:int = 0;
|
||||
@@ -136,7 +136,7 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
switch(type)
|
||||
{
|
||||
case this.const_7:
|
||||
case this.§_-XM§:
|
||||
for(j = 0; j < count; j++)
|
||||
{
|
||||
value = array[int(offset + stride * j + i)];
|
||||
@@ -147,13 +147,13 @@ package alternativa.engine3d.loaders.collada
|
||||
this.numbers[int(arrStride * j + curr)] = parseFloat(value);
|
||||
}
|
||||
break;
|
||||
case this.const_9:
|
||||
case this.§_-g6§:
|
||||
for(j = 0; j < count; j++)
|
||||
{
|
||||
this.var_550[int(arrStride * j + curr)] = parseInt(array[int(offset + stride * j + i)],10);
|
||||
this.§_-op§[int(arrStride * j + curr)] = parseInt(array[int(offset + stride * j + i)],10);
|
||||
}
|
||||
break;
|
||||
case this.const_8:
|
||||
case this.§_-ZJ§:
|
||||
for(j = 0; j < count; j++)
|
||||
{
|
||||
this.names[int(arrStride * j + curr)] = array[int(offset + stride * j + i)];
|
||||
|
||||
@@ -4,9 +4,9 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public class DaeVertex
|
||||
{
|
||||
public var name_600:int;
|
||||
public var §_-Eq§:int;
|
||||
|
||||
public var name_601:int;
|
||||
public var §_-AR§:int;
|
||||
|
||||
public var indices:Vector.<int> = new Vector.<int>();
|
||||
|
||||
@@ -20,7 +20,7 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public var normal:Vector3D;
|
||||
|
||||
public var name_596:Vector3D;
|
||||
public var §_-hC§:Vector3D;
|
||||
|
||||
public function DaeVertex()
|
||||
{
|
||||
@@ -55,12 +55,12 @@ package alternativa.engine3d.loaders.collada
|
||||
var biNormalX:Number = biNormalData[int(biNormalOffset++)];
|
||||
var biNormalY:Number = biNormalData[int(biNormalOffset++)];
|
||||
var biNormalZ:Number = biNormalData[biNormalOffset];
|
||||
this.name_596 = new Vector3D(tangentData[int(tangentOffset++)],tangentData[int(tangentOffset++)],tangentData[tangentOffset]);
|
||||
var crossX:Number = this.normal.y * this.name_596.z - this.normal.z * this.name_596.y;
|
||||
var crossY:Number = this.normal.z * this.name_596.x - this.normal.x * this.name_596.z;
|
||||
var crossZ:Number = this.normal.x * this.name_596.y - this.normal.y * this.name_596.x;
|
||||
this.§_-hC§ = new Vector3D(tangentData[int(tangentOffset++)],tangentData[int(tangentOffset++)],tangentData[tangentOffset]);
|
||||
var crossX:Number = this.normal.y * this.§_-hC§.z - this.normal.z * this.§_-hC§.y;
|
||||
var crossY:Number = this.normal.z * this.§_-hC§.x - this.normal.x * this.§_-hC§.z;
|
||||
var crossZ:Number = this.normal.x * this.§_-hC§.y - this.normal.y * this.§_-hC§.x;
|
||||
var dot:Number = crossX * biNormalX + crossY * biNormalY + crossZ * biNormalZ;
|
||||
this.name_596.w = dot < 0 ? -1 : 1;
|
||||
this.§_-hC§.w = dot < 0 ? -1 : 1;
|
||||
}
|
||||
|
||||
public function appendUV(data:Vector.<Number>, dataIndex:int, stride:int) : void
|
||||
|
||||
@@ -7,7 +7,7 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public class DaeVertices extends DaeElement
|
||||
{
|
||||
public var name_597:DaeSource;
|
||||
public var §_-E6§:DaeSource;
|
||||
|
||||
public function DaeVertices(data:XML, document:DaeDocument)
|
||||
{
|
||||
@@ -20,8 +20,8 @@ package alternativa.engine3d.loaders.collada
|
||||
inputXML = data.input.(@semantic == "POSITION")[0];
|
||||
if(inputXML != null)
|
||||
{
|
||||
this.name_597 = new DaeInput(inputXML,document).prepareSource(3);
|
||||
if(this.name_597 != null)
|
||||
this.§_-E6§ = new DaeInput(inputXML,document).prepareSource(3);
|
||||
if(this.§_-E6§ != null)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
485
src/alternativa/engine3d/materials/EnviromentMaterial.as
Normal file
485
src/alternativa/engine3d/materials/EnviromentMaterial.as
Normal file
@@ -0,0 +1,485 @@
|
||||
package alternativa.engine3d.materials
|
||||
{
|
||||
import alternativa.engine3d.alternativa3d;
|
||||
import alternativa.engine3d.core.Camera3D;
|
||||
import alternativa.engine3d.core.DrawUnit;
|
||||
import alternativa.engine3d.core.Light3D;
|
||||
import alternativa.engine3d.core.Object3D;
|
||||
import alternativa.engine3d.core.RenderPriority;
|
||||
import alternativa.engine3d.core.Transform3D;
|
||||
import alternativa.engine3d.core.VertexAttributes;
|
||||
import alternativa.engine3d.materials.compiler.Linker;
|
||||
import alternativa.engine3d.materials.compiler.Procedure;
|
||||
import alternativa.engine3d.materials.compiler.VariableType;
|
||||
import alternativa.engine3d.objects.Surface;
|
||||
import alternativa.engine3d.resources.BitmapTextureResource;
|
||||
import alternativa.engine3d.resources.Geometry;
|
||||
import alternativa.engine3d.resources.TextureResource;
|
||||
import avmplus.getQualifiedClassName;
|
||||
import flash.display.BitmapData;
|
||||
import flash.display3D.Context3DBlendFactor;
|
||||
import flash.display3D.Context3DProgramType;
|
||||
import flash.display3D.VertexBuffer3D;
|
||||
import flash.utils.Dictionary;
|
||||
import flash.utils.getDefinitionByName;
|
||||
|
||||
use namespace alternativa3d;
|
||||
|
||||
public class EnviromentMaterial extends TextureMaterial
|
||||
{
|
||||
alternativa3d static var fogTexture:TextureResource;
|
||||
|
||||
private static var _programs:Dictionary = new Dictionary();
|
||||
|
||||
alternativa3d static const DISABLED:int = 0;
|
||||
|
||||
alternativa3d static const SIMPLE:int = 1;
|
||||
|
||||
alternativa3d static const ADVANCED:int = 2;
|
||||
|
||||
alternativa3d static var fogMode:int = alternativa3d::DISABLED;
|
||||
|
||||
alternativa3d static var fogNear:Number = 1000;
|
||||
|
||||
alternativa3d static var fogFar:Number = 5000;
|
||||
|
||||
alternativa3d static var fogMaxDensity:Number = 1;
|
||||
|
||||
alternativa3d static var fogColorR:Number = 200 / 255;
|
||||
|
||||
alternativa3d static var fogColorG:Number = 162 / 255;
|
||||
|
||||
alternativa3d static var fogColorB:Number = 200 / 255;
|
||||
|
||||
alternativa3d static const _passReflectionProcedure:Procedure = new Procedure(["#v1=vNormal","#v0=vPosition","mov v0, i0","mov v1, i1"],"passReflectionProcedure");
|
||||
|
||||
alternativa3d static const _applyReflectionProcedure:Procedure = new Procedure(["#v1=vNormal","#v0=vPosition","#s0=sCubeMap","#c0=cCamera","sub t0, v0, c0","dp3 t1.x, v1, t0","add t1.x, t1.x, t1.x","mul t1, v1, t1.x","sub t1, t0, t1","nrm t1.xyz, t1.xyz","tex o0, t1, s0 <cube,clamp,linear,nomip>"],"applyReflectionProcedure");
|
||||
|
||||
alternativa3d static const _applyReflectionNormalMapProcedure:Procedure = new Procedure(["#s0=sCubeMap","#c0=cCamera","#v0=vPosition","sub t0, v0, c0","dp3 t1.x, i0.xyz, t0","add t1.x, t1.x, t1.x","mul t1, i0.xyz, t1.x","sub t1, t0, t1","nrm t1.xyz, t1.xyz","tex o0, t1, s0 <cube,clamp,linear,nomip>"],"applyReflectionNormalMapProcedure");
|
||||
|
||||
alternativa3d static const _blendReflection:Procedure = new Procedure(["#c0=cAlpha","mul t1, i0, c0.y","mul t0.xyz, i1, c0.z","add t0.xyz, t1, t0","mov t0.w, i0.w","mov o0, t0"],"blendReflection");
|
||||
|
||||
alternativa3d static const _blendReflectionMap:Procedure = new Procedure(["#c0=cCamera","#c1=cAlpha","#s0=sReflection","#v0=vUV","tex t0, v0, s0 <2d,repeat,linear,miplinear>","mul t0, t0, c1.z","mul t1.xyz, i1, t0","sub t0, c0.www, t0","mul t2, i0, t0","add t0.xyz, t1, t2","mov t0.w, i0.w","mov o0, t0"],"blendReflectionMap");
|
||||
|
||||
private static const _passTBNRightProcedure:Procedure = getPassTBNProcedure(true);
|
||||
|
||||
private static const _passTBNLeftProcedure:Procedure = getPassTBNProcedure(false);
|
||||
|
||||
private static const _getNormalTangentProcedure:Procedure = new Procedure(["#v0=vTangent","#v1=vBinormal","#v2=vNormal","#v3=vUV","#c0=cCamera","#s0=sBump","tex t0, v3, s0 <2d,repeat,linear,miplinear>","add t0, t0, t0","sub t0.xyz, t0.xyz, c0.www","nrm t1.xyz, v0.xyz","dp3 o0.x, t0.xyz, t1.xyz","nrm t1.xyz, v1.xyz","dp3 o0.y, t0.xyz, t1.xyz","nrm t1.xyz, v2.xyz","dp3 o0.z, t0.xyz, t1.xyz","nrm o0.xyz, o0.xyz"],"getNormalTangentProcedure");
|
||||
|
||||
private static const _getNormalObjectProcedure:Procedure = new Procedure(["#v3=vUV","#c0=cCamera","#s0=sBump","tex t0, v3, s0 <2d,repeat,linear,miplinear>","add t0, t0, t0","sub t0.xyz, t0.xyz, c0.www","nrm o0.xyz, t0.xyz"],"getNormalObjectProcedure");
|
||||
|
||||
private static const passSimpleFogConstProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z"],"passSimpleFogConst");
|
||||
|
||||
private static const outputWithSimpleFogProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogColor","#c1=cFogRange","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mul t0.xyz, c0.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithSimpleFog");
|
||||
|
||||
private static const postPassAdvancedFogConstProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z","mov v0.zw, i1.xwxw","mov o0, i1"],"postPassAdvancedFogConst");
|
||||
|
||||
private static const outputWithAdvancedFogProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogConsts","#c1=cFogRange","#s0=sFogTexture","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mov t1.xyzw, c0.yyzw","div t0.z, v0.z, v0.w","mul t0.z, t0.z, c0.x","add t1.x, t1.x, t0.z","tex t1, t1, s0 <2d, repeat, linear, miplinear>","mul t0.xyz, t1.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithAdvancedFog");
|
||||
|
||||
private static const _applyLightMapProcedure:Procedure = new Procedure(["#v0=vUV1","#s0=sLightMap","tex t0, v0, s0 <2d,repeat,linear,mipnone>","add t0, t0, t0","mul i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"applyLightMapProcedure");
|
||||
|
||||
private static const _passLightMapUVProcedure:Procedure = new Procedure(["#a0=aUV1","#v0=vUV1","mov v0, a0"],"passLightMapUVProcedure");
|
||||
|
||||
private var §_-NH§:int = 0;
|
||||
|
||||
public var normalMap:TextureResource;
|
||||
|
||||
public var environmentMap:TextureResource;
|
||||
|
||||
public var reflection:Number = 1;
|
||||
|
||||
public var reflectionMap:TextureResource;
|
||||
|
||||
public var lightMap:TextureResource;
|
||||
|
||||
public var lightMapChannel:uint = 1;
|
||||
|
||||
public function EnviromentMaterial(diffuseMap:TextureResource = null, environmentMap:TextureResource = null, normalMap:TextureResource = null, reflectionMap:TextureResource = null, lightMap:TextureResource = null, opacityMap:TextureResource = null, alpha:Number = 1)
|
||||
{
|
||||
super(diffuseMap,opacityMap,alpha);
|
||||
this.environmentMap = environmentMap;
|
||||
this.normalMap = normalMap;
|
||||
this.reflectionMap = reflectionMap;
|
||||
this.lightMap = lightMap;
|
||||
}
|
||||
|
||||
private static function getPassTBNProcedure(right:Boolean) : Procedure
|
||||
{
|
||||
var crsInSpace:String = right ? "crs t1.xyz, i0, i1" : "crs t1.xyz, i1, i0";
|
||||
return new Procedure(["#v0=vTangent","#v1=vBinormal","#v2=vNormal",crsInSpace,"mul t1.xyz, t1.xyz, i0.w","mov v0.x, i0.x","mov v0.y, t1.x","mov v0.z, i1.x","mov v0.w, i1.w","mov v1.x, i0.y","mov v1.y, t1.y","mov v1.z, i1.y","mov v1.w, i1.w","mov v2.x, i0.z","mov v2.y, t1.z","mov v2.z, i1.z","mov v2.w, i1.w"],"passTBNProcedure");
|
||||
}
|
||||
|
||||
public function get normalMapSpace() : int
|
||||
{
|
||||
return this.§_-NH§;
|
||||
}
|
||||
|
||||
public function set normalMapSpace(value:int) : void
|
||||
{
|
||||
if(value != NormalMapSpace.TANGENT_RIGHT_HANDED && value != NormalMapSpace.TANGENT_LEFT_HANDED && value != NormalMapSpace.OBJECT)
|
||||
{
|
||||
throw new ArgumentError("Value must be a constant from the NormalMapSpace class");
|
||||
}
|
||||
this.§_-NH§ = value;
|
||||
}
|
||||
|
||||
override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void
|
||||
{
|
||||
super.alternativa3d::fillResources(resources,resourceType);
|
||||
if(this.environmentMap != null && Boolean(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(this.environmentMap)) as Class,resourceType)))
|
||||
{
|
||||
resources[this.environmentMap] = true;
|
||||
}
|
||||
if(this.normalMap != null && Boolean(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(this.normalMap)) as Class,resourceType)))
|
||||
{
|
||||
resources[this.normalMap] = true;
|
||||
}
|
||||
if(this.reflectionMap != null && Boolean(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(this.reflectionMap)) as Class,resourceType)))
|
||||
{
|
||||
resources[this.reflectionMap] = true;
|
||||
}
|
||||
if(this.lightMap != null && Boolean(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(this.lightMap)) as Class,resourceType)))
|
||||
{
|
||||
resources[this.lightMap] = true;
|
||||
}
|
||||
}
|
||||
|
||||
private function final(targetObject:Object3D) : EnvironmentMaterialShaderProgram
|
||||
{
|
||||
var procedure:Procedure = null;
|
||||
var outputProcedure:Procedure = null;
|
||||
var nrmProcedure:Procedure = null;
|
||||
var vertexLinker:Linker = new Linker(Context3DProgramType.VERTEX);
|
||||
var fragmentLinker:Linker = new Linker(Context3DProgramType.FRAGMENT);
|
||||
var positionVar:String = "aPosition";
|
||||
var normalVar:String = "aNormal";
|
||||
var tangentVar:String = "aTangent";
|
||||
vertexLinker.declareVariable(positionVar,VariableType.ATTRIBUTE);
|
||||
vertexLinker.declareVariable(normalVar,VariableType.ATTRIBUTE);
|
||||
if(targetObject.alternativa3d::transformProcedure != null)
|
||||
{
|
||||
positionVar = alternativa3d::appendPositionTransformProcedure(targetObject.alternativa3d::transformProcedure,vertexLinker);
|
||||
}
|
||||
if(targetObject.alternativa3d::deltaTransformProcedure != null)
|
||||
{
|
||||
vertexLinker.declareVariable("tTransformedNormal");
|
||||
procedure = targetObject.alternativa3d::deltaTransformProcedure.newInstance();
|
||||
vertexLinker.addProcedure(procedure);
|
||||
vertexLinker.setInputParams(procedure,normalVar);
|
||||
vertexLinker.setOutputParams(procedure,"tTransformedNormal");
|
||||
normalVar = "tTransformedNormal";
|
||||
if((this.§_-NH§ == NormalMapSpace.TANGENT_RIGHT_HANDED || this.§_-NH§ == NormalMapSpace.TANGENT_LEFT_HANDED) && this.normalMap != null)
|
||||
{
|
||||
vertexLinker.declareVariable(tangentVar,VariableType.ATTRIBUTE);
|
||||
vertexLinker.declareVariable("tTransformedTangent");
|
||||
procedure = targetObject.alternativa3d::deltaTransformProcedure.newInstance();
|
||||
vertexLinker.addProcedure(procedure);
|
||||
vertexLinker.setInputParams(procedure,tangentVar);
|
||||
vertexLinker.setOutputParams(procedure,"tTransformedTangent");
|
||||
tangentVar = "tTransformedTangent";
|
||||
}
|
||||
}
|
||||
else if((this.§_-NH§ == NormalMapSpace.TANGENT_RIGHT_HANDED || this.§_-NH§ == NormalMapSpace.TANGENT_LEFT_HANDED) && this.normalMap != null)
|
||||
{
|
||||
vertexLinker.declareVariable(tangentVar,VariableType.ATTRIBUTE);
|
||||
}
|
||||
vertexLinker.addProcedure(_passLightMapUVProcedure);
|
||||
vertexLinker.addProcedure(alternativa3d::_passReflectionProcedure);
|
||||
vertexLinker.setInputParams(alternativa3d::_passReflectionProcedure,positionVar,normalVar);
|
||||
vertexLinker.addProcedure(alternativa3d::_projectProcedure);
|
||||
vertexLinker.setInputParams(alternativa3d::_projectProcedure,positionVar);
|
||||
vertexLinker.addProcedure(alternativa3d::_passUVProcedure);
|
||||
if(this.normalMap != null)
|
||||
{
|
||||
fragmentLinker.declareVariable("tNormal");
|
||||
if(this.§_-NH§ == NormalMapSpace.TANGENT_RIGHT_HANDED || this.§_-NH§ == NormalMapSpace.TANGENT_LEFT_HANDED)
|
||||
{
|
||||
nrmProcedure = this.§_-NH§ == NormalMapSpace.TANGENT_RIGHT_HANDED ? _passTBNRightProcedure : _passTBNLeftProcedure;
|
||||
vertexLinker.addProcedure(nrmProcedure);
|
||||
vertexLinker.setInputParams(nrmProcedure,tangentVar,normalVar);
|
||||
fragmentLinker.addProcedure(_getNormalTangentProcedure);
|
||||
fragmentLinker.setOutputParams(_getNormalTangentProcedure,"tNormal");
|
||||
}
|
||||
else
|
||||
{
|
||||
fragmentLinker.addProcedure(_getNormalObjectProcedure);
|
||||
fragmentLinker.setOutputParams(_getNormalObjectProcedure,"tNormal");
|
||||
}
|
||||
}
|
||||
vertexLinker.link();
|
||||
fragmentLinker.declareVariable("tColor");
|
||||
if(§_-L4§)
|
||||
{
|
||||
fragmentLinker.addProcedure(alternativa3d::_samplerSetProcedureDiffuseAlpha);
|
||||
fragmentLinker.setOutputParams(alternativa3d::_samplerSetProcedureDiffuseAlpha,"tColor");
|
||||
}
|
||||
else if(opacityMap != null)
|
||||
{
|
||||
fragmentLinker.addProcedure(alternativa3d::_samplerSetProcedureOpacity);
|
||||
fragmentLinker.setOutputParams(alternativa3d::_samplerSetProcedureOpacity,"tColor");
|
||||
}
|
||||
else
|
||||
{
|
||||
fragmentLinker.addProcedure(alternativa3d::_samplerSetProcedure);
|
||||
fragmentLinker.setOutputParams(alternativa3d::_samplerSetProcedure,"tColor");
|
||||
}
|
||||
fragmentLinker.declareVariable("tReflection");
|
||||
if(this.normalMap != null)
|
||||
{
|
||||
fragmentLinker.addProcedure(alternativa3d::_applyReflectionNormalMapProcedure);
|
||||
fragmentLinker.setInputParams(alternativa3d::_applyReflectionNormalMapProcedure,"tNormal");
|
||||
fragmentLinker.setOutputParams(alternativa3d::_applyReflectionNormalMapProcedure,"tReflection");
|
||||
}
|
||||
else
|
||||
{
|
||||
fragmentLinker.addProcedure(alternativa3d::_applyReflectionProcedure);
|
||||
fragmentLinker.setOutputParams(alternativa3d::_applyReflectionProcedure,"tReflection");
|
||||
}
|
||||
fragmentLinker.addProcedure(_applyLightMapProcedure);
|
||||
fragmentLinker.setInputParams(_applyLightMapProcedure,"tColor");
|
||||
fragmentLinker.setOutputParams(_applyLightMapProcedure,"tColor");
|
||||
if(this.reflectionMap != null)
|
||||
{
|
||||
fragmentLinker.addProcedure(alternativa3d::_blendReflectionMap);
|
||||
fragmentLinker.setInputParams(alternativa3d::_blendReflectionMap,"tColor","tReflection");
|
||||
outputProcedure = alternativa3d::_blendReflectionMap;
|
||||
}
|
||||
else
|
||||
{
|
||||
fragmentLinker.addProcedure(alternativa3d::_blendReflection);
|
||||
fragmentLinker.setInputParams(alternativa3d::_blendReflection,"tColor","tReflection");
|
||||
outputProcedure = alternativa3d::_blendReflection;
|
||||
}
|
||||
if(alternativa3d::fogMode == alternativa3d::SIMPLE || alternativa3d::fogMode == alternativa3d::ADVANCED)
|
||||
{
|
||||
fragmentLinker.declareVariable("outColor");
|
||||
fragmentLinker.setOutputParams(outputProcedure,"outColor");
|
||||
}
|
||||
if(alternativa3d::fogMode == alternativa3d::SIMPLE)
|
||||
{
|
||||
vertexLinker.addProcedure(passSimpleFogConstProcedure);
|
||||
vertexLinker.setInputParams(passSimpleFogConstProcedure,positionVar);
|
||||
fragmentLinker.addProcedure(outputWithSimpleFogProcedure);
|
||||
fragmentLinker.setInputParams(outputWithSimpleFogProcedure,"outColor");
|
||||
}
|
||||
else if(alternativa3d::fogMode == alternativa3d::ADVANCED)
|
||||
{
|
||||
vertexLinker.declareVariable("tProjected");
|
||||
vertexLinker.setOutputParams(alternativa3d::_projectProcedure,"tProjected");
|
||||
vertexLinker.addProcedure(postPassAdvancedFogConstProcedure);
|
||||
vertexLinker.setInputParams(postPassAdvancedFogConstProcedure,positionVar,"tProjected");
|
||||
fragmentLinker.addProcedure(outputWithAdvancedFogProcedure);
|
||||
fragmentLinker.setInputParams(outputWithAdvancedFogProcedure,"outColor");
|
||||
}
|
||||
fragmentLinker.link();
|
||||
fragmentLinker.setOppositeLinker(vertexLinker);
|
||||
return new EnvironmentMaterialShaderProgram(vertexLinker,fragmentLinker);
|
||||
}
|
||||
|
||||
override alternativa3d function collectDraws(camera:Camera3D, surface:Surface, geometry:Geometry, lights:Vector.<Light3D>, lightsLength:int, objectRenderPriority:int = -1) : void
|
||||
{
|
||||
var program:ShaderProgram = null;
|
||||
var i:int = 0;
|
||||
var lm:Transform3D = null;
|
||||
var dist:Number = NaN;
|
||||
var cLocal:Transform3D = null;
|
||||
var halfW:Number = NaN;
|
||||
var leftX:Number = NaN;
|
||||
var leftY:Number = NaN;
|
||||
var rightX:Number = NaN;
|
||||
var rightY:Number = NaN;
|
||||
var angle:Number = NaN;
|
||||
var dx:Number = NaN;
|
||||
var dy:Number = NaN;
|
||||
var lens:Number = NaN;
|
||||
var uScale:Number = NaN;
|
||||
var uRight:Number = NaN;
|
||||
var bmd:BitmapData = null;
|
||||
if(diffuseMap == null || this.environmentMap == null || diffuseMap.alternativa3d::_texture == null || this.environmentMap.alternativa3d::_texture == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if(!§_-L4§ && opacityMap != null && opacityMap.alternativa3d::_texture == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var object:Object3D = surface.alternativa3d::object;
|
||||
var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.POSITION);
|
||||
var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.TEXCOORDS[0]);
|
||||
var normalsBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.NORMAL);
|
||||
var tangentsBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.TANGENT4);
|
||||
if(positionBuffer == null || uvBuffer == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var key:String = alternativa3d::fogMode.toString() + this.§_-NH§.toString() + (this.normalMap != null ? "N" : "n") + (opacityMap != null ? "O" : "o") + (§_-L4§ ? "D" : "d");
|
||||
var programs:Dictionary = _programs[object.alternativa3d::transformProcedure];
|
||||
if(programs == null)
|
||||
{
|
||||
programs = new Dictionary(false);
|
||||
_programs[object.alternativa3d::transformProcedure] = programs;
|
||||
program = this.final(object);
|
||||
program.upload(camera.alternativa3d::context3D);
|
||||
programs[key] = program;
|
||||
}
|
||||
else
|
||||
{
|
||||
program = programs[key];
|
||||
if(program == null)
|
||||
{
|
||||
program = this.final(object);
|
||||
program.upload(camera.alternativa3d::context3D);
|
||||
programs[key] = program;
|
||||
}
|
||||
}
|
||||
var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program);
|
||||
drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sLightMap"),this.lightMap.alternativa3d::_texture);
|
||||
drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]);
|
||||
drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TEXCOORDS[0]],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TEXCOORDS[0]]);
|
||||
drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV1"),uvBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TEXCOORDS[this.lightMapChannel]],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TEXCOORDS[this.lightMapChannel]]);
|
||||
drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aNormal"),normalsBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.NORMAL],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.NORMAL]);
|
||||
object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera);
|
||||
drawUnit.alternativa3d::setProjectionConstants(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform);
|
||||
var camTransform:Transform3D = object.alternativa3d::cameraToLocalTransform;
|
||||
drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cCamera"),camTransform.d,camTransform.h,camTransform.l);
|
||||
var envProgram:EnvironmentMaterialShaderProgram = program as EnvironmentMaterialShaderProgram;
|
||||
if(this.normalMap != null)
|
||||
{
|
||||
drawUnit.alternativa3d::setTextureAt(envProgram.sBump,this.normalMap.alternativa3d::_texture);
|
||||
if(this.§_-NH§ == NormalMapSpace.TANGENT_RIGHT_HANDED || this.§_-NH§ == NormalMapSpace.TANGENT_LEFT_HANDED)
|
||||
{
|
||||
drawUnit.alternativa3d::setVertexBufferAt(envProgram.aTangent,tangentsBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TANGENT4],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TANGENT4]);
|
||||
}
|
||||
}
|
||||
if(this.reflectionMap != null)
|
||||
{
|
||||
drawUnit.alternativa3d::setTextureAt(envProgram.sReflection,this.reflectionMap.alternativa3d::_texture);
|
||||
}
|
||||
drawUnit.alternativa3d::setTextureAt(envProgram.sTexture,diffuseMap.alternativa3d::_texture);
|
||||
drawUnit.alternativa3d::setTextureAt(envProgram.sCubeMap,this.environmentMap.alternativa3d::_texture);
|
||||
var cameraToLocalTransform:Transform3D = object.alternativa3d::cameraToLocalTransform;
|
||||
drawUnit.alternativa3d::setFragmentConstantsFromNumbers(envProgram.cCamera,cameraToLocalTransform.d,cameraToLocalTransform.h,cameraToLocalTransform.l);
|
||||
drawUnit.alternativa3d::setFragmentConstantsFromNumbers(envProgram.cAlpha,0,1 - this.reflection,this.reflection,alpha);
|
||||
drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sTexture"),diffuseMap.alternativa3d::_texture);
|
||||
if(!§_-L4§ && opacityMap != null)
|
||||
{
|
||||
drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sOpacity"),opacityMap.alternativa3d::_texture);
|
||||
}
|
||||
if(alternativa3d::fogMode == alternativa3d::SIMPLE || alternativa3d::fogMode == alternativa3d::ADVANCED)
|
||||
{
|
||||
lm = object.alternativa3d::localToCameraTransform;
|
||||
dist = alternativa3d::fogFar - alternativa3d::fogNear;
|
||||
drawUnit.alternativa3d::setVertexConstantsFromNumbers(program.vertexShader.getVariableIndex("cFogSpace"),lm.i / dist,lm.j / dist,lm.k / dist,(lm.l - alternativa3d::fogNear) / dist);
|
||||
drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cFogRange"),alternativa3d::fogMaxDensity,1,0,1 - alternativa3d::fogMaxDensity);
|
||||
}
|
||||
if(alternativa3d::fogMode == alternativa3d::SIMPLE)
|
||||
{
|
||||
drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cFogColor"),alternativa3d::fogColorR,alternativa3d::fogColorG,alternativa3d::fogColorB);
|
||||
}
|
||||
if(alternativa3d::fogMode == alternativa3d::ADVANCED)
|
||||
{
|
||||
if(alternativa3d::fogTexture == null)
|
||||
{
|
||||
bmd = new BitmapData(32,1,false,16711680);
|
||||
for(i = 0; i < 32; i++)
|
||||
{
|
||||
bmd.setPixel(i,0,i / 32 * 255 << 16);
|
||||
}
|
||||
alternativa3d::fogTexture = new BitmapTextureResource(bmd);
|
||||
alternativa3d::fogTexture.upload(camera.alternativa3d::context3D);
|
||||
}
|
||||
cLocal = camera.alternativa3d::localToGlobalTransform;
|
||||
halfW = camera.view.width / 2;
|
||||
leftX = -halfW * cLocal.a + camera.alternativa3d::focalLength * cLocal.c;
|
||||
leftY = -halfW * cLocal.e + camera.alternativa3d::focalLength * cLocal.g;
|
||||
rightX = halfW * cLocal.a + camera.alternativa3d::focalLength * cLocal.c;
|
||||
rightY = halfW * cLocal.e + camera.alternativa3d::focalLength * cLocal.g;
|
||||
angle = Math.atan2(leftY,leftX) - Math.PI / 2;
|
||||
if(angle < 0)
|
||||
{
|
||||
angle += Math.PI * 2;
|
||||
}
|
||||
dx = rightX - leftX;
|
||||
dy = rightY - leftY;
|
||||
lens = Number(Math.sqrt(dx * dx + dy * dy));
|
||||
leftX /= lens;
|
||||
leftY /= lens;
|
||||
rightX /= lens;
|
||||
rightY /= lens;
|
||||
uScale = Math.acos(leftX * rightX + leftY * rightY) / Math.PI / 2;
|
||||
uRight = angle / Math.PI / 2;
|
||||
drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cFogConsts"),0.5 * uScale,0.5 - uRight,0);
|
||||
drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sFogTexture"),alternativa3d::fogTexture.alternativa3d::_texture);
|
||||
}
|
||||
if(§_-L4§ || opacityMap != null || alpha < 1)
|
||||
{
|
||||
drawUnit.alternativa3d::blendSource = Context3DBlendFactor.SOURCE_ALPHA;
|
||||
drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA;
|
||||
camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : RenderPriority.TRANSPARENT_SORT);
|
||||
}
|
||||
else
|
||||
{
|
||||
camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : RenderPriority.OPAQUE);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
import alternativa.engine3d.materials.compiler.Linker;
|
||||
|
||||
class EnvironmentMaterialShaderProgram extends ShaderProgram
|
||||
{
|
||||
public var aTangent:int = -1;
|
||||
|
||||
public var aNormal:int = -1;
|
||||
|
||||
public var aPosition:int = -1;
|
||||
|
||||
public var aUV:int = -1;
|
||||
|
||||
public var cCamera:int = -1;
|
||||
|
||||
public var cAlpha:int = -1;
|
||||
|
||||
public var cProjMatrix:int = -1;
|
||||
|
||||
public var sBump:int = -1;
|
||||
|
||||
public var sTexture:int = -1;
|
||||
|
||||
public var sOpacity:int = -1;
|
||||
|
||||
public var sCubeMap:int = -1;
|
||||
|
||||
public var sReflection:int = -1;
|
||||
|
||||
public function EnvironmentMaterialShaderProgram(vertexShader:Linker, fragmentShader:Linker)
|
||||
{
|
||||
super(vertexShader,fragmentShader);
|
||||
this.aPosition = vertexShader.getVariableIndex("aPosition");
|
||||
this.aNormal = vertexShader.getVariableIndex("aNormal");
|
||||
this.aUV = vertexShader.getVariableIndex("aUV");
|
||||
if(fragmentShader.containsVariable("sBump"))
|
||||
{
|
||||
this.sBump = fragmentShader.getVariableIndex("sBump");
|
||||
}
|
||||
if(vertexShader.containsVariable("aTangent"))
|
||||
{
|
||||
this.aTangent = vertexShader.getVariableIndex("aTangent");
|
||||
}
|
||||
if(fragmentShader.containsVariable("sReflection"))
|
||||
{
|
||||
this.sReflection = fragmentShader.getVariableIndex("sReflection");
|
||||
}
|
||||
this.cProjMatrix = vertexShader.getVariableIndex("cProjMatrix");
|
||||
this.sTexture = fragmentShader.getVariableIndex("sTexture");
|
||||
this.sCubeMap = fragmentShader.getVariableIndex("sCubeMap");
|
||||
this.cCamera = fragmentShader.getVariableIndex("cCamera");
|
||||
this.cAlpha = fragmentShader.getVariableIndex("cAlpha");
|
||||
if(fragmentShader.containsVariable("sOpacity"))
|
||||
{
|
||||
this.sOpacity = fragmentShader.getVariableIndex("sOpacity");
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user