www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: srymurphy on December 29, 2023, 05:28:23 am

Title: sphere model texture
Post by: srymurphy on December 29, 2023, 05:28:23 am
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.

Title: Re: sphere model texture
Post by: AeroShark333 on December 29, 2023, 07:07:09 am
Personally, I use:
Code: [Select]
Object3D.invertCulling(true);
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...