Texture or Color for .wrl files
-
Hello,
I’m trying to display a model using a wrl file. The model displays just fine and I can rotate it.
However, I cannot find a configuration that can either load a texture image (jpg or png) or make the color of the model appear (like a flat color). Instead it shows different colors for every shape of the model.
I have tried to import the wrl file and the texture image together within a zip but it doesn’t load it also.
The only thing that has made a difference for the texture, is when I declare its url inside the wrl file, using the full http url. In this case, the model turns completely black and no texture appears, but at least it’s something.
For the flat color, I have tried the diffuseColor inside the wrl file and is not working.
The site is in localhost (xampp) for now.
Any ideas are welcome!
- The topic ‘Texture or Color for .wrl files’ is closed to new replies.