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

Binary DL Export is somehow broken (SM64) #458

Open
aGitrHUbUser opened this issue Sep 15, 2024 · 11 comments
Open

Binary DL Export is somehow broken (SM64) #458

aGitrHUbUser opened this issue Sep 15, 2024 · 11 comments

Comments

@aGitrHUbUser
Copy link

it is exported sucessfully but when i tried to change the geo dl to load the exported one, it crashed

@aGitrHUbUser aGitrHUbUser changed the title Binary DL Export is somehow broken Binary DL Export is somehow broken (SM64) Sep 15, 2024
@Lilaa3
Copy link
Collaborator

Lilaa3 commented Sep 15, 2024

Does your mesh happen to have multiple materials?

@Lilaa3
Copy link
Collaborator

Lilaa3 commented Sep 15, 2024

OK so as one does I learned how to use the exporter myself and i think i know what is causing your confusion, yes the displaylist exporter seems to be outdated for binary (ill pr to fix that) but this is probably because you're trying to use the geolayout address (like the name would suggest) instead of the address in the command itself, so say you want to update the sand dl, the load from dl command is at 0x2ABD88, but the address that points to the dl is at 0x2ABD8C, does that make sense?

@aGitrHUbUser
Copy link
Author

Does your mesh happen to have multiple materials?

Only one material

@Lilaa3
Copy link
Collaborator

Lilaa3 commented Sep 15, 2024

Does your mesh happen to have multiple materials?

Only one material

Could you respond to my other comment?

@aGitrHUbUser
Copy link
Author

aGitrHUbUser commented Sep 16, 2024

OK so as one does I learned how to use the exporter myself and i think i know what is causing your confusion, yes the displaylist exporter seems to be outdated for binary (ill pr to fix that) but this is probably because you're trying to use the geolayout address (like the name would suggest) instead of the address in the command itself, so say you want to update the sand dl, the load from dl command is at 0x2ABD88, but the address that points to the dl is at 0x2ABD8C, does that make sense?

If you're talking about LOAD_MODEL_FROM_DL or LOAD_MODEL_FROM_GEO function, not really, i exported it without overwrite geolayout or dl pointers, only export it and change bully's GEO horn to load exported display list

@Lilaa3
Copy link
Collaborator

Lilaa3 commented Sep 16, 2024

yes, the address you used is probably not the start for the main display list, if you know the address of the display list command's display list you could tell fast64 to override that like you would for load model from dl

@aGitrHUbUser
Copy link
Author

aGitrHUbUser commented Sep 16, 2024

yes, the address you used is probably not the start for the main display list, if you know the address of the display list command's display list you could tell fast64 to override that like you would for load model from dl

i did looked in the hxd and it seem to have 3 fast3d commands that linked to 3 displaylists, i load one of them in a door geo and it came out like this (ok it's my bad i remember it load 3 displaylists when exported, 1 probably material, 1 probably dl reset and 1 model displaylist mb)
image

@Lilaa3
Copy link
Collaborator

Lilaa3 commented Sep 16, 2024

material, geometry and material revert specifically!
does the door render correctly if you use the main displaylist with all 3?
also are you using the correct level option? that's used to convert the virtual address to the correct segmented address

@aGitrHUbUser
Copy link
Author

material, geometry and material revert specifically! does the door render correctly if you use the main displaylist with all 3? also are you using the correct level option? that's used to convert the virtual address to the correct segmented address

if i use segmented address (0x4035378) that have 3 dls and replace it in the door geo it's still the same as soon as it displayed
image
image

@Lilaa3
Copy link
Collaborator

Lilaa3 commented Sep 16, 2024

0x4035378 should be correct, do you have a blend you can share by the way?

@aGitrHUbUser
Copy link
Author

0x4035378 should be correct, do you have a blend you can share by the way?

didn't have a blend plus uh it's a cube
image

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