Inside3D!
     

I miss the software renderer's warping :(

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
Nash



Joined: 19 Oct 2007
Posts: 95
Location: Kuala Lumpur, Malaysia

PostPosted: Thu Oct 25, 2007 11:21 am    Post subject: I miss the software renderer's warping :( Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Urre



Joined: 05 Nov 2004
Posts: 1073
Location: Sweden

PostPosted: Thu Oct 25, 2007 11:42 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Thu Oct 25, 2007 3:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Nash



Joined: 19 Oct 2007
Posts: 95
Location: Kuala Lumpur, Malaysia

PostPosted: Sat Oct 27, 2007 4:19 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Sat Oct 27, 2007 6:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
metlslime



Joined: 05 Feb 2008
Posts: 177

PostPosted: Tue Feb 05, 2008 11:12 pm    Post subject: Reply with quote

Fitzquake has this for water surfaces -- set r_oldwater to 0.

Doesn't do the fullscreen warping part, though.

</pimp>
Back to top
View user's profile Send private message
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Tue Feb 05, 2008 11:46 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
mh



Joined: 12 Jan 2008
Posts: 910

PostPosted: Wed Feb 06, 2008 8:36 pm    Post subject: Reply with quote

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! Razz ), 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. Confused
_________________
DirectQ Engine - New release 1.8.666a, 9th August 2010
MHQuake Blog (General)
Direct3D 8 Quake Engines
Back to top
View user's profile Send private message Visit poster's website
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Thu Feb 07, 2008 12:39 am    Post subject: Reply with quote

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
View user's profile Send private message
leileilol



Joined: 15 Oct 2004
Posts: 1321

PostPosted: Thu Feb 07, 2008 11:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group