stepfileviewer icon indicating copy to clipboard operation
stepfileviewer copied to clipboard

Unable map textures to the .stp object

Open MrRaam opened this issue 5 years ago • 2 comments

I was trying to see if we could add any standard material which has a texture. However, I couldn't see any texture applying after my approach. any dependencies?

else if (materialType == 'plastic') {
                           curMaterial = new THREE.MeshStandardMaterial({
                      
                              map: new THREE.TextureLoader().load("../models/2.png"),
                         
                          });

MrRaam avatar Dec 01 '19 06:12 MrRaam

We are preparing code for publishing with API description. By default is used material 'metalic' not 'plastic'. Thats why texture was not applied. We have prepared draft with UV coordinates for textures if you are interested, please let us know.

3dmeshviewer avatar Dec 04 '19 08:12 3dmeshviewer

I did change the initialized parameters metalic to plastic and tried textures in both as standard material map: new THREE.TextureLoader().load("../models/2.png"), , but couldn't see the changes. kindly share the draft, would like to contribute from my end too., Also let me know if we had to add a texture what are the changes that have to be done.

MrRaam avatar Dec 04 '19 12:12 MrRaam