r/computergraphics • u/betajippity • Mar 03 '15
Some test images from a renderer I am developing...
http://imgur.com/a/FBoTS5
3
u/radarsat1 Mar 03 '15
Awesome. I guess this is some more information about it?
Edit: ps i'm getting a lot of "[Math Processing Error]" on your blog instead of equations.
2
u/betajippity Mar 03 '15
Weird, that means the LaTeX plugin I use is breaking for you. What browser/platform are you reading with?
2
u/radarsat1 Mar 03 '15
Well, I just tried Firefox and Chromium because I couldn't remember which one I was using, and it worked fine in both so... false alarm I guess ;) Sorry about that. Really nice-looking renders man.
1
2
u/berkut Mar 03 '15
Very nice!
Was peak memory usage for ~250M tris really only 1.5GB? Was it a fully baked-down scene, or was subdivision done on-the-fly?
Assuming the former with a completely closed (so one point per triangle, which the petals couldn't be as they're edges) fully-triangulated mesh with 235M tris at 3 x float per point, I work that out to be ~2.8GB just for the points...
3
u/betajippity Mar 03 '15 edited Mar 03 '15
Oops, good catch! I accidentally a whole 0... it should say 10.5 GB. My renderer is not nearly that memory efficient. Post updated!
Well, so, I haven't posted about this yet since I'm not sure whether or not I'm even going to keep this "feature", but the memory usage for the flowers should be even higher than 10.5 GB (closer to 30 GB), but in order to fit in memory on my machine, I implemented a crazy hack for getting geometry memory usage down. I have a half-float mode for storing geometry, which loses a lot of precision but works okay for scenes like the flower vase where there's so much going on that you can't really tell if things are slightly detached or floating if you don't look closely.
2
u/berkut Mar 03 '15
cool - I was going to say... :)
Normals and UVs can both be quantised fairly easily (with very little loss in precision - as long as you don't want stupid numbers of UDIMS) to 4 bytes from 12 and 8 respectively.
I've found that quantising points just isn't worth it, at least with production-scale scenes. When everything's really close to origin (like < fabsf(16.0) ) you can get away with it, but other than that it gets messy with highly detailed models and subd/displacement.
2
u/3dmesh Mar 03 '15
I love the renderer. You should look at Blender's Cycles renderer for some additional ideas. Good luck with finishing it.
2
u/betajippity Mar 03 '15
I've been looking at Mitsuba, Cycles, PBRT, etc. for general ideas and such. I'm also lucky enough to know a few folks working on Hyperion and Renderman and whatnot, and they've all been a great help. :)
2
u/agenthex Mar 03 '15
What methods are you using for rendering? Is there anything special or unique about your algorithm?
2
u/betajippity Mar 03 '15
The renderer supports unidirectional pathtracing, Veach-style bidirectional pathtracing, progressive photon mapping, and vertex connection and merging (which is an algorithm that combines BDPT and PPM). The internal architecture of the renderer is pretty unusual, and I'm also working on a neat little extension to VCM, but both of those things I can't talk about too much yet since they are related to my thesis work.
2
u/Jedimastert Mar 03 '15
I think you won. Seriously, those are gorgeous. The only thing I found off was that the depth of field on the 1st and 3rd images look off. Like you rendered out difference depths and glued them together instead of a smooth transition, if that makes sense.
What was the render time? And what methods are you using?
3
u/betajippity Mar 03 '15
The DOF is entirely in-camera/in-renderer, so it's probably just the falloff that is making it look weird.
Render time/methods/info/etc. can all be found here: http://blog.yiningkarlli.com/
2
u/Tangled-Universe Mar 04 '15 edited Mar 04 '15
Hi Karl, I was just wondering the following...
Understandably - as it is the current 'fashion stream' in rendering research - you are further developing/improving on existing state of the art rendering solutions as (partly) provided by your colleagues.
The whole industry seems to have jumped on the raytracing bandwagon for hyper-realistic visualization of non-natural surfaces. What I really miss from a personal interest is the lack of research in rendering solutions for massively displaced surfaces, like for canyons, cliffs, rocks and all on a large scene scale. For example, Renderman has a bit of hybrid renderer which combines REYES methods with modern tracing tech, but it seems they are mostly focussing on tracing solutions lately(?).
How do you see your renderer or some of the tech used in your renderer (MIS, VCM) being applicable to REYES-style generated procedurally displaced surfaces?? To me it seems the industry abandoned research on this niche of type of surface rendering.
I'd love to see the performance and visual fidelity of this render-tech being applied to digital landscape environments!
2
u/betajippity Mar 04 '15 edited Mar 04 '15
There are a couple of reasons why research and industry have jumped to raytracing based solutions in favor of REYES (even the Renderman guys... Renderman 19's RIS mode is a 100% raytraced system). Two of the most important reasons are:
Physically based shading and lighting
Asymptotic efficiency
So the first point, physically based shading and lighting. Doing GI in a physically accurate and correct manner requires the ability to evaluate surface BSDFs, for which a rasterization-based approach to evaluation simply does not exist. Calculating complex area lighting and shadowing is also difficult with rasterization, since most approaches to shadow mapping area lights are really hacky and break in weird ways, while raytraced area lights and area shadows is really easy and accurate. Overall rasterization is a bit of a hack; it's a very effective hack especially for primary visibility to the camera, but once you want to start simulating the behavior or light in the real world, it makes more sense to adopt a model of rendering that maps well to how light exists in the world (well... sort of. Raytracing maps very well to the particle model of light, but doesn't take into account wave optics. But that's a whole other story).
Second point, asymptotic efficiency. The base principles behind physically based rendering have been well know and mathematically defined for basically two decades now, but were never really put into practice until the past 5 years or so because of how computationally expensive raytracing has been historically compared with REYES and other rasterization solutions. However, raytracing for direct visibility is actually asymptotically more efficient than rasterization; that is, the more complex your geometry becomes, the closer raytracing will catch up with REYES in efficiency until some point, where raytracing surpasses REYES. In industry, we are basically either at or beyond this point now. Also we just have absolute gobs of computational power these days, so suddenly raytracing is no longer implausibly or infeasible from a computational point of view. Additionally, there are entire classes of effects where rasterization simply doesn't provide any possible avenue towards a solution, such as volume rendering.
So does this mean rasterization is dead? Well, no. At the end of the day, REYES/rasterization and etc. are just approaches for finding direct visibility to the camera of whatever is in the scene, and there's no reason why these approaches can't be used to find the first bounce in a physically based rendering system, and then have raytracing take over beyond that point. Beyond primary visibility, rasterization is completely infeasible for obvious reasons.
So what about raytraced algorithms and displacement or natural scenes/geometry? Fully raytraced renderers like Vray, Arnold, Renderman 19 RIS have been able to handle displacement and landscapes and trees and stuff perfectly fine for a long time now. Raytracing absolutely massive amounts of geometry efficiently was a problem that was basically beaten to death and solved in the late 2000s by the likes of Ingo Wald and others. Just take a look at the outdoor landscapes in projects such as The Third and the Seventh (100% Vray), or the Whiskeytree Athens demo (100% Arnold). Another great example for procedurally generated displacement can be found in some of Inigo Quilez's demos, which are 100% raymarched, 100% procedural, and yet run in realtime in a web browser (mountains demo, canyon demo, volcanic demo). Another great example of heavily procedural based, heavily displaced raytraced natural environments can be found in any film made by Blue Sky Studios (Rio and Epic are especially good examples); Blue Sky's in-house renderer has been a pathtracer since day 1, all the way back in the 1990s, and Blue Sky as a studio basically models and shades using procedurals instead of polygons anywhere they possibly can up to and including primary characters.
Hope that helps!
1
u/autowikibot Mar 04 '15
Bidirectional scattering distribution function:
The definition of the BSDF (bidirectional scattering distribution function) is not well standardized. The term was probably introduced in 1980 by Bartell, Dereniak, and Wolfe. Most often it is used to name the general mathematical function which describes the way in which the light is scattered by a surface. However in practice this phenomenon is usually split into the reflected and transmitted components, which are then treated separately as BRDF (bidirectional reflectance distribution function) and BTDF (bidirectional transmittance distribution function).
====
Interesting: 3D ^rendering | Computer-generated ^imagery | Computer graphics (computer ^science) | Subsurface ^scattering
Parent commenter can toggle ^NSFW or ^delete. Will also delete on comment score of -1 or less. | FAQs | ^Mods | Magic ^Words
4
3
u/aclave1 Mar 03 '15
Looks incredible. I think if you showed these renders to someone as if they were real, they wouldn't question it one bit.
2
u/Harha Mar 03 '15
Amazing work! I can only wish I could achieve something as big as this in the future.
2
1
0
u/physixer Mar 06 '15 edited Mar 06 '15
Great work!
Could you say something about the state of OpenCL (or CUDA) vs OpenGL/GLSL, as well as GPGPU vs special hardware like TMU and ROP?
After exploring OpenGL and failing to find a straightforward way to implement path tracing in it, I've come to realize that OpenGL is pretty much a bloated and technically irrelevant (in principle) standard in the sense that it makes it way harder to do graphics programming and still doesn't let you replace the crappy fixed renderer, although I haven't looked at the latest thing, compute shaders, but even then by making itself more and more general purpose it only ends up making itself obsolete because the same thing could be done, in principle, in OpenCL or CUDA.
Do you think ROP and TMU units in a GPU are part of "fixed" aspects of OpenGL, and going forward, a better approach is that GPU vendors should provide the whole GPU as GPGPU? (TMU might still have utility in a path tracing code since texture mapping is still useful, but TMU should be exposed to OpenCL/CUDA then OpenGL would be irrelvant. So do you think ROP is "fixed" for rasterization and useless for path tracing? I actually don't know how TMU/ROPs operate)
(WebGL is yet another thing that I haven't thought of in context of all this, so my question is mainly for full blown desktop OpenGL, but feel free to comment on the situation in regards to WebGL as well.)
Thanks in advance.
0
Mar 03 '15
[deleted]
3
u/betajippity Mar 03 '15
My own little hobby/research renderer. It's not one of the big-boy commercial renderers.
9
u/[deleted] Mar 03 '15
Couple questions:
How do you begin to "develop a renderer"? Like, if you handed me a billion dollars and said "go forth, and make me a renderer", I literally wouldn't know where to start.
Second, what did you find lacking in current rendering solutions that you decided to invest so much time making a new one? Why would I want to use yours when it's done?