Back to the Shapespark home page

Material name under Sample

Is it possible to add a material name under, in or above a sample?

Being able to select color options is pointless if people don’t know what the option is called.

No, this is not possible. The material picker spheres are rendered in 3D, and positioning flat or 3D texts of different lengths on top of them would be quite an undertaking.

What should be possible is to display a message with a selected material name in a corner of the viewer when the user selects a material. For example: ‘Gray marble selected’. It would require naming the materials in a user friendly way. Would it be an acceptable solution for you?

if not for @Random for me it would!
But please as an electable option.

Yes @jan that would be an acceptable solution. But as @tim said, please make it an electable option.

Please see this example: https://demo.shapespark.com/show-selected-material/#autoplay

This scene uses the following custom body-end.html file to show a name of the selected material. You can place this file in your Documents\Shapespark\SCENE_NAME\ folder to have the same functionality.

1 Like

Hi Jan,

Could you explain how do this. It is not working for me.

Thanks

John

@JOHN open a raw version of the file in your browser: https://gist.githubusercontent.com/wrr/822605c2bb581e75bb2cecfc72fe27d5/raw/2a3423b9ee46ebbcecb6d719ee794595f3c8242c/body-end.html, right click and select Save As, select a folder with your scene (it is in Documents\Shapespark\SCENE_NAME) and make sure the saved file is called body-end.html (by default a browser should suggest this name). Does it work?


Hi Jan, regarding the custom material display html, I gave it a try but it was unsuccessful, and got this message instead. Is this feature not available to those on basic plan? also, it would be amazing if this could be a feature as @Random suggested. When you upload different textures which looks alike, its difficult to tell it apart when you have to choose it from the material picker spheres.

Yes, body-end.html can be uploaded only in the Standard and Plus plan. This is because custom HTML allows to brand the viewer and such branding is not available in the Starter plan.