Commit Graph

928 Commits

Author SHA1 Message Date
Daan Vanden Bosch
0112281b1a "Save" now works as expected after "Saving as". 2021-04-16 20:47:02 +02:00
Daan Vanden Bosch
a823e96f68 The save button is now disabled when there are no changes to save. The beforeunload dialog is now only shown when there are unsaved changes. 2021-04-16 15:36:42 +02:00
Daan Vanden Bosch
bc660b23e9 Fixed unit test. 2021-04-15 21:50:52 +02:00
Daan Vanden Bosch
5133235040 "Save" and "Save as..." buttons are now disabled while saving, mainly as visual feedback that a save happened. 2021-04-15 21:40:43 +02:00
Daan Vanden Bosch
4b8241ba80 Existing files can now be saved directly with the "Save" button or Ctrl-S. 2021-04-15 16:16:00 +02:00
Daan Vanden Bosch
329e067a17 The file system access API is now used for opening files when supported by the browser. 2021-04-14 20:35:59 +02:00
Daan Vanden Bosch
d6751b0151 You can now force panning/rotating mode by holding ctrl while clicking and dragging the mouse. 2021-04-13 21:35:07 +02:00
Daan Vanden Bosch
585ce44667 Context menu no longer pops up when dragging and releasing the pointer outside of the 3D view. 2021-04-13 20:49:46 +02:00
Daan Vanden Bosch
b9036f56d3 Fixed unit tests. 2021-04-13 18:41:10 +02:00
Daan Vanden Bosch
85df1015f8 A default new quest is now loaded when the quest editor starts up. 2021-04-13 17:52:20 +02:00
Daan Vanden Bosch
b856a22851 Added dev mode and added more manual tweaks for the render geometry. 2021-04-13 17:42:37 +02:00
Daan Vanden Bosch
29192e5684 Added manual area render geometry culling code. 2021-04-11 21:43:34 +02:00
Daan Vanden Bosch
126b50cb00 Fixed bug in Ninja geometry mesh caching and improved Ninja to Three.js conversion performance. 2021-04-09 22:12:28 +02:00
Daan Vanden Bosch
6003797f15 Textures can now be turned off in the viewer. 2021-04-09 20:56:51 +02:00
Daan Vanden Bosch
92017ca8ec Animated n.rel geometry is now parsed and rendered (without animations). 2021-04-09 16:08:38 +02:00
Daan Vanden Bosch
f20711296b Fixed bug in mesh order tweaks. 2021-04-08 21:34:07 +02:00
Daan Vanden Bosch
e4cbc38d4a "Show skeleton" checkbox is now disabled when the current viewer model doesn't have a skeleton. 2021-04-08 21:04:51 +02:00
Daan Vanden Bosch
5be29df0ac Upgraded to ThreeJS r127. The viewer can now load n.rel and c.rel geometry files. 2021-04-08 15:01:03 +02:00
Daan Vanden Bosch
60d0bc6116 Fixed XJ loading bug in the viewer. 2021-04-04 22:58:39 +02:00
Daan Vanden Bosch
0ff4752949 Fixed bug in NJ bone weight calculation. Improved NJ parser by avoiding reparsing of chunks. 2021-04-04 21:58:36 +02:00
Daan Vanden Bosch
47598a2670 Textures of type 3 are now correctly interpreted as D3DFMT_A1R5G5B5. 2021-03-31 15:28:33 +02:00
Daan Vanden Bosch
e180ac28c9 It's now possible to show the textured render geometry instead of the collision geometry. 2021-03-30 15:03:02 +02:00
Daan Vanden Bosch
969df2f371 Fixed Firefox issue with display of viewer animation list. 2021-03-26 21:00:13 +01:00
Daan Vanden Bosch
a0bf918e42 Fixed viewer animation bug: when loading a new animation, the frame rate would change back to 30 without any indication. 2021-03-26 20:27:23 +01:00
Daan Vanden Bosch
874cff7ae5 All viewer animation controls are now ported. 2021-03-26 19:56:48 +01:00
Daan Vanden Bosch
2ab0baa3b5 Added animation play/pause toggle to the viewer again. 2021-03-26 18:35:09 +01:00
Daan Vanden Bosch
610a2bb64a Added a "Clear animation" button to the viewer. 2021-03-26 18:22:35 +01:00
Daan Vanden Bosch
1c44ce4620 Light source now stays in place when rotating a model in the viewer. 2021-03-26 14:56:09 +01:00
Daan Vanden Bosch
7e5dea8e25 Character animations can be selected again in the viewer. 2021-03-26 14:49:48 +01:00
Daan Vanden Bosch
23716615bf Fixed bug that prevented a random model from being loaded when navigating to the viewer without /models or /textures or parameters. 2021-03-25 21:21:08 +01:00
Daan Vanden Bosch
6990aaca1b Viewer URL now contains path to Model and Textures tab again. 2021-03-25 20:57:07 +01:00
Daan Vanden Bosch
078cf7fb2e Ported viewer model, body and section_id URL parameters. 2021-03-25 17:03:12 +01:00
Daan Vanden Bosch
445878fb6e Name of "Seaside Area at Night" now becomes "West Tower" when the area variant is 1. Phantasmal World 4 and Lost heart breaker use this to have two tower maps. 2021-03-23 22:17:42 +01:00
Daan Vanden Bosch
a1d4e38a7c Fixed performance issue with drop table deserialization. 2021-03-23 21:18:00 +01:00
Daan Vanden Bosch
1b0e8da770 Added node_modules to GH actions caches. 2021-03-23 19:26:22 +01:00
Daan Vanden Bosch
294e3194e2 Added deploy GH action. 2021-03-23 19:18:10 +01:00
Daan Vanden Bosch
efb436b0cc Made gradlew executable. 2021-03-23 17:31:37 +01:00
Daan Vanden Bosch
2a02a7c943 Added Tests GH action again. 2021-03-23 17:28:50 +01:00
Daan Vanden Bosch
381f70bcc7 Fixed error in README. 2021-03-23 17:14:45 +01:00
Daan Vanden Bosch
2f69806df5 Merge branch 'master' into kotlin 2021-03-23 17:07:36 +01:00
Daan Vanden Bosch
724e324fca Updated README and FEATURES to reflect Kotlin-related changes and bugfixes. 2021-03-23 17:01:17 +01:00
Daan Vanden Bosch
29d13697a1 Fixed wrong type in opcode definition. 2021-03-23 16:51:41 +01:00
Daan Vanden Bosch
017232eb91 Upgraded to Kotlin 1.4.31. 2021-03-23 15:27:27 +01:00
Daan Vanden Bosch
3698544af7 Ported jtuu's recent opcode fixes and additions. 2021-03-23 15:24:17 +01:00
Daan Vanden Bosch
b8edf35b30 Improved Ninja geometry to Three.js conversion speed by avoiding some GC. 2021-03-22 21:07:39 +01:00
Daan Vanden Bosch
f57de99577 Upgraded to three.js 0.126.0 and improved performance of quest renderer. 2021-03-22 20:31:24 +01:00
Daan Vanden Bosch
e6a7a5c3ed Pointer cancel events are now handled in the QuestInputManager. 2021-03-21 17:59:40 +01:00
Daan Vanden Bosch
45bf86018c The viewer can load animations again. 2021-03-21 16:54:49 +01:00
Daan Vanden Bosch
2c96d8cba0 Renamed ListValChangeEvent to ListChangeEvent and added some documentation. 2021-03-19 21:46:08 +01:00
Daan Vanden Bosch
b9339ac2b4 Added some observable unit tests and fixed a bug. Switched to junit 5 to support interfaces with @Test annotated concrete methods for "mixin" tests. 2021-03-19 21:32:57 +01:00