Post Reply 

GIMP Perspective Matrix

Mar 26, 2012, 09:02
Post: #1
GIMP Perspective Matrix
Hello! Sorry for my english, I'm from Russia.
I'm a programmer and I write little game. Football field in the game should be distorted by the perspective. But football player's coordinates should be distorted by perspective too. When I was distorting background of football field, I notices, what GIMP shows perspective matrix. Bingo! Smile

I think, I can to use this matrix for my transfomations, but I don't know GIMP coordinates system. For example, I have field with 100x100 points. Can anybody say, what interval of coordinates should be with this points? I can't express my thoughts, I hope, you can understand me.

I tried to use x and y between 0 and 1024., between 0 and 1, but it have not result Sad
Find all posts by this user
Quote this message in a reply
Mar 26, 2012, 10:39
Post: #2
RE: GIMP Perspective Matrix
I bleieve Gimp uses this: http://en.wikipedia.org/wiki/Perspective...projection

Otherwise the source code is available to all...

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Mar 26, 2012, 14:14
Post: #3
RE: GIMP Perspective Matrix
>I bleieve Gimp uses this: http://en.wikipedia.org/wiki/Perspective...projection
Nope. This article about generation proection matrix, but GIMP has already generated it for me. I just don't know how to use this.
For example, we have matrix
1.2 3.4
5.6 7.8
Of course, it is not real matrix, but we will imagine, that it is a matrix, generated by GIMP (perspective tool).
Okey. I have a array of pixels on image. Screen width - 1024, screen height - 768.
How I must define pixels coordinate? What will be center of screen?
x = 0, y = 0?
x = 512, y = 384
x = 0.5, y = 0.5.
Etc. What coordinate system I must use for points, in order to get right result?
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Issue viewing GIMP-modified picture JuniorPear 1 194 Jul 6, 2017 05:03
Last Post: ythgilb
  GIMP Taking Too Long to Start (Fonts) Seta 2 207 Jun 20, 2017 16:10
Last Post: Seta
  Problem with pressure on gimp (huion h610) protosd3 18 5,039 Jun 8, 2017 19:20
Last Post: John Penfold
Question Gimp 2.8 Startup Keeps Not Responding lolly325 38 22,350 Jun 5, 2017 15:46
Last Post: blighty
  GIMP 2.8 Eyedropper Color Selection Tool Not Working? Upgraded App is Slow?? tootallll 14 9,124 Oct 9, 2014 18:39
Last Post: Graphicman2014

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS