Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

alpha maps?

4: Adsense

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   

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.



#2 germangb   Members   

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   

18223
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] [GitHub]


#4 MaxDZ8   Members   

5008
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.


Previously "Krohm"





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.