Mesh Effects

BlitzMax Forums/BlitzMax Programming/Mesh Effects

Hardcoal(Posted 2012) [#1]
Any one knows a guide to make mesh effects
Like Melt Cube..
Swirrle Mesh..
Im just inventing names of effects I would like to apply on a mesh.

any one done something like that?

cheers

Last edited 2012


Hardcoal(Posted 2013) [#2]
Wow so many replys


ImaginaryHuman(Posted 2013) [#3]
You need to decide how you are going to create the mesh geometry and put a texture on it. For example you probably want to use a `textured polygon` function of some kind that lets you a) draw whatever shape you want, although if you can just draw triangles then you can make a mesh of triangles, b) assign texture coordinates so that the texture is anchored to the corners of the triangles and thus deforms when the triangle shape isn't exactly pixel perfect, and c) then simply animate the corner coordinates of each triangle using some function or AI or whatever.

So basically get to where you can draw a textured triangle where the texture is mapped onto it properly and moves with it and then you're most of the way there.

Warp-like effects like swirl, pinch, punch, ripple, wave distort, morphing, etc are all basically the same thing, just a mesh with an image mapped on it and deformed in some way.


Hardcoal(Posted 2013) [#4]
cool tnx @ImaginaryHuman
i would hope there is a lib of already made effects
but if not ill work on it one day