Use two texture or color on the same part

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Florian80000
Gnoblar
Posts: 2
Joined: Tue Apr 25, 2017 9:08 am

Use two texture or color on the same part

Post 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 !
User avatar
sercero
Bronze Sponsor
Bronze Sponsor
Posts: 480
Joined: Sun Jan 18, 2015 4:20 pm
Location: Buenos Aires, Argentina
x 167

Re: Use two texture or color on the same part

Post by sercero »

Are you trying to do this by code?

Or are you using Blender (or other modelling tool)?
Florian80000
Gnoblar
Posts: 2
Joined: Tue Apr 25, 2017 9:08 am

Re: Use two texture or color on the same part

Post by Florian80000 »

Hi,

Thanks for your response.

I try to do it by code.

And I use assimp to load STL files before.
Hilarius86
Halfling
Posts: 51
Joined: Thu Feb 14, 2019 11:27 am
x 8

Re: Use two texture or color on the same part

Post 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().