Horde3D
http://horde3d.org/forums/

2 or more textures on 1 3d object
http://horde3d.org/forums/viewtopic.php?f=1&t=1184
Page 1 of 1

Author:  DIMEDROLL [ 21.06.2010, 18:52 ]
Post subject:  2 or more textures on 1 3d object

Hi,
I would like to place 2 different textures on 1 3d object.
What is the best way to do this? Is it needed to create a shader for this or what?
Example: created a cup with white texture on it
It is needed to place a logo of the front side of the cup.

Author:  Volker [ 22.06.2010, 10:02 ]
Post subject:  Re: 2 or more textures on 1 3d object

Did you already read this thread?

Author:  DIMEDROLL [ 28.06.2010, 15:51 ]
Post subject:  Re: 2 or more textures on 1 3d object

Now yes.
AFAIU I need to edit shaders for this... will investigate how to do it...

Author:  DarkAngel [ 29.06.2010, 04:50 ]
Post subject:  Re: 2 or more textures on 1 3d object

You probably just need to use two materials (without making any new shaders).

Author:  DIMEDROLL [ 05.04.2011, 08:32 ]
Post subject:  Re: 2 or more textures on 1 3d object

How to assign 2 materials to one 3d object?
Let me explain what I want to achieve.
I have an object which I want to be painted with stone texture. At some place of this object I would like to place some grass circles. I have stone and grass textures. However I don't want to manually create a mixed stone+grass texture. How do I do it programmatically?
I assume I'll need 2 sets of UV coordinates for each texture...

Author:  mikel [ 05.04.2011, 10:02 ]
Post subject:  Re: 2 or more textures on 1 3d object

Use Texture splatting (texture blending) technique. I think you need to write your own shader.

Author:  polygoff [ 08.04.2011, 21:09 ]
Post subject:  Re: 2 or more textures on 1 3d object

DIMEDROLL wrote:
How to assign 2 materials to one 3d object?
Let me explain what I want to achieve.
I have an object which I want to be painted with stone texture. At some place of this object I would like to place some grass circles. I have stone and grass textures. However I don't want to manually create a mixed stone+grass texture. How do I do it programmatically?
I assume I'll need 2 sets of UV coordinates for each texture...


The easiest way to understand what to do would be to check out one of the included ".scene.xml" files of your models. Here is one example:

Code:
<Model name="person" geometry="models/person/person.geo">
   <Joint name="Bip01" tx="0" ty="87.3667" tz="0" rx="-88.48">
   (...)
   </Joint>
   <Mesh name="person_mediumpoly" material="models/person/person_body.material.xml" batchStart="0" batchCount="7188" vertRStart="0" vertREnd="1632">
      <Mesh name="#person_mediumpoly" material="models/person/person_hair.material.xml" batchStart="7188" batchCount="246" vertRStart="1633" vertREnd="1705" />
   </Mesh>
</Model>


At the bottom you see that this model contains two meshes. You can chose the material for each mesh individually.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/