Canvas3D Picking

From CDOT Wiki
Revision as of 10:17, 1 December 2008 by Pplam3 (talk | contribs) (Project Updates)
Jump to: navigation, search

Name of Project

Canvas 3D - Picking

Description

To put the project description simply, what it does is that when you click in Canvas 3D, you will select the object that is in the most front in the current camera angle you are looking at. So the details of this Picking project is this:

  • Convert the mouse coord in Windows to Canvas coord
  • In the current scene, find all objects that intersect where the mouse is clicked
  • Find the object closest to the camera from the list of intersecting objects

Leader(s)

Project Contributor(s)

  • Andor Salga
  • Catherine Leung
  • Chris Bishop - Example Code done for picking
  • Jeremy - Ideas of implementing picking

Contribution(s)

  • A sample canvas 3d demo with multiple objects in it at different depths (or just random positions) from the camera (current view/scene)

Releases

0.2 - Nov 18th

Goal (Done)

  • Make functions that will help complete the project
    • Model.getVertices() which returns a reference of all the vertices in the object
    • Mouse coord convert: converting the mouse coord in Canvas coord
    • Other functions that might come up

New Class File and modified Model File Found Here: Picking.js, Model.js
(Since it only has functions and doesn't actually do anything yet, the extension with the new class will be release in 0.3)

0.3 - Dec 1st

Goal

  • Have the project working or at least close to working (with few minor bugs)

Project Updates

Nov 30, 2008

  • Tested several different intersection test code
    • One of them worked but with bugs, need to fix

Nov 27, 2008

  • Skype meeting with project members
    • Updated everyone's project status

Nov 26, 2008

  • Did thorough testing on the 3D vector conversion
    • Found minor offset to vector (made it relative to camera position to fix error)

Nov 24, 2008

  • Created a custom C3D Demo to test transformation data

Nov 21, 2008

  • Worked with Andor in person
  • Approached the vector transformation in a different way
    • Applied 3 stages of transformation to mouse vector to test (Window -> NDC, NDC -> View, View -> Model)

Nov 20, 2008

  • Canvas 3D Library Meeting on Skype

Nov 18, 2008

  • Worked with Andor in person

Nov 17, 2008

  • Completed 0.2 Release
    • Uploaded files
    • Created blog entry for release
  • Calculated mouse vector using trigonometry

Nov 14, 2008

  • Crash session on C3DL with Andor

Nov 13, 2008

  • Created Wiki Page
  • Got demo files from Andor
  • Got mouse position relative to Canvas

Nov 12, 2008

  • Discussed ideas to do the project
  • Set goals for releases
  • Got Canvas 3D Library source and IDL