DaMangz
10-30-2002, 07:44 PM
Hi,
This is a multi-variable list of questions, any help will be appreciated.
I am building a terain engine. What I want to do is generate the textures procedurally while the program is running.
I have been looking at the Cg terrain demo, and it uses a 3D texture. It looks like it just copies the textures onto each other somehow from a 3D texture. I really haven't figured it out yet.
How do 3D textures work?
Is there a way to just make Cg do the textures, not the vertices? I need to calculate the verts for my game. The cg demo seems to calc the verts in the shader. I don't want this. I need the verts for collisions and stuff.
I know this is alot of Cg questions for the OpenGL board, so how do you do this stuff in OpenGL without Cg? I see these extensions but I don't have any documents to explain to a beginner how to use them at all.
How do you use register combiners, vertex programmers and shader in OGL without Cg? I will probably use Cg because it looks cool and easy to use, but I'd also like to understand how Cg works in the graphcis layer.
Thanks
This is a multi-variable list of questions, any help will be appreciated.
I am building a terain engine. What I want to do is generate the textures procedurally while the program is running.
I have been looking at the Cg terrain demo, and it uses a 3D texture. It looks like it just copies the textures onto each other somehow from a 3D texture. I really haven't figured it out yet.
How do 3D textures work?
Is there a way to just make Cg do the textures, not the vertices? I need to calculate the verts for my game. The cg demo seems to calc the verts in the shader. I don't want this. I need the verts for collisions and stuff.
I know this is alot of Cg questions for the OpenGL board, so how do you do this stuff in OpenGL without Cg? I see these extensions but I don't have any documents to explain to a beginner how to use them at all.
How do you use register combiners, vertex programmers and shader in OGL without Cg? I will probably use Cg because it looks cool and easy to use, but I'd also like to understand how Cg works in the graphcis layer.
Thanks