Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable map textures to the .stp object #1

Open
MrRaam opened this issue Dec 1, 2019 · 2 comments
Open

Unable map textures to the .stp object #1

MrRaam opened this issue Dec 1, 2019 · 2 comments

Comments

@MrRaam
Copy link

MrRaam commented Dec 1, 2019

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"),
                         
                          });
@3dmeshviewer
Copy link
Owner

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.

@MrRaam
Copy link
Author

MrRaam commented Dec 4, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants