Commit Graph

125 Commits

Author SHA1 Message Date
Turánszki János 3899e472b6 Mac OS support (#1346) 2026-01-11 21:53:46 +01:00
Dennis Brakhane 14d2eb9f78 gltf: fix saving for current tinygltf versions, tinygltf back to v2.9.6 (#1198) 2025-08-09 09:53:48 +02:00
Turánszki János 6b12c0d87b reverted tinygltf library because broken export; added anim names to gltf export; 2025-08-06 12:33:34 +02:00
Turánszki János 7ecd39dd6e Warning fixes and changes for Linux
- Disabled warnings as errors
- Using -Wall for specifying commonly used warnings
- Fixes for many warnings in the engine code
2025-07-29 19:59:53 +02:00
Dennis Brakhane 9efa9ddcfc cmake: add build flags for using AVX2 etc., work around GCC bug (#1167)
* cmake: work around GCC bug when compiling Jolt

* cmake: add build flags for using AVX2 etc.

On linux, AVX2 was used by default for compiling Jolt,
buy not in other parts, which clang doesn't like
(specifically inlining functions using a disabled instruction set)

So now, we just define some compile time options to enable/disable
AVX2, AVX, AVX512 etc. and make the compiler use the code for
everything, not just Jolt. By default, AVX2 is used.

Furthermore, the CMakeLists files were slightly refactored to be
a bit less messy.

* silence GCC warnings

* fix clang build on window

* disable another gcc warning-turned-error

* spring initialization fix

* size_t initializaed to 0 instead of -1

* remove initialization

---------

Co-authored-by: Turánszki János <turanszkij@users.noreply.github.com>
Co-authored-by: Turánszki János <turanszkij@gmail.com>
2025-07-13 16:24:39 +02:00
Dennis Brakhane c36f75063a gltf import: check that all required extensions are supported, update tiny_gltf.h to v2.9.6 (#1161)
* gltf import: check that we support all required extensions

* gltf import: update tiny_gltf to v2.9.6
2025-07-12 08:01:26 +02:00
Dennis Brakhane 4028d250e7 gltf import: fix light import (#1158)
The importer assumed that each light was only referenced once and in
the order it appears in the KHR_lights_punctual extension.

However, glTF allows a light to be referenced by more than one node,
and in different order. This commit adds support for this.
2025-07-10 17:16:37 +02:00
Dennis Brakhane 6aa7ee4687 gltf import: import metadata (#1157)
Currently, only bool, float, int and string are supported. Any other
type will be imported as a JSON string.

It is assumed that the "extras" field is a JSON object; this
is the recommended practise and also how Blender stores its
custom properties.
2025-07-09 19:25:49 +02:00
Turánszki János a44d321bd2 removal of libraries that no longer will be used: basis universal and qoi (#1116) 2025-06-03 08:26:02 +02:00
Turanszki Janos 554b404ad9 VRMA import fix, annd added bone picker display for humanoids without armature 2025-04-29 16:54:13 +02:00
Turánszki János 19e493f0d9 Added initial support for VRMA import 2025-04-29 09:08:34 +02:00
Turánszki János 57f0c8dead added utility to remove duplicate colliders and updated character models 2025-04-10 09:22:14 +02:00
Turánszki János b588a8b7d6 model importer fix 2025-03-17 16:11:59 +01:00
Turánszki János 612afa3aee added makehuman humanoid rig import 2025-02-05 08:45:55 +01:00
Turánszki János a2ceb2c12b model import: embedded image will use full file data hash as resource name to avoid collisions between multiple models 2025-02-02 07:21:58 +01:00
Turánszki János 7f93e6cd3c gltf importer fix 2025-02-01 07:56:13 +01:00
Turánszki János 8db4b095c4 gltf export fix #952 2024-09-30 14:38:16 +02:00
Turánszki János fb41bf83bd Softbody simplification with bones (#876) 2024-07-04 09:24:47 +02:00
Turánszki János a988218755 resource manager filedata retention changes (#857) 2024-06-06 09:18:42 +02:00
Turánszki János dbfec252d2 created new DDS loader that's better for streaming 2024-06-01 07:45:45 +02:00
Turánszki János 10f42c4bb6 fixes: springbone rest pose; reverse facing character ik; character controller script foot placement root offset to work without root bone (mixamo); 2024-05-06 07:23:38 +02:00
Turánszki János 98be24d372 FBX importer: improvements for ragdoll physics 2024-05-05 07:00:32 +02:00
Turánszki János d319b691f7 mikktspace (#809) 2024-03-09 18:26:47 +01:00
Turánszki János bcbb079185 VRM 1.0 toon material import 2023-11-01 13:46:21 +01:00
Turánszki János f8863799cd EXT_lights_image_based, DDS file writer, envprobe updates, fixes (#741) 2023-09-03 11:39:54 +02:00
Turánszki János abe650eb55 GTLF: added support for KHR_materials_emissive_strength 2023-07-30 13:46:08 +02:00
Turánszki János d680efe9f9 gltf improvements, padded texture block compression fix 2023-06-25 07:56:04 +02:00
Turánszki János f4fc45bb16 terrain gltf export chunk texture baking; impostor fixes; copytexture2d src offset, srgb convert; 2023-06-23 20:35:33 +02:00
Turánszki János a7c64edcf2 editor: gltf export improvements 2023-06-22 08:14:39 +02:00
Turánszki János cc99c3e51a editor gltf export fixes 2023-06-20 10:51:20 +02:00
Turánszki János d436147e0f editor: added drag n drop file handling; gltf export fix; 2023-06-18 21:01:12 +02:00
Turánszki János c037df33a7 texture import block compression (#685) 2023-05-27 13:51:40 +02:00
Turánszki János 070480a8ff Conversation (#674) 2023-05-12 17:50:21 +02:00
Turánszki János 07946b9d97 VRM import: apply subsurface scattering for skin materials, disable shadow casting for some face elements;
weather: default ambient higher;
character asset updated;
2023-05-04 16:40:07 +02:00
Turánszki János 9efb99dbca anisotropic map, aniso rotation, import/export GLTF KHR_materials_anisotropy 2023-04-05 18:36:04 +02:00
Turánszki János 21d5f37fee build updates (#655) 2023-03-28 19:30:29 +02:00
Turánszki János 30c47c83cc Runtime animation retargeting (#627)
* runtime animation retargeting

* improvements, fixes

* character controller script: separate animation file from character

* editor fix

* script improvements

* foot positioning fixes
2023-01-22 18:29:13 +01:00
Turánszki János 7f9e83bfed gltf: support non-indexed geometry and recursive skeletons 2022-12-05 09:26:21 +01:00
Turánszki János d0b95bdeac sparse morph target normals fix 2022-11-29 10:58:49 +01:00
Megumumpkin b577075471 Add capability to export GLTF (proposal) (#594)
* Add capability to export GLTF (proposal)

* fixes: VRM and mixamo lookAt, warning removals

* editor: save gltf will also modify scene path and refresh scene list

* filesystem fix

* tangent fix, file system callbacks for writer, defaultScene

* Fixed GLTF Export for GLB format and Stuff

* camera fix: orientation is not rotated, aspectration is not imported, because it will be computed from monitor

* import fix: no material

* import fix: buffer view stride was not accounted for every vertex channel

* import fix: skip importing othographic camera

* fix: uvset_0 stride

* export fix: surface map is not valid to use as specular map

* export fix: camera doesn't need to be flipped

* fixed import issue of reimporting existing nodes

* editor: add gltf exporting tooltip to save button

* revert camera aspect change in importer

* fixed tangent.w double flipping

* protect against importing 0 camera aspect

* workaround fix for float precision issue with decompose and transform scaling <=0.0001

* scale workaround fix: support negative scale

Co-authored-by: Turánszki János <turanszkij@users.noreply.github.com>
2022-11-21 12:29:31 +01:00
Turánszki János 9bdeb4f90b cartoon shader: disable ssao, ssr, improved rim light; vrm mtoon will enable cartoon shader; 2022-09-26 19:41:13 +02:00
Turánszki János cffe8362bd gltf collider layers; added start-end animation lua bindings; 2022-09-25 09:43:10 +02:00
Turánszki János 91595edc65 editor: mixamo humanoid rig import 2022-09-21 11:14:43 +02:00
Turánszki János 6151fd82e6 VRM humanoid data import (#567)
* VRMhumanoid data import

* linux fix

* humanoid lookAt

* updates

* mouse look improvement

* head size

* theme color affects picker entity icons

* eye lookat

* blinking more random, collider aabb checks

* improvements

* editor: use humanoid information to improve bone picking
2022-09-16 15:05:23 +02:00
Turánszki János ac4fc8540d Sparse morph target and VRM expressions (#536) 2022-08-28 19:22:23 +02:00
Turánszki János 1ba4014fc0 Collider editor (#527) 2022-08-23 13:13:00 +02:00
Turánszki János 1c3b874a44 VRM springbone and collider import (#513) 2022-08-17 16:09:31 +02:00
Turánszki János 20e1989630 GLTF sparse accessor, VRM model import 2022-08-15 14:14:09 +02:00
Turánszki János 440ad123aa added capsule-ray intersect functions; editor bone picking; 2022-08-11 09:43:43 +02:00
Turánszki János 5a0c423ddd Updates:
- editor: quicksave, multiple scenes support, gui changes, additional shortcuts
- physics: improvements for handling multiple scenes, and removal of physics objects
- scripting: ability to override global scene and camera with custom scene and camera from cpp side
2022-07-14 15:21:28 +02:00