hello people.
i wish to use the GL_EXT_fog_coord to custom fog a terrain (look at “problems with radial fog” topic, if interested)
the code to extend opengl for fog vertex array:
PFNGLFOGCOORDPOINTEREXTPROC glFogCoordPointerEXT;
glFogCoordPointerEXT=(PFNGLFOGCOORDPOINTEREXTPROC)wglGetProcAddress(“glFogCoordPointer”);
the setup/access code:
struct Tdmygridpoint {
Tdmyvert3f vert;
Tdmyrgb3f color;
Tdmytex2f tex;
float fogz;
};Tdmygridpoint grid[64*64]; // something equivalent
glEnableClientState(GL_FOG_COORDINATE_ARRAY_EXT);
// enable other arraysglFogCoordPointer(GL_FLOAT,sizeof(Tdmygridpoint),&grid->fogz);
// specify other arrays access point
rendering is done with calls to glArrayElement().
but when opengl access to the fog array the application crashes.
i’ve tested various approaches, but it still crash and i don’t know why… i’m about to step through the LIB-ICD code, but i’d like to avoid it
note that the function exist, and the compiler builds a correct call to it.
since the way i extended opengl is the same as into a nvidia example for multitexturing, i don’t think the problem is there…
card is a geforce ddr.
i’m going to download new drivers (if i find them and test them…
in the meantime, does any of you had experiences with fog vertex array exts?
suggestions/advices?
thank you,
Dolo//\ightY