Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411507 Posts in 69374 Topics- by 58429 Members - Latest Member: Alternalo

April 26, 2024, 02:44:21 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)Solution to volumetric 3d using 2d images on planes (bushes, trees, fire, etc)
Pages: [1]
Print
Author Topic: Solution to volumetric 3d using 2d images on planes (bushes, trees, fire, etc)  (Read 1869 times)
Blink
Level 3
***



View Profile WWW
« on: April 10, 2014, 08:42:25 AM »

First off: I am really bothered by the new Tomb Raider's fire effect. It's flat and wiggly and it doesn't look much like fire - it's basically a video on an animated polygon that's probably a couple planes stuck together with a billboard effect.

Then, however, I came across this:





The more I share it, the more I think of it, so now I'm posting it here. I really hope this approach takes off, because imo it looks fantastic compared to the stuff we see right now (which looks like his nebula with the opacity effect disabled).

That's all!
Logged
Christian Knudsen
Level 10
*****



View Profile WWW
« Reply #1 on: April 10, 2014, 09:31:28 AM »

That works great for a gaseous and shapeless nebula like in the video, and it might work okay for fire effects, but it'll be terrible for trees and other more tangible objects. Imagine looking at a tree in a game, but as you circle around it, you'll see the various branches fading in and out of existence.
Logged

Laserbrain Studios
Currently working on Hidden Asset (TIGSource DevLog)
JamesK
Level 0
**



View Profile WWW
« Reply #2 on: April 10, 2014, 12:19:54 PM »

Nice!
It certainly produces good results and isn't at all complex.
Logged
UltimateWalrus
Level 1
*



View Profile WWW
« Reply #3 on: April 10, 2014, 10:14:04 PM »

Awesome technique, thanks for posting.  I wonder if you could make vegetation look good if you used a shader to make the leaves sort of bleed out instead of fade out.
Logged

Shadowspaz
Level 1
*



View Profile WWW
« Reply #4 on: April 11, 2014, 12:25:23 AM »

I'm really loving the simplicity behind this. I am curious how this would look applied to fire, though. A nebula really has no shape, but a fire (Think of a campfire, for example) will tend towards a triangular shape. I'm thinking you could use triangle planes, at randomized angles (Maybe meeting at a point at the top, maybe not) to get the proper three-dimensional shape for the flame. Also, while the nebula in the example fades out to nothing, flames are pretty rigidly-defined, so I'm not sure what that would do to the effect. But this is all speculation, and I'd love to see what develops from this.

It would definitely be a fantastically fun thing to play around and experiment with.
Logged

Check out my devlog!
RandyGaul
Level 1
*

~~~


View Profile WWW
« Reply #5 on: April 11, 2014, 10:53:15 AM »

That works great for a gaseous and shapeless nebula like in the video, and it might work okay for fire effects, but it'll be terrible for trees and other more tangible objects. Imagine looking at a tree in a game, but as you circle around it, you'll see the various branches fading in and out of existence.

Actually it looks great on trees: http://the-witness.net/news/2011/06/witness-trees/
Logged
Christian Knudsen
Level 10
*****



View Profile WWW
« Reply #6 on: April 11, 2014, 11:32:22 AM »

I'd like to see a video of a player circling one of those trees at close range. It's not really something you can judge from stills. But I guess I stand slightly corrected for the time being. Wink

EDIT: I'm also not a fan of the dithered effect used to fade out the branches. I guess it's cheaper than proper alpha transparency?

Logged

Laserbrain Studios
Currently working on Hidden Asset (TIGSource DevLog)
Blink
Level 3
***



View Profile WWW
« Reply #7 on: April 11, 2014, 12:56:13 PM »

The dithered effect is definitely strange, but the trees look way better than I expected they would. And yes, that depends on the rotation too (maybe that's why they chose dithering?) but even so, these are great results. Thanks for the link RandyGaul!
Logged
BorisTheBrave
Level 10
*****


View Profile WWW
« Reply #8 on: April 12, 2014, 03:45:43 AM »

Here's a variation of the technique for fire:

http://simonschreibt.de/gat/tomb-raider-laras-hot-secrets/
Logged
Polly
Level 6
*



View Profile
« Reply #9 on: April 12, 2014, 04:19:08 AM »

I'm also not a fan of the dithered effect used to fade out the branches. I guess it's cheaper than proper alpha transparency?

It's to prevent the need for sorting the polygons back-to-front in real-time ( and splitting intersecting polygons somewhere in the pipeline ), apart from the additional performance hit you get from blending. Using dithering a simple alpha test will suffice, and when desired you can smooth out much of the "crude" dithering look using anti-aliasing / post-processing.
Logged
powly
Level 4
****



View Profile WWW
« Reply #10 on: April 12, 2014, 05:16:13 AM »

This is cool indeed - what I didn't know was that it was new, since a lot of games have already done this. Could someone care to elaborate about this fuss?
Logged
Christian Knudsen
Level 10
*****



View Profile WWW
« Reply #11 on: April 12, 2014, 05:20:00 AM »

It's to prevent the need for sorting the polygons back-to-front in real-time ( and splitting intersecting polygons somewhere in the pipeline ), apart from the additional performance hit you get from blending. Using dithering a simple alpha test will suffice, and when desired you can smooth out much of the "crude" dithering look using anti-aliasing / post-processing.

Thanks for the explanation. Hand Thumbs Up Left

This is cool indeed - what I didn't know was that it was new, since a lot of games have already done this. Could someone care to elaborate about this fuss?

Well, the video in the OP is three years old, so I suspect this is just the first time the OP has come across this technique?
Logged

Laserbrain Studios
Currently working on Hidden Asset (TIGSource DevLog)
Blink
Level 3
***



View Profile WWW
« Reply #12 on: April 14, 2014, 09:30:35 AM »

Actually, I came across it almost a year ago. But I still don't see it used in most games! And that's a real shame, so I'm just trying to bring awareness to it - and remember to do it myself.

EDIT: Also, thanks for the link Boris. Definitely learned a lot, but I still can't stand this effect:



There's got to be a better way. I'd prefer the separation of particles at this point even.
« Last Edit: April 14, 2014, 09:45:51 AM by Blink » Logged
Christian Knudsen
Level 10
*****



View Profile WWW
« Reply #13 on: April 14, 2014, 10:06:45 AM »

Yeah, that stretched out flame looks terrible. Maybe they could have a secondary loop of frames where the flame was "torn" apart, and when the plane is stretched beyond a certain threshold, it would switch to those frames temporarily?
Logged

Laserbrain Studios
Currently working on Hidden Asset (TIGSource DevLog)
Trent
Level 0
***


Someday I'll make games!


View Profile WWW
« Reply #14 on: April 14, 2014, 01:16:13 PM »

Ha, the gif loaded slowly for me, and the first few frames got me thinking... "Hey that fire looks pretty good!"

Then dat stretch.  Facepalm
Logged

Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic