Forum

Circle 2D Map

Discuss programming topics that involve the OpenGL API.

Moderator: InsideQC Admins

Circle 2D Map

Postby arsenavin » Sat Nov 12, 2011 7:26 am

Hello, i am newbie here..
Currently i am developing 3D environment + 2D map for my final project (Opengl,C++)
My problem is how to draw the "Circle Shape" Map to the 3D environment screen?
It like a GTA interactive map..
Image
Any idea?
arsenavin
 
Posts: 3
Joined: Sat Nov 12, 2011 7:11 am

Re: Circle 2D Map

Postby leileilol » Sat Nov 12, 2011 10:22 pm

GTA3 does it by a circle texture with an alpha with a GE128 blend and a depthwrite, and many small textures of the map in little pieces (since PS2 cache sucks)
then it reads the depth of that circle texture to trim it to that circle
A second alpha-blended circle is applied on top to soften the transition with a black circle border.
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: Circle 2D Map

Postby arsenavin » Sun Nov 13, 2011 3:11 am

leileilol wrote:GTA3 does it by a circle texture with an alpha with a GE128 blend and a depthwrite, and many small textures of the map in little pieces (since PS2 cache sucks)
then it reads the depth of that circle texture to trim it to that circle
A second alpha-blended circle is applied on top to soften the transition with a black circle border.



I am need a deeper explanation here..thanx by the way.
arsenavin
 
Posts: 3
Joined: Sat Nov 12, 2011 7:11 am


Return to OpenGL Programming

Who is online

Users browsing this forum: No registered users and 1 guest