X-Hax / SonicAdventureBlenderIO

An addon for Blender 4.0+, which adds exporting options for all sonic adventure 3D formats (and a bit more)!
GNU General Public License v3.0
20 stars 1 forks source link

Can you import assets into Blender & then Godot? #29

Closed SengokuBasaraCP closed 2 weeks ago

SengokuBasaraCP commented 3 weeks ago

I've been messing around with SATools and Blender.

I've installed Sonic Adventure I/O on Blender & I can make the textures pop-up for SonicvsShadow1. But whenever I export it from Blender as an object the textures don't load whenever I port it into Godot. I've tried exporting with Materials & PBR items checked by the new obj just causes Godot to crash.

Also I am new to Blender too.

Justin113D commented 3 weeks ago

In order for an exporter to recognize material and texture setups, you need to enable the "principled material" setting of SAIO: https://x-hax.github.io/SonicAdventureBlenderIO/ui/scene/settings/#use-principled-bsdf Note that depending on the exporter, this may not work, although GLTF (the recommended exporter for Godot) does support it.

SengokuBasaraCP commented 3 weeks ago

Cool thank you so much! A little back-up question is I've managed to export "Sonic vs. Shadow1" correctly and have even managed to import it into Godot correctly.

However the ground has a kind of texture problem where it keeps changing between green & white/gray. It does the same thing in Blender so I'm wondering if I imported the textures wrong or is there a correct order for importing the textures in Blender. Since there only appears to be three texture files for it.

Justin113D commented 3 weeks ago

I assume you are talking about the collision geometry, which is not visible in the actual game and often perfectly overlaps with the visible models, which causes the game to not know which of the models gets rendered first.

Easiest would be to just hide the collision geometry in godot, or not export them in the first place (they are imported in a separate collection, so hiding or deleting them in blender shouldn't be too difficult) image

SengokuBasaraCP commented 2 weeks ago

Thank you so much! And I guess one more question is if it is possible for me to add animations to certain models in Blender?

Like the Sonic Model has a separate model/animation from its jumpball. And I was wondering if I could add the jumpball animation to the base Sonic model and delete the jumpball model too.

Justin113D commented 2 weeks ago

This is would already be blender-native territory, and not something addon specific. In that case, it entirely depends on how you want to do it / need to have it. Unfortunately not much that I could help you there

SengokuBasaraCP commented 2 weeks ago

Okay great! Alright maybe one final question is do you one where the normal ring textures are located in the SA2 files? As it's not under the common objects texture.

Justin113D commented 2 weeks ago

I do not know, and this question does not belong among SAIO issues either way.

It'd be more suitable to ask this in the X-Hax discord, of which the invite link can be found here: https://x-hax.github.io/SonicAdventureBlenderIO/contact/

With that said, I'll be closing this issue.