#Import Gaea map

1 messages · Page 1 of 1 (latest)

reef dome
#

Hello,

I am learning Bevy and Rust and I am trying to import a basic map from Gaea but the result is bad.

Here is my code to instantiate the terrain:

#[derive(AssetCollection, Resource)]
pub struct TerrainAssets {
    #[asset(path = "Mesher.gltf#Scene0")]
    mesh: Handle<Scene>,
}

fn spawn_map(mut commands: Commands, terrain_assets: Res<TerrainAssets>) {
    commands.spawn(SceneRoot(terrain_assets.mesh.clone()));
}```
devout ferry
#

woah thats some crazy result

reef dome
#

Maybe gltf is not the best option? I choosed it because I saw some bevy example using it but I find it strange that is contains a scene inside it

devout ferry
#

sadly the screenshot is too low res to see any of the mesher settings to see if theres a obvious mistake

devout ferry
reef dome
#

low res ? it's 1080p

#

even more

devout ferry
#

i can't read that

#

oh wait

reef dome
#

it's an issue on your end, you are on mobile maybe it's that

devout ferry
#

discord is obliterating it

#

in browser its fine

reef dome
#

ok, why is gltf the good choice ?

devout ferry
#

its whats probably used the most for 3d models/meshes so generally its the best supported. Could you open the gltf in Blender to sanity check if this is a Bevy issue?

reef dome
#

I will check but I need to download blender, sec

devout ferry
#

In any case, knowing someone else had it happen in Blender, i'm pretty sure this isn't a Bevy issue

reef dome
#

yeah I will check on the Gaea side more

devout ferry
#

still, it makes sense to test bevy against blender here, as bevys gltf handling is mostly tested and modelled after Blender

reef dome
#

Ok in blender everything is ok

devout ferry
#

could you disable normals export in Gaea?

#

"create normals"

reef dome
#

yes it's better

#

But I will have issues with lightning if I dont have normals

#

or maybe Im wrong

#

Can I export textures in gltf ?

#

Or do I need to create a material and apply it afterward