News for hackers. Stuff that matters.

darkpore

Re:Tsunami alert as Chile hit by powerful earthquake on Wednesday September 16, 2015 @09:05PM (#10230981)
Same here...
Re:Disney's Practical Guide to Path Tracing [video] on Sunday August 02, 2015 @02:35AM (#9989991)
Pixar and Disney are different studios...

The global illumination tech used on monsters university was just standard path tracing with physically-plausible sharers - the first time pixar had used that instead of radiosity caching. Other studios have been using path tracing for years before - pixars lighters are very good however, so the results are very good.

Re:Defending GCC considered futile on Tuesday February 10, 2015 @10:43AM (#9027770)
Yep - you evidently didn't read mine as 165 k lines of c++ isn't exactly a small benchmark :)

Anecdotal, but I've seen similar improvements over g++ in my code.

Re:Porting a Ray Tracer to Rust, Part 1 on Wednesday December 31, 2014 @01:25PM (#8820429)
Would GeometryInstances go directly into an acceleration structure? Surely objects which point to the geometryinstance and each have a worldspace transform are what go in the scene level acceleration structure...

Generally it's advisable to templatize acceleration structures so they can natively cope with triangles, objects and possibly other primitives (spheres and curves) separately.

Re:Porting a Ray Tracer to Rust, Part 1 on Wednesday December 31, 2014 @11:44AM (#8819986)
Rather ironically, Arnold's standard shader still has bugs meaning its Cook-Torrance microfacet model isn't completely energy conserving at glancing angles...
Re:Porting a Ray Tracer to Rust, Part 1 on Wednesday December 31, 2014 @08:00AM (#8819170)
Not the same version then? :)
Re:Popular Myths about C++, Part 3 on Tuesday December 23, 2014 @02:16AM (#8787175)
I guess that depends on your definition of 'easily' - you can provide custom allocator s fairly easily. What's more problematic are things like the memory usage patterns of std::vector and std::string. Once you know how they work you can avoid the pitfalls or use custom alternatives.
Re:Facebook's std::vector optimization on Saturday August 30, 2014 @03:00PM (#8247260)
Games and other high performance users generally used to stay away from the STL. Sony had their own version of STL which addressed some of these issues.
Re:Facebook's std::vector optimization on Saturday August 30, 2014 @07:49AM (#8246199)
You can get around a lot of these issues by reserving the size needed up front, or using a custom allocator with std::vector. Not as easy, but still doable.

The reallocation issue isn't fixable this way however...

Re:Conrod – A Rust GUI Library on Saturday August 30, 2014 @01:42AM (#8245776)
Is there any plan to abstract away the need to handle drawing the widgets yourself, and provide layout functionality?
Re:The Following Code Causes Segfault in Clang on Sunday August 03, 2014 @05:32AM (#8127510)
lol - you're aware that most web browsers are written in C++?