Jump to content

  • Log In with Google      Sign In   
  • Create Account

alpha maps?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 germangb   Members   -  Reputation: 211

Like
0Likes
Like

Posted 17 February 2013 - 11:30 AM

Hello, I have this mesh:

DgkegsP.png

 

and I was wondering how to draw a path so that the plane would look like this (with smooth borders):

 

9UJFemC.png

 

 

What I have been able to do so far is this.

 

3l0sJZN.png

and as you can see, it's such a fail. I don't know what to do to make it smooth.



Sponsor:

#2 germangb   Members   -  Reputation: 211

Like
0Likes
Like

Posted 17 February 2013 - 11:54 AM

I've seen that by increasing the resolution of the alpha map, the path gets smoother, but I have to increase it a lot...



#3 swiftcoder   Senior Moderators   -  Reputation: 9992

Like
1Likes
Like

Posted 17 February 2013 - 12:31 PM

Turn on linear texture filtering (you appear to be using point/nearest filtering).
 
If you are using OpenGL that would be glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR). D3D has similar functionality.


Tristam MacDonald - Software Engineer @Amazon - [swiftcoding]


#4 Krohm   Crossbones+   -  Reputation: 3118

Like
1Likes
Like

Posted 21 February 2013 - 08:37 AM

Consider distance-field alpha maps. They give extreme resolution for the same footprint with no extra HW requirements. You'll have to compute them though.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS