Specular Blur

What it says on the tin: a place to discuss proposed new features.
Post Reply
User avatar
Archangel
Greenskin
Posts: 101
Joined: Sun Dec 19, 2004 6:02 pm
Location: Nantes, France
Contact:

Specular Blur

Post by Archangel »

Hi all !
I don't know if it has been discussed before (i've searched but found nothing related) or if it's already implemented in OGRE, but I'd love to be able to do effect like the one on this picture (from TES4 : Oblivion ;) ) :

Image

You can easily see it on the armor.
Is it possible ?
Thanks for response !
User avatar
Robomaniac
Hobgoblin
Posts: 508
Joined: Tue Feb 03, 2004 6:39 am

Post by Robomaniac »

Its called HDR iirc, and it will be included in ogre sometime soon (i think, ask wumpus)
phear hingo

My Webpage
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66
Contact:

Post by sinbad »

You can do it with a fullscreen glow pass, there are several examples of doing post-filter effects in Ogre, such as the heatvision effect .
http://www.ogre3d.org/phpBB2/viewtopic. ... postfilter
User avatar
Archangel
Greenskin
Posts: 101
Joined: Sun Dec 19, 2004 6:02 pm
Location: Nantes, France
Contact:

Post by Archangel »

Thanks ! Too bad the code ins't fully up to date :( !
I got rid of the classic :
"cannot convert parameter 1 from 'float' to 'const class Ogre::Radian &'"
And corrected the old "attachLight" usage (by replacing by attachObject)

And I got this :

Image

Cool effect ! But I don't think it's the thing it's supposed to be :D !
Am I wrong ?
User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 2
Contact:

Post by Kencho »

Try adding some entities to the scene. It's supposed to be heat-vision, so you won't see anything if there isn't anything there...
Image
User avatar
Clay
OGRE Community Helper
OGRE Community Helper
Posts: 518
Joined: Wed Mar 17, 2004 4:14 am
Contact:

Post by Clay »

Can anyone repost that code somewhere? I can't get to that link.

I'll mirror it somewhere permanent. =)
User avatar
:wumpus:
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 3067
Joined: Tue Feb 10, 2004 12:53 pm
Location: The Netherlands
x 1

Post by :wumpus: »

This effect is called 'glare' and like Sinbad says you can do this extremely well with a fullscreen postprocessing pass. You can use HDR too, but that would be overkill (not to mention excrutiating slow) if all you want is this effect.
User avatar
Archangel
Greenskin
Posts: 101
Joined: Sun Dec 19, 2004 6:02 pm
Location: Nantes, France
Contact:

Post by Archangel »

Fredz has mirrored it on his site here :
http://frederic.lopez.free.fr/ogre/Ogre ... Vision.zip
Thanks to him ;) !

@ Kencho : The problem is that there are actualy entities in that scene (a ninja and a cube if I remember well)

@ :wumpus: : That's what I thought. HDRI isn't realy designed for real time is it ? I only know it's used to perform realistic lighting with 3d apps like 3dsmax.
User avatar
:wumpus:
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 3067
Joined: Tue Feb 10, 2004 12:53 pm
Location: The Netherlands
x 1

Post by :wumpus: »

on the most recent family of cards you can do HDR very well in realtime, but it's kind of a high hardware requirement for a game I think :)
User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 2
Contact:

Post by Kencho »

Sorry, I didn't know you already placed some entities in the scene. Anyways, I can't tell you anything any firther, as my gfx card doesn't support pixel shaders :cry:
Image
User avatar
Archangel
Greenskin
Posts: 101
Joined: Sun Dec 19, 2004 6:02 pm
Location: Nantes, France
Contact:

Post by Archangel »

@ Kencho : Too bad :( !

@ :wumpus: : Interesting. In fact, I have a pretty good card and I am pretty sure that what I'm programming will never get out of my machine so it would be intersting to have a go ;) !
Also, if I ever release a game, it will be in thousand years at least :D !
So I think computers witch will use it wont be overkilled :P !

More seriously, has anyone information about real time HDR ? Website or else.

Thanks for answering all ;)
User avatar
RyanN
Halfling
Posts: 82
Joined: Thu Aug 19, 2004 6:41 am
Location: Victoria, Australia
Contact:

Post by RyanN »

wouldn't a 'bloom' shader give the same effect? i think the current normal mapping shader doesn't smooth specular highlights.
supersuper
Greenskin
Posts: 114
Joined: Wed Feb 11, 2004 5:41 pm
Location: England!

Post by supersuper »

I'll see if I can get the working one (the one with the entities showing up) soon...

developer.nvidia.com -> take a look there for a geforce 6 video somewhere which shows realtime HDR.
User avatar
Archangel
Greenskin
Posts: 101
Joined: Sun Dec 19, 2004 6:02 pm
Location: Nantes, France
Contact:

Post by Archangel »

I didn't realise that there is an HDR example in the DirectX SDK :D !
I'm taking a look at it and it's pretty usefull ;) !

@ Ryan : Yes, bloom will do it well. But all samples I've seen so far had "blinking blur". See the "PostProcess" sample from the DX SDK.

EDIT : There is also real-time HDR lightning !!
see : http://www.daionet.gr.jp/~masa/rthdribl/index.html
The program is 20 Mo and too beautiful to explain :? !

Ps : Thanks for the link supersuper ;)
User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 2
Contact:

Post by Kencho »

I think most of us were already aware of that link. Beautyful results anyways :D
Image
User avatar
Archangel
Greenskin
Posts: 101
Joined: Sun Dec 19, 2004 6:02 pm
Location: Nantes, France
Contact:

Post by Archangel »

lol ! Sorry, I didn't knew :? !
Now I have many samples I can work with.
Thanks for your help all ;) !
Post Reply