Commit Graph

39 Commits

Author SHA1 Message Date
Daan Vanden Bosch
767397d26d Removed custom WebGL and WebGPU renderers. All 3D rendering is now done by THREE.js again. 2020-07-14 21:50:35 +02:00
Daan Vanden Bosch
f8d4507b34 Fixed bug in Widget.finalize_construction. Fixed linting warnings. 2020-07-14 19:46:11 +02:00
Daan Vanden Bosch
c9891410d9 Improved WebGPU renderer:
- The renderer now uses buffer memory mapping instead of the deprecated setSubData
- It can now render models without texture
- It can now use S3TC textures
2020-04-26 22:19:26 +02:00
Daan Vanden Bosch
78c18eb1e9 Improved rendering of entities that use additive blending in NPCs/Objects panels. 2020-04-25 22:17:26 +02:00
Daan Vanden Bosch
599cab4b2b Fixed all formatting and linting errors introduced by upgraded eslint and prettier. 2020-04-25 20:29:20 +02:00
Daan Vanden Bosch
b3055bc271 Orbital camera rotation sort of works. Translation happens after rotation instead of the other way around. 2020-02-20 14:57:19 +01:00
Daan Vanden Bosch
8e54ac90fd Fixed issue with NJ meshes. 2020-02-01 19:46:57 +01:00
Daan Vanden Bosch
928bdfc12a Fixed issues with incorrectly transformed NJ model meshes. 2020-02-01 18:34:15 +01:00
Daan Vanden Bosch
4eaff297d5 Fixed perspective transformation. 2020-02-01 15:19:16 +01:00
Daan Vanden Bosch
c180b6997e Fixed compilation issues. 2020-01-29 17:37:49 +01:00
Daan Vanden Bosch
ff31c1ad27 Improved panning with perspective camera. 2020-01-29 17:36:15 +01:00
Daan Vanden Bosch
64daaf8fd2 Simplified webpack config and fixed issue with WebGPU typings. 2020-01-29 14:53:08 +01:00
Daan Vanden Bosch
3230268962 Started working on pure WebGL model viewer. 2020-01-26 23:13:09 +01:00
Daan Vanden Bosch
a19a3a4837 WebGPU renderer can now render textures. WebGL and WebGPU renderers now reuse more code. 2020-01-25 22:38:07 +01:00
Daan Vanden Bosch
baffab3234 Started work on WebGPU renderer. 2020-01-23 01:16:52 +01:00
Daan Vanden Bosch
9960d745c2 All texture viewer features are now supported by the TextureWebglRenderer. 2020-01-19 22:38:45 +01:00
Daan Vanden Bosch
85ccdbb0a6 Added experimental WebGL renderer. 2020-01-19 17:16:28 +01:00
Daan Vanden Bosch
f4d9cb290e Additive blending now also works for xj models. Darkened the collision geometry to better accommodate additive blending. 2020-01-18 21:26:49 +01:00
Daan Vanden Bosch
06e1a8e60b Added "additive" blending for the materials that need it. 2020-01-18 20:01:22 +01:00
Daan Vanden Bosch
f87c2ecf84 - All views now have a View super type
- Widget now has a children array
- Widgets can be activated and deactivated (this recurses over child widgets)
- Renderers are now turned on and off in activate/deactivate methods
- It is now possible to set a tool-local path (this path is appended to the tool's base path)
- TabContainer can now automatically set a path based on paths given in its tab configuration
- It's now possible to directly link to subviews of the viewer and the hunt optimizer
2020-01-05 01:07:35 +01:00
Daan Vanden Bosch
c9d4b6ab92 Bone weights are now normalized, this almost completely fixes the bone weight issues. 2020-01-03 12:05:51 +01:00
Daan Vanden Bosch
16b1d0934b The texture viewer can now deal with textures in an AFS archive. 2020-01-02 00:55:55 +01:00
Daan Vanden Bosch
2083793e67 Added basic test for application initialization. 2019-12-22 00:43:27 +01:00
Daan Vanden Bosch
7ad3044c1e Changed deprecated Three.js addAttribute calls. 2019-12-21 20:52:56 +01:00
jtuu
8582a25bc3 Lint 2019-11-16 18:07:21 +02:00
Daan Vanden Bosch
d6ebb8e21a Added simple transparency to entities. Seems to work for most entities except for those that use translucent texture to emulate light rays etc. 2019-10-27 16:45:30 +01:00
Daan Vanden Bosch
9b3d280e4f Upgraded all dependencies and fixed linting warnings/errors resulting from eslint upgrade. 2019-10-01 18:30:26 +02:00
Daan Vanden Bosch
f0d474ad40 The EntityListView now shows renders of entities instead of green squares. 2019-09-21 21:47:00 +02:00
Daan Vanden Bosch
79b85fc859 Entity creation is now undoable. Fixed a bug that occurred when you started to translate an entity and then moved the cursor outside of the 3D-view. 2019-09-21 14:39:04 +02:00
Daan Vanden Bosch
6e666b0ea5 Entity drag and drop code doesn't use custom events anymore for increased performance and simplicity. Made code more typesafe and decoupled. Fixed some bugs. 2019-09-20 22:27:19 +02:00
Daan Vanden Bosch
7ae4ad428c Basic entity creation via drag and drop. 2019-09-19 22:20:17 +02:00
Daan Vanden Bosch
03dc60cec9 Undo/redo now works again in the quest editor. The NPC counts view is also ported. 2019-08-26 15:42:12 +02:00
Daan Vanden Bosch
18a8ac1ad6 Fixed bug in code that starts/stops renderers when not visible. 2019-08-21 22:29:20 +02:00
Daan Vanden Bosch
844e63735e Texture viewer now uses the new UI system. 2019-08-21 18:59:56 +02:00
Daan Vanden Bosch
72506461ab Swapped code using new and old UI system around. 2019-08-21 17:56:46 +02:00
Daan Vanden Bosch
3ba13606aa More work on new UI. 2019-08-20 15:02:58 +02:00
Daan Vanden Bosch
5571f6b1a8 Started working on new UI. 2019-08-19 22:56:40 +02:00
Daan Vanden Bosch
1d0da754ca Added AddObjectComponent. 2019-08-17 17:14:09 +02:00
Daan Vanden Bosch
66127253d3 Split code into one module per tool + core and application module. 2019-08-10 22:09:06 +02:00