Commit graph

123 commits

Author SHA1 Message Date
z2442
d90bac8ef5 clean up narrowing errors 2019-03-23 20:24:40 -04:00
Wally
44b590f464 More playing around with C11 styled stuff
Tidied up ME code
2019-03-23 08:59:56 +09:00
Wally
ba29423574 Converted BaseRenderer to C11 styled variables and did some type safety checking 2019-03-22 09:28:28 +09:00
Ben Slater
c562b76641 *Clean build from StrmnNrmns repo 2019-02-27 17:04:51 +11:00
Wally
8bc2012f0e Fix 64 bit support from StrmnNrmns Bazel branch 2019-02-04 13:52:39 +11:00
Ben Slater
7233a55c83 Fixed macOS build - Just linker issues remain. Requirements will be listed later
Removed third_party folder as it's all redundant
2019-01-29 11:21:41 +11:00
mrbenslater
2e6cf17baa Move more debug stuff out of Release 2019-01-21 19:58:47 +11:00
CornN64
d4adf51a6b [!] Fix menu screens in 40Winks
[!] Made AudioHLEProcessor addresses and audio buffer accesses safer
2014-02-09 19:34:42 +01:00
salvy
804094c1af [!] Fixed W32 build, also a couple of warnings
[!] Handle better platform differences with sqrtf, roundf etc
2013-11-13 00:47:50 -08:00
CornN64
e16d9c8ba9 [!] Fixed fog issue in some games
[!] Small optimization for CBFD(C++ TnL)
2013-10-15 17:20:37 +02:00
CornN64
bfd94b655c [!] Some WIP for vertex fog on PSP (functions on many games that uses the standard TnL. It uses a second pass to blend in the fog)
[-] Reverted some changes from previous commit since it broke texturing in some games and CBFD lights.
2013-09-21 18:31:48 +02:00
salvy
59052f047a [!} Optimization to Conker's light (PC/OSX)
[!] Aligned v2, we can copy 2d vectors more efficiently
2013-09-19 23:28:24 -07:00
CornN64
47a1d7c67a [!] more optimization of VFPU triangle cull test
[-] removed VFPU code for dot in V3 and V4
2013-08-26 20:53:47 +02:00
CornN64
0a9a6bb2ce [!] Some tidy and small optimizations in VFPU ASM TnL
[+] Added TnL VFPU ASM for Zelda MM point lighting
[+] Added calculations in VFPU ASM for back/front culling triangles
2013-08-24 20:34:02 +02:00
salvy
9e88e012b5 [!] Always set SkipIfZero when LigtCol is set
[!] Refactored MV_LIGHT
[!] Removed invalid light direction check (This was for the PSP, I don't think is required)
2013-08-19 08:18:22 +01:00
CornN64
11703ec45a [!] Optimized GBI2/MM point light calculations and light struct for CBFD and MM 2013-08-19 08:18:22 +01:00
salvy
189493fb59 [!] Moved Conker's coord mod to tnl struct
[!] Changed abit how Vtx Conker len and n are calculated
[~] Some minor clean ups
2013-08-19 08:18:22 +01:00
salvy
be0f32311c [!] Implemented proper lightning for Majora's Mask
[!] Improved N64Light struct, it can now handle GBI2 (thnx corn for helping!)
[!] Fixed compiled error in SetNewVertexInfoPD, and some clean ups
2013-08-19 08:18:12 +01:00
CornN64
a0ff7c8160 [!] Further optimized lighting calculations and branches in conker TnL.
[!] LightVerts() now returns only R,G & B (V3 and no A)
[!] Lights color and direction now uses V3
[!] Fixed RDP_MoveMemLight() to proper light direction.
2013-08-01 18:39:16 +02:00
salvy
d10ff1ca11 [+] Implemented lightning for Conker rendering (PC/OSX only for now) (Corn & Salvy)
[!] PSP VFPU ASM compatible with new light struct as well possible to interface with Conker's new TnL.  (Corn)
[!] Slight tidy in audio Alist processing loop. (Corn)
2013-07-31 13:56:36 -07:00
salvy
55bbf0c4a1 [!] Fixed light flickering in Conker (W32/OSX)
[!} Cleaned up SetNewVertexInfoPD
2013-07-16 22:58:33 -07:00
Paul Holden
f498524c01 [!] Fixed sky in DK64 2013-07-12 21:48:50 +01:00
salvy
2c753c4949 [~] Fixed clamping issue in MRC 2013-06-26 21:42:02 +01:00
Paul Holden
0c9e241132 [~] Consistent #endif comments 2013-06-04 22:02:30 +01:00
strmnnrmn
7f9cad2892 [~] The struct packing headers shouldn't be needed. They only did anything on W32, and the struct are defined in a way that they're packed correctly anyway.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1682 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-18 16:04:11 +00:00
strmnnrmn
43d924db7e [~] Remove the hacky pspgu.h files for W32/OSX/Linux and just define this stuff directly in SysGL/GL.h (slightly less hacky).
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1681 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-18 16:04:05 +00:00
strmnnrmn
3a54224d9e [~] Ensure num_vertices is non-zero
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1663 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-06 18:19:38 +00:00
salvy
581072f5e2 [!] Fixed MSVC warnings
[!] Optimization for Sprite2D, only update the counter individually when next command doesn't match
[!] Fixed and optimized guNormalize_Rugrats (Still can't find any game that uses this errg)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1599 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-18 22:05:31 +00:00
salvy
0801ac4ed2 [!] Moved W32 audio thread back to main thread (was causing various issues, it would be nice to get it working though)
[!] Fixed issue in pixel shader that was affecting my video card (Thx StrmnNrmn)
[!] Copy n64.psh to build dir (W32)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1543 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-08 01:43:40 +00:00
strmnnrmn
fcc2a59778 [+] Lots of pixel shader iteration. Mostly 'perfect' now, still some problems with bilinear filtering on Mario Kart, California Speed
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1533 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-07 11:29:20 +00:00
strmnnrmn
6a10ac65f5 [*] Pass integer texture coords through to TexRect and TexRectFlip. For OpenGL, the shader now also passes the texture offset/scale as integer args
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1531 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-07 11:29:02 +00:00
strmnnrmn
b359dc1c1f [~] Remove mAlphaThreshold - this is just the blend colour alpha
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1527 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-07 11:28:31 +00:00
strmnnrmn
df8cb86d4d [~] Use stdint.h for all types.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1520 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-05 09:23:02 +00:00
strmnnrmn
ae6a33fb87 [~] Don't bother storing mTexShift - just look it up using mActiveTile index as needed
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1515 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-05 09:17:13 +00:00
strmnnrmn
8b1e304f22 [!] Fix texrect on Super Smash Bros
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1510 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-04 10:49:58 +00:00
strmnnrmn
9c83d36e2e [~] Keep track of which tile is bound to slot 0/1
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1509 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-04 10:49:51 +00:00
strmnnrmn
82486a7f25 [!] Fix Zelda spinny N intro - T1 textures were being loaded with dimensions of 32x0, 1x32 etc
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1507 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-04 10:49:37 +00:00
salvy
f808f72cee [~} More clean ups
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1491 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-31 04:52:43 +00:00
strmnnrmn
be4b36f0b4 [~] Move FillColour and BlendColour to BaseRenderer. Going to use these in the dLDebugger
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1488 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 15:11:34 +00:00
strmnnrmn
53891779bf [~] Rename MAX_VERTICES to kMaxIndices. Rename m_swIndexBuffer to mIndexBuffer.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1477 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 10:20:49 +00:00
strmnnrmn
6776cc0d9e [!] Fix a broken assert in AddTris
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1476 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 10:20:42 +00:00
strmnnrmn
ed1fdd8f5e [~] Change some construction init to assignment init (functionally equivalent, but allows for a bit more whitespace around the variable name, which improves readability)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1475 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 10:20:36 +00:00
strmnnrmn
654f79cad9 [~] Rename MAX_VERTS to kMaxN64Vertices
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1474 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 10:20:29 +00:00
strmnnrmn
2b84834976 [~] Rename NUM_N64_TEXTURES to kNumBoundTextures
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1473 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 10:20:23 +00:00
salvy
0f60eae933 [!] Started WIP to get rendering working from GL renderer (some textures show up now, ex texrect!)
[!] Compiled project as console app (needed for glfw) [WIP, ALOT things got broken! and huge clean up is needed, will fix them eventually)
Note: glew and glfw are now needed to build W32.

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1443 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-26 21:58:22 +00:00
salvy
c8ac6af830 [!] Fixes to to get OSX (GL rendering) to work under W32
Note: libpng15 is now needed to compile W32 build

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1442 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-26 16:18:21 +00:00
strmnnrmn
01e95dc42e [~] Ugh, fix bad unstash
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1388 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-24 12:52:46 +00:00
strmnnrmn
6dd19cd062 [+] Get Texel1 working on OSX
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1382 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-24 12:51:57 +00:00
strmnnrmn
5d744e459c [+] Implement the tile shift_s/shift_t on OSX. Should be possible to get this working on PSP too, but it doesn't always make things look better without Texel1 too
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1380 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-24 12:51:40 +00:00
strmnnrmn
ccd4f66711 [~] Keep track of prim lod fraction
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1376 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-24 12:51:12 +00:00