Object x = material x automatically

m_m_italym_m_italy Posts: 329
edited December 1969 in Hexagon Discussion

Hi,
I hope I can say.
There is option to automatically assign a material to each new object?
I think, now you have to manually assign the material.
The operator I want is very useful.
Summary: object x, x material automatically.
Thanks for the clarification.
Bye

Comments

  • JimmyC_2009JimmyC_2009 Posts: 8,255
    edited December 1969

    You can create coloured objects by using Edit > Preference Editor > 3D Display > Create Coloured Objects

    See image below, is this what you mean?

    Untitled-1.jpg
    962 x 562 - 133K
  • m_m_italym_m_italy Posts: 329
    edited December 1969

    You can create coloured objects by using Edit > Preference Editor > 3D Display > Create Coloured Objects

    See image below, is this what you mean?

    Thank you.
    Wait.....
    I have to disable antivirus.
    Thanks

  • m_m_italym_m_italy Posts: 329
    edited November 2012

    Thank you!
    Not exactly what I was looking for but it is useful.
    The command you provided, I think is this:
    object x = x color .......but not x material
    Maybe I'm wrong.
    Thank you for an indication that it is useful

    :blank:
    Riattivato antivirus.

    Post edited by m_m_italy on
  • m_m_italym_m_italy Posts: 329
    edited December 1969

    Great.
    This is sufficient to have different materials in the render phase.
    Thank you very much.
    Bye bye

  • afreaginnameafreaginname Posts: 0
    edited December 1969

    This gets a little tricky, MM.

    The "problem" is that the words "materials" and "textures" are often used interchangeably when they are actually 2 different things.

    A "material" is any group of facets assigned a unique identity. In hexagon, these areas are called "material domains". These domains may include all of the faces or only some of the faces of a given mesh.

    Materials may also be assigned colors and/or transparency, but they cannot be "textured" - at least not yet.

    A "texture" is an image file that is applied to a model to give it graphic detail such as flesh, wood grain, polka dots, tattoos and so forth.

    A texture also REQUIRES a mesh to be "UV mapped" or as hexagon calls it: "unwrapped".

    This is because UV mapping flattens out all the faces of a 3D mesh onto a 2D plane so that all the faces of a mesh are visible at the same time. This is how the program knows which small section of a 2D image gets pasted to a particular facet on a 3D mesh.

    Think of skinning a bear in such a way that his skin lays out flat on the floor to make a "bearskin rug". You could then "paint a picture" on the bearskin rug, and if you took that rug and put it back on the bear, the bear would have that picture wrapped around his body.

    In the above bearskin example, the "painted picture" would be the "texture image" or just "texture", and the flattened bearskin rug would be the "texture template" upon which the artist would overlay/draw his picture.

    So now let's return to your inquiry about how to "automatically assign a material to each new object".

    Whenever a mesh object is created, hexagon automatically assigns a material domain to it. This domain is hidden from the user and is used exclusively by hexagon to assign colors to the objects you create. By default, this color is a kind of light grey and is shared by all the objects in your scene.

    By checking "create colored objects" in preferences, a la JimmyC's suggestion, hexagon then assigns different domains to each object and colors them differently.

    If the user wants to assign his own colors, or to assign 2 or more colors to a single object, then the user must assign his own materials and material names to do it. These material names then become visible in the materials window and the user can assign his own colors/transparency to them.

    As for textures, hexagon cannot auto-assign textures to objects upon creation as it does with materials. This is because texturing requires UV mapping, and hexagon doesn't know how to map a model according to a users texture image.

    There is a way that hexagon can auto-texture a mesh, and is used for things like "checkerboarding" a model. As with auto-materials, auto-mapping uses an internal UV map invisible to the user and cannot be accessed by the user for his own texture images.

    I've taken a few shortcuts here and skipped some details that some may take issue with, but I hope I've given you the gist of what hexagon can and cannot do, and why it can or can't do certain things.

    But if anyone has any "yeahbuts", I'll either try editing this post to include them or I'll try to explain them separately. :)

  • m_m_italym_m_italy Posts: 329
    edited December 1969

    This gets a little tricky, MM.

    The "problem" is that the words "materials" and "textures" are often used interchangeably when they are actually 2 different things.

    A "material" is any group of facets assigned a unique identity. In hexagon, these areas are called "material domains". These domains may include all of the faces or only some of the faces of a given mesh.

    Materials may also be assigned colors and/or transparency, but they cannot be "textured" - at least not yet.

    A "texture" is an image file that is applied to a model to give it graphic detail such as flesh, wood grain, polka dots, tattoos and so forth.

    A texture also REQUIRES a mesh to be "UV mapped" or as hexagon calls it: "unwrapped".

    This is because UV mapping flattens out all the faces of a 3D mesh onto a 2D plane so that all the faces of a mesh are visible at the same time. This is how the program knows which small section of a 2D image gets pasted to a particular facet on a 3D mesh.

    Think of skinning a bear in such a way that his skin lays out flat on the floor to make a "bearskin rug". You could then "paint a picture" on the bearskin rug, and if you took that rug and put it back on the bear, the bear would have that picture wrapped around his body.

    In the above bearskin example, the "painted picture" would be the "texture image" or just "texture", and the flattened bearskin rug would be the "texture template" upon which the artist would overlay/draw his picture.

    So now let's return to your inquiry about how to "automatically assign a material to each new object".

    Whenever a mesh object is created, hexagon automatically assigns a material domain to it. This domain is hidden from the user and is used exclusively by hexagon to assign colors to the objects you create. By default, this color is a kind of light grey and is shared by all the objects in your scene.

    By checking "create colored objects" in preferences, a la JimmyC's suggestion, hexagon then assigns different domains to each object and colors them differently.

    If the user wants to assign his own colors, or to assign 2 or more colors to a single object, then the user must assign his own materials and material names to do it. These material names then become visible in the materials window and the user can assign his own colors/transparency to them.

    As for textures, hexagon cannot auto-assign textures to objects upon creation as it does with materials. This is because texturing requires UV mapping, and hexagon doesn't know how to map a model according to a users texture image.

    There is a way that hexagon can auto-texture a mesh, and is used for things like "checkerboarding" a model. As with auto-materials, auto-mapping uses an internal UV map invisible to the user and cannot be accessed by the user for his own texture images.

    I've taken a few shortcuts here and skipped some details that some may take issue with, but I hope I've given you the gist of what hexagon can and cannot do, and why it can or can't do certain things.

    But if anyone has any "yeahbuts", I'll either try editing this post to include them or I'll try to explain them separately. :)


    :ohh:

    .....devo tradurre......

    :-)

  • m_m_italym_m_italy Posts: 329
    edited November 2012

    Tradotto.

    Everything is clear.
    Thank you for pointing this out. (? :red: ?) = (+ o -) Grazie per la precisazione
    I repeat this: the system indicated by "Jimmy" was useful.
    Anyway, thanks for your explanation.

    Post edited by m_m_italy on
Sign In or Register to comment.
Rocket Fuel