jPCT-AE - a 3d engine for Android > Bugs

some camera angle some object display below ground

(1/2) > >>

kololo:
i modify sample project of jpct and chang rock is tank , when i rotate camara to some angle the tree display below ground (look at pic rhe tree has position near redbox) how to fix it.
regard
"http://image.free.in.th/show.php?id=eb944d702cfdac2feadc5c89bd7fe0d7"  

EgonOlsen:
Forget about the emulator! Its software renderer renders all kinds of bugs. It's not usuable for actual development, get a real device and check the results again.

kololo:
i use galaxy s to debug this resource and it display sam emulater . T-T
but it buatiful display plees help me how to fix it.

regrad.
kololo

EgonOlsen:
Is the ground plane set to be transparent (even with a very high value)?

kololo:
no .

i chang this code form sample code to load ground plane

--- Code: ---plane = Loader.load3DS(res.openRawResource(R.raw.plane01),100);
--- End code ---
and make the camera flollow tank object by equation x = a+r*sin(angle of boject) : y = b+r*cos(angle of object)

--- Code: ---cam.setPosition((float)(tankh.getTransformedCenter().x+150*Math.sin(((touchTurnA+1)/360*2*Math.PI)-Math.PI/180*5)), tankh.getTransformedCenter().y-50,
(float)(tankh.getTransformedCenter().z+150*Math.cos((((touchTurnA+1)/360)*2*Math.PI)-Math.PI/180*5)));
cam.lookAt(tankh.getTransformedCenter());
--- End code ---
regard

Navigation

[0] Message Index

[#] Next page

Go to full version