View previous topic :: View next topic |
Author |
Message |
Nash

Joined: 19 Oct 2007 Posts: 95 Location: Kuala Lumpur, Malaysia
|
Posted: Thu Oct 25, 2007 11:21 am Post subject: I miss the software renderer's warping :( |
|
|
The only reason I keep WinQuake around is because of the warping effect on the liquids, the teleporters and the fullscreen warping while you're underwater.
It's funny how all the source ports have real-time world shadows, blooms, heat haze, yada yada, but not the water warping. :( |
|
Back to top |
|
 |
Urre

Joined: 05 Nov 2004 Posts: 1073 Location: Sweden
|
Posted: Thu Oct 25, 2007 11:42 am Post subject: |
|
|
It actually is harder to do than you'd think... It's not until now, modern games are getting similar effects. Certain things aren't as easy to do in 3D accelerated engines as they are in software, while most things are so much faster and easier. It really is ironic, how something that seems so simple is so hard, but that's the way it is. DarkPlaces has those capabilities, but you need to enable them by shader commands. The underwater warping isn't currently possible even in DP. _________________ Look out for Twigboy |
|
Back to top |
|
 |
Sajt
Joined: 16 Oct 2004 Posts: 1026
|
Posted: Thu Oct 25, 2007 3:44 pm Post subject: |
|
|
Last year I replicated the fullscreen warp as a post process shader in my own engine. People say I should port it to DP but I'm lazy.
It's extremely simple, just a couple of sine waves. The hard part would be setting up a good post process shader framework in DarkPlaces... _________________ F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe. |
|
Back to top |
|
 |
Nash

Joined: 19 Oct 2007 Posts: 95 Location: Kuala Lumpur, Malaysia
|
Posted: Sat Oct 27, 2007 4:19 pm Post subject: |
|
|
DP already has the cheap-looking wobbly underwater warping...
How difficult would it be to change it to use a sine wave ripple thingy? |
|
Back to top |
|
 |
Sajt
Joined: 16 Oct 2004 Posts: 1026
|
Posted: Sat Oct 27, 2007 6:08 pm Post subject: |
|
|
That's what I was talking about.. _________________ F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe. |
|
Back to top |
|
 |
metlslime
Joined: 05 Feb 2008 Posts: 177
|
Posted: Tue Feb 05, 2008 11:12 pm Post subject: |
|
|
Fitzquake has this for water surfaces -- set r_oldwater to 0.
Doesn't do the fullscreen warping part, though.
</pimp> |
|
Back to top |
|
 |
Spike
Joined: 05 Nov 2004 Posts: 944 Location: UK
|
Posted: Tue Feb 05, 2008 11:46 pm Post subject: |
|
|
FTE does the fullscreen warping part, but not the surface warping part. :/
You coud do the surface warping part without modifying the engine in fte, but I'm too lazy to tell you how, and it would be on a per-texture basis any way.
</pimp>
Yeah, only plausable way is with fragment programs. Anything else takes too many verticies or just looks like poo. Hurrah for video card technology! _________________ What's a signature? |
|
Back to top |
|
 |
mh

Joined: 12 Jan 2008 Posts: 910
|
Posted: Wed Feb 06, 2008 8:36 pm Post subject: |
|
|
The surface warp is easy enough to do, and there are a few different ways of getting it looking good.
FitzQuake has one solution, it's also possible to do something similar but on the texture matrix (fragment programs? who needs 'em! ), you can derive texcoords from a combination of the verts and the plane, or whatever.
Personally I find DarkPlaces' water effects (projection matrix mangling?) a bit cheesy and not too great, which is a shame as LH does set the standard for so many other things.  _________________ DirectQ Engine - New release 1.8.666a, 9th August 2010
MHQuake Blog (General)
Direct3D 8 Quake Engines |
|
Back to top |
|
 |
Sajt
Joined: 16 Oct 2004 Posts: 1026
|
Posted: Thu Feb 07, 2008 12:39 am Post subject: |
|
|
You mean the fov warp when underwater? That was Quake3's idea. Sure it's cartoony looking, but it's fast and works on any hardware. A GLSL fragment program replicating the old software Quake effect shouldn't be hard. LordHavoc tells me it would take 20 minutes to implement with the way DP's shader framework is now set up these days (the shader itself is the easy part). _________________ F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe. |
|
Back to top |
|
 |
leileilol

Joined: 15 Oct 2004 Posts: 1321
|
Posted: Thu Feb 07, 2008 11:13 am Post subject: |
|
|
Sajt wrote: | A GLSL fragment program replicating the old software Quake effect shouldn't be hard. |
Sajt did this one
EDIT: damnit i thought spike posted this _________________
 |
|
Back to top |
|
 |
|