Author Topic: sphere model texture  (Read 3082 times)

Offline srymurphy

  • byte
  • *
  • Posts: 1
    • View Profile
sphere model texture
« 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.


Offline AeroShark333

  • float
  • ****
  • Posts: 320
    • View Profile
Re: sphere model texture
« Reply #1 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...