Author Topic: OpenGL: Screen distortion effect (NOP problem?)  (Read 2867 times)

0 Members and 1 Guest are viewing this topic.

Offline xernobyl

  • ZX 81
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
I am trying do do some kind of screeen distortion effect passing a non-power-of-two texture to a texture, using OpenGL, but everything gets distorted and really really slow when I try using the texture. I am sure the texture is captured ok.
Ideas?

To give a better idea of what I want: I want to make some screen distortion effects like in Contamination of the present governmental system by matt current.
http://www.pouet.net/prod.php?which=18353

Edit: Problem solved.

It took a while to find that you can't warp non power of two textures... :(
« Last Edit: January 14, 2007 by xernobyl »

Offline GrahamK

  • Atari ST
  • ***
  • Posts: 118
  • Karma: 17
    • View Profile
Re: OpenGL: Screen distortion effect (NOP problem?)
« Reply #1 on: January 14, 2007 »
Yeah, openGL doesn't like things that are not powers of two, some drivers don't even like when the texture isn't square as well.

If I'm doing that sort of thing I use the next size up in powers of 2, and use UV values to just show the area I want.

Offline xernobyl

  • ZX 81
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: OpenGL: Screen distortion effect (NOP problem?)
« Reply #2 on: January 17, 2007 »
That NOP in the title is suposed to be POT... Power-Of-Two...
It's really strange that I can't warp the texture because in the OpenGL documentation it's stated that you can do whatever you can do with POT textures... anyway I just want to make some fullscreen feedback effects (media player visualization style) and I don't need anything more.

Offline stormbringer

  • Time moves by fast, no second chance
  • Amiga 1200
  • ****
  • Posts: 453
  • Karma: 73
    • View Profile
    • www.retro-remakes.net
Re: OpenGL: Screen distortion effect (NOP problem?)
« Reply #3 on: December 03, 2007 »
the OpenGL documentation is only telling you half of the truth.. you have to use shaders to make it possible. The original OpenGL pipeline is less and less maintained by manufacturers, especially for the new extensions like non-power of 2 textures.... which somehow makes sense....
We once had a passion
It all seemed so right
So young and so eager
No end in sight
But now we are prisoners
In our own hearts
Nothing seems real
It's all torn apart