BlenderExporter icon indicating copy to clipboard operation
BlenderExporter copied to clipboard

Blender 3.0 Failure

Open TimMensch opened this issue 3 years ago • 11 comments

Not sure if you guys are supporting Blender 3.0.0, but having installed from the Windows Store, Blender auto-updated on me and now I have 3.0.0 installed.

In any event, a scene that I was previously able to export is suddenly throwing an error:

blender_2021-12-10_15-06-47

The relevant bits are:

AttributeError: 'RenderSettings" object has no attribute 'tile_x'

This really feels like a change between 2.9.x and 3.0.0 in Blender, but please let me know if there's something that I'm likely to need to change in my scene to fix this.

TimMensch avatar Dec 10 '21 22:12 TimMensch

Had too many change / fix / change episodes with 2.80. Only the LTS versions (last was 2.93) are going to be supported. Have gotten reports that 3.0 was working, but looks like material baking is not.

Baking is not really the best outcome anyway. You might look at the export log file and see the material being worked on & the node requiring the baking. Perhaps you might do it another way, Principled recommended. Or drop back to 2.93.

Will leave this open till 3.03 LTS goes to beta, and work begins. Thanks for reporting.

On Fri, Dec 10, 2021 at 5:13 PM Tim Mensch @.***> wrote:

Not sure if you guys are supporting Blender 3.0.0, but having installed from the Windows Store, Blender auto-updated on me and now I have 3.0.0 installed.

In any event, a scene that I was previously able to export is suddenly throwing an error:

[image: blender_2021-12-10_15-06-47] https://user-images.githubusercontent.com/530873/145647780-171e8130-b6b0-483a-92ca-2ea528249f03.png

The relevant bits are:

AttributeError: 'RenderSettings" object has no attribute 'tile_x'

This really feels like a change between 2.9.x and 3.0.0 in Blender, but please let me know if there's something that I'm likely to need to change in my scene to fix this.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/BabylonJS/BlenderExporter/issues/54, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4MUYYOA3XZEJ4UBMJUP33UQJ3QLANCNFSM5J2EM6MA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Palmer-JC avatar Dec 12 '21 15:12 Palmer-JC

Same issue.... AttributeError: 'RenderSettings' object has no attribute 'tile-x' Is this something relating to the render method?

impactcolor avatar Jan 07 '22 20:01 impactcolor

Basically, at the API level they made changes which are not back compatible.

Palmer-JC avatar Jan 08 '22 13:01 Palmer-JC

Is there an alternative to baking for things like bump maps (for instance those coming from MakeHuman clothing)?

larjohn avatar Feb 11 '22 22:02 larjohn

Sure, bake it yourself. Not that hard to do it & worth knowing. Also, just use 2.93. You can have both installed.

Palmer-JC avatar Feb 14 '22 15:02 Palmer-JC

also having the same problem, going to try 2.93 instead

echan00 avatar Feb 16 '22 15:02 echan00

Is this project deprecated for Blender 3.x? I see references to random posts here and there on the Internet about using this repository, but it seems development stopped at 2.9. What's the best practice today? Export from Blender for now through menu item glTF 2.0 (.glb/.gltf)?

itssource avatar Jul 24 '22 16:07 itssource

Yes, there will be a version for 3.3 LTS. The intermediate Blender versions are not published for. 3.3 is in alpha. The only known bug, requiring the exporter to bake textures, has been fixed. Not sure how much else will be new / changed yet, though.

On Sun, Jul 24, 2022 at 12:32 PM mybmgithub @.***> wrote:

Is this project deprecated for Blender 3.x? I see references to random posts here and there on the Internet about using this repository, but it seems development stopped at 2.9. What's the best practice today? Export from Blender for now through menu item glTF 2.0 (.glb/.gltf)?

— Reply to this email directly, view it on GitHub https://github.com/BabylonJS/BlenderExporter/issues/54#issuecomment-1193352569, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4MUY6DND4RYOEUEWIUK73VVVVZVANCNFSM5J2EM6MA . You are receiving this because you commented.Message ID: @.***>

Palmer-JC avatar Jul 25 '22 19:07 Palmer-JC

Okay, thanks Jeff.

itssource avatar Jul 25 '22 21:07 itssource

I got the same issue when exporting my blender scene using babylonjs exporter. Here's the error logs

Exporter version: 2.93.5, Blender version: 3.1.2
========= Conversion from Blender to Babylon.js =========
	Scene settings used :
		Inline textures     :  false
		Material Type       :  PBR
		Positions Precision :  4
		Normals Precision   :  3
		UVs Precision       :  3
		Vert Color Precision:  3
		Mat Weight Precision:  2
		Keep Z-up r-handed  :  no
		Texture directory   :  /Users/[xxx]/Documents/blender/[xxx]/
	Python World class constructor completed
	processing begun of camera (UniversalCamera):  Camera
	processing begun of mesh:  Room
		processing begun of material:  Wall Light
		processing begun of material:  Wall Base
			WARNING: unsupported node type(ShaderNodeMixRGB) will trigger baking
			WARNING: unsupported node type(ShaderNodeGamma) will trigger baking
			WARNING: Metal channel baking required, but not possible, ignored
			WARNING: Roughness channel baking required, but not possible, ignored
			WARNING: Refraction channel baking required, but not possible, ignored
========= An error was encountered =========
  File "/Users/[xxx]/Library/Application Support/Blender/3.1/scripts/addons/babylon_js/json_exporter.py", line 116, in execute
    mesh = Mesh(object, scene, self)
  File "/Users/[xxx]/Library/Application Support/Blender/3.1/scripts/addons/babylon_js/mesh.py", line 150, in __init__
    recipe = BakingRecipe(bpyMesh, exporter)
  File "/Users/[xxx]/Library/Application Support/Blender/3.1/scripts/addons/babylon_js/materials/baking_recipe.py", line 105, in __init__
    self.bakedMaterial.bake(bpyMesh, self)
  File "/Users/[xxx]/Library/Application Support/Blender/3.1/scripts/addons/babylon_js/materials/material.py", line 145, in bake
    tileXHold = render.tile_x
ERROR:  'RenderSettings' object has no attribute 'tile_x'
========= end of processing =========
elapsed time:  0 min, 0.0084 secs

ElvisWong avatar Jul 26 '22 02:07 ElvisWong

@ElvisWong, you may not use this exporter with anything that results in the material being required to bake, in a version of Blender newer than 2.93.

Your material 'Wall Base' has 2 nodes which have no equivalent in BABYLON PBR. MixRGB node might be added, but not Gamma. Baking in Blender also means there is going to be a texture required. Much better to use something like a Principled node for your materials, which maps much better, thus avoiding the bake / texture at run time.

Palmer-JC avatar Jul 26 '22 19:07 Palmer-JC