mirror of
https://github.com/MapMakersAndProgrammers/TankiOnline2.0DemoClient.git
synced 2025-10-27 02:19:07 -07:00
Use rename identifiers
This commit is contained in:
@@ -2,8 +2,8 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
import alternativa.engine3d.alternativa3d;
|
||||
import alternativa.engine3d.animation.keys.NumberKey;
|
||||
import alternativa.engine3d.animation.keys.§_-Np§;
|
||||
import alternativa.engine3d.animation.keys.§_-kB§;
|
||||
import alternativa.engine3d.animation.keys.name_552;
|
||||
import alternativa.engine3d.animation.keys.name_591;
|
||||
|
||||
use namespace alternativa3d;
|
||||
|
||||
@@ -35,9 +35,9 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public static const PARAM_MATRIX:String = "matrix";
|
||||
|
||||
public var tracks:Vector.<§_-Np§>;
|
||||
public var tracks:Vector.<name_552>;
|
||||
|
||||
public var §_-dS§:String = "undefined";
|
||||
public var name_589:String = "undefined";
|
||||
|
||||
public var animName:String;
|
||||
|
||||
@@ -129,13 +129,13 @@ package alternativa.engine3d.loaders.collada
|
||||
switch(componentName)
|
||||
{
|
||||
case "X":
|
||||
this.§_-dS§ = PARAM_TRANSLATE_X;
|
||||
this.name_589 = PARAM_TRANSLATE_X;
|
||||
break loop1;
|
||||
case "Y":
|
||||
this.§_-dS§ = PARAM_TRANSLATE_Y;
|
||||
this.name_589 = PARAM_TRANSLATE_Y;
|
||||
break loop1;
|
||||
case "Z":
|
||||
this.§_-dS§ = PARAM_TRANSLATE_Z;
|
||||
this.name_589 = PARAM_TRANSLATE_Z;
|
||||
}
|
||||
break;
|
||||
case "rotate":
|
||||
@@ -143,26 +143,26 @@ package alternativa.engine3d.loaders.collada
|
||||
switch(axis.indexOf(1))
|
||||
{
|
||||
case 0:
|
||||
this.§_-dS§ = PARAM_ROTATION_X;
|
||||
this.name_589 = PARAM_ROTATION_X;
|
||||
break loop1;
|
||||
case 1:
|
||||
this.§_-dS§ = PARAM_ROTATION_Y;
|
||||
this.name_589 = PARAM_ROTATION_Y;
|
||||
break loop1;
|
||||
case 2:
|
||||
this.§_-dS§ = PARAM_ROTATION_Z;
|
||||
this.name_589 = PARAM_ROTATION_Z;
|
||||
}
|
||||
break;
|
||||
case "scale":
|
||||
switch(componentName)
|
||||
{
|
||||
case "X":
|
||||
this.§_-dS§ = PARAM_SCALE_X;
|
||||
this.name_589 = PARAM_SCALE_X;
|
||||
break loop1;
|
||||
case "Y":
|
||||
this.§_-dS§ = PARAM_SCALE_Y;
|
||||
this.name_589 = PARAM_SCALE_Y;
|
||||
break loop1;
|
||||
case "Z":
|
||||
this.§_-dS§ = PARAM_SCALE_Z;
|
||||
this.name_589 = PARAM_SCALE_Z;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -171,55 +171,55 @@ package alternativa.engine3d.loaders.collada
|
||||
switch(transformationName)
|
||||
{
|
||||
case "translate":
|
||||
this.§_-dS§ = PARAM_TRANSLATE;
|
||||
this.name_589 = PARAM_TRANSLATE;
|
||||
break;
|
||||
case "scale":
|
||||
this.§_-dS§ = PARAM_SCALE;
|
||||
this.name_589 = PARAM_SCALE;
|
||||
break;
|
||||
case "matrix":
|
||||
this.§_-dS§ = PARAM_MATRIX;
|
||||
this.name_589 = PARAM_MATRIX;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function parseSampler() : void
|
||||
{
|
||||
var track:§_-kB§ = null;
|
||||
var track:name_591 = null;
|
||||
var toRad:Number = NaN;
|
||||
var key:NumberKey = null;
|
||||
var sampler:DaeSampler = document.findSampler(data.@source[0]);
|
||||
if(sampler != null)
|
||||
{
|
||||
sampler.parse();
|
||||
if(this.§_-dS§ == PARAM_MATRIX)
|
||||
if(this.name_589 == PARAM_MATRIX)
|
||||
{
|
||||
this.tracks = Vector.<§_-Np§>([sampler.parseTransformationTrack(this.animName)]);
|
||||
this.tracks = Vector.<name_552>([sampler.parseTransformationTrack(this.animName)]);
|
||||
return;
|
||||
}
|
||||
if(this.§_-dS§ == PARAM_TRANSLATE)
|
||||
if(this.name_589 == PARAM_TRANSLATE)
|
||||
{
|
||||
this.tracks = sampler.parsePointsTracks(this.animName,"x","y","z");
|
||||
return;
|
||||
}
|
||||
if(this.§_-dS§ == PARAM_SCALE)
|
||||
if(this.name_589 == PARAM_SCALE)
|
||||
{
|
||||
this.tracks = sampler.parsePointsTracks(this.animName,"scaleX","scaleY","scaleZ");
|
||||
return;
|
||||
}
|
||||
if(this.§_-dS§ == PARAM_ROTATION_X || this.§_-dS§ == PARAM_ROTATION_Y || this.§_-dS§ == PARAM_ROTATION_Z)
|
||||
if(this.name_589 == PARAM_ROTATION_X || this.name_589 == PARAM_ROTATION_Y || this.name_589 == PARAM_ROTATION_Z)
|
||||
{
|
||||
track = sampler.parseNumbersTrack(this.animName,this.§_-dS§);
|
||||
track = sampler.parseNumbersTrack(this.animName,this.name_589);
|
||||
toRad = Math.PI / 180;
|
||||
for(key = track.alternativa3d::_-ku; key != null; key = key.alternativa3d::next)
|
||||
for(key = track.alternativa3d::name_599; key != null; key = key.alternativa3d::next)
|
||||
{
|
||||
key.alternativa3d::_-4O *= toRad;
|
||||
key.alternativa3d::name_598 *= toRad;
|
||||
}
|
||||
this.tracks = Vector.<§_-Np§>([track]);
|
||||
this.tracks = Vector.<name_552>([track]);
|
||||
return;
|
||||
}
|
||||
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)
|
||||
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)
|
||||
{
|
||||
this.tracks = Vector.<§_-Np§>([sampler.parseNumbersTrack(this.animName,this.§_-dS§)]);
|
||||
this.tracks = Vector.<name_552>([sampler.parseNumbersTrack(this.animName,this.name_589)]);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
import alternativa.engine3d.*;
|
||||
import alternativa.engine3d.animation.§_-FA§;
|
||||
import alternativa.engine3d.animation.name_550;
|
||||
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 §_-A6§:Vector.<Vector.<Number>>;
|
||||
private var var_725:Vector.<Vector.<Number>>;
|
||||
|
||||
private var §_-2j§:Array;
|
||||
private var var_724:Array;
|
||||
|
||||
private var indices:Array;
|
||||
|
||||
private var §_-4h§:DaeInput;
|
||||
private var var_727:DaeInput;
|
||||
|
||||
private var §_-NK§:DaeInput;
|
||||
private var var_726:DaeInput;
|
||||
|
||||
private var §_-5O§:int;
|
||||
private var var_728:int;
|
||||
|
||||
private var geometry:Geometry;
|
||||
|
||||
private var primitives:Vector.<DaePrimitive>;
|
||||
|
||||
private var §_-1U§:int = 0;
|
||||
private var var_723:int = 0;
|
||||
|
||||
private var §_-I§:Vector.<Number>;
|
||||
private var var_722:Vector.<Number>;
|
||||
|
||||
public function DaeController(data:XML, document:DaeDocument)
|
||||
{
|
||||
@@ -78,7 +78,7 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
return false;
|
||||
}
|
||||
this.§_-2j§ = parseIntsArray(vcountsXML);
|
||||
this.var_724 = 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.§_-2j§.length; )
|
||||
for(i = 0; i < this.var_724.length; )
|
||||
{
|
||||
count = int(this.§_-2j§[i]);
|
||||
if(this.§_-1U§ < count)
|
||||
count = int(this.var_724[i]);
|
||||
if(this.var_723 < count)
|
||||
{
|
||||
this.§_-1U§ = count;
|
||||
this.var_723 = count;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
var geom:DaeGeometry = this.daeGeometry;
|
||||
this.§_-I§ = this.getBindShapeMatrix();
|
||||
this.var_722 = this.getBindShapeMatrix();
|
||||
if(geom != null)
|
||||
{
|
||||
geom.parse();
|
||||
vertices = geom.§_-FV§;
|
||||
vertices = geom.var_715;
|
||||
source = geom.geometry;
|
||||
localMaxJointsPerVertex = this.§_-1U§ % 2 != 0 ? this.§_-1U§ + 1 : this.§_-1U§;
|
||||
localMaxJointsPerVertex = this.var_723 % 2 != 0 ? this.var_723 + 1 : this.var_723;
|
||||
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.§_-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]);
|
||||
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]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.§_-4h§.offset;
|
||||
var weightsOffset:int = this.§_-NK§.offset;
|
||||
var weightsSource:DaeSource = this.§_-NK§.prepareSource(1);
|
||||
var jointsOffset:int = this.var_727.offset;
|
||||
var weightsOffset:int = this.var_726.offset;
|
||||
var weightsSource:DaeSource = this.var_726.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.§_-Eq§];
|
||||
vec = verticesDict[vertex.name_600];
|
||||
if(vec == null)
|
||||
{
|
||||
vec = verticesDict[vertex.§_-Eq§] = new Vector.<uint>();
|
||||
vec = verticesDict[vertex.name_600] = new Vector.<uint>();
|
||||
}
|
||||
vec.push(vertex.§_-AR§);
|
||||
vec.push(vertex.name_601);
|
||||
}
|
||||
}
|
||||
var vertexIndex:int = 0;
|
||||
for(i = 0,count = int(this.§_-2j§.length); i < count; i++)
|
||||
for(i = 0,count = int(this.var_724.length); i < count; i++)
|
||||
{
|
||||
jointsPerVertex = int(this.§_-2j§[i]);
|
||||
jointsPerVertex = int(this.var_724[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.§_-5O§ * (vertexIndex + k);
|
||||
index = this.var_728 * (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.§_-4h§ == null)
|
||||
if(this.var_727 == null)
|
||||
{
|
||||
this.§_-4h§ = input;
|
||||
this.var_727 = input;
|
||||
}
|
||||
break;
|
||||
case "WEIGHT":
|
||||
if(this.§_-NK§ == null)
|
||||
if(this.var_726 == null)
|
||||
{
|
||||
this.§_-NK§ = input;
|
||||
this.var_726 = input;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
this.§_-5O§ = maxInputOffset + 1;
|
||||
this.var_728 = maxInputOffset + 1;
|
||||
}
|
||||
|
||||
private function parseJointsBindMatrices() : void
|
||||
@@ -290,12 +290,12 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
stride = jointsSource.stride;
|
||||
count = jointsSource.numbers.length / stride;
|
||||
this.§_-A6§ = new Vector.<Vector.<Number>>(count);
|
||||
this.var_725 = new Vector.<Vector.<Number>>(count);
|
||||
for(i = 0; i < count; i++)
|
||||
{
|
||||
index = stride * i;
|
||||
matrix = new Vector.<Number>(16);
|
||||
this.§_-A6§[i] = matrix;
|
||||
this.var_725[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.§_-I§ = this.getBindShapeMatrix();
|
||||
numJoints = int(this.§_-A6§.length);
|
||||
skin = new Skin(this.§_-1U§,numJoints);
|
||||
this.var_722 = this.getBindShapeMatrix();
|
||||
numJoints = int(this.var_725.length);
|
||||
skin = new Skin(this.var_723,numJoints);
|
||||
skin.geometry = this.geometry;
|
||||
joints = this.addJointsToSkin(skin,topmostJoints,this.findNodes(skeletons));
|
||||
this.setJointsBindMatrices(joints);
|
||||
skin.§_-WA§ = this.collectRenderedJoints(joints,numJoints);
|
||||
skin.var_633 = 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>) : §_-FA§
|
||||
private function mergeJointsClips(skin:Skin, joints:Vector.<DaeObject>) : name_550
|
||||
{
|
||||
var animatedObject:DaeObject = null;
|
||||
var clip:§_-FA§ = null;
|
||||
var clip:name_550 = null;
|
||||
var object:Object3D = null;
|
||||
var t:int = 0;
|
||||
if(!this.hasJointsAnimation(joints))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
var result:§_-FA§ = new §_-FA§();
|
||||
var result:name_550 = new name_550();
|
||||
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.§_-nn§(clip.§_-QA§(t));
|
||||
result.name_551(clip.name_553(t));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
result.§_-nn§(animatedObject.jointNode.createStaticTransformTrack());
|
||||
result.name_551(animatedObject.jointNode.createStaticTransformTrack());
|
||||
}
|
||||
object = animatedObject.object;
|
||||
object.name = animatedObject.jointNode.animName;
|
||||
resultObjects.push(object);
|
||||
}
|
||||
result.alternativa3d::_-Kq = resultObjects;
|
||||
result.alternativa3d::var_348 = 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.§_-A6§.length); i < count; i++)
|
||||
for(var i:int = 0,var count:int = int(this.var_725.length); i < count; i++)
|
||||
{
|
||||
animatedJoint = animatedJoints[i];
|
||||
bindMatrix = this.§_-A6§[i];
|
||||
bindMatrix = this.var_725[i];
|
||||
Joint(animatedJoint.object).alternativa3d::setBindPoseMatrix(bindMatrix);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
private var data:XML;
|
||||
|
||||
internal var §_-DR§:Object;
|
||||
internal var var_690:Object;
|
||||
|
||||
internal var arrays:Object;
|
||||
|
||||
@@ -24,9 +24,9 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
internal var effects:Object;
|
||||
|
||||
internal var §_-DW§:Object;
|
||||
internal var var_691:Object;
|
||||
|
||||
internal var §_-GB§:Object;
|
||||
internal var var_692: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.§_-DR§ = new Object();
|
||||
this.var_690 = new Object();
|
||||
this.arrays = new Object();
|
||||
for each(element in this.data..source)
|
||||
{
|
||||
source = new DaeSource(element,this);
|
||||
if(source.id != null)
|
||||
{
|
||||
this.§_-DR§[source.id] = source;
|
||||
this.var_690[source.id] = source;
|
||||
}
|
||||
}
|
||||
this.lights = new Object();
|
||||
@@ -139,13 +139,13 @@ package alternativa.engine3d.loaders.collada
|
||||
this.geometries[geom.id] = geom;
|
||||
}
|
||||
}
|
||||
this.§_-DW§ = new Object();
|
||||
this.var_691 = new Object();
|
||||
for each(element in this.data.library_controllers.controller)
|
||||
{
|
||||
controller = new DaeController(element,this);
|
||||
if(controller.id != null)
|
||||
{
|
||||
this.§_-DW§[controller.id] = controller;
|
||||
this.var_691[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.§_-GB§ = new Object();
|
||||
this.var_692 = new Object();
|
||||
for each(element in this.data.library_animations..sampler)
|
||||
{
|
||||
sampler = new DaeSampler(element,this);
|
||||
if(sampler.id != null)
|
||||
{
|
||||
this.§_-GB§[sampler.id] = sampler;
|
||||
this.var_692[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.§_-DR§[this.getLocalID(url)];
|
||||
return this.var_690[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.§_-DW§[this.getLocalID(url)];
|
||||
return this.var_691[this.getLocalID(url)];
|
||||
}
|
||||
|
||||
public function findSampler(url:XML) : DaeSampler
|
||||
{
|
||||
return this.§_-GB§[this.getLocalID(url)];
|
||||
return this.var_692[this.getLocalID(url)];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,11 +9,11 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
public static var commonAlways:Boolean = false;
|
||||
|
||||
private var §_-3x§:Object;
|
||||
private var var_717:Object;
|
||||
|
||||
private var §_-El§:Object;
|
||||
private var var_718:Object;
|
||||
|
||||
private var §_-3H§:Object;
|
||||
private var var_716: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.§_-3x§ = new Object();
|
||||
this.var_717 = new Object();
|
||||
for each(element in data.newparam)
|
||||
{
|
||||
param = new DaeParam(element,document);
|
||||
this.§_-3x§[param.sid] = param;
|
||||
this.var_717[param.sid] = param;
|
||||
}
|
||||
this.§_-El§ = new Object();
|
||||
this.var_718 = new Object();
|
||||
for each(element in data.profile_COMMON.newparam)
|
||||
{
|
||||
param = new DaeParam(element,document);
|
||||
this.§_-El§[param.sid] = param;
|
||||
this.var_718[param.sid] = param;
|
||||
}
|
||||
this.§_-3H§ = new Object();
|
||||
this.var_716 = new Object();
|
||||
technique = data.profile_COMMON.technique[0];
|
||||
if(technique != null)
|
||||
{
|
||||
for each(element in technique.newparam)
|
||||
{
|
||||
param = new DaeParam(element,document);
|
||||
this.§_-3H§[param.sid] = param;
|
||||
this.var_716[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.§_-3H§[name];
|
||||
param = this.var_716[name];
|
||||
if(param != null)
|
||||
{
|
||||
return param;
|
||||
}
|
||||
param = this.§_-El§[name];
|
||||
param = this.var_718[name];
|
||||
if(param != null)
|
||||
{
|
||||
return param;
|
||||
}
|
||||
return this.§_-3x§[name];
|
||||
return this.var_717[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 §_-Ba§:int = -1;
|
||||
private var var_697:int = -1;
|
||||
|
||||
public function DaeElement(data:XML, document:DaeDocument)
|
||||
{
|
||||
@@ -35,12 +35,12 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public function parse() : Boolean
|
||||
{
|
||||
if(this.§_-Ba§ < 0)
|
||||
if(this.var_697 < 0)
|
||||
{
|
||||
this.§_-Ba§ = this.parseImplementation() ? 1 : 0;
|
||||
return this.§_-Ba§ != 0;
|
||||
this.var_697 = this.parseImplementation() ? 1 : 0;
|
||||
return this.var_697 != 0;
|
||||
}
|
||||
return this.§_-Ba§ != 0;
|
||||
return this.var_697 != 0;
|
||||
}
|
||||
|
||||
protected function parseImplementation() : Boolean
|
||||
|
||||
@@ -13,7 +13,7 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public class DaeGeometry extends DaeElement
|
||||
{
|
||||
internal var §_-FV§:Vector.<DaeVertex>;
|
||||
internal var var_715:Vector.<DaeVertex>;
|
||||
|
||||
internal var primitives:Vector.<DaePrimitive>;
|
||||
|
||||
@@ -53,9 +53,9 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
this.parsePrimitives();
|
||||
this.vertices.parse();
|
||||
numVertices = this.vertices.§_-E6§.numbers.length / this.vertices.§_-E6§.stride;
|
||||
numVertices = this.vertices.name_597.numbers.length / this.vertices.name_597.stride;
|
||||
this.geometry = new Geometry();
|
||||
this.§_-FV§ = new Vector.<DaeVertex>(numVertices);
|
||||
this.var_715 = 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.§_-FV§.length);
|
||||
channels |= p.fillGeometry(this.geometry,this.§_-FV§);
|
||||
numVertices = int(this.var_715.length);
|
||||
channels |= p.fillGeometry(this.geometry,this.var_715);
|
||||
}
|
||||
i++;
|
||||
}
|
||||
@@ -105,14 +105,14 @@ package alternativa.engine3d.loaders.collada
|
||||
i++;
|
||||
}
|
||||
this.geometry.addVertexStream(attributes);
|
||||
numVertices = int(this.§_-FV§.length);
|
||||
numVertices = int(this.var_715.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.§_-FV§[i];
|
||||
vertex = this.var_715[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.§_-hC§ != null)
|
||||
if(vertex.name_596 != null)
|
||||
{
|
||||
data.writeFloat(vertex.§_-hC§.x);
|
||||
data.writeFloat(vertex.§_-hC§.y);
|
||||
data.writeFloat(vertex.§_-hC§.z);
|
||||
data.writeFloat(vertex.§_-hC§.w);
|
||||
data.writeFloat(vertex.name_596.x);
|
||||
data.writeFloat(vertex.name_596.y);
|
||||
data.writeFloat(vertex.name_596.z);
|
||||
data.writeFloat(vertex.name_596.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.@set[0];
|
||||
var attr:XML = data.@name_616[0];
|
||||
return attr == null ? 0 : int(parseInt(attr.toString(),10));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
import alternativa.engine3d.animation.§_-FA§;
|
||||
import alternativa.engine3d.animation.keys.§_-Np§;
|
||||
import alternativa.engine3d.animation.keys.§_-ew§;
|
||||
import alternativa.engine3d.animation.keys.§_-kB§;
|
||||
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.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 §_-DE§:Vector.<DaeInstanceController>;
|
||||
private var var_698:Vector.<DaeInstanceController>;
|
||||
|
||||
public var nodes:Vector.<DaeNode>;
|
||||
|
||||
@@ -112,11 +112,11 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public function addInstanceController(controller:DaeInstanceController) : void
|
||||
{
|
||||
if(this.§_-DE§ == null)
|
||||
if(this.var_698 == null)
|
||||
{
|
||||
this.§_-DE§ = new Vector.<DaeInstanceController>();
|
||||
this.var_698 = new Vector.<DaeInstanceController>();
|
||||
}
|
||||
this.§_-DE§.push(controller);
|
||||
this.var_698.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.§_-DE§ == null)
|
||||
if(this.var_698 == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
var skins:Vector.<DaeObject> = new Vector.<DaeObject>();
|
||||
for(var i:int = 0,var count:int = int(this.§_-DE§.length); i < count; )
|
||||
for(var i:int = 0,var count:int = int(this.var_698.length); i < count; )
|
||||
{
|
||||
instanceController = this.§_-DE§[i];
|
||||
instanceController = this.var_698[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:§_-FA§ = this.parseAnimation(object);
|
||||
var animation:name_550 = this.parseAnimation(object);
|
||||
if(animation == null)
|
||||
{
|
||||
return new DaeObject(object);
|
||||
}
|
||||
object.name = this.animName;
|
||||
animation.§_-L6§(object,false);
|
||||
animation.method_360(object,false);
|
||||
return new DaeObject(object,animation);
|
||||
}
|
||||
|
||||
public function parseAnimation(object:Object3D = null) : §_-FA§
|
||||
public function parseAnimation(object:Object3D = null) : name_550
|
||||
{
|
||||
if(this.channels == null || !this.hasTransformationAnimation())
|
||||
{
|
||||
@@ -366,7 +366,7 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
return this.createClip(channel.tracks);
|
||||
}
|
||||
var clip:§_-FA§ = new §_-FA§();
|
||||
var clip:name_550 = new name_550();
|
||||
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.§_-nn§(this.createValueStaticTrack("x",object == null ? Number(components[0].x) : object.x));
|
||||
clip.name_551(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.§_-nn§(this.createValueStaticTrack("y",object == null ? Number(components[0].y) : object.y));
|
||||
clip.name_551(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.§_-nn§(this.createValueStaticTrack("z",object == null ? Number(components[0].z) : object.z));
|
||||
clip.name_551(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.§_-nn§(this.createValueStaticTrack("rotationX",object == null ? Number(components[1].x) : object.rotationX));
|
||||
clip.name_551(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.§_-nn§(this.createValueStaticTrack("rotationY",object == null ? Number(components[1].y) : object.rotationY));
|
||||
clip.name_551(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.§_-nn§(this.createValueStaticTrack("rotationZ",object == null ? Number(components[1].z) : object.rotationZ));
|
||||
clip.name_551(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.§_-nn§(this.createValueStaticTrack("scaleX",object == null ? Number(components[2].x) : object.scaleX));
|
||||
clip.name_551(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.§_-nn§(this.createValueStaticTrack("scaleY",object == null ? Number(components[2].y) : object.scaleY));
|
||||
clip.name_551(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.§_-nn§(this.createValueStaticTrack("scaleZ",object == null ? Number(components[2].z) : object.scaleZ));
|
||||
clip.name_551(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.<§_-Np§>) : §_-FA§
|
||||
private function createClip(tracks:Vector.<name_552>) : name_550
|
||||
{
|
||||
var clip:§_-FA§ = new §_-FA§();
|
||||
var clip:name_550 = new name_550();
|
||||
for(var i:int = 0,var count:int = int(tracks.length); i < count; i++)
|
||||
{
|
||||
clip.§_-nn§(tracks[i]);
|
||||
clip.name_551(tracks[i]);
|
||||
}
|
||||
return clip;
|
||||
}
|
||||
|
||||
private function addTracksToClip(clip:§_-FA§, tracks:Vector.<§_-Np§>) : void
|
||||
private function addTracksToClip(clip:name_550, tracks:Vector.<name_552>) : void
|
||||
{
|
||||
for(var i:int = 0,var count:int = int(tracks.length); i < count; i++)
|
||||
{
|
||||
clip.§_-nn§(tracks[i]);
|
||||
clip.name_551(tracks[i]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -498,18 +498,18 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
channel = this.channels[i];
|
||||
channel.parse();
|
||||
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;
|
||||
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;
|
||||
if(result)
|
||||
{
|
||||
return true;
|
||||
@@ -526,7 +526,7 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
channel = this.channels[i];
|
||||
channel.parse();
|
||||
if(channel.§_-dS§ == param)
|
||||
if(channel.name_589 == param)
|
||||
{
|
||||
return channel;
|
||||
}
|
||||
@@ -535,7 +535,7 @@ package alternativa.engine3d.loaders.collada
|
||||
return null;
|
||||
}
|
||||
|
||||
private function concatTracks(source:Vector.<§_-Np§>, dest:Vector.<§_-Np§>) : void
|
||||
private function concatTracks(source:Vector.<name_552>, dest:Vector.<name_552>) : 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) : §_-Np§
|
||||
private function createValueStaticTrack(property:String, value:Number) : name_552
|
||||
{
|
||||
var track:§_-kB§ = new §_-kB§(this.animName,property);
|
||||
var track:name_591 = new name_591(this.animName,property);
|
||||
track.addKey(0,value);
|
||||
return track;
|
||||
}
|
||||
|
||||
public function createStaticTransformTrack() : §_-ew§
|
||||
public function createStaticTransformTrack() : name_590
|
||||
{
|
||||
var track:§_-ew§ = new §_-ew§(this.animName);
|
||||
var track:name_590 = new name_590(this.animName);
|
||||
track.addKey(0,this.getMatrix());
|
||||
return track;
|
||||
}
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
import alternativa.engine3d.animation.§_-FA§;
|
||||
import alternativa.engine3d.animation.name_550;
|
||||
import alternativa.engine3d.core.Object3D;
|
||||
|
||||
public class DaeObject
|
||||
{
|
||||
public var object:Object3D;
|
||||
|
||||
public var animation:§_-FA§;
|
||||
public var animation:name_550;
|
||||
|
||||
public var jointNode:DaeNode;
|
||||
|
||||
public function DaeObject(object:Object3D, animation:§_-FA§ = null)
|
||||
public function DaeObject(object:Object3D, animation:name_550 = null)
|
||||
{
|
||||
super();
|
||||
this.object = object;
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
import alternativa.engine3d.animation.keys.§_-Np§;
|
||||
import alternativa.engine3d.animation.keys.§_-ew§;
|
||||
import alternativa.engine3d.animation.keys.§_-kB§;
|
||||
import alternativa.engine3d.animation.keys.name_552;
|
||||
import alternativa.engine3d.animation.keys.name_590;
|
||||
import alternativa.engine3d.animation.keys.name_591;
|
||||
import flash.geom.Matrix3D;
|
||||
|
||||
use namespace collada;
|
||||
|
||||
public class DaeSampler extends DaeElement
|
||||
{
|
||||
private var §_-G6§:Vector.<Number>;
|
||||
private var var_719:Vector.<Number>;
|
||||
|
||||
private var values:Vector.<Number>;
|
||||
|
||||
private var §_-JC§:int;
|
||||
private var var_720:int;
|
||||
|
||||
private var §_-7i§:int;
|
||||
private var var_721: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.§_-G6§ = inputSource.numbers;
|
||||
this.§_-JC§ = inputSource.stride;
|
||||
this.var_719 = inputSource.numbers;
|
||||
this.var_720 = inputSource.stride;
|
||||
}
|
||||
break;
|
||||
case "OUTPUT":
|
||||
@@ -52,7 +52,7 @@ package alternativa.engine3d.loaders.collada
|
||||
if(outputSource != null)
|
||||
{
|
||||
this.values = outputSource.numbers;
|
||||
this.§_-7i§ = outputSource.stride;
|
||||
this.var_721 = outputSource.stride;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -60,73 +60,73 @@ package alternativa.engine3d.loaders.collada
|
||||
return true;
|
||||
}
|
||||
|
||||
public function parseNumbersTrack(objectName:String, property:String) : §_-kB§
|
||||
public function parseNumbersTrack(objectName:String, property:String) : name_591
|
||||
{
|
||||
var track:§_-kB§ = null;
|
||||
var track:name_591 = null;
|
||||
var count:int = 0;
|
||||
var i:int = 0;
|
||||
if(this.§_-G6§ != null && this.values != null && this.§_-JC§ > 0)
|
||||
if(this.var_719 != null && this.values != null && this.var_720 > 0)
|
||||
{
|
||||
track = new §_-kB§(objectName,property);
|
||||
count = this.§_-G6§.length / this.§_-JC§;
|
||||
track = new name_591(objectName,property);
|
||||
count = this.var_719.length / this.var_720;
|
||||
for(i = 0; i < count; i++)
|
||||
{
|
||||
track.addKey(this.§_-G6§[int(this.§_-JC§ * i)],this.values[int(this.§_-7i§ * i)]);
|
||||
track.addKey(this.var_719[int(this.var_720 * i)],this.values[int(this.var_721 * i)]);
|
||||
}
|
||||
return track;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public function parseTransformationTrack(objectName:String) : §_-Np§
|
||||
public function parseTransformationTrack(objectName:String) : name_552
|
||||
{
|
||||
var track:§_-ew§ = null;
|
||||
var track:name_590 = null;
|
||||
var count:int = 0;
|
||||
var i:int = 0;
|
||||
var index:int = 0;
|
||||
var matrix:Matrix3D = null;
|
||||
if(this.§_-G6§ != null && this.values != null && this.§_-JC§ != 0)
|
||||
if(this.var_719 != null && this.values != null && this.var_720 != 0)
|
||||
{
|
||||
track = new §_-ew§(objectName);
|
||||
count = this.§_-G6§.length / this.§_-JC§;
|
||||
track = new name_590(objectName);
|
||||
count = this.var_719.length / this.var_720;
|
||||
for(i = 0; i < count; i++)
|
||||
{
|
||||
index = this.§_-7i§ * i;
|
||||
index = this.var_721 * 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.§_-G6§[i * this.§_-JC§],matrix);
|
||||
track.addKey(this.var_719[i * this.var_720],matrix);
|
||||
}
|
||||
return track;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public function parsePointsTracks(objectName:String, xProperty:String, yProperty:String, zProperty:String) : Vector.<§_-Np§>
|
||||
public function parsePointsTracks(objectName:String, xProperty:String, yProperty:String, zProperty:String) : Vector.<name_552>
|
||||
{
|
||||
var xTrack:§_-kB§ = null;
|
||||
var yTrack:§_-kB§ = null;
|
||||
var zTrack:§_-kB§ = null;
|
||||
var xTrack:name_591 = null;
|
||||
var yTrack:name_591 = null;
|
||||
var zTrack:name_591 = null;
|
||||
var count:int = 0;
|
||||
var i:int = 0;
|
||||
var index:int = 0;
|
||||
var time:Number = NaN;
|
||||
if(this.§_-G6§ != null && this.values != null && this.§_-JC§ != 0)
|
||||
if(this.var_719 != null && this.values != null && this.var_720 != 0)
|
||||
{
|
||||
xTrack = new §_-kB§(objectName,xProperty);
|
||||
xTrack = new name_591(objectName,xProperty);
|
||||
xTrack.object = objectName;
|
||||
yTrack = new §_-kB§(objectName,yProperty);
|
||||
yTrack = new name_591(objectName,yProperty);
|
||||
yTrack.object = objectName;
|
||||
zTrack = new §_-kB§(objectName,zProperty);
|
||||
zTrack = new name_591(objectName,zProperty);
|
||||
zTrack.object = objectName;
|
||||
count = this.§_-G6§.length / this.§_-JC§;
|
||||
count = this.var_719.length / this.var_720;
|
||||
for(i = 0; i < count; i++)
|
||||
{
|
||||
index = i * this.§_-7i§;
|
||||
time = this.§_-G6§[i * this.§_-JC§];
|
||||
index = i * this.var_721;
|
||||
time = this.var_719[i * this.var_720];
|
||||
xTrack.addKey(time,this.values[index]);
|
||||
yTrack.addKey(time,this.values[index + 1]);
|
||||
zTrack.addKey(time,this.values[index + 2]);
|
||||
}
|
||||
return Vector.<§_-Np§>([xTrack,yTrack,zTrack]);
|
||||
return Vector.<name_552>([xTrack,yTrack,zTrack]);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -4,15 +4,15 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public class DaeSource extends DaeElement
|
||||
{
|
||||
private const §_-XM§:String = "float_array";
|
||||
private const const_7:String = "float_array";
|
||||
|
||||
private const §_-g6§:String = "int_array";
|
||||
private const const_9:String = "int_array";
|
||||
|
||||
private const §_-ZJ§:String = "Name_array";
|
||||
private const const_8:String = "Name_array";
|
||||
|
||||
public var numbers:Vector.<Number>;
|
||||
|
||||
public var §_-op§:Vector.<int>;
|
||||
public var var_550:Vector.<int>;
|
||||
|
||||
public var names:Vector.<String>;
|
||||
|
||||
@@ -34,9 +34,9 @@ package alternativa.engine3d.loaders.collada
|
||||
child = children[i];
|
||||
switch(child.localName())
|
||||
{
|
||||
case this.§_-XM§:
|
||||
case this.§_-g6§:
|
||||
case this.§_-ZJ§:
|
||||
case this.const_7:
|
||||
case this.const_9:
|
||||
case this.const_8:
|
||||
_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.§_-XM§:
|
||||
case this.const_7:
|
||||
this.numbers = new Vector.<Number>(int(arrStride * count));
|
||||
break;
|
||||
case this.§_-g6§:
|
||||
this.§_-op§ = new Vector.<int>(int(arrStride * count));
|
||||
case this.const_9:
|
||||
this.var_550 = new Vector.<int>(int(arrStride * count));
|
||||
break;
|
||||
case this.§_-ZJ§:
|
||||
case this.const_8:
|
||||
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.§_-XM§:
|
||||
case this.const_7:
|
||||
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.§_-g6§:
|
||||
case this.const_9:
|
||||
for(j = 0; j < count; j++)
|
||||
{
|
||||
this.§_-op§[int(arrStride * j + curr)] = parseInt(array[int(offset + stride * j + i)],10);
|
||||
this.var_550[int(arrStride * j + curr)] = parseInt(array[int(offset + stride * j + i)],10);
|
||||
}
|
||||
break;
|
||||
case this.§_-ZJ§:
|
||||
case this.const_8:
|
||||
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 §_-Eq§:int;
|
||||
public var name_600:int;
|
||||
|
||||
public var §_-AR§:int;
|
||||
public var name_601:int;
|
||||
|
||||
public var indices:Vector.<int> = new Vector.<int>();
|
||||
|
||||
@@ -20,7 +20,7 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public var normal:Vector3D;
|
||||
|
||||
public var §_-hC§:Vector3D;
|
||||
public var name_596: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.§_-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;
|
||||
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;
|
||||
var dot:Number = crossX * biNormalX + crossY * biNormalY + crossZ * biNormalZ;
|
||||
this.§_-hC§.w = dot < 0 ? -1 : 1;
|
||||
this.name_596.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 §_-E6§:DaeSource;
|
||||
public var name_597: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.§_-E6§ = new DaeInput(inputXML,document).prepareSource(3);
|
||||
if(this.§_-E6§ != null)
|
||||
this.name_597 = new DaeInput(inputXML,document).prepareSource(3);
|
||||
if(this.name_597 != null)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user