alpha maps?

Started by
2 comments, last by Krohm 11 years, 2 months ago

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.

Advertisement

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

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. Ex-BigTech Software Engineer. Future farmer. [https://trist.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"

This topic is closed to new replies.

Advertisement