Ian Curtis
eb798ed15e
Star wars is the only game to pass unsigned fixed shaded values (per vertex brightness) to the renderer. Originally we thought that the specular flag would turn on unsigned values since it's the only game to set specular with these polys, but this logic turned out to be incorrect. The JTAG interface seems to config the GPU to turn on this functionality. (Harry Tuttle)
2017-10-05 19:15:00 +00:00
Bart Trzynadlowski
3ca37089ca
Get rid of unused variable warning
2017-09-27 13:20:09 +00:00
Bart Trzynadlowski
1eac755bc3
Fix tiny memory leak
2017-09-25 00:05:10 +00:00
Ian Curtis
0376f74192
work around for visual studio bug
2017-09-24 22:36:12 +00:00
Ian Curtis
7590f50350
cannot specify explicit initializer for arrays - fix for visual studio
2017-09-24 22:03:31 +00:00
Bart Trzynadlowski
55bb02d4e5
- New work-in-progress frame timing code (disabled by default, compile with NEW_FRAME_TIMING defined to activate it)
...
- New JTAG emulation, moved into its own class, CJTAG
- Removed game-specific sun clamp hacks from CNew3D (JTAG and Real3D emulation will call the appropriate method to configure this at run-time)
- Removed JTAG from Real3D save state data and reused some of that space for new state variables having to do with the internal JTAG-based config as well as new frame timing state variables
2017-09-24 20:52:48 +00:00
Bart Trzynadlowski
f04a285727
DMA and register space access for Real3D have been unified and CReal3D::ReadRegister() returns little endian data now that the PowerPC handler byte-swaps back, to be consistent with how DMA registers work.
2017-08-29 01:28:21 +00:00
Bart Trzynadlowski
507990a350
Fixed up memory region dumping code to use the new Util::FlipEndian functions
2017-08-19 19:27:58 +00:00
Ian Curtis
063b7d3ea4
Remove debug code
2017-08-09 21:40:48 +00:00
Ian Curtis
5709ee2659
Sometime ago I managed to work out that specular on the model3 is not real specular, and really is just an extension of diffuse lighting. But attempts were derailed by corner cases and the fact we were not handling the normals correctly. Anyway Harry managed to successfully come up with an algorithm, and coefficients that give an almost perfect match to specular on the model3, based soley on observations from video footage! He also worked out that the lighting on hardware 1.5 onwards appears to be unclamped (ie greater than 1). This quite radically changes the brightness of some of the games, but much better matches the original hardware.
2017-08-09 16:56:56 +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
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
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
f34e25dfc7
Massive internal change: removed CConfig object and replaced it with a hierarchical config object system (Util::Config::Node). Games are now defined in an XML file. Hopefully I didn't break too many things :/
2017-03-27 03:19:15 +00:00
Ian Curtis
ff624afb4d
The mipmap data in some games seems to being sent behind the base textures, and when the base textures are bound and created the mipmap chain is not yet valid in memory. To fix this, we invalidate the base textures, when the mipmap chain is updated.
2017-03-25 00:06:24 +00:00
Ian Curtis
17f7c2d9f6
use 32bit types
2017-03-23 17:18:33 +00:00
Bart Trzynadlowski
61159c07f8
Added 8- and 16-bit tilegen VRAM access handlers to fix missing columns in Star Wars Trilogy tilemaps. Thanks to Spindizzi for initial confirmation that this was the problem.
2017-03-23 04:22:25 +00:00
Ian Curtis
519cce34f5
remove debug code
2017-03-19 09:54:51 +00:00
Ian Curtis
9780f333b4
The model3 has this weird issue where the 2d and 3d planes are misaligned by 2 pixels. Originally I made a quick hack that shifted subviewports 2 pixels. But apparently that wasn't enough, as the issue effects everything. Thanks to HarryTuttle for pointing this out, and making a patch :)
2017-03-19 01:33:45 +00:00
Ian Curtis
2ddc8a30e0
Clear queued texture uploads after processing them. Saves re-uploading the same textures whilst paused
2016-11-20 17:02:59 +00:00
Ian Curtis
10dd530cde
More accurate 2D colours. White should map to 255 not 248
2016-11-15 12:44:47 +00:00
Bart Trzynadlowski
de043355bc
Marked offset of code in CROM for scudp
2016-06-24 01:01:30 +00:00
Bart Trzynadlowski
b0911afd1f
Added drive board and lamp raw outputs (submitted by SailorSat)
2016-06-07 01:51:16 +00:00
Ian Curtis
8979246642
remove bad rom patches
2016-05-26 16:21:42 +00:00
Bart Trzynadlowski
8ba8d7290e
Hooked up Sega Bass Fishing / Get Bass controls
2016-05-26 04:13:22 +00:00
Bart Trzynadlowski
8c082abab9
Added some IRQ-related code (commented out for now) from MAME findings. May incorporate in the future when investigating IRQs and timing again.
2016-05-10 03:08:03 +00:00
Bart Trzynadlowski
a9095e6c8e
Added a register read handler for tilegen (although nothing seems to benefit from it)
2016-05-08 20:30:45 +00:00
Bart Trzynadlowski
9249eaa29f
Fixed logic for clearing bottom layer. Added new functions to 2D renderer interface. Avoid drawing top and bottom surfaces when no layers are present there. Added some comments to tile
2016-05-08 19:27:08 +00:00
Ian Curtis
6d1aa4d527
fix compilation
2016-05-03 18:38:06 +00:00
Bart Trzynadlowski
fa65542d76
Added support for A1RGB5 to BMP file writer and added a (commented-out) example of how to use it to dump texture memory in ~CReal3D()
2016-05-03 00:28:56 +00:00
Bart Trzynadlowski
112777385e
Added a debug option to load and render a single frame of graphics state from a save state file. Only available if compiled with DEBUG defined. Invoked using: -gfx-state=<file> on command line.
2016-04-24 17:06:14 +00:00
Bart Trzynadlowski
9a2bb78add
Hooked up Magical Truck Adventure controls
2016-04-13 03:28:04 +00:00
Ian Curtis
d2563c035f
you were right Bart :) (Fixes broken sound in last build)
2016-04-11 15:16:35 +00:00
Ian Curtis
499ac0e1c9
Don't use variable sized variables across platforms, unless needed
2016-04-11 09:00:20 +00:00
Ian Curtis
6d313fcf9e
Fix - cannot specify explicit initializer for arrays
2016-04-11 08:38:59 +00:00
Bart Trzynadlowski
94c66eea7b
Figured out Step 1.0 VROM texture uploads. Fixes missing textures in VF3 and VF3TB.
2016-04-11 03:48:36 +00:00
Bart Trzynadlowski
2524f2e837
Fixed Magical Truck Adventure by emulating VROM texture ports as a FIFO. Now, VF3 crashes on Akira's stage (and probably the other stages with texture glitches). Other games may be affected, too (not thoroughly tested yet).
2016-04-11 00:19:10 +00:00
Bart Trzynadlowski
775256118d
Fixed Magical Truck Adventure country check (accidentally removed a line in previous commit).
2016-04-10 23:57:55 +00:00
Bart Trzynadlowski
7ade3a6abb
Magical Truck Adventure expects 0x03 to be returned from MIDI control port (thanks, Ville). Game now boots but crashes because VROM texture uploads clobber memory for some reason.
2016-04-10 21:47:07 +00:00
Bart Trzynadlowski
198a469ff7
Created IEmulator interface, renamed CBus to IBus and CPCIDevice to IPCIDevice. Frames now rendered when emulator paused.
2016-04-10 03:42:41 +00:00
Bart Trzynadlowski
a202d8adc3
Do not print extra hardware message when there is none
2016-04-04 03:42:55 +00:00
Bart Trzynadlowski
d8aefa421d
8-bit texture upload byte selection (thanks to Ville; but not tested yet); code cleanup
2016-04-04 03:42:26 +00:00
Bart Trzynadlowski
6e5c301de8
Encryption device emulation (thanks to MAME), fixed warnings in Model3.cpp, added a string formatter helper, and updated Win32 GCC Makefile.
2016-04-02 21:50:40 +00:00
Bart Trzynadlowski
c0f679479a
Added virtual destructor to CDSB
2016-04-02 21:35:06 +00:00
Ian Curtis
93f6b01e0b
Update project to vs 2013. Clean compile warnings
2016-03-22 12:30:23 +00:00
Ian Curtis
5b3eea25fb
fix basic compile errors (with vs)
2016-03-22 11:34:32 +00:00
Bart Trzynadlowski
47c54d100b
Updated to support new IRender3D interface and added FrameTimings object.
2016-03-21 23:25:29 +00:00
Bart Trzynadlowski
34301e97e1
Adding new 3D engine by Ian Curtis. Old engine moved to Graphics/Legacy3D/.
2016-03-21 04:10:14 +00:00
Bart Trzynadlowski
8f87bb1698
53c810: do not increment DSP when executing interrupt instruction. Fixes invalid polygons in Virtua Fighter 3. Thanks to Ian Curtis for discovering that the polygons were incorrectly-copied garbage.
2016-02-23 05:28:17 +00:00