Game Development Community

Stencil Shadows

by Ted Lilljegren · in Technical Issues · 06/03/2008 (1:14 pm) · 0 replies

Im having a go at implenting Brett Fatoris stenciled shadows in TGE AFX 1.52 along with various minor modifications. Currently im having problems with the current entry:

// DK_911 ------------------------------------------------------------------------

/* EXT_stencil_two_side */
static void (GLAPIENTRY* dllActiveStencilFaceEXT)(GLenum face);

/* EXT_depth_bounds_test */
static void (GLAPIENTRY* dllDepthBoundsEXT)(GLclampd zmin, GLclampd zmax);

/* ARB_vertex_blend */
static void (GLAPIENTRY* dllWeightPointerARB)(GLint size, GLenum type, GLsizei stride,void *pointer);
static void (GLAPIENTRY* dllVertexBlendARB)(GLint count);

// DK_911 -------------------------------------------------------------------------

That are suposed to go in platformWin32/winGL.cc

Now if i got it right, those are openGL functions that are initiliazed into torque(??? Disclaimer: i know that i am way over my head).

But that resource was written specifically with 1.3 in mind, and since then, that functionality has changed radically. Now the initlization(if that is what it does, again i have no clue what i am doing) happens somwhere else and with another syntax. Any pointers to where i might look?

Edit: Here is a link to the resource if you want to check it out:

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5426