I want to project a world coordinate to a screen coordinate (preferred in pixels) while the engine is in the editor mode and the game is not running. So I can’t use the APlayerController method ProjectWorldLocationToScreen, because I don’t have a PlayerController.
A workaround would be to start and stop the engine from within the c++ code (to generate a player controller), but I can’t find any way to achive that.
Hey there! any luck or insights in doing so? I exported the projection matrix from a cinematic camera actor, as well as the 3d coordinates to a file, so I can play around with it in python.
I then rendered the scene from the cinematic camera. In principle, I should be able to use the projection, and the exact 3d coordinates, to calculate the 2d location in the cinematic camera, but I never get the correct results were you able to solve this?