SuperBMD icon indicating copy to clipboard operation
SuperBMD copied to clipboard

Material display issue with SuperBMD

Open Humming-Owl opened this issue 2 years ago • 3 comments

I have an issue related to the conversion of a FBX to BMD. When importing the BMD model into the game (Super Mario Galaxy) the materials added to the object look very bright. However when opening the model with j3dview and saving it inside j3dview as a BDL and then importing that BDL to the game then the materials look less bright, as how they should look. But this only happens when saving the BMD file exported from SuperBMD with j3dview.

The discussion that let me to open this issue, is on the Luma's Workshop Discord server, the first comment was here: https://discord.com/channels/334663517355507714/421356181844393984/1011098115824169070

Cheers.

Humming-Owl avatar Aug 22 '22 19:08 Humming-Owl

Ok so, I will bump this issue again because previously I did not attach images to show how the issue looks like exactly. Will attach the files used in the images shared at the end of the message.

To certain models (and I will use as an example Mario's model from SMG1) when converting a DAE file to a BDL the material on said BDL looks incredibly bright in game in relation to how it is supposed to look. The issue, however, is "fixed" by openning the BDL created by SuperBMD and saving it with j3dview.

Image 1: photo_2023-09-03_13-43-52 Image 2: photo_2023-09-03_13-43-42

The models shown in the pictures from above are described as follows:

  • The Mario model at the left (test1.bdl in the shared files) is the original Mario model from SMG1.
  • The Mario model in the middle (test2.bdl in the shared files) is the DAE model extracted from test1.bdl with SuperBMD and converted back to BDL with SuperBMD.
  • The Mario model at the right (test3.bdl in the shared files) is the test2.bdl file opened and saved with j3dview.

Image 1 shows the 3 models when approaching them in a slow way (moving normally with Mario), Image 2 shows the 3 models after abruptly moving Mario's position, and consequently, the camera in game (after a ground pound to the void). In both cases the Mario model in the middle has brighter looks in relation to both left and right Mario models.

models.zip

Humming-Owl avatar Sep 03 '23 18:09 Humming-Owl

Is LagoLunatic's SuperBMD fork an option for Galaxy? https://github.com/LagoLunatic/SuperBMD/releases/ It can also export BDL from what I understand, because Wind Waker (primary usecase for the fork) uses BDL. I wonder if that works any better. Am not very familiar with the MDL3 section (the main point of BDL over BMD) and support for it was added by a different contributor, so won't be easy to fix for me.

RenolY2 avatar Sep 06 '23 17:09 RenolY2

Hi! thanks for the answer. Unfortunately LagoLunatic's SuperBMD converts the model back from DAE to BDL with different shading (see attached image).

image

Tried to load the model on game regardless and I got a game crash (in the crash dump I get a function name that seems to be related to the BDL loading).

The method of openning and saving the BDL with j3dview from your fork of SuperBMD works well (unsure if there are cases in which this wont work) so don't worry if the fix takes time or it can't be done. Many thanks for your time.

Humming-Owl avatar Sep 11 '23 18:09 Humming-Owl