michael-fadely / sadx-dc-lighting

Sonic Adventure 1 palette lighting for SADX PC.
MIT License
39 stars 3 forks source link

Everything is black #55

Closed MarioFreak2001 closed 6 years ago

MarioFreak2001 commented 7 years ago

I just can't seem to get this mod working. I followed the instructions and I have the latest version of the mod, but everything is still black. (also no picture because I couldn't get a screenshot)

PiKeyAr commented 7 years ago

What's your GPU model? Also are you able to see the SEGA screen or menus, or is the entire SADX screen always black?

michael-fadely commented 7 years ago

If you could provide your GPU model and Windows version, I can look into the issue.

MarioFreak2001 commented 7 years ago

I think this is it. ithinkthisistherightthing And I have Windows 7 Home Premium 32-bit.

@PiKeyAr I'm able to see the SEGA screen and menus, but everything that is a model is completely black aside from a few textures. (textures such as that blue bracelet thing that Sonic has that I forgot the name of, Big's eyes, and Sonic's spindash and jump dash effects)

michael-fadely commented 7 years ago

The GeForce 6000 series cards appear to have only partial support for texture sampling in vertex shaders (which the lantern shader uses for vertex color selection). I'll investigate to see if there's a way to work around this without moving texture sampling to the pixel shader. Thanks for the report!

Edit: One work around is to detect this case and enable software vertex processing. It runs pretty slowly though, and it gets slower the newer Windows gets, so I'd rather avoid that if possible.

According to NVIDIA and the DirectX documentation, I should be able to set vertex textures using D3DVERTEXTEXTURESAMPLER1 through D3DVERTEXTEXTURESAMPLER3 (NVIDIA says start at 1, Microsoft says start at 0), but thus far that doesn't appear to have helped.

This might be due to the aggressive state management of the D3DX effect system, so this might need to wait until I switch to manually managed shaders before I can implement a proper fix.

p.s. shilz you're the guinea pig now glhf

MarioFreak2001 commented 7 years ago

How do I enable software vertex processing?

michael-fadely commented 6 years ago

Could you try out this build and see if it resolves the issue?

michael-fadely commented 6 years ago

(Paging @MarioFreak2001 !)

michael-fadely commented 6 years ago

Seems to work for Shilz who also has this GPU. Considering fixed.

MarioFreak2001 commented 6 years ago

This version presents a new problem. The game just crashes every time I try to go to the character select screen.

michael-fadely commented 6 years ago

Update d3d8to9.

MarioFreak2001 commented 6 years ago

Thank you!