1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-23 12:37:45 +00:00
Commit graph

56 commits

Author SHA1 Message Date
1aa7c8c6ee Start moving shader stuff into it's own dedicated class
This is generally abstract from the game renderer, and can be useful
elsewhere. It's also really big!
2024-05-10 16:14:33 -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
20b2f0e7b8 Add support for more shader structures as seen in Dawntrail Benchmark
Not sure what these are yet, but stops the renderer from complaining.
2024-04-28 07:09:58 -04:00
7d2b81affd Add experimental support for the Dawntrail rendering system
I hastily found the new scene keys used, it mostly "works" but there's
new parameters and resources we don't provide. Enable via
NOVUS_IS_DAWNTRAIL=1.
2024-04-27 22:59:26 -04:00
729dce011a Fix specular not showing correctly, and more
The specular for lights now show up correctly. The offscreen buffers
use more accurate formats. And a new Scene struct is added for future
usage.
2024-04-27 21:11:53 -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
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
35dab8e925 Start working on semi-transparency composite
The composite renders and "works" but there's some sort of alpha issue.
2024-04-27 15:05:36 -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
04717aea62 Add missing header in swapchain.h 2024-04-22 15:47:45 -04:00
74f754b382 Implement some stuff required for skin shaders
Punching some holes to allow shaders to access textures
2024-04-21 19:45:21 -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
0e739187ab Make the render size not hardcoded to 640x480 in the new renderer 2024-04-21 14:11:40 -04:00
7bba79f62f Make lighting work (finally)
Now it can display a directional light source, albeit in a tiny
hardcoded size. Time to clean up my mess!
2024-04-21 14:05:41 -04:00
eb9e5dc094 Implement more of g_CameraParameter 2024-04-21 13:29:30 -04:00
ec47e52f80 Implement view position extraction, and provide g_SamplerDepth 2024-04-21 13:17:40 -04:00
ed9d6e62b8 More stuff that's needed for directional lighting
It's not working yet as we're missing view positions and the normal
clear color is wrong, but it's getting there. It can display a nice
blobby plane with the light color right now.
2024-04-21 13:04:25 -04:00
7f1c167251 Create GBuffer (normals only for now) and render into it 2024-04-21 12:00:13 -04:00
fd61cfca26 "Implement" the directional lighting pass, fix GBuffer normal
Implement is in quotes because it doesn't work yet, the code is just
written. We still need actual framebuffers to do work in and not the
swapchain image we're reusing.

In other news, the GBuffer shader now works and outputs normals! I
forced it to simple texture mode for now so it makes development easier.
2024-04-21 11:52:30 -04:00
2f8f155a6c Begin implementation of directional lighting
This takes the correct node from directionallighting.shpk, but doesn't
draw anything yet as we're missing GBuffers.
2024-04-21 10:25:52 -04:00
699141d04b Pass real data to the new render system
Based off of structures reversed engineered by Ouroboros, now it can
render objects without shading! Note that it breaks the basic renderer
at the moment, will be fixed later.
2024-04-21 09:01:02 -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
5c907b63da Add a wireframe checkbox to MDLViewer 2024-04-18 18:08:50 -04: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
af8582467b renderer: Add position property to RenderModel 2024-02-02 14:26:33 -05:00
039b6e6d30 More small code improvements/cleanup 2023-12-10 08:39:45 -05:00
09e1d25d09 Fix a crash in VulkanWindow when trying to close one 2023-12-10 07:16:21 -05:00
81e9c09be8 Fix most warnings 2023-12-09 22:35:59 -05:00
c7b6dd076c Add glTF import support, multiple fixes for upstream physis changes
Adds basic glTF import (although right now it only imports back
positions) and fixes support for more of the vertex data that's
available to us. The MDL file isn't written back out yet either, it only
displays in the viewport.
2023-12-09 14:49:31 -05:00
b5b83e1b83 renderer: Add from_body_id and to_body_id parameters to RenderModel
This will be used in the future for model deformation.
2023-10-13 14:59:28 -04:00
9d6f06bf1f renderer: Reformat code, misc cleanup 2023-10-12 23:45:45 -04:00
44732293ac renderer: Clean up CMakeLists, remove standalone window 2023-10-10 18:31:50 -04:00
c2fa324ec0 armoury: Export proper model and part names 2023-10-10 16:02:02 -04:00
5c9284106f renderer: Add support for imgui 2023-09-26 17:10:18 -04:00
b96b2a86c2 Use uint64 for storing descriptor hashes 2023-09-23 14:09:33 -04:00
749ad49c3a Ensure compliance with REUSE, add to CI 2023-08-06 08:50:33 -04:00
dd0dc5fbcf Allow no material meshes with a dummy texture instead 2023-07-09 11:53:27 -04:00
b216a670b2 Add support for modifying the renderer view matrix 2023-07-06 17:39:29 -04:00
792da6da6a Expand Renderer's capabilities for materials and skeletons
The renderer can now store diffuse, normal, specular, and multi
textures. Skin textures now color with a hardcoded skin tone (to be
changed) and bone info buffers are now per-model instead of set globally

Level of detail above 0 is now loaded properly, although break for
other reasons.
2023-04-09 15:26:27 -04:00
ab0d0a7d1e Add material and texture support to mdlviewer, renderer 2022-08-11 17:53:56 -04:00
2b79c33d1f Use physis in mdlviewer 2022-08-10 14:52:28 -04:00
92ac7b1163 Add depth buffer to mdlviewer 2022-05-04 15:56:30 -04:00
9688c091af Add bone editing to mdlviewer
This is big, as it shows we are now correctly parsing the havok XML
sidecard data and you can edit the scale of the bones in the viewport.

This also pulls in a new libxiv version, which is required to fill out
the used bones list on a Model. Right now the bone editing is incredibly
basic, and the viewport suffers from a lack of depth testing still.
2022-04-28 17:50:05 -04:00
7ec107dfd8 Add level of detail selection in mdlviewer 2022-04-14 10:32:41 -04:00
de2b6f6307 Add export button and support for exporting all mesh parts 2022-04-12 20:18:22 -04:00
bef13de12f Support mdlviewer on macOS
Qt5 for macOS can actually use the same code as on Linux/Win, but
apparently no one wants to build it with Vulkan support. Instead, we
spawn a standalone SDL2 window.
2022-04-12 16:19:06 -04:00