santyhamer

09-15-2000, 08:31 AM

I'm currently using projeted texture coordinates with EYE_LINEAR... This is my ( wrong ) pseudo-code:

1)Setup texgen to EYE_LINEAR, with S plane to (1,0,0,0), T plane to ( 0,1,0,0 ), R ( 0,0,1,0 ) and Q plane to ( 0,0,0,1 )

2) Enable texgen for S, T, R and Q planes

3) Do the next code:

glMatrixMode ( GL_TEXTURE );

glLoadIdentity ();

glScalef ( 0.5f, 0.5f, 1.0f );

glTranslatef ( 0.5f, 0.5f, 0.0f );

gluPerspective ( 60.0f,

1.0f,

1.0f,

1000.0f );

glMultMatrix ( lightView );

//NOTE: lightView is contructed:

| X.x, Y.x, Z.x, T.x |

| X.y, Y.y, Z.y, T.y |

| X.z, Y.z, Z.z, T.z |

| 0, 0, 0, 1 |

What's wrong? Can you hel me, please?

1)Setup texgen to EYE_LINEAR, with S plane to (1,0,0,0), T plane to ( 0,1,0,0 ), R ( 0,0,1,0 ) and Q plane to ( 0,0,0,1 )

2) Enable texgen for S, T, R and Q planes

3) Do the next code:

glMatrixMode ( GL_TEXTURE );

glLoadIdentity ();

glScalef ( 0.5f, 0.5f, 1.0f );

glTranslatef ( 0.5f, 0.5f, 0.0f );

gluPerspective ( 60.0f,

1.0f,

1.0f,

1000.0f );

glMultMatrix ( lightView );

//NOTE: lightView is contructed:

| X.x, Y.x, Z.x, T.x |

| X.y, Y.y, Z.y, T.y |

| X.z, Y.z, Z.z, T.z |

| 0, 0, 0, 1 |

What's wrong? Can you hel me, please?