8:00 – 5:30 SR
- 8:00 – 11:00 on site
- DB backups
- Deployed new RQ
- Went over the time estimates with Lenny. The upshot is that we will track actual hours worked on the line items.
- Fix the requisition_id AS funded_budget in __view_monthly_obligations_by_req_id error.
- I think I may have found the issue that’s keeping the new object from setting the values that are actually used to draw?
- It’s possible that the matrix is being reset after the update function, with the setPosition calls overriding the matrix.
- This thread shows how to get position and orientation from the 4×4: http://stackoverflow.com/questions/15079294/inverse-of-object3d-updatematrix-in-three-js
- Finally figured out the problem. I have the matrix that is in GLOBAL space. I need a matrix that is in local space that I can then multiply by the parent’s matrix. That should work. And it did! Need to verify that stacked objects will behave.
- They do – after a fashion. The scale information is embedded in the matrix and is applies to all children. Somehow, this is messing with the scale if it is mixed with a rotation. Is it possible matrix.decompose is broken?
- Well, kind of. From Euler.js setFromRotationMatrix(): // assumes the upper 3×3 of m is a pure rotation matrix (i.e, unscaled). So don’t scale on the transform matrix. Instead, scale the position of the points that make up the object in the local space. This means I may have to look at immediate mode or at least see how the geometry is stored in the object. Or only scale the objects that are the leaf nodes in a tree. That should actually be OK for charts.
- Starting tooltips and text overlays: http://stackoverflow.com/questions/11586527/converting-world-coordinates-to-screen-coordinates-in-three-js-using-projection. Also example 6-3 from the webgl book (pg 115).
- Got Hello, World rendered over the two canvases, styled and everything :-).
