Overview
Comment: | improved axes prespective, changed motion speed base. |
---|---|
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
fb2f9f8895f29e13f3bb846f1e1407ff |
User & Date: | Derek on 2012-12-24 17:44:14 |
Other Links: | manifest | tags |
Context
2012-12-24
| ||
19:03 | adjusted sizes of center and axis squares. check-in: b454ce1c79 user: Derek tags: trunk | |
17:44 | improved axes prespective, changed motion speed base. check-in: fb2f9f8895 user: Derek tags: trunk | |
17:03 | changed drawing of axes to provide more visual cues for perspective check-in: d59b29f2f5 user: Derek tags: trunk | |
Changes
Modified draw.html from [b1e8bca2b5] to [936850004e].
︙ | |||
70 71 72 73 74 75 76 77 78 79 80 81 82 83 | 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | + + | var mouse_dragging = false; var last_mouse_down = null; var mouse_loc = null; var MIN_DRAG_DIST = 10; var POINT_HIGHLIGHT_DIST = 10; var LINE_HIGHLIGHT_DIST = 15; var MOTION_SPEED_BASE = 2.8; var selected_points = []; var selected_lines = []; var msg = //"3D drawing tool\n\n" + "Select Left Click\n" + "Rotate Right Click\n" + "Move wasd, qe\n" + |
︙ | |||
203 204 205 206 207 208 209 | 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 | - + | function changeVelocity(direction, positive, state, lastState){ if(state == 0){ state = lastState; positive = !positive; } // reverse the velocity |
︙ | |||
586 587 588 589 590 591 592 593 594 595 | 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 | + - + - + - - + + + + + + + + + - - - + + + + + + + + + + + + - + + - + - + - + - + - - - - + + | var pt = point_projections[k]; if(pt) ctx.fillRect(pt[0] - 2, pt[1] - 2, 4, 4); } // // The following drawing of axes is to help provide an perspective // The nuances of this draw behavior are created to provide visual cues for interpreting perspective and depth. // // Because we use a 2d canvas library for the drawing the rest of the points/shapes after projection, these visual information nuances are important. // // axis lines and dots |
︙ |