Results 1 to 13 of 13

Thread: Map Screen coordinates to 4 sided polygon

Threaded View

  1. #1

    Thread Starter
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051

    Map Screen coordinates to 4 sided polygon

    I have a 4 sided polygon on which the user will be able to draw (lines).

    I also want to allow the user to move the vertices of this polygon, and have the drawing alter accordingly. Importantly, i need to know the new position of all the lines once the user has moved the polygon.

    I am thinking that i can use a similar formula to texture mapping, although i'm not very familiar with these.


    Does anyone know what the formulas (sp?) would be for translating a screen coordinate into a 'polygon' coordinate and back again?
    I don't care how the polygon coordinate is stored (2 doubles etc.), as long as i can get back to a screen position.

    Thanks for any help.
    Last edited by SLH; Mar 20th, 2005 at 08:41 AM.
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width