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 !
Use two texture or color on the same part
-
- Gnoblar
- Posts: 2
- Joined: Tue Apr 25, 2017 9:08 am
-
- 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
Are you trying to do this by code?
Or are you using Blender (or other modelling tool)?
Or are you using Blender (or other modelling tool)?
-
- Gnoblar
- Posts: 2
- Joined: Tue Apr 25, 2017 9:08 am
Re: Use two texture or color on the same part
Hi,
Thanks for your response.
I try to do it by code.
And I use assimp to load STL files before.
Thanks for your response.
I try to do it by code.
And I use assimp to load STL files before.
-
- Halfling
- Posts: 51
- Joined: Thu Feb 14, 2019 11:27 am
- x 8
Re: Use two texture or color on the same part
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().
Have a look here: Material Scripts.
Same can be done in code as well: createTextureUnitState().