Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Material display issue with SuperBMD #37

Open
Humming-Owl opened this issue Aug 22, 2022 · 3 comments
Open

Material display issue with SuperBMD #37

Humming-Owl opened this issue Aug 22, 2022 · 3 comments

Comments

@Humming-Owl
Copy link

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
Copy link
Author

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

@RenolY2
Copy link
Owner

RenolY2 commented Sep 6, 2023

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.

@Humming-Owl
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants