User Tag List

Results 1 to 10 of 10

Thread: Mouse Coordinates

  1. #1
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mouse Coordinates

    Hi.

    I'm trying to figure out when the player clicks on a 3d sprite. Which method would be the easiest to perform this check?

    Thanks!

  2. #2
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,577
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse Coordinates

    Record a z-buffer of all your screen, and link sprites ID's into it and then compare to that?

  3. #3
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse Coordinates

    An example would be much appreciated, I am incredibly new to OpenGL :P

  4. #4
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,846
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse Coordinates

    Pixelthief, may I ask what is a z buffer?

    Thanks
    Marv (the brainless)
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Mouse Coordinates

    http://en.wikipedia.org/wiki/Z-buffer

    Basically, a pixel has doesn't just have a color, but also a depth value that describes how far the visible object on the pixel is away.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Aug 2006
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse Coordinates

    Totally off topic but does anyone know whats happening with the development for these objects?

    Seems it has been a while since there was any news for them now.

  7. #7
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,846
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse Coordinates

    Thanks Looki for helping out.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  8. #8
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,577
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse Coordinates

    Yah, your pixel array should have

    *Depth (the Z value, duh)
    *Pixel Color
    *Pointer to object (ID)

    that way simply clicking on a specific pixel will access
    depending on implementations ie hardware vs software, these could be simultaneous sidebyside 2 dimensional arrays, or a single 3 dimensional array. In opengl I assume it would be the former

  9. #9
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Aug 2006
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse Coordinates

    Hopefully if Min is still making the collection a bounding box, depth test or full collision events object with these types of options could be added. This would be quite a useful extension for the collection i think.

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export ModuleXNA Export Module
    Fusion 2.5 (Steam)
    Mathias's Avatar
    Join Date
    Jun 2006
    Location
    Copenhagen, Denmark
    Posts
    1,083
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse Coordinates

    You should use the GL_SELECT render mode for this-- a nice tutorial can be found here

Similar Threads

  1. Application which captures mouse coordinates...
    By RGBreality in forum File Archive
    Replies: 1
    Last Post: 27th October 2011, 08:53 PM
  2. coordinates
    By Drcooper in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 26th June 2011, 12:17 AM
  3. problem moviment object with coordinates x,y mouse
    By daniele in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th August 2010, 08:49 PM
  4. X and Y coordinates of character.
    By Almightyzentaco in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 29th October 2007, 05:37 PM
  5. set Mouse X/Y-Coordinates
    By the_raven in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 3rd August 2006, 04:10 PM

Posting Permissions

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