Cabinet view for bullet hell

Hey all,

Google search and such didn’t turn up much. We’re doing a top down bullet hell game where we’d like the edges of the screen black, looking to get that retro “cabinet” view. Idk if that is the proper term for this, but how would one accomplish doing this? Any resources would be helpful. Thanks!

3D or 2D? What aspect are you struggling with?

2D
I dont get how to limit the perspective of the camera and render black on the sides

I assume by retro and top-down that this is a typical 2D game such as those made by Cave.

The most obvious solution would be to simply put black bars physically at the sides of the screen (make a black rectangle png or whatnot) and then put colliders on them if you’re using the physics engine. That way you can go forward creating your game and later come back and put whatever you want there. A layer that holds stats, overlays, whatever…

Ah yeah I thought of that but was just curious if there was a way to simply render it like that with the camera via scripting, cause it seems like that’s be a fairly standard thing to do

the correct terms (at least for video) are letterboxing/pillarboxing.

Thank you, idk why I couldn’t think of it haha. Is there a method to do this within a script on the camera?

well, i think if the camera is orthographic it should be easy enough to figure out.

I vaguely recall something from yesteryear that allowed you to specify a texture to overlay on a camera as well.

Alternatively, as suggested, setup some black border textures. Easiest way is probably to set them up as UI elements

upon using the term “letterbox” I found this, thank you haha

http://wiki.unity3d.com/index.php?title=AspectRatioEnforcer

1 Like