1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-05-01 07:57:44 +00:00
Commit graph

113 commits

Author SHA1 Message Date
2252feeef3 MDLPart: Add render material cache 2024-05-27 13:15:40 -04:00
4a777ff9db Fix narrowing conversion introduced in mdlimport 2024-05-25 23:41:50 -04:00
edc341a014 Begin work on importing shape meshes
It's temporarily disabled for now, because it doesn't work. But it does
disable the shape meshes so it doesn't bug out in-game, leaving it a
little less ugly.
2024-05-25 23:28:00 -04:00
6cec87568d Bump libphysis, begin exporting shape data 2024-05-25 22:59:12 -04:00
4d0b109bb8 sklbpart: Fix GLSL flags 2024-05-18 17:31:14 +00:00
f713f5c150 Resolve more warnings 2024-05-10 16:37:40 -04:00
1815d60f21 Add debug markers for peeking via RenderDoc 2024-05-10 15:53:32 -04:00
1fef1e2acd Prepare for dyeable gear 2024-04-30 19:05:55 -04:00
5a227971c2 Support 3D textures, add real tile diffuse/normal and fix lighting
I broke the lighting accidentally while messing around with Dawntrail,
it's now restored. Real textures are used for tile diffuse/normal
textures which shoud fix the appearances of some gear.
2024-04-30 18:12:02 -04:00
ac3b2e2f7c Prevent skeletons from changing just by selecting a bone 2024-04-30 16:05:26 -04:00
9e4d99a0db Add a way to quickly disable racial deforms in the full model viewer 2024-04-30 16:02:59 -04:00
0c9cb2b0cf Attempt to display racial transforms in the bone editor
Not sure if it 100% works yet
2024-04-30 15:56:26 -04:00
2c780311c7 Try to the fix PBD being applied wrongly 2024-04-30 00:58:35 -04:00
7cd519fac2 Use the parameters defined in the material instead of hardcoding
This was only useful for testing, the new renderer loads the parameters
the material stores now.
2024-04-27 18:44:53 -04:00
c1b45611a2 Decode material parameter names 2024-04-27 18:17:37 -04:00
a8d64a52df Properly transition image layouts and create barriers
This along with other misc fixes by listening to the validation layers
"fixes" specular, but just for the skin. I need to do some more work to
figure out why it doesn't work for character shaders yet.

Also introduces new helper functions to Device to easily transition
textures and name them.
2024-04-27 17:49:03 -04:00
51ea3c3920 Create reusable material part
This takes the existing properties widget in the new material editor and
makes it reusable across multiple applications. It's now added to the
Armoury which shows the gear's used materials. It's also added to the
Data Explorer which now supports viewing material files.

I fixed the render viewport crashing when hiding it again, and made it
even more resilient.
2024-04-27 13:45:15 -04:00
88e64b859d Use material's own shader keys if available
Instead of using the shader package default values
2024-04-27 12:29:19 -04:00
cf6b97930f Allow empty materials that have no set shader package 2024-04-22 16:12:26 -04:00
af806bff63 Remove hardcoded character.shpk path
Now the new renderer should load the material's requested shader package
2024-04-21 19:07:09 -04:00
dcb54cf4e3 Begin working on bone support for the new renderer
Doesn't work completely yet (not sure why) but for basic items it works.
2024-04-21 18:49:48 -04:00
e34daadbcd Split up Renderer's source files and a lot of refactoring
This now splits up the rendering system into sensible parts, and makes
it easier to switch between the simple renderer and the new experimental
one. Lots of refactors I needed to do for a while are now done, too.
2024-04-21 17:35:51 -04:00
b9b162b377 Add experimental new rendering system
I started writing this late last year, and finally uploading parts of
it. Currently, doesn't work, but doesn't crash either. Enable it via
the NOVUS_USE_NEW_RENDERER environment variable.

The goal is to use the game's own shaders instead of creating our own,
it's lacking support for buffers with actual data in them and constants
so while it "works" nothing is displayed on screen yet.
2024-04-20 17:29:29 -04:00
db50a7ff36 Fix translation error in shpk part, prevent crashes when decomp fails 2024-04-20 15:45:19 -04:00
384f23ef1e Add support for viewing dictionary files 2024-04-18 22:21:53 -04:00
5c907b63da Add a wireframe checkbox to MDLViewer 2024-04-18 18:08:50 -04:00
ab1d02b25a Add configurable camera distance, set to a smaller minimum in MDLViewer 2024-04-18 18:08:50 -04:00
88dfb45c36 Allow textures that failed to load 2024-04-18 17:57:16 -04:00
3e29ee1323 Remove unnecessary normalize from tangent import 2024-02-25 11:16:57 -05:00
2ccab76191 Hook up translation domains 2024-02-04 15:36:08 -05:00
76f8b4859c sklbpart: Support localization 2024-02-04 15:26:12 -05:00
edc0439a0a shpkpart: Support localization 2024-02-04 15:25:14 -05:00
e49ebcea33 exlpart: Support localization 2024-02-04 15:24:01 -05:00
d3dfb9bcc0 exdpart: Support localization 2024-02-04 15:23:24 -05:00
1eae14b239 cmppart: Support localization 2024-02-04 15:22:28 -05:00
f13ead3168 mdlpart: Don't allow mouse movements when disabled 2024-02-04 14:54:13 -05:00
4755cfa0aa exdpart: Remove unnecessary margins around the table, remove header info
I plan on putting this info somewhere else soon, just not here in the
part.
2024-02-04 14:29:45 -05:00
89416ec3db exlpart: Remove unnecessary margins around the table 2024-02-04 14:29:19 -05:00
57e3cd5fa8 karaku: Finish up definition integration
It now loads some column names correctly, and the links.
2024-02-03 09:18:10 -05:00
f95fd2efc2 Add a dedicated skinned shader
This is to prevent trying to use bone transforms on terrain.
2024-02-02 14:37:58 -05:00
5a03fafd3b mdlpart: Add support for model positions, free mode camera 2024-02-02 14:28:31 -05:00
605e2f7e60 Fix accidental double bitangent handedness multiplication 2024-01-29 17:41:34 -05:00
f747033aac Fix bitangents being slightly off when importing 2023-12-31 10:31:51 -05:00
693a47cf4e Fix tangent reading/writing
Updates to latest physis changes, and fixing tangent reading/writing.
2023-12-17 19:00:43 -05:00
b81cedcf53 Support importing models with higher vertex/index counts 2023-12-12 21:48:17 -05:00
2235d70882 Bump libphysis version, export submeshes
Will be needed later to correctly reconstruct models on re-import if the
index count happens to change.
2023-12-12 21:47:39 -05:00
ae96efcc5e Import more vertex data, correct bone ids 2023-12-10 12:38:28 -05:00
9b135d9597 Include the necessary root bone when exporting 2023-12-10 12:38:11 -05:00
e9b02d53f1 Skip parts that don't exist in an existing model 2023-12-10 11:10:31 -05:00
039b6e6d30 More small code improvements/cleanup 2023-12-10 08:39:45 -05:00