#How to load .blend files?

7 messages · Page 1 of 1 (latest)

robust dragon
#

I tried bevy_blender crate, it wasn't maintained for long time and only supports bevy 0.7 . I convert .blend to .fbx file and use bevy_mod_fbx crate, but doesn't work.

    cmd.spawn((
        SceneBundle {
            scene: asset_server.load("football.fbx#Scene0"),
            ..default()
        },
        Spin,
    ));
honest lily
#

blender can export .gltf which has first-party support from bevy

robust dragon
#

I tried, but seems .gltf won't contains texture? @honest lily

honest lily
#

The .blend file doesn't contain any textures.

It looks like the material properties aren't being exported properly.

I found that if I switched the "Bianco" and "Nero" material surface setting to "Principled BSDF" and the base color to white and black, it looks correct in bevy.

You could also follow a tutorial for texture baking, but that's a bit more work.

robust dragon
#

Could you share your .gltf file? I'm new to game dev, and currently mainly leanring general concepts of game dev and engine, blender is on my list, but not started yet. @honest lily

honest lily