|
Post by qbism on May 29, 2014 22:34:44 GMT -5
Howdy, I've escaped momentarily from inside3d, but some here may be interested in quake2 software rendering. A ref_soft.dll replacement has been made based on Knightmare's 3.24 patch. As far as I know, it ONLY works with 3.24. Features- - Colored lighting. r_coloredlights cvar toggle 0/1
- Colored light saturation controlled by r_lightsaturation cvar. 1.0 is default, try 2.0 or 0.5.
- Ddraw palette issue is 'fixed' because it is removed. All video modes are now DIB.
- Waterwarp is higher resolution and supports widescreen modes.
- sw_transmooth toggle 0/1 smooths out water and other transparent surfaces.
- Render functions aren't assembly, but the C source code adds significant speed optimizations.
UPDATE- Current release and source: github.com/qbism/Quake2-colored-refsoft/releasesMaric's The Blue Devoid Notes about the code- It can be copied into the 3.24 source folder. (Make a backup for this purpose.) But I don't have VC 6, so I built it with VS 2013 (project included in the ref_soft folder). id386 needs to be undefined (or defined as 0). qshared.h has to be modified manually for this. This started with the colored light code leilei added to stock Q2. Shaded light was completed among other things with head-scratching and borrowed pieces of engoo. Waterwarp improvement and dithering are from AROS Quake2.
|
|
|
Post by knightmare on May 31, 2014 11:23:51 GMT -5
This is excellent! Argh was working on adding colored lighting support and 16-bit rendering to ref_soft before he disappeared back in 2005 or 2006. I tried making some simple changes to ref_soft to allow trans surfaces to animate and move as part of bmodels, but all the ASM code prevented it from working. Ditto for adding support for maps compiled with large (> 240) chop sizes (8-bit registers were used to index the size of surfaces). Maybe that would be doable now that you've switched over to C only. After some quick testing, this does seem to work with v3.20 and my v3.23. I'd like to include this in a future release. Could you possibly include a project file for VS2008? That's what I've switched my KMQ2 development over to, and will probably use for any further work on the unofficial Q2 patch. id386 can be #undefed in r_local.h. BTW, you forgot to add that unsigned short fix to Mod_LoadLeafs(), see here.
|
|
|
Post by qbism on May 31, 2014 17:17:26 GMT -5
Thanks, I will include those fixes in next release.
I don't have VS2008 installed, but VS2010 will open VS2013, so maybe it will work as-is.
I can provide VS2013 project files for unofficial patch and kmq2 if you'd like to consider that. The projects will work with the free Express version. I've already imported kmq2 to VS2013 just to look at the source, so hopefully it will compile! Executables will still run on XP if the XP platform toolset is selected. I've run this ref_soft.dll on an XP box with no issues.
|
|
|
Post by qbism on May 31, 2014 19:51:19 GMT -5
3.24 VS2013 qbism.com/file/download/583Note- includes updated ogg vorbis .libs kmq2... on second thought, probably best to just use import if already on VS2008. Painless unless any libs need to be updated, and may need to define _CRT_SECURE_NO_DEPRECATE.
|
|
|
Post by knightmare on Jun 1, 2014 1:31:42 GMT -5
I already have VS2008 and 2010 projects for the KMQ2 dev version, and have VS2005 and 2008 projects for the 0.20 version I keep patched.
VS 2005/2008 use a different project file format than 2010/2012/2013, so 2013 ones won't help me. I also have a set of updated libs as well.
EDIT: It would also be desirable to have a cvar for toggling the colored lighting. While it sometimes looks good, it really has too few palette colors to work with as long as it's using 8-bit rendering.
|
|
|
Post by qbism on Jun 1, 2014 14:00:39 GMT -5
VS2008 - Why not migrate? Vista toolset better than Win7?
cvar toggle - See the first post. There's also a saturation cvar.
8-bit rendering - a jaggy counterpoint to photorealism in 3D. Although a broader range of values in the q2 palette would have been nice.
|
|
luzifer
Light Guard
Going to frag some bots
Posts: 41
|
Post by luzifer on Jun 1, 2014 17:34:33 GMT -5
This one sounds good. I don`t have VS and don`t know anything about compiling a source. Could anyone of yo be so kind and upload a compiled version of this ? I would really like to try it out. Thx in advance
|
|
|
Post by knightmare on Jun 1, 2014 19:57:25 GMT -5
luzifer: There already is a compiled download in the first post.
The 8-bit rendering just looks beyond jaggy when colored lighting is present. Valve changed Half-Life's software renderer to 16-bit for a reason.
|
|
|
Post by qbism on Jun 1, 2014 20:39:46 GMT -5
I made it the link bigger . Beyond jaggy: a wonderful way to put it! Smooth/ low-noise textures are deliciously jaggy. This image should save others the trouble of downloading if not to their tastes:
|
|
|
Post by qbism on Jan 27, 2015 20:19:31 GMT -5
|
|
|
Post by qbism on Sept 20, 2015 21:25:05 GMT -5
|
|
luzifer
Light Guard
Going to frag some bots
Posts: 41
|
Post by luzifer on Sept 21, 2015 4:31:58 GMT -5
Sorry I am not able to find the compiled dll. Probably I am just too blind to see ;-)
|
|
|
Post by qbism on Sept 21, 2015 17:52:38 GMT -5
|
|
luzifer
Light Guard
Going to frag some bots
Posts: 41
|
Post by luzifer on Sept 23, 2015 3:12:48 GMT -5
Thanks :-) Geez I definitaly need new glasses ;-)
|
|
tmg
Quake 2 Mapping Club
Posts: 266
|
Post by tmg on Sept 29, 2015 23:24:58 GMT -5
Just tried it out myself. It's pretty oldschool looking on software mode normally, but with the added coloured lighting it looks more like an old relic lol. Different, and well done, but I'll stick to KMQ2 OpenGL
|
|