Author Topic: Is there a way to set several textures into one object3D?  (Read 605 times)

Offline Uncle Ray

  • int
  • **
  • Posts: 81
    • View Profile
Is there a way to set several textures into one object3D?
« on: September 23, 2014, 06:16:48 am »
SOLVED THX EGO



In my project, there is 5 or 6 textures with one object3D.
here is my solution:
one:combined several jpgs into a big one,i think the new big one's resolution would be very large,may be fall down the jpct's fps?

the other one:split the big model(for example,A.md2)into several smaller model(a1.md2,a2,md2,a3.md2.....);
so every new small Object3D just set the only one texture

question:
which way is the best fps?
And more,is there a better way to set several texture into a one model?
Thx,ego.
« Last Edit: October 20, 2014, 02:52:20 pm by Uncle Ray »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Is there a way to set several textures into one object3D?
« Reply #1 on: September 23, 2014, 08:07:21 am »
The way with putting them all into one texture is usually faster, because it reduces the number of draw calls, which are expensive. It has some drawbacks like being less flexible if you want to change a texture at runtime and possible texture bleeding because of the bilinear filtering that might take pixels from an adjacent texture. But if these things aren't an issue, it faster in most cases.