Commit Graph

109 Commits

Author SHA1 Message Date
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
Turánszki János c02ab327d8 Physical light units (#476) 2022-06-29 20:15:36 +02:00
Turánszki János 86c748ed98 Spotlight inner cone, GLTF KHR_lights_punctual (#474)
* added inner cone angle to spotlights

* refactors

* different shader entity packing

* KHR_lights_punctual

* features.txt

* spot cutoff

* seri

* fixes

* update

* angularAttenuation mad

* refactor

* attenuation refactors
2022-06-28 23:10:48 +02:00
Turánszki János bb5e7a8ccb hierarchy: don't assume that transforms exist; gui update; editor model importer update; 2022-04-24 14:32:36 +02:00
Turánszki János e353ac3481 gltf import: additional data types support 2022-01-10 09:51:47 +01:00
Turánszki János 5076826906 gltf import: implemented additional vertex color types 2022-01-10 09:37:48 +01:00
Turánszki János c4c582d739 general improvements (#368)
* custom implementation for wi::vector

* fix

* sdl vulkan fix

* linux fix

* fix

* vector fix

* shader compiler and job system will be initialized automatically on first use

* vector improvements

* updates

* update

* network and audio will be auto initializing on first use only

* fix

* for now, use std::vector

* vector refactor minor

* backlog: access safety

* shader clearcoat fix

* gui initialization on demand

* initializer updates

* job system will be explicitly initialized
2021-12-09 18:58:27 +01:00
Turánszki János 74cb74d3c9 version 0.60 (#367)
- namespace refactor (example: wiGraphics:: -> wi::graphics)
  - provided namespace compatibility macro for old user code: WICKEDENGINE_BACKWARDS_COMPATIBILITY_0_59
- resource manager will return `Resource` instead of `shared_ptr<Resource>` objects
- MAD shader optimizations
- implemented alpha to coverage with alpha tested materials when MSAA is enabled
- alpha testing fix with transparent shadow maps
- TLAS and scene buffers will be recreated less frequently when things get added/removed from the scene
2021-12-03 21:22:27 +01:00
Turánszki János 16d9a8de74 common improvements (#366)
- std container replacements for vector, unordered_map, unordered_set
  - unordered_map and unordered_set replaced with ska::flat_hash_map
  - vector replacement is still std::
- unordered_map performance test (std:: vs ska::)
- backlog improvements
- wiArchive improvements
- editor: added option to dump scene to C++ header file
- common improvements, refactors
2021-11-28 22:12:05 +01:00
James Webb 4f82ed8fbd wiGraphics refactors (#359)
* Mark concrete graphics device classes as final - they should not be inherited from further.

* Apply consistent snake_cast naming (which has been used in more recent additions) across wiGraphics structs

* Make 'CommandList' type safe so that calling graphics device functions is less error-prone.

* Decouple wiProfiler from wiRenderer by passing the device instance to functions instead of using wiRenderer::GetDevice().

* Bump minor version for graphics refactors.

* Decouple wiHelper screenshot/saveTexture* functions from wiRenderer by providing the graphics device as a parameter.

* Convert wiGraphics.h enums to use enum class (except a couple of raytracing flag enums which seem best left)

* hdr fix

* Documentation updates for enum class.

* Revert "Decouple wiHelper screenshot/saveTexture* functions from wiRenderer by providing the graphics device as a parameter."

This reverts commit fd70249554.

* Revert "Decouple wiProfiler from wiRenderer by passing the device instance to functions instead of using wiRenderer::GetDevice()."

This reverts commit 69b5326cfc.

* Fix debug build

* Fix gcc build (hopefully). Move bitmask operator defs to end of file outside of wiGraphics namespace.

* Remove 'to_underlying' and replace with casts

* graphics device access decoupled from wiRenderer, now should be accessed from wiGraphics::GetDevice()

* minor refactors, comments

* dx12 assert fix

* fixes

* commandlist refactor

* commandlist initial value

* commandlist refactor

* graphicsdevice comments, GetActivePipelineCount() function

* has changed to has_flag

* just rename a thing

Co-authored-by: Turánszki János <turanszkij@users.noreply.github.com>
2021-11-17 20:27:10 +01:00
Turánszki János 71222ec839 improvements: loadmodel, gltf import, obj import 2021-09-25 00:00:53 +02:00
Turánszki János 100e6b6c97 Basis Universal (#313)
* added basis-universal library and KHR_texture_basisu gltf support

* fix

* added basisu license

* added basis transcode;
added basis encode;
added ktx2 encode;
resource manager file types query;

* added BC decompressor

* added lightmap compression BC6;
added DirectXTex BC libs;

* version bump

* removed directxtex, using simpler lightmap compression instead

* fix

* added ktx2 conv button; normal maps fix;

* don't rely on zero-initialization of graphics resources

* don't always enable vrs classification
2021-09-19 17:07:12 +02:00
Turanszki Janos d26a31d3bb added KHR_materials_ior and KHR_materials_specular GLTF extension support 2021-05-29 17:41:30 +02:00
Turanszki Janos 1ee087f4b8 double sided property gltf compliance 2021-05-27 19:35:59 +02:00
Turánszki János f1ced24f05 Multi swapchain support (#257)
* multi swapchain draft

* uwp fix

* swapchain resize handling

* swapchain buffercount

* vsync toggle

* tests fix

* update

* everything removed from graphicsdevice regarding global screen params, engine refactor

* added GetSwapChainTexture() function to graphics device; screenshot() now requires swapChain

* linux fix: vulkan device needs window handle for instance creation

* refactor

* removed unused includes

* shader refactor and lensflare fix

* swapchain clearcolor and other refactors

* vulkan: no vector allocation in submit

* tests fix

* refactors

* lens flare canvas size fix

* gui refactor for canvas support

* refactors

* removed global canvas state

* msaa fix

* fixes

* refactor to minimize interface changes

* gui changes

* checkbox fix

* gui fixes

* fixes

* input system will accept window handle

* editor fixes

* refactor and removed resolution related system events

* small editor update

* refactor: renderpath inherits from canvas

* fixed tests duh

* image refactor

* image fix

* removed every using namespace std

* pushconstant fix

* editor: object picking only when necessary

* removed include

* dx12: copy fence waiting performed on CPU

* dx12 copyallocator update

* vulkan: copy allocator with timeline semaphores

* missing include

* dx12 copy allocator update

* refactor

* editor update

* vulkan copy allocator fix

* dx12 update

* vulkan, dx12 fixes

* version bump

* vsync event helper

* documentation update

* updated vulkan, dx12, dxc
2021-04-22 11:36:22 +02:00
Turanszki Janos 783c824139 resource manager upgrade: embedded resources support 2021-03-01 00:37:55 +01:00
Turanszki Janos 9b4a8870ac file system refactor 2021-02-25 21:52:41 +01:00