I want to analyse the performance difference between the volume rendering based on 3d texture and the volume rendering based on muti-texture. I do not know the exactly time when the texture date in main memory is loaded into the texture memory. Does the loaded action occur after glbindtexture() executed or glteximage*d()?
what role does texture memory play in graphics hardware. when I use following statement
GLUint texNames[256];
glGentextures(256,texNames);
for ( int i=0;i<N;i++)
{
glbindtexture(gl_texuture_2d,texNames[i];
glTexImage2d(gl_texture_2d,…);
)
}
does the texture data loaded into texture memory ?
if not, when did the texutre data will be loaded.
after these statemet,i use the following codes.
for(int i=0;i<N-1;i++)
{
glActiveTextureARB(GL_TEXTURE0_ARB);
glBindTexture(GL_TEXTURE_2D,texNames[i] );
glActiveTextureARB(GL_TEXTURE1_ARB);
glBindTexture(GL_TEXTURE_2D, texNames[i+1);
}
here,does texture data loadeded into texture memory?