Sonic and Sega Retro Message Board: SADX Lantern Engine - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
  • 4 Pages +
  • 1
  • 2
  • 3
  • Last ►
    Locked
    Locked Forum

SADX Lantern Engine Dreamcast lighting for SADX PC! (v1.2, 03/27/17)

#1 User is offline Morph 

Posted 23 December 2016 - 04:27 AM

  • AKA SonicFreak94.
  • Posts: 709
  • Joined: 01-August 08
  • Gender:Male
  • Location:Utah
  • Project:SA1/2 hax
  • Wiki edits:11
This mod is an attempt at re-implementing the palette-based lighting--also known as the Lantern Engine--from the Dreamcast version of Sonic Adventure in SADX PC. It uses HLSL Shader Model 3 to achieve the effect, and requires d3d8to9, a Direct3D 8 to 9 shim (provided below).

This was developed in collaboration with all the regulars in #x-hax (including these guys (PkR, TheArcadeStriker, ItsEasyActually, MainMemory)), and they were a huge help in improving accuracy, and unravelling the palette lighting mystery.

Posted Image

More screenshots can be found in this imgur album.

This is by no means perfect. There can be some performance issues due to the way I had to implement the shader into SADX's code, so I'm very curious to know how it performs for you guys, and with what hardware. Palette brightness selection needs some work, too. You may notice that things are either darker than on the Dreamcast, or more washed out. This is because I increase the brightness by some arbitrary value to make it closer to the Dreamcast version.

Prerequisites:


Downloads:


Installation:
  • Download d3d8to9 linked above.
  • Open the archive and extract d3d8.dll to the root of your SADX folder (where sonic.exe is).
  • Download sadx-dc-lighting, open the archive, and place the sadx-dc-lighting folder in your SADX mods folder.


BUG REPORTS & KNOWN ISSUES:

Please report bugs! You can do so on the issue tracker HERE, as well as see known issues, and even planned future features. It might suck to sign up for a GitHub account just to report them, but it's the easiest way for me to track them and the most likely way for those bugs to get fixed.


What the critics are saying about sadx-dc-lighting:
I have absolutely zero interest in this mod.
- MainMemory

WTF THIS GAME SUCKS
- PkR

GOD DAMN IT THE TEXTURES BROKE AGAIN I HATE VIDEO GAMES
- me

You've been working on this for how long???
- TheArcadeStriker

<SF94> so ItsEasyActually what should your forged review quote be
<ItsEasyActually> uh, uhhhh... hm... I'll get back to on that in a moment [sic]

- ItsEasyActually


why yes, yes I did time this with the release of sa1 in japan
This post has been edited by Morph: 27 March 2017 - 04:19 AM

#2 User is offline Atendega 

Posted 23 December 2016 - 09:55 AM

  • Incapable of capability
  • Posts: 530
  • Joined: 16-August 14
  • Gender:Female
  • Location:Comfy couch
  • Project:Wearing a more fabulous hat than you
Holy mother of fuck, you've restored it. It's honestly incredible how fucked up even the 2004 PC port was, and it's amazing that you people have been able to do so much to restore it to its rightful, Dreamcast-y glory :specialed:

#3 User is offline ultima espio 

Posted 23 December 2016 - 10:50 AM

  • Posts: 457
  • Joined: 29-March 05
  • Gender:Male
  • Location:United Kingdom
This is definitely one of the best mods for this game, it makes such a big difference :)/> It crashes at the character select screen if you have the character select mod on though.
This post has been edited by ultima espio: 23 December 2016 - 10:51 AM

#4 User is offline Neo 

Posted 23 December 2016 - 02:32 PM

  • Clackerjack
  • Posts: 1208
  • Joined: 10-December 04
  • Gender:Male
  • Location:Portugal
  • Project:Sonic 3 Unlocked
  • Wiki edits:1
Posted Image

Holy balls, this is a thing of beauty.


Get the Dreamcast character models in there and fuck if I wouldn't pay real life money.

#5 User is offline Morph 

Posted 23 December 2016 - 05:23 PM

  • AKA SonicFreak94.
  • Posts: 709
  • Joined: 01-August 08
  • Gender:Male
  • Location:Utah
  • Project:SA1/2 hax
  • Wiki edits:11
Thanks guys!

Figured I should provide some comparison screenshots. I took the screenshots using the standard SADX landtables to illustrate how much of an effect it has on...well, everything. Also included are Dreamcast shots for comparison, although the fog is so different it's a little difficult to compare some aspects.

#6 User is offline Strife 

Posted 23 December 2016 - 07:06 PM

  • Posts: 1727
  • Joined: 19-October 11
  • Gender:Male
  • Location:United States
  • Project:Freedom Planet 2
Yaaas. I feel the lighting in SADX is singlehandedly the biggest downgrade it suffered compared to the original. Places like Final Egg completely lost their atmosphere with the transition. This mod makes such a big difference even without any other mods in place.

#7 User is offline MarkeyJester 

Posted 23 December 2016 - 07:48 PM

  • Full of surprises, pull the ribbons for details~
  • Posts: 1776
  • Joined: 22-July 08
  • Gender:Male
  • Location:Japan
  • Wiki edits:16
Wow, I must be blind, I honestly didn't realise there were lighting differences between the Dreamcast and PC versions...

Fantastic work guys! Am I to assume rightly you're going to apply modifications to all of the levels/maps?
This post has been edited by MarkeyJester: 23 December 2016 - 07:50 PM

#8 User is offline Turbohog 

Posted 23 December 2016 - 08:11 PM

  • Posts: 397
  • Joined: 25-June 08
  • Gender:Male
  • Wiki edits:22
I played a level with it and it seemed good. I've honestly never played the original Sonic Adventure all the way through, so I didn't even realize the lighting was different in DX.

Anyway, it ran fine. Nvidia Geoforce GTX 850M. An intel i7 processor.

#9 User is offline Morph 

Posted 23 December 2016 - 08:35 PM

  • AKA SonicFreak94.
  • Posts: 709
  • Joined: 01-August 08
  • Gender:Male
  • Location:Utah
  • Project:SA1/2 hax
  • Wiki edits:11

View PostMarkeyJester, on 23 December 2016 - 07:48 PM, said:

Fantastic work guys! Am I to assume rightly you're going to apply modifications to all of the levels/maps?


The lighting applies to just about everything automatically. As for replacing levels with their original Dreamcast counterparts though, that's a different story. (And thanks!)

#10 User is offline LimitCrown 

Posted 23 December 2016 - 09:03 PM

  • Posts: 153
  • Joined: 10-April 15
  • Gender:Not Telling
  • Location:Another Dimension
I'm very impressed by the palette-based lighting. The lighting looks so much better overall and the character models don't look overly shiny. I've been using this mod along with the Dreamcast SADX mods.

#11 User is offline Saturnine Sable 

Posted 25 December 2016 - 12:36 AM

  • Posts: 8
  • Joined: 29-October 16
  • Gender:Female
With this and the DC landtables/textures mod, things are so close to being right...

Is there a way to emulate or re-implement the sorting so things like Chaos' flickering polys, etc. are fixed? Also, a proper DC models port would be nice, but I realize that's difficult due to how the mod loader works.

#12 User is offline Jmtshaw 

Posted 25 December 2016 - 12:46 AM

  • Posts: 50
  • Joined: 12-September 10
  • Gender:Not Telling
I've been waiting years for this mod to be made. Great job!

Some stages still have a considerable difference but I assume that's more to do with the stages themselves rather than the palette lighting.

Regardless though, SADX is a lot god damn closer to being the port it should've been all along.

#13 User is offline Fenrir 

Posted 25 December 2016 - 02:16 AM

  • Posts: 117
  • Joined: 09-April 16
  • Gender:Male
  • Location:Colorado
Lordy, I have an actual reason to boot up the PC version again. The lighting is one of the many, MANY baffling choices they made in the transition from SA to SADX.

Now I just gotta combine this with Better SADX, the Dreamcast conversion and the no-gloss models and I think I'll have a pretty merry christmas. Great work man.
This post has been edited by Fenrir: 25 December 2016 - 02:20 AM

#14 User is offline PkR 

Posted 25 December 2016 - 02:21 AM

  • Posts: 98
  • Joined: 04-August 12
  • Gender:Male
  • Project:SADX Dreamcast Conversion, The Emeralds' Awakening

View PostJmtshaw, on 25 December 2016 - 12:46 AM, said:

Some stages still have a considerable difference but I assume that's more to do with the stages themselves rather than the palette lighting.

Most of the difference is just fog stuff. SADX fog is really awful in many levels.
It can be tweaked to resemble the Dreamcast version (and is part of the upcoming update for the DC mods). It won't look exactly the same, but the visuals definitely improve.
The Dreamcast version is still going to look brighter because brightness index calculation is still a mystery, so palette lighting isn't very accurate. It may also have to do with the Dreamcast renderer, which afaik works in a different way when it comes to texture brightness.

#15 User is offline Morph 

Posted 27 December 2016 - 02:57 AM

  • AKA SonicFreak94.
  • Posts: 709
  • Joined: 01-August 08
  • Gender:Male
  • Location:Utah
  • Project:SA1/2 hax
  • Wiki edits:11
Oh yeah. For those of you who are into it, dev builds can be found here. Being a build bot, it archives builds and always has the latest pre-release version available for download.

  • 4 Pages +
  • 1
  • 2
  • 3
  • Last ►
    Locked
    Locked Forum

6 User(s) are reading this topic
0 members, 6 guests, 0 anonymous users