mixing 2D and 3D


A part of the intent of this game involves blending together these 2d puzzles with this 3d world. I created the 2D puzzle as its own separate scene but it would be much nicer if instead of a separate Scene it could be part of the world. 

Working towards this I did some digging and found about Godot SubViewport and using it as a texture. There was a nice tutorial using it for rendering a procedural planet (https://docs.godotengine.org/en/stable/tutorials/shaders/using_viewport_as_textu...) which i looked at the process there and tweaked to get the 2D game board on a plane mesh.

SubViewport didn't get any input so the controls weren't working initially but I added a script to the mesh to catch Input Events and forward them to the SubViewport and it's all working nicely.

Ada is has the portals in the 3d world working pretty well at this point and going to try to have a build including the first 3d puzzle uploaded by next week. Maybe we can include integrating the 2D Puzzle into the 3D world as well.

Get Untitled Chronomancy Game

Leave a comment

Log in with itch.io to leave a comment.