James Smith
|
a67c11d210
|
basic ts-standard linting
|
2021-03-19 11:44:10 +00:00 |
|
James Smith
|
95e5678d12
|
change all js to ts files
|
2021-03-19 10:30:19 +00:00 |
|
James Smith
|
728fb8b95d
|
apply y_up setting to renderer
|
2021-03-19 10:30:18 +00:00 |
|
James Smith
|
a452b09f93
|
fix cleanup errors
|
2021-03-07 01:34:40 +00:00 |
|
James Smith
|
a10458720e
|
start animation loop on load and cleanup when canvas goes off screen
|
2021-03-07 01:04:29 +00:00 |
|
James Smith
|
e0c1cce089
|
only set up three.js context when the canvas becomes visible
|
2021-03-07 00:34:34 +00:00 |
|
James Smith
|
3f739cda2d
|
don't need loading flag, intersection observer only fires on appear or disappear by default
|
2021-03-07 00:31:04 +00:00 |
|
James Smith
|
7e7114db65
|
refactor javascript into setup and onBecomeVisible methods
|
2021-03-07 00:22:59 +00:00 |
|
James Smith
|
38b1efec3a
|
load all geometry from OBJ files
resolves #33
|
2021-02-25 01:40:50 +00:00 |
|
James Smith
|
2bd2ef0f82
|
temporary refactor of object creation
|
2021-02-25 01:33:52 +00:00 |
|
James Smith
|
87c8f83052
|
remove redundant THREE.Group
|
2021-02-25 01:29:57 +00:00 |
|
James Smith
|
906040eb24
|
add grid helper to scene, not loaded object
|
2021-02-24 22:59:03 +00:00 |
|
James Smith
|
59558c0fcf
|
rotate entire scene
|
2021-02-24 22:58:30 +00:00 |
|
James Smith
|
3088e0940c
|
automatically dispose of all geometry and materials in the scene
|
2021-02-24 22:56:51 +00:00 |
|
James Smith
|
98fcfb9e59
|
fix lint problems
|
2021-02-22 10:00:12 +00:00 |
|
James Smith
|
f70776be7c
|
Only load when the canvas becomes visible
|
2021-02-20 18:38:20 +00:00 |
|
James Smith
|
f84913299b
|
refactor preview renderer into a class
|
2021-02-20 18:14:08 +00:00 |
|
James Smith
|
9d9390ff16
|
shonky hack to show something for multi-mesh OBJ files
|
2021-02-13 11:45:47 +00:00 |
|
James Smith
|
e24b9796be
|
lint js
|
2021-02-09 22:03:02 +00:00 |
|
James Smith
|
f196e73193
|
lets go synthwave
|
2021-02-09 22:03:02 +00:00 |
|
James Smith
|
15981ccea2
|
improve positioning
|
2021-02-09 22:03:01 +00:00 |
|
James Smith
|
64f5e32cde
|
clean up after, and show a grid
|
2021-02-09 22:03:01 +00:00 |
|
James Smith
|
8a61f9c46a
|
Load previews when turbolinks changes page
|
2021-02-09 22:03:01 +00:00 |
|
James Smith
|
15536f59a4
|
Replace lighting with flat shading based on normal direction
should be nice and fast
|
2021-02-09 22:03:00 +00:00 |
|
James Smith
|
ec723c727f
|
lint javascript and fix reports
|
2021-02-09 22:02:59 +00:00 |
|
James Smith
|
dae88a8512
|
autocentre objects in view
|
2021-02-09 22:02:58 +00:00 |
|
James Smith
|
2d46211238
|
add stL loading
|
2021-02-09 22:02:57 +00:00 |
|
James Smith
|
f510a59412
|
x rotation is weird, let's not do it
|
2021-02-09 00:14:42 +00:00 |
|
James Smith
|
89220b34e1
|
load OBJ files and render them
|
2021-02-08 23:08:01 +00:00 |
|
James Smith
|
f1253dbacf
|
auto fif to canvas area
|
2021-02-08 22:25:43 +00:00 |
|
James Smith
|
dd32b93e3c
|
move preview into some ujs to avoid script tags
|
2021-02-08 22:15:22 +00:00 |
|