JPCT-AE+Vuforia: primitive plane not showing

Started by angieIe, November 24, 2014, 08:54:44 AM

Previous topic - Next topic

angieIe

Hai, i try to render primitive plane , but it is not showing. But if i render primitive box or cylinder it  just fine. 

plane = Primitives.getPlane(20, 30);
plane.setTexture("texture");
plane.strip();
plane.build();
world.addObject(plane);
cam = world.getCamera();
SimpleVector sv = new SimpleVector();
sv.set(plane.getTransformedCenter());
sv.y += 100;
sv.z += 100;

sun.setPosition(sv);

MemoryHelper.compact();


Thank you

EgonOlsen

Maybe you are looking at the back side of the plane? Try setCulling(false) on the plane to see, if that helps. If it does, consider to rotate the plane by 180 degress around the x-axis. If it doesn't, make sure that you don't look at the plane from the side, because it has no thickness.
BTW: Your plane is really huge. Is that intentional? It's 20*30=600 units in size in both directions.


angieIe

#2
Thank you Egon for the answer it's working.
I setCulling false and  rotate the plane by 180 degress around the x-axis  ;D and yes my plane too huge..i don't know how to calculate it..thanks for information  :D

angieIe

#3
Hi Egon,
plane.setTransparency(100); but i still see black border line.how to make that border line invisible?

EgonOlsen

Hard to tell from the screen shot. What am i seeing there?