Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

PBR scanner

Discussion in 'General Discussion' started by Elecman, Oct 8, 2015.

  1. Elecman

    Elecman

    Joined:
    May 5, 2011
    Posts:
    1,369
    It would be nice to have a Megascans system at home and it seems that idea is not so far fetched.

    This research paper comes with the full source coude:
    https://mediatech.aalto.fi/publications/graphics/FourierSVBRDF/

    Video presentation here (time 27:36):


    Unfortunately most code is in Matlab (universities, sigh) so in order for it to be practical it has to be ported to c++.

    Anyone interested?
     
    Last edited: Oct 8, 2015
  2. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,950
    Or alternative someone with a license for the MATLAB Coder (a tool that converts matlab to C) could convert it.
     
  3. Elecman

    Elecman

    Joined:
    May 5, 2011
    Posts:
    1,369
    Yeah, I looked into that but it doesn't seem as straightforward as you would hope.
     
  4. Teo

    Teo

    Joined:
    Oct 31, 2009
    Posts:
    564
    PBR scanner.. lol.. this is most like an brute approximation.

    PBR in general is far far away from real model. I wonder if those guys around the world making "PBR scanners" have any physics knowledge (I am not referring at that link, in general). The light real model is much more complex.
     
  5. angrypenguin

    angrypenguin

    Joined:
    Dec 29, 2011
    Posts:
    15,614
    It doesn't have to be physically correct if it's close enough. And for games, "close enough" often just means "looks cool".

    I mean, I don't know about your team, but over here my artists certainly haven't studies physics in order to generate the textures we're currently using. And no decision about what to do has ever come down to "so what's the closer approximation to how light really works?"

    So if the scanner can get something that a) looks decent and b) is tunable to fit into our (not realistic anyway) art direction... sweet.
     
    darkhog, theANMATOR2b, Ryiah and 4 others like this.
  6. Teo

    Teo

    Joined:
    Oct 31, 2009
    Posts:
    564
    Well, from simple diffuse to PBR is a big jump. Close to real model? not really. Maybe in the future when a video card can do 1000x times what do today we can talk about something close to real model.
     
  7. Tomnnn

    Tomnnn

    Joined:
    May 23, 2013
    Posts:
    4,148
    So... 2 generations after the nVidia pascal? :D
     
  8. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,950
    At the rate memory has been increasing in graphics cards, I'm a bit scared to see what we'll have in two generations. :p
     
  9. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Well that's good for dreamers but most people will make do with PBR which is the fastest compromise for realistic lighting we know of today.
     
  10. Tomnnn

    Tomnnn

    Joined:
    May 23, 2013
    Posts:
    4,148
    Weyl fermions!!

    @BoredMormon any new understanding on this?

    What? You mean it's not 100% physically accurate? Unity doesn't construct the environment and lighting out of trillions^trillions of particles!? Baked lighting isn't made by letting virtual photons bounce around the scene a million times? Objects don't rotate because of spinons and orbitons? :mad::eek:
     
    Teo likes this.
  11. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Assuming a generation means every 6 months or a year, In 2 generations we should see a 20% increase over what there is today. GPU and CPU manufacturers have several buckets in which they throw products, ie consumer, enthusiast, professional, server etc...

    And every "generation" we see at absolute maximum a 15% hike in performance. It's usually closer to 10%. This is not moore's law specifically as there's much faster available, just much more expensive for them and you. The 10% model works really well financially.

    You can see this with benchmarks on all sites, whenever a new GPU or CPU is released *in the same category ie consumer* - the hike over the competition of last gen is usually around 10% more performance.

    I don't think this is a coincidence after watching it for years, and given the fact they can and do have much better hardware available in bespoke fashion, one can assume it's market dynamics at work.
     
  12. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,950
    Actual processing performance may only increase marginally, but graphics memory appears to be increasing in leaps and bounds. Current reports indicate that NVIDIA's Pascal is moving to HBM2 with a maximum capacity of 16GB so it wouldn't surprise me if the x80 and x70 cards went up to as much as 8GB.
     
  13. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Yeah it's really required for 4k although actually running it well at those resolutions is still not a guaranteed thing. I am developing a PS4 game. This thing has an awesome amount of available memory. It supports 4k displays, but not for gaming.

    I'm not complaining, I can always find good reasons to burn more ram :D
     
  14. Teo

    Teo

    Joined:
    Oct 31, 2009
    Posts:
    564
    Haha nice irony!

    Basically, when we will have the power to compute quatrazillions electromagnetic waves per atom reflection/refraction, for quatrazilions^quatrazilions of atoms representing a small face of a rock, with density elements accordingly, we can say we are close to real model. Until then we just lie our selfs that PBR looks "realistic".
     
  15. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    Sorry guys. I've kind of dropped the ball on this one. Lately my understanding efforts have been going into more mundane problems. Specifically how can we provide enough food for the 7 billion odd people on this planet.

    My part of that question has recently amounted to how do I stop chlorine production from shutting down every three days. Which in turn becomes how do I convince IT that upgrading to 64 bit is totally needed for any sensible manipulation of 1 GB data sets.

    I will take your just criticism of my priorities on board and amend my ways. ;)
     
    Last edited: Oct 8, 2015
    Ryiah, Tomnnn and Manny Calavera like this.
  16. Tomnnn

    Tomnnn

    Joined:
    May 23, 2013
    Posts:
    4,148
    I sure hope so, the future of technology depends on you! probably.
     
    Kiwasi likes this.