Jump to content

Blender 2.75 Exporter


paulsouthport
 Share

Recommended Posts

Hi all

 

I upgraded Blender to 2.75, installed the 3.0.2 exporter from GitHub. Now I can't export. 

A scene that worked fine yesterday, with no changes, fails and creates a 0 length .babylon file, with this in the log:

 

Exporter version: 3.0.2, Blender version: 2.75 (sub 0)
========= Conversion from Blender to Babylon.js =========
Python World class constructor completed
WARNING: No active camera has been assigned, or is not in a currently selected Blender layer
processing begun of node:  walls
processing begun of mesh:  wall_back
processing begun of Standard material:  wall_back
num positions      :  4
num normals        :  4
num uvs            :  8
num uvs2           :  0
num colors         :  0
num indices        :  6
processing begun of mesh:  wall_front
processing begun of Standard material:  wall_front
WARNING: Material has image texture with no UV map assigned:  "Texture.011" ignored
num positions      :  4
num normals        :  4
num uvs            :  8
num uvs2           :  0
num colors         :  0
num indices        :  6
processing begun of mesh:  wall_2
processing begun of Standard material:  wall_2
WARNING: Material has image texture with no UV map assigned:  "Texture.010" ignored
num positions      :  4
num normals        :  4
num uvs            :  8
num uvs2           :  0
num colors         :  0
num indices        :  6
processing begun of mesh:  wall_2back
processing begun of Standard material:  wall_2back
WARNING: Material has image texture with no UV map assigned:  "Texture.008" ignored
num positions      :  4
num normals        :  4
num uvs            :  8
num uvs2           :  0
num colors         :  0
num indices        :  6
processing begun of mesh:  wall1
processing begun of Standard material:  wall1.1
WARNING: Material has image texture with no UV map assigned:  "Texture.006" ignored
num positions      :  4
num normals        :  4
num uvs            :  8
num uvs2           :  0
num colors         :  0
num indices        :  6
processing begun of mesh:  Cube.001
processing begun of Standard material:  wall_loop.1
num positions      :  25
num normals        :  25
num uvs            :  50
num uvs2           :  0
num colors         :  0
num indices        :  36
processing begun of mesh:  floor
processing begun of Standard material:  floor.1
WARNING: Material has image texture with no UV map assigned:  "Texture.009" ignored
num positions      :  4
num normals        :  4
num uvs            :  8
num uvs2           :  0
num colors         :  0
num indices        :  6
processing begun of mesh:  wallloop
processing begun of Standard material:  wall_loop
num positions      :  49
num normals        :  49
num uvs            :  98
num uvs2           :  0
num colors         :  0
num indices        :  132
processing begun of mesh:  toilets
processing begun of Standard material:  toilets
WARNING: Material has image texture with no UV map assigned:  "Texture.007" ignored
num positions      :  122
num normals        :  122
num uvs            :  244
num uvs2           :  0
num colors         :  0
num indices        :  180
processing begun of mesh:  Capsule
registered as also a user of material:  wall_back
num positions      :  35
num normals        :  35
num uvs            :  70
num uvs2           :  0
num colors         :  0
num indices        :  96
processing begun of mesh:  Capsule.2
registered as also a user of material:  wall_back
num positions      :  35
num normals        :  35
num uvs            :  70
num uvs2           :  0
num colors         :  0
num indices        :  96
processing begun of mesh:  counter_top
processing begun of Standard material:  counter_top
num positions      :  25
num normals        :  25
num uvs            :  50
num uvs2           :  0
num colors         :  0
num indices        :  36
processing begun of mesh:  box
registered as also a user of material:  wall_loop
num positions      :  25
num normals        :  25
num uvs            :  50
num uvs2           :  0
num colors         :  0
num indices        :  36
processing begun of mesh:  Platonic
processing begun of Standard material:  Mat.1
num positions      :  51
num normals        :  51
num uvs            :  102
num uvs2           :  0
num colors         :  0
num indices        :  60
processing begun of mesh:  toilet_cabinet.1
processing begun of Standard material:  toilet_cabinet
WARNING: Material has image texture with no UV map assigned:  "Texture.005" ignored
num positions      :  226
num normals        :  226
num uvs            :  452
num uvs2           :  0
num colors         :  0
num indices        :  300
processing begun of mesh:  table
processing begun of Standard material:  table
WARNING: Material has image texture with no UV map assigned:  "Texture.004" ignored
num positions      :  29
num normals        :  29
num uvs            :  58
num uvs2           :  0
num colors         :  0
num indices        :  36
processing begun of node:  cabinet
processing begun of mesh:  cabinet.1
processing begun of Standard material:  cabinet
WARNING: Material has image texture with no UV map assigned:  "Texture.003" ignored
num positions      :  166
num normals        :  166
num uvs            :  332
num uvs2           :  0
num colors         :  0
num indices        :  216
processing begun of mesh:  screens
processing begun of Standard material:  screens
WARNING: Material has image texture with no UV map assigned:  "Texture.001" ignored
WARNING: Material has image texture with no UV map assigned:  "Texture.002" ignored
num positions      :  12
num normals        :  12
num uvs            :  24
num uvs2           :  0
num colors         :  0
num indices        :  18
processing begun of mesh:  Cube
WARNING: No materials have been assigned: 
num positions      :  8
num normals        :  8
num uvs            :  0
num uvs2           :  0
num colors         :  0
num indices        :  36
========= Writing of scene file started =========
========= An error was encountered =========
  File "C:\Users\Paul\AppData\Roaming\Blender Foundation\Blender\2.75\scripts\addons\io_export_babylon.py", line 331, in execute
    self.to_scene_file   ()
  File "C:\Users\Paul\AppData\Roaming\Blender Foundation\Blender\2.75\scripts\addons\io_export_babylon.py", line 405, in to_scene_file
    mesh.to_scene_file(file_handler)
ERROR:  to_scene_file() missing 1 required positional argument: 'ignored'
========= end of processing =========
elapsed time:  0 min, 0.024 secs
 
 
All objects have valid UVs, but I suspect that message is a red herring.
Help!
 
thanks
 
Paul
 
PS. I've reverted to Blender 2.71 and the export works fine
Link to comment
Share on other sites

Interesting, thanks for the link.

The UV issues make sense, and from the log it appears they weren't necessarily the deal breaker.

I think I'll stick with 2.71 for now, I really only use blender as a conduit from Cinema 4D to Babylon, so I'm not too worried about the update, Still curious about what it was in my scene that caused the failure though.

 

cheers

Paul

Link to comment
Share on other sites

FYI, the warning message part has been addressed in 3.0.3 which is in a PR on deck.  Did not see the error till just now.  Killed 3.0.3 PR.  You must have a Node (which get converted to a mesh without geometry in BJS).  

 

There was an argument not needed for a call Node.to_scene(), called 'ignored'.  By its name it was not used for a node, but was in the to_scene() of a mesh. Not needed at all anymore, but overlooked not pulling the arg out of Nodes version.

 

Removed and re-PRed, as 3.0.3a.  Blender does not have a spot for the 'a', but unless you are digging in Github history you can not get a 3.0.3 file without this last second change.

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...