Is there a way to set several textures into one object3D?

Started by Uncle Ray, September 23, 2014, 06:16:48 AM

Previous topic - Next topic

Uncle Ray

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.

EgonOlsen

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.