Hello, I want to create a minimap radar for my game in UPBGE 0.3.0, like Halo games.
I viewed : Mini and world map with the option to rotate and zoom (v2.0) on Blender artists.
I have tried to create a minimap with a python script attached to the main camera, but I’m still far from the result I expect :
scene = bge.logic.getCurrentScene()
cont = bge.logic.getCurrentController()
own = cont.owner
camera_obj = scene.objects[“RenderCamera”]
renderplane = scene.objects[“Plane”]
texture_object = bge.texture.Texture(renderplane, 0, 0)
texture_object.source = bge.texture.ImageRender(scene, camera_obj)
texture_object.source.capsize = [128, 128]
The RenderCamera is on top of the player and the render plane is facing the player, but it doesn’t work.
I want the radar to be a circle and I would like enemies to be represented by red dots on the radar with a black background. Is it possible to make this in UPBGE 0.3 ? Can anyone help me ?