hi guys, i'm new here, and i need some help to solve my problem about
z-sorting and lighting in FLARToolkit (I'm not using FLARmanager), and
sorry for my bad english
I'm in the making of AR cake designer project, and I'm using
FLARToolkit starter kit and change some code for my need..
the problem is, when I tried to put three .dae objects, it shows a
problem (z-sorting problem i think),
it's shown in this picture
http://i202.photobucket.com/albums/aa301/ariez9/z-sorting_lighting.jpg
any ideas to solve this problem??
this SOME PARTS of my codes..
private function setStartModel(model:DAE, modelFolder:String,
modelName:String)
{
model.load(modelFolder + modelName);
model.scaleX = 10;
model.scaleY = 10;
model.scaleZ = 10;
model.rotationX = 90;
model.rotationY = 90;
_markerNode.addChild(model);
}
setStartModel(_bentuk, _bentukFolder, "kuebulet.DAE");
setStartModel(_pinggir, _pinggirFolder, "pinggir1.DAE");
setStartModel(_topping2, _topping2Folder, "crown1.DAE");
is the code enough??
and the other problem,
when i tried to add light for the object,
the only object which is shaded is the cream (the white thing), and
another parts turn black,
how i can solve this??
ps: I put the object without marker detection by make
_markerNode.visible = true; permanently and change the transform
matrix into constant value, i'm doing this for my experiments, so
please don't ask.. :D
thanks . . .