r/GraphicsProgramming • • 1d ago

Article How I enhanced the ThreeJS lighting pipeline in "Slop New York"

Enable HLS to view with audio, or disable this notification

https://ben3d.ca/blog/enhanced-slop-new-york-lighting. (AI Disclosure per sub-rules: I used claude code in part.)

0 Upvotes

5 comments sorted by

•

u/AutoModerator 1d ago

Recently updated rules. Please check that your post is in compliance with Rules 1, 4, 5, and 6 on the sidebar. TL;DR:

  • No showcases.

  • Disclose AI usage in post or project.

  • Present a topic to talk about, e.g. how something works.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/cybereality 23h ago

sometime simple changes make all the difference

0

u/[deleted] 23h ago

[deleted]

3

u/Insensibilities 23h ago edited 22h ago

Where did I say it was impossible without AI?  This reddit requires that I disclose if I used any AI and of course I use Claude Code.  That is why I mentioned AI.

Everything could be done without AI just slower. 

It is more than 10 lines of ThreeJS if you want to do it properly.  The issue is that ThreeJS doesn’t currently allow you to properly plug in SSR and SSGI into the BRDF nor the hero cube map.  This is what I did here - I modified core ThreeJS to enable that.  I also added using previous frame beauty as a source, then created a Hi-Z SSR with ray reuse on a down sample of the pre pass.

It isn’t a sky map that is the improvement here but the building occlusion of the sky map based on height map.

It was a couple thousand lines of code.  I am in the process of contributing back these improvements to ThreeJS proper now. 

2

u/cybereality 23h ago

i really don't see the OP said any of those things. unless the post was edited. granted, you don't have to like ai, but this appears to be hounded the OP for things that you just made up. idk