Skip to content

DRAFT: Translucency sorting#1687

Closed
MCRcortex wants to merge 5 commits into
CaffeineMC:1.19.3/devfrom
MCRcortex:1.19.3/translucency_sorting
Closed

DRAFT: Translucency sorting#1687
MCRcortex wants to merge 5 commits into
CaffeineMC:1.19.3/devfrom
MCRcortex:1.19.3/translucency_sorting

Conversation

@MCRcortex

Copy link
Copy Markdown
Contributor

Draft GPU driven translucency sorting


@Override
public void onPreLaunch() {
System.load("C:\\Program Files\\RenderDoc\\renderdoc.dll");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you probably don't wnat to PR this?

@NathanaelLane

Copy link
Copy Markdown

As mentioned in this reddit thread, render order follows a planar generalization of the classic DDA algorithm, which means that with some clever bookkeeping it's not technically necessary to do a full sort-- this could possibly be exploited to exchange the BTMS for a straightforward shuffle routine. (Well, assuming you haven't considered this already 🙂 )

@douira

douira commented May 12, 2023

Copy link
Copy Markdown
Contributor

We have to take into account that the translucent quads we're sorting aren't necessarily axis-aligned or part of complete voxels. Water being the prime example.

@douira

douira commented Jun 30, 2023

Copy link
Copy Markdown
Contributor

Relevant to the translucency sorting endeavor and this PR in particular as it's in need of a triggering mechanism: I wrote a whole bunch about a new plane-crossing based translucency sorting triggering mechanism in this document https://hackmd.io/@douira100/sodium-sl-gfni

@jellysquid3 jellysquid3 deleted the branch CaffeineMC:1.19.3/dev September 12, 2023 19:38
@nonetrix

Copy link
Copy Markdown

Was this fixed???

@hexadecimal233

Copy link
Copy Markdown

just closed ig

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

Successfully merging this pull request may close these issues.

7 participants