Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Newbie Questions
by AndrewAMD. 12/04/23 11:14
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (TipmyPip, izorro), 556 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Re: Ha I finally have achieved DOF, without pro! [Re: lostclimate] #93912
10/12/06 06:47
10/12/06 06:47
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
But its not just the number of times an entity is rendered, its the overdraw..

It very expensive to redraw a pixel 10 or more times for every pixel on the screen...

Think about it.. normally when you use a z-buffer and do single passes with no alpha blending you render each pixel about one time..this is easy. But with alpha blending you have to draw that pixel every time something is blended over it...

If you are doing this kind of massive overdraw as in your method, you are redrawing pixels many times over.. Each "shell" in this shader is another time you must draw each pixel..which is a bad thing.

I dunno, try it out with a full level and see how works..


Sphere Engine--the premier A6 graphics plugin.
Re: Ha I finally have achieved DOF, without pro! [Re: lostclimate] #93913
10/12/06 06:54
10/12/06 06:54
Joined: May 2002
Posts: 2,541
Berlin
EX Citer Offline
Expert
EX Citer  Offline
Expert

Joined: May 2002
Posts: 2,541
Berlin
@Phemox: Can you scribble a picture?
Everything gets blurred on its distance from the focus. It doesnīt matter what it is or what form it has. It simply blurs everything on itīs distance.
I could simply publish a demo for adults only. The demo for not adults only, takes some more time... I will see if I can publish it today in the next 10 minutes...


:L
Re: Ha I finally have achieved DOF, without pro! [Re: Matt_Aufderheide] #93914
10/12/06 07:17
10/12/06 07:17
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline OP
Expert
lostclimate  Offline OP
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
well i started working on it but im going to bed because i just realized tonight whne you intentionally stare at something blurry for a long time it starts to hurt your eys real bad.

Re: Ha I finally have achieved DOF, without pro! [Re: lostclimate] #93915
10/12/06 07:18
10/12/06 07:18
Joined: Dec 2000
Posts: 4,608
mk_1 Offline

Expert
mk_1  Offline

Expert

Joined: Dec 2000
Posts: 4,608

Funny
Now think of a model that uses parallax specular mapping. It's using at least two samples, two dynamic lights and a lot of shader instructions. Multiply it by ten ('cause you have ten passes) and there you go: 0.2 fps


Follow me on twitter
Re: Ha I finally have achieved DOF, without pro! [Re: mk_1] #93916
10/12/06 07:42
10/12/06 07:42
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline OP
Expert
lostclimate  Offline OP
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
well im not sure many outdoor scenes use speculare mapping, im sure that it would look funny having little white spots all over my tree trunks..


and my eyes still hurt, but it is getting closer.

Re: Ha I finally have achieved DOF, without pro! [Re: lostclimate] #93917
10/12/06 07:54
10/12/06 07:54
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline OP
Expert
lostclimate  Offline OP
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
well i got a demo of it of course everyone knows its still a wip but this will show how it works in real time, i took off several passes, and found out that you dont need many to still look blurry, especially at that distance, only 4 passes now which includes the main pass and 3 blur passes, runs at a solid 50fps on my machine with firefox, Wed Med Sed, and mediaplayer open all at the same time with all of the entities in view, no lod, nothing like that to speed it up, mk_1 i hope you dont mind i used the model you gave us for your shader tutorials, if you do mind, i will take the link down and encourage everyone to delete there copy. it also has one of loopix's free trees in it. it looks much different than the screens, check it out: http://www.lostclimategames.com/dof-blur-whatever.zip

Re: Ha I finally have achieved DOF, without pro! [Re: EX Citer] #93918
10/12/06 14:48
10/12/06 14:48
Joined: Sep 2002
Posts: 8,177
Netherlands
PHeMoX Offline
Senior Expert
PHeMoX  Offline
Senior Expert

Joined: Sep 2002
Posts: 8,177
Netherlands
@Exciter: A adult only demo would be fine, infact you might not even need to include 'enemies' to show the effect, that way you could make it none-adult okey too, right?

I will explain exactly what I mean in a drawing a bit later. Still, I'm not sure wether you noticed it or not, but I've edited one of my earlier posts and put in 2 links to some of my own tests with a depth of field fake. I've got a slightly different approach, but it seems to me that objects at close range get sharp just about right. There's no scale blurring involved though, only a technique similar to yours using 3 transparent views. The blur in the distance is not as heavy as it should be, but that might be possible to fix. It's reasonably fast btw, 50fps+ usually. Here they are:




Cheers

Last edited by PHeMoX; 10/12/06 14:50.

PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software
Re: Ha I finally have achieved DOF, without pro! [Re: PHeMoX] #93919
10/12/06 17:54
10/12/06 17:54
Joined: May 2002
Posts: 2,541
Berlin
EX Citer Offline
Expert
EX Citer  Offline
Expert

Joined: May 2002
Posts: 2,541
Berlin
I published a demo some hours ago exactly the way you said You find it in showcase 1.

Interesting idea to use multiple views. But I think its slower and not as effektive as my method. But has the advantage of the sky.

I guess in the first screenshot you focused something close to the ship and in the second the hills in the front of the ship.


:L
Re: Ha I finally have achieved DOF, without pro! [Re: EX Citer] #93920
10/12/06 18:36
10/12/06 18:36
Joined: Sep 2002
Posts: 8,177
Netherlands
PHeMoX Offline
Senior Expert
PHeMoX  Offline
Senior Expert

Joined: Sep 2002
Posts: 8,177
Netherlands
Actually the focussing is done automatically .. this is where the 3 views come in. It is a flawed technique though, sometimes it doesn't work quite as good as with the first screenshot. Like said, the focussing changes automatically.

The second shot, eventhough not bad at all, shows what can go wrong, the focus isn't that clear to see there, distances are too far apart so to speak. I've got to figure out something for that...
I might put up a demo too, to get some c&c on the effect. I've thought about adding a shader, but that would only cost more fps,

Cheers


PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software
Page 3 of 3 1 2 3

Moderated by  Blink, Hummel, Superku 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1