Hello Community,

i'm searching for a solution to create meshes dynamicly at runtime. My idea is:

1. create a dummy mesh with ent_create(NULL, VECTOR*, NULL)
2. Allocate a vertexlist, triangellist, normals etc at runtime.
3. Fill the vertexlist from a mathematical function or via mouseclicks on the screen, connect the verices via trianglelist, calculate normals and send the ready entity to a shader.

What i want to achieve is a function graph with low-poly model and generate a tesselate-like high-poly with a pixelshader.
The simplest example will be to generate a billboard and 'paint ' the 3d-function with a pixelshader on this board. Is this possible?
If shader 4.0 would be supported from the engine i would be able to use geometry shader.
Or did someone already include OpenCL or is VBO possible?

Any help to all ideas are appreciated.

Thanks in advance