Page 1 of 1

Use two texture or color on the same part

Posted: Wed Feb 10, 2021 5:52 pm
by Florian80000
Hi everyone,

I try to apply two texture or two color on the same part.

I can split my part in area to apply a different texture or color ?
May be i can use few submeshes with different colors and i can join them into one mesh ?

Have you any ideas to realize this operation ?

Thank you !

Re: Use two texture or color on the same part

Posted: Thu Feb 11, 2021 4:23 am
by sercero
Are you trying to do this by code?

Or are you using Blender (or other modelling tool)?

Re: Use two texture or color on the same part

Posted: Sun Feb 14, 2021 8:16 pm
by Florian80000
Hi,

Thanks for your response.

I try to do it by code.

And I use assimp to load STL files before.

Re: Use two texture or color on the same part

Posted: Mon Feb 15, 2021 11:33 am
by Hilarius86
In Ogre a mesh in made of multiple submeshes. Each submesh has only one material. But a material can use multiple textures.
Have a look here: Material Scripts.
Same can be done in code as well: createTextureUnitState().