cedricpinson / osgjs

Javascript Implementation of OpenSceneGraph [DISCONTINUED] Website archived https://cedricpinson.github.io/osgjs-website/
MIT License
786 stars 202 forks source link

Model completely without textures #1010

Closed dev-zetta closed 5 years ago

dev-zetta commented 5 years ago

Hello, I've been struggeling with osgjs for days... It simply does not display textures. I tried osgjs and gltf format (parser is really flawed).

Lights, no lights. I debugged the code and the textures are loaded, everything looks fine, but they are simply not applied to the meshes. The material looks as single color.

image

jtorresfabra commented 5 years ago

Hi @dev-zetta, osgjs is discontinued, so you might not have any answer in this repository. Anyway is not possible that anybody helps you without posting example code or explaining what you did.

dev-zetta commented 5 years ago

Thank you for the answer. I did some bugfixes on the gltf loader. However, the problem was in osgjs itself. There is no default shader for rendering models/meshes that use color/diffuse texture. After I implemented this shader, I finally got it working. However, there were glitches. So we abandoned osgjs and switched to Three.js. Now everything works as expected.