We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Select material in 3D

Home Forums Puzzles Select material in 3D

  • This topic has 13 replies, 5 voices, and was last updated 1 year ago by kdv.
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #46085
    radek
    Customer

    Is it possible to select a material on an object?
    Or how to find out which part of the object the user clicked on and get the material that belongs to this area

    Something like
    When clicked “Material” do ….

    #46086
    haris
    Customer

    Yeah, this is possible you can discuss more with me on the forum or Gmail harisimran1012@gmail.com

    #46090
    xeon
    Customer

    There is a puzzle called “get material” that should do the trick. You can add it to an onclick event.

    example using puzzles: screen shot attached

    Attachments:
    You must be logged in to view attached files.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #46125
    radek
    Customer

    Hi Xeon.

    The 3D model actually have more materials. Your puzzle will always return first material in the list.

    #46136
    xeon
    Customer

    That is correct. Your original post did not specify that the object had more than one texture assigned to it.

    To give you a more accurate method could you share the model or image of the model and what you are trying to achieve.

    Depending on your needs, it may be better to break the model apart into clickable targets than try to calculate where a user is clicking and then determine the material. Not that it’s impossible, to do, just a matter of workload vs other potential options.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #46700
    radek
    Customer

    Hi.
    Sorry for delay.

    Nike_configurator

    I would like to identify the selected (clicked) material on the model. Then ideally highlight it and show the corresponding color variations

    #46709
    xeon
    Customer

    Ok…first the model looks really nice but its topology is awful. It appears to be a scan of a shoe rather than modeled by hand / in distinct parts.

    My first suggestion would be to fix the topology of the model and get it into quads. See: https://www.soft8soft.com/docs/manual/en/introduction/Optimizing-WebGL-performance.html and while you are doing that separate the objects into paintable parts.

    Can you send the app manager project file and the blend… I don’t need all the HTML stuff unless its easier. It will save me alot of time rather than pulling it all down and piecing it together.

    Attachments:
    You must be logged in to view attached files.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #46778
    radek
    Customer

    Does separation mean hard edges at the mesh boundary? We really don’t want that.

    Is there any other way?

    #46779
    xeon
    Customer

    Boundary edges do not have to altered when the object is separated but to maintain a smooth edge it would be best to do on a clean/smooth edge vs a jagged triangulated edge for texture mapping purposes.

    Just grab some adjacent faces in edit mode and separate them as a separate object. You should see no change to your geometry.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #46787
    GLiFTeK
    Customer

    Hi,
    This is possible…with a little work..
    Objects with more than one material ( at least ones exported from blender ) are actually groups of objects, one for each material.
    Would be fun to try a plugin for this.
    :good:

    #59361
    kdv
    Participant

    it’s possible to detect, select and make outlined any material on any multi-material mesh using raycasting.
    https://v3d.net/dva

    Attachments:
    You must be logged in to view attached files.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #61951
    radek
    Customer

    Magic !
    Thanks a lot

    #61953
    radek
    Customer

    How do You make outlining of the material?

    #61967
    kdv
    Participant

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.