jackyoyyf / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

Importing meshes with materials #144

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I'm trying to load meshes into a scene using the method detailed in 
https://code.google.com/p/jsc3d/issues/detail?id=52 and wish to use the 
textures and materials from the imported meshes. The problem is that in the 
onModelLoaded function meshes[i].hasTexture() always returns true, and 
meshes[i].material and meshes[i].texture are always null. Is there a way to 
transfer this data to the main scene?

As a supplementary, would it be possible to add a flag to JSC3D.texture to make 
it unaffected by lighting? I'm trying to achieve a back lit screen effect.

Original issue reported on code.google.com by john.whi...@gmail.com on 16 Feb 2015 at 3:32

GoogleCodeExporter commented 9 years ago
Doh! It was just a path problem, apologies.

Original comment by john.whi...@gmail.com on 16 Feb 2015 at 4:14