I added a 2nd scene named MiniMap to be used as the Overlay Scene.
Map is screen shot of the main scene that was UV mapped to a plane in the overlay scene.
Car is linked from main scene to overlay scene.
thanks cthames,
overlay scene good idea but i cant make full copy (car and its controls) to overlay scene because im using your vehicle tutorial.
i want the car icon will not move and the map will move like gta or nfs.
thanks fisicomolon,
viewports is very nice when i move the topcamera up to the car and parent it to car. But car camera viewport must be full screen and it must be at back side of the map viewport. And map viewport must be small square at left-down of the screen.
Maybe you can use the render to texture feature from videotexture player, and make it 50% transparent. I don’t know how to do it, not even if it is possible.
In the first blend, I used linked objects for the mini map because it doesn’t use python. I don’t think it’s the best way but I do think it’s the easiest to understand.
Below is a blend that uses 3 small python scripts. Rotating map. Icon for car.
thanks cthames
This is vey good example. i think it will work with vehicle tutorial example clearly. But if i have big map, this overlay scene will be very big at game screen. How can i show it inside a square or a circle.
And your question: after the clicking go advanced button, click attachments button and window will open. at window, choose a blend file and upload. Then close window. You will see the attached file at down to the page. This is way how im doing it.
And i saw the video texture player thread but i didnt see any example like this.
From the first post, I know you don’t want to use Viewports for your mini map but like fisicomolon pointed out, it’s probably the best way to go for what you want.
I don’t know of an easy way to show just part of the map in an overlay scene.
However, it is easy to do with viewports.
Here’s a blend. The map and map camera are under the track. I used the track you posted last week and the car from my tutorial.
it is only details, you should try to understand the methods that we are showing you. I’m sure you can make the map not to flip, and put it exactly where you want.
Don’t wait to somebody makes all the work for you.
I fixed the map flipping by using an orientation constraint on the car icon. You can change the location of mini map by changing the size and position of the viewport in miniMap_Cam.py. I also rotated the map camera 90 degrees so the car icon points in the direction the car is moving.