Jump to content

Blender export error


max123
 Share

Recommended Posts

14 hours ago, JCPalmer said:

What version was this blend saved under?  Game engine has been around a while.  What happens when you switch render to Game Engine?

This is Blender 2.79b, Babylon exporter v 5.6.3. I'm using Blender Render, but this is what I've found so far:

1. I import a model (bfx / obj) into blender, then export to Babylon => everything works fine.

2. I strip all materials from ONE of the models, export to Babylon => BAM! Error!.

I've attached the file.

Thanks!

 

stairs.blend.zip

Link to comment
Share on other sites

An export as is:

Quote

Exporter version: 5.6.4, Blender version: 2.79 (sub 0)
========= Conversion from Blender to Babylon.js =========
    Scene settings used :
        export scope        :  ALL
        inline textures     :  false
        Positions Precision :  4
        Normals Precision   :  3
        UVs Precision       :  3
        Vert Color Precision:  3
        Mat Weight Precision:  2
        texture directory   :  C:\Users\Jeff Palmer\Desktop\
    Python World class constructor completed
    processing begun of camera (UniversalCamera):  Camera
    processing begun of mesh:  stairs
        processing begun of Standard material:  15 - Default
        processing begun of Standard material:  red paint
            Bump texture found "Map #109"
                Image texture found, type:  bumpTexture, mapped using: "UVChannel_1"
    WARNING: Error encountered processing image file:  , Error:  [Errno 2] No such file or directory: 'C:\\Users\\Jeff Palmer\\AppData\\Local\\Temp\\Temp1_stairs.blend.zip\\..\\Texture'
        processing begun of Standard material:  Deck Green
        processing begun of Standard material:  07 - Default
        processing begun of Standard material:  White
        processing begun of Standard material:  Dark Grey paint
            Bump texture found "Map #109"
                Image texture found, type:  bumpTexture, mapped using: "UVChannel_1"
    WARNING: Error encountered processing image file:  , Error:  [Errno 2] No such file or directory: 'C:\\Users\\Jeff Palmer\\AppData\\Local\\Temp\\Temp1_stairs.blend.zip\\..\\Texture'
        processing begun of Standard material:  Deck Green.001
        processing begun of multimaterial:  stairs.Multimaterial#0
        num positions      :  2115
        num normals        :  2115
        num uvs            :  4230
        num uvs2           :  0
        num colors         :  0
        num indices        :  4440
    processing begun of light (POINT):  Lamp
========= Writing of scene file started =========
========= Writing of scene file completed =========
========= end of processing =========
elapsed time:  0 min, 0.0904 secs

 

I see missing textures, not sure if you have them.

I remove 'red paint', it worked.

i remove '15 - default', it worked.

i remove 'Deck Green', stairs now turn all yellow, but it worked.

i remove '07 - Default', stairs now turn white, but it worked.

i remove 'White', stairs now turn black, but it worked.

i remove 'Dark Grey paint', stairs now green, but it worked.

i remove 'Deck Green', & now have no materials, ut worked.

Quote

Exporter version: 5.6.4, Blender version: 2.79 (sub 0)
========= Conversion from Blender to Babylon.js =========
    Scene settings used :
        export scope        :  ALL
        inline textures     :  false
        Positions Precision :  4
        Normals Precision   :  3
        UVs Precision       :  3
        Vert Color Precision:  3
        Mat Weight Precision:  2
        texture directory   :  C:\Users\Jeff Palmer\Desktop\
    Python World class constructor completed
    processing begun of camera (UniversalCamera):  Camera
    processing begun of mesh:  stairs
        WARNING: No materials have been assigned:
        num positions      :  2115
        num normals        :  2115
        num uvs            :  4230
        num uvs2           :  0
        num colors         :  0
        num indices        :  4440
    processing begun of light (POINT):  Lamp
========= Writing of scene file started =========
========= Writing of scene file completed =========
========= end of processing =========
elapsed time:  0 min, 0.0901 secs

Seems old that the color should change on the whole mesh though.  For meshes with multiple materials,  they should not be the same vertices for each material.  Reloaded .blend, put mesh into edit mode, hit select button while each material selected.  'Deck Green' is used for all the vertices.

 

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