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.

not correctly assign materials

Home Forums Puzzles not correctly assign materials

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #64135
    3dcgi
    Customer

    Hello
    I have an issue that materials do not get assigned correctly, using the puzzle – see screenshot

    Everything works correctly only the first time I click a material button (after refreshing)
    Then when I start clicking material buttons randomly the materials somehow get mixed up
    Any idea what is going on here?

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

    Senior CGI Artist @ 3DCGI.Studio #zerophotography
    ➤ Unreal Engine - 3ds max V-Ray
    ➤ Hyper-realistic 3D. Cars, Motorcycles, Products, Archviz Visualizations, 3D & VFX Animations

    #64144
    xeon
    Customer

    Hi 3dcgi,

    I am going to take a guess at what the problem might be as there is not enough information in the puzzles to diagnose what is happening.

    In order to change materials from one material in your scene to another those materials have to already exist and be assigned to an object.

    This can be done by creating some simple triangles and assigning each material so a single object/triangle that is out of camera view.

    If you don’t do this the material you had assigned is removed from memory and there is no way to get it back. Also if it’s not assigned to a material at the time of load or at the time prior to you needing it…it can not be called upon to replace an existing material.

    Example:
    If your scene has a cube and in your 3d project file you have the a chrome material assigned to the cube but also in you material libray you have a red material and a blue material but they are not assigned to any object in your scene. You export to V3d. You will not be able to assign the red or blue to the cube.

    However, if you add two triangles objects to the scene, a red triangle with the red material and a blue triangle with the blue material export the scene to v3d. Through puzzles, you will be able to change the color of your chrome cube to red or blue.

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

    #65375
    xeon
    Customer

    New tutorial up on this topic:

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

    #65378
    kdv
    Participant

    Good. Correct :good: One addition: An additional material user may be represented by any hidden (invisible) primitive. For example, you can assign 6 material to one cube: one material per face. Or you can use a sub-divided plane with the same result. The main condition: materials must have additional users to store them in the scene if they are supposed to be replaced.

    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 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.