chiffie

Blender export to babylonJS dark textures

Recommended Posts

I'm having problem with using imported `.obj` into blender and then exported to babylonJS.

I've downloaded `.obj` model containing `.dds` textures. Imported to babylonJS which looked fine. Import automatically assigned these textures to model.

Blender view

Then after export to babylonJS these textures went dark.

BabylonJS view

I noticed that while exporting to babylonJS exporter already processed textures as dark. Image bellow is auto-generated in export

Exported image

What did I wrong and how can I fix it?

* blender v2.79
* babylonJS export v5.6.4
* babylonJS availible at http://chiffie.yweb.sk/bak/
* blender file availible at http://chiffie.yweb.sk/bak/kamion.blend

[1]: https://i.imgur.com/oSPM83y.png
[2]: https://i.imgur.com/bOVUWHZ.png
[3]: https://i.imgur.com/dvtRPMb.jpg

Share this post


Link to post
Share on other sites

I did do a quick look, and have a best guess.  I do not believe that blender uses .dds file.  Combine that with the version of the exporter you are using can only bake from the cycle render.  This is going to bake black.  There seems to be a .dds add-on, but you are on your own.

I am working on a version of the exporter for Blender 2.80, which does not always bake, but it is a ways off.  In that case, the files could just pass through, maybe.

I would look at loading the .obj file directly.

Share this post


Link to post
Share on other sites
47 minutes ago, JCPalmer said:

I did do a quick look, and have a best guess.  I do not believe that blender uses .dds file.  Combine that with the version of the exporter you are using can only bake from the cycle render.  This is going to bake black.  There seems to be a .dds add-on, but you are on your own.

I am working on a version of the exporter for Blender 2.80, which does not always bake, but it is a ways off.  In that case, the files could just pass through, maybe.

I would look at loading the .obj file directly.

Actualy you were right about `.dds`. After exporting I converted dds files to jpg and replaced auto generated jpegs by converted one. Is there any way to tell blender/babylon exporter to stop auto-generating pictures? Because it takes way too long (10+ mins).

 

EDIT:

I also changed `.dds` texture to `.jpg` texture in node editor, but it didn't help. Is there possibility to only copy texture file and stop creating new one? 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.