Author Topic: Load multiple texture in cube(Object3D)  (Read 1803 times)

Offline nima.sh23

  • byte
  • *
  • Posts: 40
    • View Profile
Load multiple texture in cube(Object3D)
« on: May 20, 2015, 07:37:54 am »
How can I load multiple textures in cube?

Offline nima.sh23

  • byte
  • *
  • Posts: 40
    • View Profile
Re: Load multiple texture in cube(Object3D)
« Reply #1 on: May 20, 2015, 07:57:17 am »
I think "find it"
http://www.jpct.net/forum2/index.php/topic,3992.msg28066.html#msg28066
by readTextureNames3DS(java.io.InputStream stream),but I dont know how to use this?
what is exactly stream(my textures in zip file)?
help me please
thanks

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Load multiple texture in cube(Object3D)
« Reply #2 on: May 20, 2015, 10:55:24 am »
I'm not sure if that thread really covers your actual problem. The way described in that thread works only if your cube was made in some 3d modeller and has been exported with different textures for each side. Maybe this is better: http://www.jpct.net/forum2/index.php?topic=2300.0?

Offline nima.sh23

  • byte
  • *
  • Posts: 40
    • View Profile
Re: Load multiple texture in cube(Object3D)
« Reply #3 on: May 21, 2015, 07:04:33 am »
Thanks for you answer.
I use of 3DS file for Object3D,I have some texture for one 3DS.
whats exactly this method?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Load multiple texture in cube(Object3D)
« Reply #4 on: May 21, 2015, 11:11:36 am »
If your cube is a modeled 3d object, the best way to do this is (as already mentioned) to model and export it in a way that each side uses a different texture. That way, you can assign textures as explained in the thread that you linked to. Another option is to use the PolygonManager class, but that requires a bit of guessing which polygon is on which side.