summaryrefslogtreecommitdiff
path: root/src/camera.c
AgeCommit message (Collapse)Author
2025-05-30Fix freecam cameraMegaMech
2025-05-23Refactor World::Courses to unique_ptr (#211)MegaMech
* wip course unique ptr * Track unique_ptr : This probably compiles * Finish impl Courses as unique_ptr * Fix error * Fixes * More fixes * Cleanup * Remove old vars --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
2025-05-21this isn't neededSonic Dreamcaster
2025-05-19Fix interpolation camera bugMegaMech
2025-05-17Disabled camera interpolationKiritoDv
2025-02-07Finish Freecam (#186)MegaMech
* Fix freecam rotation smoothing * Configure freecam controller * Fix cont z button and impl freecam on/off events
2025-01-23Game.cpp and World.cpp Cleanup (#159)MegaMech
* Remove CProperties and delete dup Properties from World.h * Improvement * Fix compile * Cleanup * Document gRaceState * wip cleanup * compile * Impl PlayerBombKart * Rename CourseManager_ to CM_ * Finish renames m_ to CM_ * cleanup * Remove extra printf --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
2025-01-07cleanupMegaMech
2024-12-06Put all thwomp code in thomp classMegaMech
2024-10-07Fix linux compilation (#110)coco875
* fix wamr windows normally * fix linux issue * load all wasm in mods folder * minor fix
2024-10-05[modding] Course Mod Support (#104)MegaMech
* Course Manager * Course * Test * Render * That escalated quickly * update * properties * Properties * test * Fix compile * Add World * skycolours * Skybox Colours done * Cleanup * test * Game runs again * update * Game run again * Cup Works * continue * Add Courses * clouds * changes * fixes * update * Fix compile * update * A few changes * More Updates * More refactors * Fixes * Fix ai behaviour * Changes * Fix courses * test course test not working * CUSTOM * TestCourse works kinda * fixes * test course works * cleanup --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
2024-09-11clang format add header (#83)coco875
* clang format add header * Update course_offsets.c * clang format * Update ImguiUI.h * Update actors.c
2024-09-10[enhancement] Freecam (#56)MegaMech
* Create noclip.c * Create noclip.h * Update camera.c * Update render_courses.c * Update ImguiUI.cpp * Freecam Done * Add smoothing to window * Update freecam * focus player * fix * Update freecam.c * Update freecam.h * Update render_courses.c * Update FreecamWindow.cpp * Update Engine.cpp * Move vars --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
2024-08-27Update decomp clang (#67)coco875
* Update menus.c (#634) * Update common_data.yml (#635) * Renames for screenId and other changes (#636) * screenId renames * Rename surface map to collision mesh (#637) * Rename some stack vars (#638) * Fix syntax error (#639) * Rename some stack vars * Update collision.c * Collision Documentation (#640) * Collision related renames * update doxygen (#649) * change bool (#644) Co-authored-by: MegaMech <MegaMech@users.noreply.github.com> * Update (#642) * Delete trig_tables_bss.c (#650) * fix typo audio (#656) * fix typo src actor (#657) Co-authored-by: MegaMech <MegaMech@users.noreply.github.com> * fix typo include (#658) * fix course (#659) * fix typo debug (#660) * fix typo data (#661) * replace number with const (#665) * fix typo buffers (#655) * fix typo buffers * tweak ld file * rename to sMemoryPool * add a warning --------- * fix typo src (#654) * fix typo src * fix non matcing * Update code_80091750.c --------- * fix typo racing (#653) * fix typo racing * get it match * replace G_LINE3D to G_QUAD --------- * fix typo src (#652) * fix ending typo (#651) * Action more info when it doesn't match and fix first diff (#662) * Update linux-compile.yml * fix first-diff * Update first-diff.py --------- * document texture of kart (#663) * document texture of kart * change screenPlayerId to screenId * some documentation around object * Revert "some documentation around object" This reverts commit cbb39078e036bf2a417bed67359e910213acab28. * more rename --------- * Make evaluate_collision_players_palm_tree better (#667) This matches just the same as before, but using those two casts instead of shifts seems more likely to be accurate to the original source code Signed-off-by: Gabriel Ravier <gabravier@gmail.com> * add fedora instruciton (#666) * start documenting animation (#668) * start documenting animation * Update course_data.c * change comment * update libultra asm (#648) * update libultra asm * fix gcc __osThreadTail --------- * Document Vehicles (#641) * start doc collision * fix merge * finish rename fonction related to vehicle * document around waypoint of vehicle * make some modification * make some change and rename one * copy_ to oldPos * doc smoke ferry and train * some rename * fix some renaming * precise index * rename a funciton * simplify waypoint_vehicles * change some name * change some name * rename move_to_point_direction * fix some conflict * Update code_80005FD0.c * Update code_80005FD0.h --------- * Label a save info loop (#645) * save info * more gcc progress * fix a value and do a rename (#669) * update clang and add action (#664) * update clang and add action * try clang on course folder only * forget two file * Update course_displaylists.inc.c * forget few other file * Update course_vertices.inc.c * format all code while get it match * second pass * format other dir * disable clang format on bad ido code * fix some tabulation * revert format on tool dir * Update clang-format.yml * ignore gbi.h * add some read me instruction * fix error * format and fixing error * Update README.md --------- * Update linkonly_generator.py (#670) * format more file * update * fix compilation issue * remove course_metadata folder * re add course metadata folder * fix banshee bordwalk crash * fix windows eurk * Update CMakeLists.txt ---------
2024-07-26Renames & seg 3 & 5 texture fixes (#19)MegaMech
* Remove tools/torch * Auto compile torch and extract * Re-implement soh's implementation of lus implementation of an array * Fix static actors in mr * Update * Updated torch * Updated lus * uncomment * Fix collision * Renames * More renaming * Collision Renames * Update collision.c * Collision Documentation (#640) * Collision related renames * Update * update lus * Bug fixes * remove tabs * fixes * fixes * Fix kart textures * Networking * net * Add networking * Update * Cleanup * Fix balloon rendering * Fix lakitu and red shell * fixes * Implement new random system --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
2024-05-02FixesMegaMech
2024-05-01WIP CompilationKiritoDv
2024-04-20Header cleanup and some renames (#616)MegaMech
* Place macros for addr conversions * dl renames * fixes * changes ok * Delete types.h * move enums
2024-01-20place surface type const and unassemble flag in vtx and document effects (#553)coco875
* place surface type const and unassemble flag in vtx
2024-01-17document player and cpu (#534)coco875
* document player and cpu * cpu_descisions_branch_item to cpu_decisions_branch_item
2024-01-06some const placement and one rename (#529)coco875
* some const placement and one rename
2024-01-02Finish bss (#527)coco875
* Finish importing bss
2023-12-30Fix Array D_80165230 Fake Match Usage (#521)MegaMech
* Fix arr
2023-12-30Add bss render player and spawn player (#518)coco875
* finish render_player * finish normally spawn_player bss
2023-12-25add bss variable to camera.c (#514)coco875
* add bss variable to camera.c * Rename bss_8001C4D0.s to bss_80164AB0.s
2023-12-25some rename in code_8006e9c0 (#512)coco875
* some basic function renames * Renaming player hud related variables.
2023-12-24Rename code_8001F980 to render_player and code_800B45E0 to save (#507)coco875
* Update and rename code_8001F980.c to render_player.c * Rename code_8001F980.h to render_player.h * rename import file to render_player * Update and rename code_80004740.c to save.c * Rename code_80004740.h to save.h
2023-11-07Matches in code_80005D0 (#487)MegaMech
* Variety of matches
2023-10-28match func_8000F628 and add NUM_PLAYERS define (#479)MegaMech
* Match two funcs and add NUM_PLAYERS define
2023-10-19some define comment and replace number by const (#469)coco875
2023-10-18Couple matches (#466)Tyler McGavran
Removed some things from variables.h and functions.h Added headers for some src/data files
2023-10-13 rename in code_8001F980.c (#456)coco875
* some renames * Update code_8001F980.c
2023-10-09Rename wayPoint to waypoint (#448)MegaMech
* Rename wayPoint to waypoint * other
2023-10-07Various Naming (#445)coco875
* Mass renames
2023-09-27Function renaming for math_utils and math_utils_2 (#440)coco875
* Renaming functions in math_utils
2023-09-22cleaning camera, kart_dma, menu, math_util (#436)coco875
* cleaning camera.h * cleaning math_utils.h and remove space * cleaning kart_dma * cleaning menu.h
2023-09-20Header & General Cleanup (#431)coco875
* Header cleanup
2023-09-19some renaming (#419)coco875
* Renames
2023-09-08Match bss for code_800029B0 and clean headers (#406)MegaMech
* Match bss for code_800029B0 and clean headers * Fix dvdl and a warning
2023-08-22Matched some funcs (#378)MegaMech
* Matched code
2023-08-20Update some header files (#373)Tyler McGavran
Also moved a lot of extern variable declarations into the their appropriate header file(s) Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-08-15Bumped Total Progress Script by 1.04% (#371)MegaMech
* Matched camera.c
2023-08-09Matched code_80091440.c and named gDemoMode variable (#358)MegaMech
* matched code_80091440.c * Named gDemoMode * Remove asm for matching func * Matched and namings for random_u16_credits func in code_80280650.c
2023-08-04very cool debug display list (#348)tomas
* added a very cool debug display list ^^ (prints variables to screen) * Decompiled various functions
2023-06-28Cleaning Up Warnings (#317)MegaMech
* Update mk64 makefile to reflect sm64 makefile * print func matches and fix some warnings
2023-03-29Massive data relocation (#295)Tyler McGavran
Mostly relocating rodata from data/* files to the appropriate asm/nonmatching/* files, although there is some plain data relocating to be found in here too. Big change to note is the addition of the code_802AAA70.c file, split from memory.c. Based on some padding in the ro/data for memory it seems clear that a split is needed, although it is not clear that exact spot chosen for the split is correct. Still, it gets the file padding for the ro/data and text segments correct so it can't be too wrong. Also included is an update to the asm_processor tool to support the .hword directive. I made a PR to the main repo of that project with an identical change and it was accepted. Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2022-11-29Yet more assorted matches (#278)Tyler McGavran
* Yet more assorted matches Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2022-11-21Matches in 80281fa0, render_courses, and create defines for sound cues. (#276)MegaMech
* Matches, add permute, and add notice to quick runners * 80281fa0 matches, render_courses, and create defines for audio * Renamed 80281fa0.h, func naming, and deleted data_121DA0 * Added clang format * Matched load_surface_map * Match func in memory.c
2022-11-01Assorted, unrelated matches (#267)Tyler McGavran
* Assorted matches Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2022-09-30A bunch of unrelated, assorted changes (#263)Tyler McGavran
Couple matches functions, an update to a struct, a bunch of header files adjustments, and some mips_to_c regenerations Signed-off-by: Taggerung <tyler.taggerung@gmail.com>