PDA

View Full Version : texture missing after converting from .flt to opengl



sujudavid
11-24-2004, 12:08 AM
hi,

I have successfully converted the .flt to opengl c code, and could import and view this during the runtime.

But the problem is the textures are not loaded.I have used polytrans to convert the model, but inside this they are not loading the texture, the function is left blank.It looks something like this

//Please replace this routine with one of your //own which will load in the
//requested texture map and make it current //within the OpenGL context.
//If the texture map name is NULL then disable //texture mapping.
void OGL_Set_Current_Texture_Map(char *texture_map_name, float u_scale, float v_scale, float u_offset, float v_offset)
{
}

I am new to opengl so can someone help me filling this function up.I have used .rgb format textures for the model.

thanks,
Suju.

rgpc
11-24-2004, 01:02 AM
Originally posted by sujudavid:
I am new to openglSo why did you think this was an advanced question (or even an Opengl question?)


//Please replace this routine with one of your //own which will load in the
//requested texture map and make it current //within the OpenGL context.
//If the texture map name is NULL then disable //texture mapping.
Perhaps you should do what the comments are telling you.