Jump to content

Blender2Babylonjs export error


Recommended Posts


I get an error when trying to convert a house from blender to babylonjs

Here is the error log


	Exporter version: 4.6.0, Blender version: 2.77 (sub 0)
========= Conversion from Blender to Babylon.js =========
	Scene settings used:
		selected layers only:  false
		flat shading entire scene:  false
		inline textures:  false
		texture directory:  C:\Users\2015\Desktop\House\
	Python World class constructor completed
	WARNING: No active camera has been assigned, or is not in a currently selected Blender layer
	processing begun of mesh:  window_roof
		processing begun of baked material:  window_roof
			Cycles baking texture, type: DIFFUSE_COLOR, mapped using: UVMap
========= An error was encountered =========
  File "C:\Program Files\Blender Foundation\Blender\2.77\scripts\addons\io_export_babylon.py", line 330, in execute
    mesh = Mesh(object, scene, nextStartFace, forcedParent, nameID, self)
  File "C:\Program Files\Blender Foundation\Blender\2.77\scripts\addons\io_export_babylon.py", line 787, in __init__
    bakedMat = BakedMaterial(exporter, object, recipe)
  File "C:\Program Files\Blender Foundation\Blender\2.77\scripts\addons\io_export_babylon.py", line 2138, in __init__
    self.bake('diffuseTexture', 'DIFFUSE_COLOR', 'TEXTURE', image, mesh, uvName, exporter, recipe)
  File "C:\Program Files\Blender Foundation\Blender\2.77\scripts\addons\io_export_babylon.py", line 2170, in bake
    self.bakeCycles(cycles_type, image, uvName, recipe.nodeTrees)
  File "C:\Program Files\Blender Foundation\Blender\2.77\scripts\addons\io_export_babylon.py", line 2218, in bakeCycles
    bpy.ops.object.bake(type = bake_type, use_clear = True, margin = 5, use_selected_to_active = False)
  File "C:\Program Files\Blender Foundation\Blender\2.77\scripts\modules\bpy\ops.py", line 189, in __call__
    ret = op_call(self.idname_py(), None, kw)
ERROR:  Converting py args to operator properties:  enum "DIFFUSE_COLOR" not found in ('COMBINED', 'AO', 'SHADOW', 'NORMAL', 'UV', 'EMIT', 'ENVIRONMENT', 'DIFFUSE', 'GLOSSY', 'TRANSMISSION', 'SUBSURFACE')
========= end of processing =========
elapsed time:  0 min, 0.0343 secs


Link to comment
Share on other sites

Do not know.  I had made a bunch of changes to this area, including one other Cycles bug.  The other changes are features to combine / bake multi-textures into a single texture, changing the size of textures, e.g. 2048 by 2048 to 1024 by 1024, and output in jpg or png with alpha formats.  Problem is I have not been able to get them working perfectly.

These things require a lot of retesting.  I am primarily a Webgl application developer, not a BJS tool builder.  I work on things as I need them.  This is not my biggest need right now, and this fix is mixed in with my other changes, sorry.

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.

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.


  • Recently Browsing   0 members

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