PDA

View Full Version : Checking if I'm right :)



M/\dm/\n
11-20-2002, 07:43 AM
I'm going to add cubemap support for my program so I'd like to know if I'm right. The cubemap consits of 6, textures, all positioned 1 unit fom point (0,0,0). To achieve infinity effect I must enable/disable depthtest in different parts of my program. And finally, as I've seen, to get beter preformance with dynamicaly created cubemaps on GeForce class hw I should use SGIS_generate_mipmap, that means glTexparameti(GL_TEXTURE_CUBE_MAP_ARB,GL_GENERATE_ MIPMAP_SGIS,GL_TRUE); and no gluBuild2Dmipmaps :0
By the way, why do I need mipmaping if textures are usualy magnified anyways?

ae97004
11-20-2002, 11:46 AM
I think your right, no glGenMip...etc.. and in case you do have a small room and a sphere in the center to which your cube mapping, when you actually go to another room say far far away, then the mipmaps will be used instead of the actual texture to improve performance..

i hope im right, if not correct me!

-Gopi