Parallax-Based Window Interiors

As a Roblox developer, it is currently too hard to …

Create a cool skyline that’s not just glass towers to the sun, or create a diverse metropolis to traverse, without using a ton of extraneous assets.

Forza uses this extensively, Cyberpunk did as well, and I’m pretty sure this would go HARD in Roblox.

If Roblox is able to address this issue, it would improve my development experience because …

I should be able to provide a parallax texture sheet of interiors ( these are readily available ) and get easy-to-stamp window interiors that I can throw around the level. These are super performant, even on low-end devices, as they’re just doing a bit of shader math to warp a texture around.

Here’s some examples of the texture sheets:

timelaps copy

And examples of it in practice:

tilted_rooms

hello_loop_02

Finally, here’s a great write-up that I pulled these images from:

https://forum.truckersmp.com/index.php?/topic/117733-scs-blog-under-the-hood-parallax-interiors/

Forza also adds in options for additional layers like the glass itself:

As well as curtains and blinds to keep the draw calls as low as possible:

Here’s a link to a article about Playground’s work on Forza:

great suggestion! i’m sure there’s a (rather tricky) way to do this with viewportframe masking. but having this can allow us to make alot of cool stuff as you said

You can already do this; this has already been solved (albiet awkwardly.)
I went down the rabbit hole on this about 3 years ago, here’s a file you can modify from there
Parallax Testing.rbxl (119.9 KB)
. It’s from Fake_Bobcat, of Parallax Corrected 3D SurfaceGUIs.
Sparing you the life story when I used it, the file is meant to be a stress-test of the parallaxing (with overlaid windows, half-transparency glass panels, ect), but if you want a better look at just the interiors themselves you can also just search classname=imagelabel and set the ImageTransparency to 1 on them all (That’s what I did for my implementation, just moved the example windows around and made the button always on).
I didn’t get to modifying it for rectangular pictures like your christmas example, but all the paramaters in the Stressgrouped localscript should be intuitive enough!
(The model quality required of the rest of the realisim I assume you’re going after is another thing to talk about, but this should help)

The issue is that you cannot use 3D surface guis to load up a skyscraper with a mix of a handful of rooms. It’s just too many GUI composites. Parallax-Windows are peak specifically because they’re so gosh darn cheap to render.

I do appreciate you linking your solve, but I don’t want to have to play merry-go-performance on which specific ones I should have loaded in and running near a player, as I don’t want to add in out-of-the-box performance costs unless I can actually deliver on the whole thing.

i made this post: Parallax Occlusion Mapping, but no roblox staff saw it probably, i doubt this is gonna be a thing right now

Even with the adjustable activation radius toggle?

Yup. :frowning:

Specifically because of how cheap Parallax is, it’s the only reason I was considering it above using the glass material, and even then, bleh, I’m considering a different level design due to the current lack of functionality.

Parallax can run on mobile, and is as practically as cheap as any other opaque material. A 3D SurfaceGUI per window, regardless of ‘when’ it’s active, is already too expensive for just ‘world building’. Imo, that’s a budget that’s reserved for the many other active and engaging things worth the CPU and render overhead.

I’m not trying to be mean, you built a fantastic tool that provides a replication of the functionality, but not with the cheapness that it could be done. Older versions of the engine supported such materials, it’s pretty old tech in general, so there’s a potential they will add Parallax materials, and I’m happy to hold out for that day to flash-up some really cool environments.