* implemented a form of slope fix
* fixed the slope fix to not allow for hyper cheese
* implemented gheskett's suggestions
* Added space between comment and define
Co-authored-by: Gregory Heskett <gheskett@gmail.com>
---------
Co-authored-by: dnvic <business@dnvic.com>
Co-authored-by: Gregory Heskett <gheskett@gmail.com>
If a `Go On A Ghost Hunt` Boo is killed while it has a gravity of -1 (at the bottom of its oscillation), and does not hit a wall, it will keep the same negative gravity and continue moving until the textbox is closed. Boo Y speed isn't capped in this scenario, so the constant -1 gravity leads to the boo moving upwards at an increasing rate.
This leads to issues in `boo_act_4`. The distance eventually increases to a point where the boo object is too far to be returned in `cur_obj_nearest_object_with_behavior`.
This can have 2 buggy effects:
- the wrong dialog box being brought up if the textbox is delayed (easiest to do by hanging on a ledge).
- the puzzle solved jingle being played incorrectly if you wait in the textbox long enough
This doesn't actually cause issues with King Boo, it just brings up the wrong text box. King Boo spawning is unaffected by this bug.
The fix is to stop the boo after the death animation has finished playing, stopping the boo from accelerating upwards. I don't believe this to cause any other issues (the boo is already dead after all!)
Thanks to Kyman for finding this bug.
* Fixed one or two bugs, cleaned up a few things, put every non vanilla styled change into POLISHED_TRANSITIONS
And renamed set_and_reset_transition_fade_timer
* Undid the renaming of set_and_reset_transition_fade_timer as suggested
* add displaylist macros
* implement displaylist macro in memory.c
* API update
* implement displaylist macro on all 'hot' code paths
* Remove the macro entirely
* rename tmpDL
* remove the other two macros
* catch the last 2 missing statements
---------
Co-authored-by: someone2639 <someone2639@gmail.com>
* math util cleanup
* clean up min/max 3 and also distance and angle functions
* improve pipelining and make macros safe
* macros safer and cleaned approaches
* fix build
* made sure puppycam builds (and fixed unused var warnings)
* added 32 bit mins and maxs
* removed extraneous mat stack index decrement in geo_process_camera (#708)
* Fixed typo in FCR enums (#707)
* v2.1.1
---------
Co-authored-by: Matt Pharoah <mtpharoah@gmail.com>
* Cannon render mode fix
Slipped past me.
* Removed sharp transitions
I like the idea but it really isn´t vanilla and causes issues.
Might be worth revisiting but for now lets just get rid of it.
* fixes
Missing render mode set for transitions, reduced display list alloc for cannon
tested more this time
* Added functions to access and manipulate the fcr31 register
* Improved WiiVC emulator check to avoid false positives
* Updated comments
* Moved float.h to include directory
* Track whether the RCP hang timer has started to prevent double setting
* removed single letter struct field
* remove debug lines
---------
Co-authored-by: someone2639 <someone2639@gmail.com>
* Added config option for previewable blue coins
* Clean up previewable blue coin implementation to only be a couple lines
---------
Co-authored-by: Colin Tong <tongcolin@live.ca>
* Culling fix
Precison of half fov horizontal being equal to or above 2 leads to many issues. using 1.5 would break rt64 and other emulators with ultra widescreen.
Vertical culling will be disabled by default until 3.0
* Improved emu checks and naming
* Comment changes
* Small typo fix
* Start work on envmap rotation stuff
* n64graphic envmap rotation working
* Add comment to rotation function
* Fix DLs of non 32x32 env maps, fix envmap rotation
* fix metal flying vanish cap
* fix metal mario's medium poly butt
* new asset version for flipped env maps
* added missing env textures to extract script
* restore asset_needs_update
* Skip asset_needs_update calls if local version matches new version
* removed the goddard textures from envmap rotation
---------
Co-authored-by: mineqwerty <mineqwerty25@gmail.com>
Co-authored-by: thecozies <79979276+thecozies@users.noreply.github.com>
* Add functional changes to inertia to support only specific directions specified in the config (needs cleanup)
* Reduce number of inertia defines
* Update Platform Displacement 2 define description
* comment adjustments
* Improved transitions
Code quality improvements.
Shape transitions now all scale down to 0 instead of 16 (mario and bowser).
Ease in was added which leads to far smoother transitions.
HD_TRANSITIONS define added, makes use of the tex edge render mode to deliver smooth transition textures.
lerpf was added to math utils.
* Cleaner textures, rounding only during vertex creation
* Another attempt
* cozies naming suggestion
* Improvements and suggestions
SHARP_TRANSITION_TEXTURES is now off by default (I still think the textures for it could be improved).
lerpf, to_smoothstop, smoothstart, smoothstop and smoothstep have all been added.
make_vertex has been inlined.
make_simple_vertex has been added (colourless vertex).
Transition colors (and canon colors) are now defined using primative colour instead of setting individual vertices color´s.
Transition´s now use smoothstep (ease-in-out) instead of ease out only.
Naming has been improved.
* Proper function inling and removal of GBI_FLOATS variant of make_vertex and make_simple_vertex
* More requested changes
* Accidental final new line removal fixed
* Comment about pop in fix.
* Comment fix
The issue with writing comments for stuff is when you want to change code later on.