Creating Track Map

Blitz3D Forums/Blitz3D Beginners Area/Creating Track Map

mickybhai(Posted 2006) [#1]
We need to create a map in 2d displaying position of a car on the track in 3d world. Is it possible to add a circular mask to the displayed map image.


b32(Posted 2006) [#2]
Yes, first draw the map onto a temp. image.
This image needs to be masked. Then draw the circle mask on it. The circle map is another transparent image: the circle should be transparent and the rest should be filled with the transparent color of the first image.
The temp. image and the circle mask image should have different transparent colors and the transparent color of the temp. image should not appear in the tiles of the map:



Matty(Posted 2006) [#3]
What bram32 says is good, but it is usually preferable to only use 3d commands in 3d mode as 2d graphics are much slower on most cards when used in combination with 3d graphics. In this case you would almost do the same thing but use 3d sprites in much the same manner as what bram32 suggests.


b32(Posted 2006) [#4]
If you want to use only 3d commands, you could consider using a 2nd camera to record the track instead of using 2d map tiles. The round shape can be a round mesh that is textured with the map: