D
D
Dmitry2016-02-22 02:40:16
JSON
Dmitry, 2016-02-22 02:40:16

Three.js loaded the model from 3DsMax in js (JSON) format. Threw textures. But the textures are too small. How to stretch them?

That is, textures in the form of jpg pictures lie on the model in the right places.
I set them to repeat "mapDiffuseWrap" : ["repeat", "repeat"]
However, they appear very small. How can textures be scaled up?
Here is the code:
"materials": [
{
"DbgIndex" : 0,
"DbgName" : "Material #51",
"colorDiffuse" : [0.5880, 0.5880, 0.5880],
"colorAmbient" : [0.5880, 0.5880, 0.5880],
" colorSpecular" : [0.9000, 0.9000, 0.9000],
"transparency" : 1.0,
"specularCoef" : 10.0,
"mapDiffuse" : "1.jpg",
"mapDiffuseWrap" : ["repeat",

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Khangeldy Ilebaev, 2016-03-06
@se_demon

texture.repeat.set(size, size);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question