[SOLVED] Blank screen as soon as I "use_camera_projection"

This is a simple empty project but for a tilesource with 2 tiles in it, a tilemap I drew with those 2 tiles, and one script file, where I only added these two lines in “init”;

msg.post("#camera", "acquire_camera_focus")
msg.post("@render:", "use_camera_projection")

Oh and the Display settings are set to 1920x1080 and Fullscreen, and Texture filters set to “nearest”. That’s it.

Everything renders fine until I add the line msg.post("@render:", "use_camera_projection"), then the game only renders a completely black screen.

But I’m pretty sure I need this line because none of the methods for zooming in the camera aren’t having any effect.

The test project is attached. Can someone please show me what I’m doing wrong.
glitch test.zip (61.6 KB)

(Ironically, I was trying to set up this simple test project to demonstrate a different problem…)

Your near (0.1) and far (1000) planes are not covering the z-depth (0) where you have your renderable component (tile tilemap):

You need to change your near and far planes so that they actual encompass where you have your graphics. For instance -50 to 50:

4 Likes

Woah, thank you. I did not even know you could rotate the camera like that. But now I see the shortcut in the manual.

1 Like