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

[OoT] Occlusion planes system #360

Merged
merged 20 commits into from
Jun 16, 2024
Merged

[OoT] Occlusion planes system #360

merged 20 commits into from
Jun 16, 2024

Conversation

sauraen
Copy link
Contributor

@sauraen sauraen commented Jun 11, 2024

This adds f3d common and OoT support for a system for managing occlusion plane candidates for F3DEX3. You can create one or more meshes per room consisting of quads representing occlusion plane candidates, and they are exported as part of the room files. An in-game system then selects one occlusion plane per frame which is estimated to occlude as much as possible, computes the coefficients for that plane, and sends them to the RSP.

An occlusion plane candidate is a planar, convex quad, painted with vertex colors representing that plane's weight. You can manually weight planes based on the amount of stuff in the scene behind them. Colors black to white represent weights 0 to 1, and they multiply the score assigned to each plane per frame by the occlusion plane system. If you create a mesh marked as occlusion planes which does not meet these requirements, fast64 will give descriptive errors.

There is no change to exports for scenes which don't contain meshes marked as occlusion planes.

Copy link
Contributor

@Yanis42 Yanis42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice 👀

@sauraen sauraen requested a review from Yanis42 June 16, 2024 18:40
@Yanis42 Yanis42 added the merge soon Will be merged in a few days at most if nothing else comes up label Jun 16, 2024
@sauraen sauraen merged commit 9d8c830 into Fast-64:main Jun 16, 2024
1 check passed
@sauraen sauraen deleted the OcclusionPlanes branch June 16, 2024 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge soon Will be merged in a few days at most if nothing else comes up
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants