Commit graph

100 commits

Author SHA1 Message Date
TehRealSalt
c6a0a41d1a Model tilts
- Add modeltilt variable, for more manual control of the model tilting. By default this just copies standingslope, but doesn't get cleared in the air.
- Shadows & trailing bananas now tilt to match the ground they are on.
- Rocket Sneakers & afterimages now tilt to match the player's current orientation.
2019-05-28 17:21:22 -04:00
TehRealSalt
e1d73d0e35 Tiny optimization 2019-05-26 15:20:16 -04:00
TehRealSalt
ee60e6d76c Minor touchup to colorization code 2019-05-26 07:44:40 -04:00
TehRealSalt
179bb2bd8b Update colorize blending
Didn't notice for a moment that it was back to 2.0-style rainbow blending -- this is horrible but it keeps the brightness of the textures in-tact
2019-05-26 06:22:14 -04:00
TehRealSalt
dca1a05a7f Gradient skincolors for MD2 blend textures 2019-05-26 03:41:18 -04:00
wolfy852
aec9e721dc Generic model terminology 2019-04-12 00:35:35 -05:00
wolfy852
963cbf4671 Merge branch 'next' into md3-vanilla-kart
# Conflicts:
#	src/hardware/r_opengl/r_opengl.c
2019-03-20 19:50:20 -05:00
Sryder
23b8646cbd Should hopefully fix the MD2 crash reported
I wasn't able to replicate it personally, but this should hopefully avoid it crashing where the RPT given pointed out.
2019-01-21 22:48:57 +00:00
fickleheart
6cb8818a46 Fix clobbering error in MD2 texture code 2019-01-18 20:28:31 -06:00
Sal
a17824ac76 Merge branch 'default-md2' into 'next'
Default model for players

See merge request KartKrew/Kart-Public!27
2019-01-15 03:42:19 -05:00
mazmazz
8c793216c9 Merge remote-tracking branch 'mazmazz-kart-public-gl/md3-vanilla-kart' into md3-vanilla-kart 2019-01-10 22:15:05 -05:00
mazmazz
aae6eb945d Merge remote-tracking branch 'kart-public-gl/next' into md3-vanilla-kart 2019-01-10 22:08:37 -05:00
wolfy852
8f1617a4dc Missed a few spots 2019-01-09 15:53:59 -06:00
wolfy852
6943f59e79 If kmd2.dat isn't found in srb2home, search the game's directory for it 2019-01-09 15:38:37 -06:00
Latapostrophe
654901a4b5 use PLAY as default player MD2 if avaiable. 2019-01-08 18:57:10 +01:00
Digiku
bfd6d83a3b Update hw_md2.c -- Redundant AngleFixed operation when modifying anglef 2019-01-08 11:30:04 -05:00
Digiku
22cf53b8ae Update hw_md2.c -- player->frameangle fix 2019-01-08 11:22:33 -05:00
Arthur
2b8f49fd5e Removed gr_voodoocompatibility as even low-power mobile devices do not have this limitation
No longer using byte2float in DrawPolygon -- use the surface color data directly
Vertex Buffer Objects for non-interpolated model frames
Removed some old unused paletted texture stuff
2019-01-07 04:33:22 -05:00
mazmazz
c8fd6f01b9 Ifdef nextFrame handling under USE_MODEL_NEXTFRAME 2019-01-07 04:30:40 -05:00
mazmazz
71aa549a15 Adapt re-enabled DrawMD2 code block for meshes 2019-01-07 04:30:37 -05:00
mazmazz
2685af7331 Hide/add Kart FTransform mirror and anglez behind ifdef 2019-01-07 04:30:36 -05:00
mazmazz
4116ffb5e9 More hw_md2 merge errors; re-enable interpolation code block 2019-01-07 04:27:59 -05:00
mazmazz
a140fe9231 hw_md2 merge errors 2019-01-07 04:24:00 -05:00
mazmazz
43089535d5 GCC compile fixes 2019-01-07 04:23:15 -05:00
Arthur
797023102b Support for 'tinyframes', and lots more optimization 2019-01-07 04:21:44 -05:00
Arthur
e67c1bee5d Common model format, with MD2/MD3 loading 2019-01-07 04:21:43 -05:00
mazmazz
08a788af74 Initialize skinnum for MD2 star colors (fix CLANG error) 2019-01-02 19:23:57 -05:00
Sryder
fa24e37526 Rotate All MD2s to match their standing slopes
Needs to be tested in gravity flip
Also flips the normal on linedef based slopes so that it's facing the correct direction
Also makes it so slopelaunch doesn't always remove the standingslope (going down some slopes would cause it to be constantly unset and reset)
2018-11-26 00:17:34 +00:00
Sryder
9350721d12 Merge branch 'next' of git@git.magicalgirl.moe:STJr/SRB2.git into nextmerge
# Conflicts:
#	src/d_main.c
#	src/d_main.h
#	src/d_netcmd.c
#	src/doomtype.h
#	src/hardware/hw_md2.h
#	src/p_user.c
#	src/r_splats.h
#	src/s_sound.c
#	src/s_sound.h
#	src/screen.c
#	src/sdl/i_system.c
2018-11-10 21:14:53 +00:00
toaster
e92d03ee94 As requested by Jeck:
* gr_md2 on the menu.
* Disable interpolerated model option completely for now.

Also, tweaked the GL menus a bit to suck less, since I was ferreting around in that area.
2018-10-27 21:16:19 +01:00
Monster Iestyn
ef230df2c6 Ensure file is closed whenever MD2 reading errors happen 2018-10-27 18:53:38 +01:00
Monster Iestyn
2eb531cf20 Add MD2_INDENT and MD2_VERSION so we can cleanly check that it's a valid MD2 from magic number/version 2018-10-27 18:53:18 +01:00
TehRealSalt
fc194b63e8 Changed MD2 coloring again
Squares the colors to get nicer looking results (https://www.youtube.com/watch?v=LKnqECcg6Gw), as well as only blending a small chunk of the skincolor to prevent desaturation from the brightest/darkest values.
2018-09-16 23:39:18 -04:00
TehRealSalt
60c5eb372b New color brightness formula
Gets more accurate looking results
2018-09-16 23:28:10 -04:00
toaster
62ae9d5d64 Merge branch 'next' of https://git.magicalgirl.moe/STJr/SRB2.git into sonicitems
# Conflicts:
#	src/f_finale.c
#	src/hardware/hw_md2.c
2018-08-07 21:20:27 +01:00
TehRealSalt
997c1bebe1 Merge branch 'master' into sonicitems 2018-07-08 17:51:44 -04:00
Sryder
23d9d1c26c Fix warning relating to max 0 with an unsigned variable
I've looked at the code above and can't see anything that would try to lower the value below 0 as it's mostly just addition and dividing
2018-07-07 00:34:03 +01:00
Monster Iestyn
71a40a8125 Merge branch 'md2-fopen-error' into 'master'
More helpful error messages

See merge request STJr/SRB2!243
2018-07-06 14:38:59 -04:00
Monster Iestyn
5758beb6b2 Merge branch 'md2-smoother-interpolation' into 'master'
Smoother MD2 interpolation

See merge request STJr/SRB2!224
2018-07-06 14:38:37 -04:00
TehRealSalt
225addd192 Misc tweaks (mostly color related)
- Smoothed out Ruby & Sepia
- Made Sapphire more distinct from Blue
- Made Navy more distinct from Jet
- MD2 colors weight a few colors even more heavily
- Revised ColorOpposite table
- Fix Wanted not updating on hit
- Very minor item odds adjustment for Battle
2018-07-06 14:22:48 -04:00
TehRealSalt
690b960977 Weight certain shades of MD2 blends 2018-07-05 01:13:21 -04:00
TehRealSalt
606c194c02 Banana drag slowdown, diagonal springs scale to map scale instead of object's scale, OGL skincolors average all colors 2018-07-04 19:06:45 -04:00
toaster
df607757df On a hunch, looked it up. Turns out it's a common typo, and that a nickle is actually a type of green woodpecker!! :V 2018-07-02 19:06:05 +01:00
TehRealSalt
2bf7d8eb78 Removed Amber & Jade, added Canary & Lime, changed Blueberry & Mint 2018-07-02 13:54:01 -04:00
toaster
84aa14768f Sorry, Sal! In my defense, you don't need to recompile from scratch for any of this, despite what it may look like, as the skincolour name lists are walled off from the rest of the dehacked lists...
More menu/highlight things:
* Rename "Default" to "Game type", to make clearer what it's doing.
* Tweak race colouring slightly.
* Put a highlight around the level select icon, and make it consistent with voting.
* Allow setting the highlight colour to affect the intermissions.
* Fix bug with gametype colour getting for record attack.

A handful of skincolour things:
* Rename Turqouise to Aqua, because it resembles one of my fav 2.2 colours with that name.
* Fix incomplete Steel Blue -> Steel rename.
* Merge the very similar Blueberry and Sapphire...
* ... so Sapphire can be backported!
* And Ruby too.
2018-07-02 13:20:04 +01:00
TehRealSalt
fcc8c5dce7 Merge branch 'sonicitems' of https://git.magicalgirl.moe/KartKrew/Kart into sonicitems 2018-07-02 03:36:43 -04:00
TehRealSalt
f1b32c6e13 Revamped colors
- The majority of all colors have been tweaked in some capacity to have higher contrast, to either make character highlights or lineart pop out more
- Two new "on trial" colors that may or may not stay: Tangerine, and Dusk. Tangerine is a yellow-orange color to fill the void of yellows. Dusk is a previously removed color that looked freakin' sweet after some cleanup, why wasn't this kept?!
- Turquoise & Frost have been merged. My clean up of Frost ended up looking like a combination of the two.
- Caramel has been removed, Shiny Caramel takes its place.
- Unleashed my inner dream as wanting to have the job of whoever gets to name crayons, and changed all two-word names.
- Todo: reorganize by hue then lum for a nicer invincibility effect, redo and throughly test ColorOpposite table, double check to make sure there aren't any duplicate blendcolors for OGL
2018-07-02 03:30:33 -04:00
TehRealSalt
5d8fbba2a1 Fixes 2018-06-08 00:02:28 -04:00
Steel Titanium
af4d412d36 Include errno if not already included. 2018-05-13 16:04:34 -04:00
Steel Titanium
020853f7aa More helpful error message 2018-05-13 15:35:38 -04:00