Author Topic: How to i load texture folder for obj  (Read 1889 times)

Offline penprakash

  • byte
  • *
  • Posts: 26
    • View Profile
How to i load texture folder for obj
« on: April 05, 2013, 02:20:32 pm »
Hi,

 I'm using vuforia+jpct, i want to load obj file which has material defined in mtl file, materials are in textures folder in sdcard. How do i load texture when i load obj?

Prakash V

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: How to i load texture folder for obj
« Reply #1 on: April 05, 2013, 02:22:11 pm »
You have to load them before loading the model and assign the proper names to them when adding them to the TextureManager: http://www.jpct.net/wiki/index.php/Loading_models

Offline penprakash

  • byte
  • *
  • Posts: 26
    • View Profile
Re: How to i load texture folder for obj
« Reply #2 on: April 05, 2013, 03:34:15 pm »
i want to add texture folder which has 40 textures for the model.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: How to i load texture folder for obj
« Reply #3 on: April 06, 2013, 08:48:10 am »
And your question is....? You have to load the textures somehow. If you have 40 textures (which sounds too much for a mobile device anyway...), you have to load them all in any way you prefer.