PDA

View Full Version : opengl texture any resolution with clamping



kryton9
05-07-2007, 07:31
Petr, I read somewhere that you can use any size texture, that is non power of 2 with opengl if you clamp the textures.

Had you read that? If this is true as you know, maybe worth adding it to the tbgl manual.

Michael Clease
05-07-2007, 08:32
i think that none power of 2 texture are handled by software so it would cripple speed.

http://www.opengl.org/documentation/current_version/


Non-Power-Of-Two Textures
The restriction of textures to power-of-two dimensions has been relaxed for all texture targets, so that non-power-of-two textures may be specified without generating errors. Non-power-of-two textures was promoted from the ARB texture non power of two extension.

Petr Schreiber
05-07-2007, 09:49
Hi,

NPOT textures are possible, for example my integrated nVIDIA seems to do it without noticable performance hit, but from other people I know it is a bit slower.
Also keep in mind it is possible from OpenGL 2.1 / 2.0 up which restricts the use to newer 3D cards.

I will add it to TBGL manual as soon as I will add some function to check OpenGL version ( it is possible now using headers, but to make it more comfortable ... )

Information that clamped textures can be any size is quite new to me, so I will have to check it out. Do you have some link ?


Thanks,
Petr

ErosOlmi
05-07-2007, 11:42
Abraxas, nice avatar!

I just went to the cinema to see Transformers movie with my son.
Really really good from a CGI point of view! Also my wife that usually do not like computerized movies, remain astonished by the quality of the graphics and the way they mix CGI with real actors. Many techniques are surely taken from games.

Ciao
Eros

Michael Clease
06-07-2007, 08:13
Ive seen the HBO special "The making of Transformers the movie" or something like that. ;D

They only spent about 2 day doing green screen work most of the action scenes are real with the robots overlayed, so CGI isnt that huge in this film.

and its not out in the UK until the 27th july. >:(

ErosOlmi
06-07-2007, 11:03
Well, impression was huge. You will see!