z-sorting and shader need help

7 views
Skip to first unread message

nubienoobz

unread,
Nov 9, 2011, 2:07:48 AM11/9/11
to FLARToolKit userz
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 . . .

waleed fayiz

unread,
Dec 22, 2011, 8:26:08 AM12/22/11
to flartool...@googlegroups.com
hi nubienoobz
 
am waleed
am working on an application smiler of what you are doing, also i have same problems as yours
 
So, i wish to contact with you be Skybe  (Skybe Username:  flyerheart)
 
my application is to create an AR-environments for Engineering students to view the mechanisms models
so i need to design a user input to allow students to inter some parameters and then to use these parameters to create the model
 
 
my main problem until now i don't now how to do the input mune as what u did
 
 
you can say my prototype in the attached picture
 
 

 
logo.jpg

Alexander

unread,
Jan 7, 2012, 8:04:41 AM1/7/12
to FLARToolKit userz
I have the same problem,
and not only that, my 3d model does not appear well.
I tried to make another flash WITHOUT FLARToolkit, only a flash with
papervision3D, and using Quadrant Render Engine, and the models appear
perfectly.
but when I try to use the Quadrant Render Engine in FLARToolkit, it
seems not working, the model still looks same as while using Lazy
Render Engine. Anybody can help this?
Reply all
Reply to author
Forward
0 new messages