Champa Posted June 16, 2016 Share Posted June 16, 2016 Hi! 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 Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted June 16, 2016 Share Posted June 16, 2016 That is a known problem. They changed cycles baking for 2.77. I have changed un posted code, but have not tested it. Not bigger enough priority right now. Please drop back to 2.76 as a work around. Quote Link to comment Share on other sites More sharing options...
Champa Posted June 16, 2016 Author Share Posted June 16, 2016 Okay Anyways, do you know when will this be fixed ? Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted June 16, 2016 Share Posted June 16, 2016 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. Quote Link to comment Share on other sites More sharing options...
Champa Posted June 16, 2016 Author Share Posted June 16, 2016 Okay, thanks for the fast anwser ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.