Commit graph

803 commits

Author SHA1 Message Date
Ian Curtis 45741b24d2 rewrite scroll fog logic 2017-05-06 16:47:31 +00:00
Ian Curtis 80004b0dad Remove debug code 2017-04-25 00:31:39 +00:00
Ian Curtis 7694e4eb0c minor culling node optimisations 2017-04-25 00:10:55 +00:00
Ian Curtis ff936c588b don't need cast, conversion is implicit 2017-04-20 19:46:40 +00:00
Ian Curtis 912bb0e7cf better state handling 2017-04-20 19:43:41 +00:00
Ian Curtis 9b226ed478 parse out some culling node values 2017-04-17 10:40:07 +00:00
Ian Curtis 3c78571615 There are 2 bits in the polyheader labelled discard. When both are set ie in sega rally, the polygons are totally discarded. Scud seems to set bit 1 which seems halve the opacity. 2017-04-15 19:00:46 +00:00
Ian Curtis 21836c088c The real3d has a flag that allows the hw to skip polygons so that they aren't rendered. Sega rally2 uses this for the dust effects. Triangles or quads that have this flag are junk, and look like random corruption if you try to draw them. We assumed polys that shared vertices with these bad polygons were also bad. It turns out the last few shared vertices in these polys were in fact valid, and thus the entire quad/triangle strip should be drawn and not discarded. 2017-04-14 23:41:11 +00:00
Bart Trzynadlowski a2fcbf8a3a Linux Makefile fixed by Sergio Benjamin 2017-04-14 17:09:33 +00:00
Ian Curtis fc50bdee98 light parameters must be clamped (HarryTuttle) 2017-04-14 00:08:17 +00:00
Ian Curtis 391aafd4c1 Virtua fighter has a few massive polys that shouldn't be visible. It looks like these polys have a bad matrix, but the node distances are all zero. This means the bounding box that encapsulates them is of size zero. Skipping over these entirely seems to fix the issue. 2017-04-12 15:47:57 +00:00
Bart Trzynadlowski 4a70d5ec9a Updated Util::Config::Node unit tests with multiple leaf node test 2017-04-12 02:41:02 +00:00
Ian Curtis e462fbeda0 remove unused variable 2017-04-11 11:11:45 +00:00
Bart Trzynadlowski 76817790d4 Extended -gfx-state to produce culling node analysis 2017-04-11 07:03:47 +00:00
Bart Trzynadlowski 9dd2b24729 Fixed behavior of Util::Config::Node when adding nested nodes (only leaf level can be duplicated; e.g., foo/bar and foo/bar will create one foo with two bar children, rather than two foo each with one bar). 2017-04-11 07:03:10 +00:00
Bart Trzynadlowski 901b8c3fa4 Spindizzi's SCSP DSP fix for the VF3TB cave stage 2017-04-09 15:27:43 +00:00
Bart Trzynadlowski 9989eae8aa Hooked up the command line help options (thanks, Spindizzi!) and updated copyright info 2017-04-09 15:08:02 +00:00
Bart Trzynadlowski 53fcb57ec5 Removed unnecessary patches from lemans24 2017-04-09 00:10:38 +00:00
Ian Curtis 06cb5708e3 add missing include 2017-04-08 21:01:11 +00:00
Bart Trzynadlowski a649a0d36b Removed patches from source code and moved them into game XML file. Created ROMSet.cpp. Print a more descriptive error when game XML file fails to load. 2017-04-08 18:30:29 +00:00
Bart Trzynadlowski 86ffda66d8 Updated help text to include -game-xml-file option 2017-04-08 18:28:49 +00:00
Bart Trzynadlowski c8053e3178 Moved ROM patches into Games.xml and added patches to swtrilgy to make test emu work and to eca/ecau to pass the network check 2017-04-08 18:16:26 +00:00
Ian Curtis 788a480ff3 add missing include 2017-04-07 15:47:36 +00:00
Bart Trzynadlowski 006260be47 Harry Tuttle's fixes to fishing controls: invert fishing rod y and fishing stick y axis values so setting a negative axis is not necessary. Also changed reel to an analog input (similar to a pedal), whose neutral position is 0. 2017-04-07 04:42:04 +00:00
Bart Trzynadlowski 4ca7d5ef0e Harry Tuttle's change to Harley gear shift to use a single bit instead of two (no detectable difference in behavior, though) 2017-04-07 04:30:27 +00:00
Bart Trzynadlowski 205282a758 Removed unused file: Game.cpp 2017-04-06 03:23:32 +00:00
Bart Trzynadlowski 25f22724d7 Fixed lamachin title -- thanks Jiterdomer! 2017-04-05 20:57:40 +00:00
Ian Curtis 101e43213e cosmetic 2017-04-05 19:32:01 +00:00
Ian Curtis edfb521a9b Daytona seems to use this completely undocumented feature of the real3d pro-1000, the ability to invert texture colours. This patch fixes the colours on the cars, and the signs which should flash by alternating their colours. 2017-04-05 17:57:38 +00:00
Bart Trzynadlowski cc32e0bf8e Removed last vestiges of CINIFile from input system and removed Games.cpp, INIFile.cpp, and ROMLoad.cpp 2017-04-05 16:19:08 +00:00
Bart Trzynadlowski df283d9aa3 Using Game::INPUT_* instead of obsolete GAME_INPUT_* 2017-04-05 16:17:57 +00:00
Bart Trzynadlowski c013eab711 Changes by Harry Tuttle: game list more accurately reflects MAME's, added a root level XML "games" node, print ROM version along with title 2017-04-05 05:35:45 +00:00
Bart Trzynadlowski f6707ecfba Fixed graphics state analyzer 2017-04-04 23:28:06 +00:00
Bart Trzynadlowski c4bf565a1a Added cstring 2017-04-04 23:27:39 +00:00
Bart Trzynadlowski ad6b4b0e71 Added remaining games largely thanks to the efforts of the mysterious '阳阳' 2017-04-04 05:27:37 +00:00
Ian Curtis 4ebcf5865a more whitespace .. 2017-04-03 12:02:49 +00:00
Ian Curtis a141635be6 white space .. 2017-04-03 12:01:37 +00:00
Ian Curtis c617a453fa Cache dereferenced values. Cuts loading time from 15 to 5 seconds in debug mode :) 2017-04-03 12:00:25 +00:00
Bart Trzynadlowski 5aafbbf936 Included cstring for memcpy 2017-04-03 05:34:23 +00:00
Bart Trzynadlowski 2aa9dc7967 Rewrote large parts of ROM loading code to more gracefully handle merged sets where overwritten parent ROMs are not present. Better handling of multiple zip files. Optimized ROM loading when stride and chunk size are equal and got rid of safety checks that I don't believe are necessary any longer. 2017-04-03 01:03:38 +00:00
Ian Curtis f0e00c5dc7 Rewrite the spot light code, and implement the missing fog logic. (HarryTuttle) 2017-04-02 21:03:59 +00:00
Bart Trzynadlowski 07660be0df Fixed missing file detection (set_difference requires inputs sorted by desired key) and improved error reporting 2017-04-01 05:08:50 +00:00
Bart Trzynadlowski e04c368114 Made scuda a child set of scud 2017-03-31 05:32:16 +00:00
Bart Trzynadlowski 68ebf35aac Removed TODO comment 2017-03-31 05:23:34 +00:00
Bart Trzynadlowski b0957e6459 Smarter game selection when a zip file contains multiple games (prefer child when parent is also present in zip) 2017-03-31 05:23:04 +00:00
Bart Trzynadlowski e40d268214 Warn about parent ROM sets having parent defined (not allowed) 2017-03-31 04:44:45 +00:00
Bart Trzynadlowski 47ce132292 Print missing files from games 2017-03-31 04:27:09 +00:00
Bart Trzynadlowski fd0f7ec6d1 Support loading of parent ROM sets (e.g., scudp will load scud) 2017-03-30 06:17:34 +00:00
Ian Curtis cd1a551e4b compile fixes 2017-03-28 22:28:46 +00:00
Ian Curtis 1a766843b5 MSYS2 compile fix (HarryTuttle) 2017-03-28 21:02:14 +00:00