This is something that I have been working on for a few months on and off now. I know it may seem a little late with 2.1 this close to being out, but better late than never right?

It aims to sort out the majority of the issues with how OpenGL draws things. Some of these changes were taken from CB where the issue was fixed there. A changelog of everything that has changed (as far as I can remember anyway) is below. If you see anything I missed from here tell me so I can add it.

The r_opengl.dll included is optional, all it does is alter the lighting on MD2 models. If you don't use MD2 models there is no need for it. If you do use it be sure to backup the original one first, I have included the vanilla one too in case however.

This executable is compatible with vanilla SRB2, you can join netgames with vanilla with this and vice versa.

Spoiler: Changelog

Fixed Lighting

Fog Blocks drawn as translucent polygons like in CB

Fixed sky drawing in instances where there was REDWALL or HOM

Translucent walls no longer get lighting from other places

Translucent FOF's with an opacity of 255 render

Holes in flats that should have them

Colourmaps have their fading colours

Sprite shadows aren't broken anymore

Midtextures are aligned correctly in the cases where they weren't

Repeating midtextures work

Sector Flat Alignment rotation works

The screen transition has had a small fix

Heatwave effect, it is only an altered underwater effect however

Multiple Character MD2's from CB with item boxes and end signs also using MD2's

MD2's that are replacing sprites with only a single rotation (e.g. monitors) rotate to face the screen

MD2's lighted correctly

MD2's use correct animations when the sprite is using FULLBRIGHT or translucency

With the r_opengl.dll included MD2's are lit from above rather than behind

New console command "gr_softwarefog" attempts to emulate lighting from software. Unfortunately it usually goes too dark so it is disabled by default. values are "Off", "On", and "Lightplanes"

Spoiler: Known Issues that I can't/haven't fixed

Translucency sorting issues with sprites, MD2s, walls, and planes

Performance Issues

Issues with "Nearest_Mipmapped" filter, default has been changed to "Nearest"

Things and geometry drawn behind the sky

Single patch textures with holes in them are drawn higher if there's empty space in the texture in software, the same is not done in OpenGL (See Boinciel's Sonic Schoolhouse)

Sprites when scaled don't align correctly

The ERZ2 miniboss sinks into the ceiling after it activates, I do not know why

Weather is still inactive, I couldn't figure out what was causing the issues with it.

I've rarely, if ever touched OpenGL due to how buggy it all was (and the fact my Vista doesn't exactly have the best graphics card out there). Everything that was mostly broken about it was patched up and I feel like I could actually use OpenGL more than once or twice! Like Whackjood, I really hope to see all of this fancy stuff brought into 2.1 in some form or another.

alsojasper.md2pl0x *ban*

__________________

Quote:

Originally Posted by Speedwagon

>proceeds to throw book on floor and run around the library screaming "THE PINK IS REAL."

After using this, r_opengl.dll has decided not to load on SRB2Net or SRB2CB. It just gives me a loadlibrary error or something about r_opengl.dll not being found, then it says opengl failed to initialize. Reinstalling didn't help, and using the vanilla dll OR the dll included here OR the vanilla dll backup included in here makes no difference. How do I fix this?

After using this, r_opengl.dll has decided not to load on SRB2Net or SRB2CB. It just gives me a loadlibrary error or something about r_opengl.dll not being found, then it says opengl failed to initialize. Reinstalling didn't help, and using the vanilla dll OR the dll included here OR the vanilla dll backup included in here makes no difference. How do I fix this?

This is an issue I've known about in OpenGL for a long time, I don't know what causes it or why. But for some reason closing Steam if I have it running seems to get it working again. It could possibly be related with another program, so try that.

This is an issue I've known about in OpenGL for a long time, I don't know what causes it or why. But for some reason closing Steam if I have it running seems to get it working again. It could possibly be related with another program, so try that.

I'm having the same issue as Sonic Fan, and I don't even have Steam, could someone please help with this?