GodotVR / godot-xr-tools

Support scenes for AR and VR in Godot
MIT License
471 stars 64 forks source link

Updating to Godot 4.2 #645

Closed BastiaanOlij closed 1 week ago

BastiaanOlij commented 2 weeks ago

This PR bumps the minimum version of Godot up to 4.2.

This includes updating of mesh data to the 4.2 format.

I've also cleaned up the teleporter scene a bit so it uses the GLB directly and saves the convex collision shapes as .shape files. Similar changes should be made elsewhere as ArrayMesh and Convex shape data is stored very inefficiently in .tscn files.

Malcolmnixon commented 2 weeks ago

I'm not sure how far we want to go with the teleporter cleanup in this PR; but I found that if I correctly defined material entries in the blend/glb files, then I could attach Godot materials in the GLB importer, and have it construct the colliders (simple convex) to produce all visual and physics artifacts via import rather than post-processing in the scene.

The following is the updated blend/glb file with the material slots named so the GLB importer can correctly assign to them. teleport_glb_blend.zip

BastiaanOlij commented 1 week ago

I'm not sure how far we want to go with the teleporter cleanup in this PR; but I found that if I correctly defined material entries in the blend/glb files, then I could attach Godot materials in the GLB importer, and have it construct the colliders (simple convex) to produce all visual and physics artifacts via import rather than post-processing in the scene.

The following is the updated blend/glb file with the material slots named so the GLB importer can correctly assign to them. teleport_glb_blend.zip

Yeah I went more down a rabbit hole there than I was expecting. I think its best to just merge and then do a follow up PR to improve?

BastiaanOlij commented 1 week ago

I've also changed the default renderer to Compatibility and configured foveated rendering.