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

sphere model texture

(1/1)

srymurphy:
I used the JPCT framework to implement a 360 degree video player based on a sphere model, and I found that the texture I pasted is on the outside of the sphere. What interface should I use to paste the texture inside the sphere? Threejs can use sphere. geometry. scale (1, 1, -1) to change the direction of z, so how should JPCT achieve the same effect.

AeroShark333:
Personally, I use:

--- Code: ---Object3D.invertCulling(true);
--- End code ---

See: https://www.jpct.net/jpct-ae/doc/com/threed/jpct/Object3D.html#invertCulling-boolean-

Alternatively, it is possible to use: https://www.jpct.net/jpct-ae/doc/com/threed/jpct/Object3D.html#invert--
I don't think there is much of a difference...

Navigation

[0] Message Index

Go to full version