Jump to content

Complex materials from Blender to Babylon.js (crash)


jCarrasco
 Share

Recommended Posts

Hi all,

First post here. Hello!

 

I have some complex models I want to export to babylon, but seems that I made the exporter crash. 

These models are using a couple of textures both plugged to color channel, using different UV sets for each one and multiplying one to the other by blend mode. 

This is, the typical set of baked lights texture multiplying a color texture.

When I try to export them, the exporter crashes. This is the output: 

 

Traceback (most recent call last):
  File "/home/jcarrasco/.config/blender/2.76/scripts/addons/io_export_babylon.py", line 294, in execute
    mesh = Mesh(object, scene, nextStartFace, forcedParent, nameID, self)
  File "/home/jcarrasco/.config/blender/2.76/scripts/addons/io_export_babylon.py", line 700, in __init__
    bakedMat = BakedMaterial(exporter, object, recipe)
  File "/home/jcarrasco/.config/blender/2.76/scripts/addons/io_export_babylon.py", line 1991, in __init__
    self.bake('diffuseTexture', 'DIFFUSE_COLOR', 'TEXTURE', image, mesh, uv, exporter, recipe)
  File "/home/jcarrasco/.config/blender/2.76/scripts/addons/io_export_babylon.py", line 2025, in bake
    self.bakeInternal(internal_type, image, uv)
  File "/home/jcarrasco/.config/blender/2.76/scripts/addons/io_export_babylon.py", line 2030, in bakeInternal
    Main.log('Internal baking texture, type: ' + bake_type + ', mapped using: ' + uv.name, 3)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
 
As far as I can see, there seems like the exporter is trying to bake this texture combination into a single one.
 
Anyone has stepped into this problem before? Appart from the crash, Anyone know a working method to do this?
 
Thanks in advance
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...