Commit Graph

264 Commits

Author SHA1 Message Date
Ethan Lafrenais
8ba010ca97
Sprite Distort (#1626)
* [WIP] initial sprite distort implementation

* Clean up

* More clean up + document sprite distort VU program

* Format code

* Address CI issues

* Adjust hacks in distort fragment shader

* oops

* Optimize sprite distort rendering down to one draw call

~2x speed up

* Format file

* Clean up distort rendering and add separate profile scopes

* Fix glVertexAttribPointer

* Fix sprite distort getting messed up when the viewable area doesn't fit the window perfectly

* Add debug option to disable sprite distort

* One evil space to fail CI...

* oops

* Increase sprite-aux-list size when PC_BIG_MEMORY is true

* Address lints
2022-07-08 21:56:38 -04:00
Tyler Wilding
b4391d0643
docs: documentation cleanup and improvements for normal users (#1618)
* docs: documentation pass

* docs: main README pass
2022-07-06 18:08:07 -04:00
Tyler Wilding
8fefd298fd
build: get rid of clang-cl in favor of actual clang among other things (#1589)
* git: ignore vs build dir

* cmake: ditch `clang-cl` on windows in favor of actual `clang`

* build: suppress a significant number of warnings

* build: adjust workflows and vendor nasm

* docs: update docs to remove `clang-cl` mentions

* build: fix some copy-paste mistakes in the linux build

* build: remove C++20 compat warnings as that is useful if we want to upgrade
2022-07-03 17:35:39 -04:00
water111
628ce47b2e
compiler speed improvement (#1547) 2022-06-24 18:21:24 -04:00
Hat Kid
28ae5be2f4
docs: add instructions for texture replacement on release build (#1471) 2022-06-17 19:48:08 -04:00
water111
be976d2e69
[merc] Add merc extraction (#1356)
* docs for ee merc code

* wip

* more extraction stuff

* partial mat1 working

* mat1

* cleanup

* partial mat2 and mat3 support

* merc extraction seems to work
2022-05-11 22:53:53 -04:00
ManDude
cc01f2810f
update pictures (#1306) 2022-04-15 18:06:39 -04:00
water111
b263e33e94
[goalc] fix mod bug and add div tests (#1296)
* fix mod bug and add div tests

* update changelog
2022-04-11 20:53:24 -04:00
water111
1db96c72ab
[goalc] macro expansion in integer constants (#1282)
* [goalc] macro expansion in integer constants

* working

* didn't break it yet

* support conditional compilation

* fix up some more small bugs

* fix duplicate evaluation of bitfield definitions

* paranoid
2022-04-07 19:13:22 -04:00
water111
b2ed9313bd
[graphics] First part of shrub extraction (#1258)
* decompile 90% of shrubbery

* some more progress

* some more

* big function decompiled

* went through `draw-prototype-inline-array-shrub` and made more notes

* shrub: start implementing extract_shrub

* read through current notes and add the info to current decomp

* decomp: allow skipping inline-asm from output

* add code to BspHeader to get GOAL types for shrubs

* add doc

* wip

* fix bad merge

Co-authored-by: Tyler Wilding <xtvaser@gmail.com>
Co-authored-by: Tyler Wilding <xTVaser@users.noreply.github.com>
2022-03-28 18:14:25 -04:00
ManDude
968531ee51
[game] rewrite memcard and game-save code (#1222)
* rewrite memcard and game-save code

* fix memcard status and bank check

* more robustness

* fix bank pick on card update

* fix load file bugs

* bug fixes and final touches

* add timers and turn off prints

* optimization?

* update pics

* make money starburst slightly easier to see

* fix first time save bug

* reduce filesystem load a bit

* too bright

* Optimize `file_is_present`
2022-03-06 18:58:22 -05:00
water111
a5b383c78a
[graphics] Rewrite of texture system (#1212)
* loading cleanup

* temp

* add texture replacement

* fix windows

* oops

* fix windows

* final cleanup
2022-03-02 20:01:37 -05:00
ManDude
3a54a521e3
[runtime] bug & crash fixes (#1211)
* bug & crash fixes

* relax fog hack slightly

* buff particles more

* borderless hack

* tone down sprite hack

* int consts in `deftype` + increase sparticle queue

* move a menu button around

* clang + test fixes

* less confusing image

* add test for new deftype feature
2022-03-01 20:15:15 -05:00
water111
ff6362d181
compiler startup speed, decomp options, add some shrub docs (#1187) 2022-02-19 21:31:24 -05:00
Tyler Wilding
e4c841f9f5
docs: delete content that now lives in another repo (#1160) 2022-02-12 23:20:43 -05:00
Tyler Wilding
ffb04ddd10
Documentation cleanup and some feature improvements (#1155)
* ci: switch to codacy for coverage

* docs: update badges

* decomp: allow overriding config flags via CLI

* cleanup: top level file cleanup

* docs: big README overhaul

Attempt to close #1128 and #1086

* decomp: attempt to detect if `iso_data` is missing or wrongly extracted

* game: switch to `fpng` for screenshots, allow for compression

closes #1035

* game: switch vsync control to a checkbox

* lint: format cpp files

* lint: format json files

* docs/scripts: organize taskfile
2022-02-12 17:48:50 -05:00
github-actions
738db287b4 Updated github pages site 2022-02-04 23:39:04 +00:00
ManDude
32d8ae9b6e
streamline newbie decomp/run process, update readme and gallery with new/updated information and pictures (#1132)
* streamline newbie decomp/run process, update readme and gallery with new/updated information and pictures

* and of course

* Fix errors

* fix gallery
2022-02-04 18:37:48 -05:00
github-actions
0816a1bf25 Updated github pages site 2022-02-04 03:46:57 +00:00
github-actions
3d7228ec77 Updated github pages site 2022-02-01 01:46:27 +00:00
github-actions
41888aac8f Updated github pages site 2022-01-29 02:33:29 +00:00
water111
57649d243f
[bones] Part 1: Joint (#1110)
* joints

* bones

* align spr to 16k

* fix bug

* lack of sound hack

* clean up
2022-01-28 21:32:03 -05:00
water111
35bdc9b1d3
add an optional, less-accurate-but-faster sprite render and fix silly math bug (#1102)
* also add a new sprite renderer

* claaaang

* goal build fix

* fix tests, add stack singleton option

* make all event-message-blocks the same

* diskboot
2022-01-21 21:11:57 -05:00
github-actions
751fd06513 Updated github pages site 2022-01-20 05:19:12 +00:00
Tyler Wilding
90438523cd
docs: mobile optimize docs portal, support videos, better gallery features (#1099)
* docs: quick update of readme and windows screenshots for vs 2022

* update the docs portal to be better on mobile, support videos, and better gallery

* docs: re-generate site
2022-01-20 00:17:39 -05:00
github-actions
264dc83379 Updated github pages site 2022-01-20 00:40:48 +00:00
github-actions
911ac07da4 Updated github pages site 2022-01-18 06:16:09 +00:00
github-actions
f8fa95f9bf Updated github pages site 2022-01-17 19:37:41 +00:00
github-actions
dc77c3ccd2 Updated github pages site 2022-01-17 16:52:49 +00:00
github-actions
39c654b467 Updated github pages site 2022-01-16 03:35:06 +00:00
water111
c043367094
[goalc] fix 0 in xmm128, be more strict with none in comparison (#1079)
* fix a few small bugs

* merge fixup

* 0 constant fix
2022-01-15 22:33:53 -05:00
github-actions
e018951d38 Updated github pages site 2022-01-16 01:34:26 +00:00
github-actions
372b6a8746 Updated github pages site 2022-01-16 01:02:50 +00:00
github-actions
f757f1b9ac Updated github pages site 2022-01-15 21:54:00 +00:00
github-actions
79ac3a0c3a Updated github pages site 2022-01-15 17:32:52 +00:00
ManDude
67bb1193a8
[runtime] GPU sprite renderer (#1075)
* sprite_3d first attempt

* fixs

* fix Q usage

* ??

* attempt 2

* Update sprite_3d.vert

* works-ish

* works properly!

* scissor fix

* simplify shader

* texture support except everything is broken for some reason

* stuff

* Update SpriteRenderer.cpp

* meltdown

* Revert "simplify shader"

This reverts commit 97bd9b77be.

* Revert "Revert "simplify shader""

This reverts commit 32fb46ce90.

* fix blend

* fix blend and prim

* fix depth write and texture rendering

* fix bugs

* remove noperspective

* fix and finalize sprite 3D vert shader

* optimize 3D program

* 2D sprites! almost first try

* fixes + merge shader code

* HUD sprite support and clean up code

* oopsie

* fix 3d sprites

* minor cleanup and increase sprite buffer to 8k sprites

* clang

* replace some uses of `glBufferSubData` with `glBufferData`
2022-01-15 12:31:38 -05:00
github-actions
f76c87d7fe Updated github pages site 2022-01-12 15:48:40 +00:00
github-actions
4bb1cbf304 Updated github pages site 2022-01-11 00:29:35 +00:00
github-actions
599f8f7e26 Updated github pages site 2022-01-09 22:46:32 +00:00
github-actions
950f8a79bc Updated github pages site 2022-01-09 22:44:37 +00:00
github-actions
ac37d82a44 Updated github pages site 2022-01-09 16:44:15 +00:00
github-actions
d9b01de007 Updated github pages site 2022-01-09 16:40:45 +00:00
github-actions
1aab98b335 Updated github pages site 2022-01-09 01:59:14 +00:00
github-actions
bc94822ed1 Updated github pages site 2022-01-08 23:24:53 +00:00
github-actions
7b1572883c Updated github pages site 2022-01-08 18:40:32 +00:00
github-actions
3ceeafbd46 Updated github pages site 2022-01-07 21:14:45 +00:00
github-actions
06541db768 Updated github pages site 2022-01-07 16:53:53 +00:00
github-actions
026c7245a2 Updated github pages site 2022-01-07 13:50:39 +00:00
github-actions
833115a76d Updated github pages site 2022-01-06 23:48:36 +00:00
ManDude
2e18cb605a
[runtime] optimize DirectRenderer for multiple textures + optimize sprite renderer (#1054)
* optimize sprite texture flush + update shaders

* fix bugs

* change logic a bit

* crunch PNGs

* hud size fix

* clang

* remove shaders from list

* use really small alpha cut-off point for sprites

* ad `flat` to vertex shaders too

* increase cut-off very slightly

* take *2 into account

* ok for real this should be good enough
2022-01-06 18:47:20 -05:00