• home
  • forum
  • my
  • kt
  • download
  • home / 2D Graphics / Flash / 3D

    Papervision 3D Programming Tutorial - Mouse Selection

    Author: 2009-04-26 11:20:21 From:

    In the Photo Slide application I showed you how to add interactivity to a Papervision 3D application. Two classes were created to allow objects to respond to mouse click events: PickableObjectManager and PickableObject. PickableObjectManager was responsible for feeding the mouse coordinates into the Papervision Viewport hitTestPoint2D function, and then determining if any PickableObject had indeed been clicked on. The PickableObject class in turn simply received these events and expose appropriate functions to extending classes

    In the Photo Slide application the PickableObjectManager class (and therefore the PickableObject class) could only respond to a mouse click. In this sample application I have extended the PickableObjectManager class to allow it to determine if a PickableObject is under the mouse pointer as well as being able to detect if a PickableObject was clicked on. I have used this extended functionality to highlight the photo under the mouse pointer with a standard Flash GlowEffect.

    discuss this topic to forum

    relation tutorial

    No information

    Category

      3D (33)
      Math Physics (17)
      3rd Party (9)
      Navigation (69)
      Actionscripting (194)
      Optimization (17)
      Animation (150)
      Projector (11)
      Audio (53)
      Special Effects (169)
      Backend (26)
      Text Effects (89)
      Drawing (33)
      Tips and Techniques (51)
      Dynamic Content (34)
      Tricks (8)
      Games (103)
      Utilities (23)
      Getting Started (95)
      Video (58)
      Interactivity (45)
      Web Design (34)

    New

    Hot