some hot fixes:
-rttMANAGER
-matTRANSFORMATIONS
in the last version, you had to pass the entire information through createPLANE line:
is2D = 1;
shader = 0;
texture = anyTEXTURE;
scale = [1,1,1];
pos = [0.0,0.0,0.0];
rot = [0,0,0];
createPLANE(false,false,"0",0,1,pos,scale,rot,texture0,alpha,color);
now splitted this piece up.
now you have to call a model on this way, which gives you more flexibility if you just want to change the position, rotation, scaling anywhere in your code:
var obj0 = createPLANE(pos,scale,rot);
var newPOS = [.5,0,0];
var newSCALE = [.5,
.5 ,
.5 ];
var newROTATION = [30,60,55];
obj0 = transform(
newPOS, newSCALE , newROTATION);
obj0 = render(texture,"0",0,1);
http://www.aries-lenov.com/projekte/webgl/dev/LSD/LSD.zip
stay tuned...
greetz
dirk
oops here the engine in action. i know it a bit boring... :D the cool things will be added soon!
http://www.aries-lenov.com/projekte/webgl/dev/LSD/LSD.php
Keine Kommentare:
Kommentar veröffentlichen