Quantcast
Channel: How to apply a texture to a custom geometry in Three.js - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by 2pha for How to apply a texture to a custom geometry in Three.js

You need UV mapping.You can either edit the model in modelling software to add UV coordinates or maybe generate them as in the answers posted here.I suppose another option would be to create your own...

View Article



Image may be NSFW.
Clik here to view.

How to apply a texture to a custom geometry in Three.js

I successfully applied a texture to a cube geometry with this:var geometry = new THREE.CubeGeometry(10, 10, 10);var meshMaterial = new THREE.MeshPhongMaterial({ transparent: false, map:...

View Article
Browsing latest articles
Browse All 2 View Live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>