Pere Pujal i Carabantes
0aac3260be
Make magic n_pt_persp and trochoids filepaths compatible with Android.
2024-01-16 00:53:54 +01:00
Bill Kendrick
08d9e9a8b7
n_pt_persp.c: Disable unused snap_to()
...
Wrap in an #ifdef SNAP_TO, and thus squelch some warnings &
avoid wasting some cycles.
2024-01-14 13:45:14 -08:00
Bill Kendrick
8a76b570b7
n_pt_persp.c: Use ...f() (float) trig funcs, not ...() double
2024-01-14 13:41:33 -08:00
Bill Kendrick
a7d792fa64
n_pt_persp.c: Adding performance output
2024-01-14 12:55:33 -08:00
Bill Kendrick
479cc5450f
Modularize, but disable for now, snapping
...
It needs to be smarter than just snapping to NxN grid on canvas.
2024-01-14 11:50:36 -08:00
Bill Kendrick
474e513dde
n_pt_perse: Use SNAP define instead of hard-coded #
2024-01-14 11:34:27 -08:00
Bill Kendrick
4fbe005003
n_pt_persp: Snap to grid; improved some guides
2024-01-14 11:33:34 -08:00
Bill Kendrick
2766254db9
Icons for Di & Trimetric & Oblique angle editors
2024-01-13 19:34:20 -08:00
Bill Kendrick
edbc68f0d7
Icons for Iso/Di/Trimetric & Oblique drawing tools
2024-01-13 18:19:16 -08:00
Bill Kendrick
df6905a3c3
Oblique, Dimetric & Trimetric seem to work!
2024-01-13 18:04:47 -08:00
Bill Kendrick
fff19763e2
Isometric seems to work!
2024-01-13 12:04:56 -08:00
Bill Kendrick
db9b6772c2
Continue WIP Iso, Di, Trimetric & Oblique: More guides
...
...when dragging to draw a line
2024-01-13 11:10:10 -08:00
Bill Kendrick
0b161d52ce
Continue WIP Iso, Di, Trimetric & Oblique: Drawing
...
Buggy, but started...
2024-01-13 01:57:18 -08:00
Bill Kendrick
fe3fecce82
Continue WIP Iso, Di, Trimetric & Oblique: Selectors
...
Ability to adjust angles; guides show them, on drag.
2024-01-13 00:56:19 -08:00
Bill Kendrick
8fbcdda52d
Continue WIP Iso, Di, Trimetric & Oblique
2024-01-12 21:37:06 -08:00
Bill Kendrick
5d1cdd6c3f
WIP Adding more graphical projection drawing tools
...
Stubbing out tools for drawing in axonometric projection -- Isometric,
Dimetric, Trimetric -- and in oblique projection.
Also, placed 1-, 2-, and 3-point perspective tools, along with these
new ones, into a new Magic Tool group, MAGIC_TYPE_PROJECTIONS.
See https://sourceforge.net/p/tuxpaint/feature-requests/252/
and https://sourceforge.net/p/tuxpaint/feature-requests/253/
2024-01-12 21:19:39 -08:00
Bill Kendrick
5855d34a6e
N-pt perspective supports beginner complexity level
...
The three "select" (vanishing point editors) are not available,
and a second 3-point perspective drawing tool, with an alternative
(downward-looking) set of vanishing points, is made available.
2023-12-30 13:45:20 -08:00
Bill Kendrick
5f8522766c
N-pt perspective: Don't operate in novice mode
2023-12-29 15:49:12 -08:00
Bill Kendrick
2055b071f1
All magic tools: Add "complexity_level" arg to init()
2023-12-29 14:43:40 -08:00
Bill Kendrick
3e662b9edc
N-pt perspective Magic tools: Sound effects!
2023-12-23 13:28:43 -08:00
Bill Kendrick
c9e515017f
Updating docs (new 3-pt persp. tool)
2023-12-23 10:51:08 -08:00
Bill Kendrick
7d424071eb
Icons for 1- & 2-pt perspective tools
2023-12-22 16:00:14 -08:00
Bill Kendrick
2fb0d2693a
N-pt persp: Shrink line thickness
2023-12-22 15:19:46 -08:00
Bill Kendrick
b20b4531c4
2-pt persp: mend vertical line direction flip
2023-12-22 01:38:33 -08:00
Bill Kendrick
86affde29f
2-pt persp: better guides
2023-12-22 01:21:28 -08:00
Bill Kendrick
5771e8aa8c
1- & 2-pt persp.: Drag can position vanishing point
2023-12-22 00:45:56 -08:00
Bill Kendrick
9cc4e80d98
2-pt perspective -- add more guides
2023-12-21 12:07:55 -08:00
Bill Kendrick
05b76c8b5f
2-point perspective via angles
...
Rather than using straight horizontal & vertical, it now snaps
to lines with the same slope as the two vanishing points
(the horizon chosen by the user), and lines perpendicular to that.
Note - Still need guides during drag. Also, there's a bug when
calculating slope that causes the line to go way off in the
opposite direction, which needs addressing.
2023-12-21 02:22:07 -08:00
Bill Kendrick
e9db3d2393
N-point perspective: Use Magic API's pixel XOR
2023-12-21 00:36:48 -08:00
Bill Kendrick
a72e5b9b42
WIP 2-point perspective
...
Works okay assuming vanishing points form a horizontal line,
but that won't always be the case.
2023-12-21 00:32:03 -08:00
Bill Kendrick
648c6d8974
n_pt_persp.c -- address all compiler warnings
...
...unused parameters, undeclared function prototypes, etc.
2023-12-17 10:45:32 -08:00
Bill Kendrick
99e129005e
More work on 1-point perspective Magic tool
2023-12-15 00:24:17 -08:00
Bill Kendrick
940132c30f
WIP 1-point perspective (vanishing point) Magic tool
2023-12-14 22:12:29 -08:00