hi,
i have a simple blend file which shows how to program a simple OpenGL program to work inside the Blender Game Engine.
This is a real simple setup which basically draws a red polygon, so checkout the blend file.:yes:
if you know more please post here, so that it might be useful for others as well.
thanks in advance.
Can a geometry shader create a new mesh( so that we can create them procedurally or taking the coordinates from an obj file skip the part of creating it in python with the bpy library[extremely slow] and create it with the shader)?
A geometry shader is executed after the vertex shader and yes it is possible to create new triangles in the process. But usually geometry shaders operate on already existing triangles. A good example is chapter 1 in GPU Gems 3 “Generating Complex Procedural Terrains Using the GPU”.