Texture not showing

Hi there,

For some reasons the mapped textures aren’t showing on my model. I tried custom mapping with human using the mesh vertices and its still not showing
sole render test 4.gh (679.9 KB)

In your definition, you are trying to visualize a bump map. Before going into the current issues in your workflow, I just wanted to mention that bump maps can not be visualized inside Rhino/Grasshopper, they will only appear after uploading to ShapeDiver. If your issue was visualization in Rhino, then that explains it. My advice is to use the bump map as a color map for testing locally and making sure that the texture mapping was done correctly, then just set it as a bump map and upload to ShapeDiver.

In the following, I will then assume that your issue was to not see the bump map after uploading to ShapeDiver, which I could reproduce after uploading your definition. In this case, this is due to an incorrect mapping in your definition. You are using the Custom Mapping component of Human but sending the vertex coordinates as UV coordinates, which is not the way to produce a correct texture mapping on a 3D surface. Creating UV coordinates for a freeform surface is a task that is often done manually and difficult to accomplish parametrically using Grasshopper. That being said, if you do not need high precision, I would recommend in this case to use the Box Mapping component of Human using the bounding box of your object. When I did that, I could succesfully visualize the texture, and the bump map was correct after uploading to ShapeDiver. You can check in the file attached below. If you need a more precise texture mapping, I recommend you read about the topic or involve someone who has experience with it.

sole render test 4.gh (679.4 KB)

Last point: in the file above, I wanted to show that you could achieve a bump map visualization using the components of your definition. However, please note that you are using the Legacy Material and Display components and I would recommend switching to the glTF 2.0 Material and Display components for a more up-to-date workflow. You will be able to achieve the same visualization results.