drojdjou / J3D

J3D - WebGL demos & experiments
https://j3d.bartekdrozdz.com/
MIT License
859 stars 125 forks source link

Textures don't load on Unity3D Exported scene #9

Closed nklsrh closed 12 years ago

nklsrh commented 12 years ago

Chrome/Chromium/Firefox/Aurora latest on Windows 7 with Core i7 Sandy Bridge. Mate says it works on Firefox for Mac.

Scene loads, models load, but all black w/ no textures or lights.

drojdjou commented 12 years ago

Do you get any kind of information in the console?

nklsrh commented 12 years ago

No information at all, sorry.

Images: [Firefox] http://twitpic.com/8fhsrt [Chrome] http://twitpic.com/8fhszl

kiwisquall commented 12 years ago

I get the same result with the URL your gave but also if I export on my own from Unity3D... I made the tutorial (with textures in ARGB-32bits) and I've updated the last JS and exporter files. Firebug doesn't say anything wrong and textures are perfectly loaded in the "Network section"...

If this can help you : I can't see anything either in the Unity3D exported scene at http://www.everyday3d.com/j3d/demo/002_Scene.html

But thanks to you for your work and good luck for the following ;-)

drojdjou commented 12 years ago

The issue was related to how lights were handled in shaders. It is fixed now.