atnak

05-20-2003, 10:04 PM

Is there a matrix I can multiply onto the modelview matrix to distort the world? I know how to shear the world, but I want something that's not uniform like shear. (For creating refractions.)

This is what I mean by distort:

Shear: (angle 'a')

----

/ /

/a /

----

Distort: (different angle 'a' and angle 'b')

-------

| /

|a /b

----

Is this possible?

Thanks.

[This message has been edited by atnak (edited 05-21-2003).]

This is what I mean by distort:

Shear: (angle 'a')

----

/ /

/a /

----

Distort: (different angle 'a' and angle 'b')

-------

| /

|a /b

----

Is this possible?

Thanks.

[This message has been edited by atnak (edited 05-21-2003).]