Friday, December 18, 2015

Data Driven Rendering in Stingray


We’re all familiar with the benefits that a data driven architecture brings to gameplay: code is decoupled from data, enabling live linking and rapid iteration. Placing new objects in the editor or modifying the speed of a character has an immediate effect on a live game instance. Really speeds up the development process as you fine tune scripts, gameplay and other content.

What about graphics programming?  It turns out that the same architecture and associated benefits apply to Stingray’s renderer.

Just by modifying configuration files (albeit somewhat complex configuration files) we can implement new shader programs, post-processing effects and even different cascading shadow map implementations. All in real time, on a live game instance. Which is a big win for graphics programmers: try out new ideas, fine tune shaders all with real-time feedback. No more of that long edit/compile/run/debug cycle. And this applies to the entire rendering pipeline: everything from the object space to world space transforms to shadow casting and the final rendering pass is all exposed as config file data, not as C++ code as with traditional architectures.

I gave a presentation on this topic a while back which has now found it’s way to our YouTube channel:

https://www.youtube.com/channel/UC0fIe6XV1PjilADTei9JMOA

By the way, there’s a lot of other great Stingray content up there so please check it out! The renderer presentation can be found under “Stingray Render Config Tutorial.”

The details as well as a PowerPoint can be found there. The code changes to add a trivial greyscale post-processing effect involve:

settings.ini: 

The render_config variable points to the renderer.config file. Settings.ini also provides a section to override default settings found in the next file, renderer.render_config

core/stingray_renderer/renderer.render_config:

Points to our shader libraries, text files containing actual shader programs. A section called global_resources allocates graphics buffers, such as scratch buffers for the cascading shadow maps and G-buffers for deferred rendering along with the main framebuffer. And most of the actual rendering is invoked in the resource_generators section. Again, more details in the YouTube video though a surprising amount can be learned just by grepping through the various config files and playing with the settings. Which is easy to do since it’s all data driven!

core/stingray_renderer/shader_libraries/development.shader_source:

One of several shader libraries. While shader code can be entered as text here, Stingray also provides a graphical node-based shader editor. And we support ShaderFX materials from Max or Maya. It’s often easier (and more portable) to implement shaders graphically.

But whatever method you choose to implement shaders in, the key point is that Stingray's entire rendering pipeline is fully accessible through configuration files. With our data driven architecture making complex rendering changes, while still non-trivial, is a whole lot faster and easier (and portable!) than working with platform-specific C++ code.

69 comments:

  1. Hi there is not link to any power point presentation in the youtube channel. I could only find this old presentation http://gamedevs.org/uploads/benefits-of-a-data-driven-renderer.pdf

    ReplyDelete

  2. Thanks for all the tips mentioned in this article! it’s always good to read things you have heard before and are implementing, but

    from a different perspective, always pick up some extra bits of information.

    geek squad support
    geek squad chat
    Webroot geek squad
    geek squad tech support
    norton.com/setup
    trend micro download

    ReplyDelete
  3. Thank you for the inspiring and insightful piece of writing. I found This post is quite helpful.

    Visit: www.trendmicro.com/bestbuypc

    ReplyDelete
  4. Nice and well written post. Almost you cover all thing in an amazing post.

    Visit: MY.KASPERSKY.LOGIN

    ReplyDelete
  5. Thanks For Sharing Information, I really Like Your Blog. Its Really Helpful For me And Please Keep Posting.

    Visit: kaspersky download already purchased

    ReplyDelete
  6. Wow!! It's a really great experience sharing with us. I like your post, it's a really interesting.

    Visit: www.trendmicro.com/bestbuypc

    ReplyDelete
  7. Nice and well written post. Almost you cover all thing in an amazing post.

    Visit: www.trendmicro.com/downloadme

    ReplyDelete
  8. very nice put up, i certainly love this web site, keep on it.

    Visit: Enter Norton product key

    ReplyDelete
  9. Wonderful blog post, thank you so much for the great information which you provided.

    Visit: bitdefender sign in

    ReplyDelete
  10. Thank you for the inspiring and insightful piece of writing. I found This post is quite helpful.

    Visit: install trend micro on new computer

    ReplyDelete
  11. Nice and well written post. Almost you cover all thing in an amazing post.

    Visit: www.trendmicro.com/downloadme

    ReplyDelete
  12. Thanks For Sharing Information, I really Like Your Blog. Its Really Helpful For me And Please Keep Posting.

    Visit: AOL DESKTOP GOLD DOWNLOAD

    ReplyDelete
  13. Wow!! It's a really great experience sharing with us. I like your post, it's a really interesting.

    Visit: how to download bitdefender already paid for

    ReplyDelete
  14. If you are a QB user, then you must keep checking the QuickBooks upgrade to enhance the productivity of your business. In every upgrade, you get new and advanced features. You can get in touch with our Experts to know more about these features and they will make you learn all the functionalities in a better way. You can help our experts related to QB.
    quickbooks error 3371
    quickbooks error h505
    QuickBooks Enterprise 2020
    quickbooks pos
    quickbooks file doctor crashes
    quickbooks online payroll login
    Quickbooks Cloud Accounting
    quickbooks bookkeeping
    quickbooks upgrade 2020

    ReplyDelete
  15. Are you finding cheap airlines services? If yes, not fret! 247customerservicenumber offer some amazing deals to make your journey cheaply. Get hands on these deals without ruining your pocket. Grab the best discount offer.
    copa airlines reservations
    southwest airlines reservations
    frontier airlines reservations
    Delta airlines reservations
    Volaris Reservations
    Turkish airlines reservations

    ReplyDelete
  16. WOW! I Love it...

    and i thing thats good for you >> DREAM MEANING Thank you!

    ReplyDelete
  17. Hi, I'm Rakshit, a passionate travel blogger. I have 2+ experience in travel blogging. With a passion for exploring the planet and bringing new lives into the world. Follow my blogs to know all my travel experiences and get amazing tips & tricks to make your travel experience amazing.
    delta flight

    ReplyDelete
  18. Visit microsoft365.con/setup or Microsoft Cloud Partner site. Click on “create a new account” or “Sign Up” tab. Enter an email associating to Outlook or use a mobile number. Click next and create a password. Follow instructions and create Microsoft Office 365.

    ReplyDelete
  19. canon is the most preferred choice of the users for printing the document. To set up your canon printer, you can visit the ij.start.canon and download the appropriate printer drivers, manual and guide for your printing device.

    ReplyDelete
  20. Hello, we provide help support services for canon printer users and a new smart wireless printer at a reasonable rate. Canon is one of the best leading and reliable scanner brands. This printer give sleek and stylish, our range of compact printers provides perfect all-in-one home printing. Canon printers are designed for small, home office printers for fast, high-quality document printing. With this printer, you get multiple connectivity options, including Wi-Fi, USB, Bluetooth, and application for wireless printing.
    https://ijstartcannonx.com/

    ReplyDelete
  21. Hello friends, if you have any problem related to printer or get any information about it, then we are providing you a site for this, which will only give you information about it. ij.start.cannon

    ReplyDelete
  22. I really enjoyed this information.
    Thanks for sharing this wonderful piece of information.
    The adequate and sans hands setup is there, you just need to pursue the rules as referenced on that page.
    Get more guidelines to setup, configure and troubleshoot your device setup, configure and troubleshoot your printers which resolves your problems in case if you have any queries just check into my websites http//ij.start.canon blogs to resolve your problem.

    ReplyDelete
  23. brother printers are generally excellent according to their functioning effectiveness, speed, and quality printing. Be that as it may, even the best one separates after some time. How can i fix Brother printer not printing issue The equivalent goes, with Brother Printer. There is a period come when each Brother Printer user needs a Brother Printer Troubleshooting Guide. The most well-known issues Brother Printer user faces are – issue in printing, printer not printing, or paper sticking issues, and so on Here, Brother Printer Troubleshooting Guide will help you in tackling these issues – When Brother Printing isn't printing any archives. The explanation for such issues can be numerous, for example, - Lack of ink or paper sticking issues, absent or obsolete drivers, defective drivers are a portion of the normal reasons.

    ReplyDelete
  24. It’s really a great and useful piece of info. I am glad that you shared this helpful information with us.
    We want to tell you about our site. In our post, we have been told about canon.comijsetup printer installation, which will tell you the easiest way to install the printer, which will make your work even more comfortable.

    ReplyDelete
  25. Thank you very much for this useful information. I am glad i read this article. You also good writer but you good thinker. I am happy after reading your post.

    We set up a driver for online canon ij setup printers. So you can tell us regarding the problem and we solve by remotely. If you have any query so please tell us or visit us.

    ReplyDelete
  26. The carriers permit minor name amendment on approved tickets. Under the Delta airlines name change, minor changes are permitted for the client’s name on the ticket coordinates precisely as it shows up on the officially sanctioned personal ID. Joined Airlines change name on the ticket is precluded as it’s anything but permitted to change the proprietorship starting with one traveler then onto the next. According to Delta flight name change policy, no progressions would be allowed in the event of flight date, time. Minor adjustments would be permitted to the date of birth simply because of mistakes submitted at the hour of making a booking.

    ReplyDelete
  27. Nice article Thank you so much for sharing with us. in case, if Gmail not work properly visit at: Fix Gmail problem

    ReplyDelete
  28. Do you want to know the clarity whether Is The $750 Cash APP Real or fake? You should simply have a word with the Cash App troubleshooting professionals who are capable of delivering you with the right answer and the best possible solutions under the proper supervision of the ingenious troubleshooting professionals.

    ReplyDelete
  29. How Do I Recover My Cash App Account by Taking Expert’s Assistance?
    Have you lost access to your Cash App account due to security problems? Don’t you know How Do I Recover My Cash App Account? Simply take assistance directly from the Cash App experts who are always ready to help you out in every possible manner. Here, you will need to implement the instructions they suggested

    ReplyDelete
  30. Why Cash App Won't Let Me Send Money? Find Several Reasons
    Are you one of those Cash App account holders who are looking forward to understand Cash App Won't Let Me Send Money? It does the same when it finds out any suspicious activities in your Cash App account. Moreover, you will also need to take help from the troubleshooting professionals and experts

    ReplyDelete
  31. Can The Sender Cancel A Cash App Payment To Avoid The Money Deduction
    Yes, the sender can cancel the Cash App payment if it is in the pending state. Apart from that, what you can do if you don’t know how Can The Sender Cancel A Cash App Payment. In such a case, there is a help section available through which you will be able to make yourself aware of the right procedure and steps.

    ReplyDelete
  32. Understand How Can The Sender Cancel A Cash App Payment With Ease
    You have to cancel the payment as quickly as possible if you have entered the wrong credentials. Don’t take stress if you are not acquainted with how Can The Sender Cancel A Cash App Payment! You should simply go to the Cash App official help section where you can find out the required steps and guidelines.

    ReplyDelete
  33. How Can The Sender Cancel A Cash App Payment Before It Reflects? The Cash App payments are instant and will be reflected into the receiver’s account in a couple of seconds. So, if you have made a wrong transaction, you should try canceling the payment without wasting your time. Take help from the official sources if you don’t know how Can The Sender Cancel A Cash App Payment.

    ReplyDelete

  34. แทงบอล 168

    เกมใหม่ภาพสวย แจ่ม!!

    ReplyDelete
  35. very good to know about the blogpost. that's very amazing blog by author .
    use link for more about Netgear extender mywifiext .
    very good service provider in the world . gives fastest internet connectivity .

    ReplyDelete
  36. Hello Sir I saw your blog, It was very nice blog, and your blog content is awesome, i read it and i am impressed of your blog, i read your more blogs, thanks for share this summary.
    Facebook Not Working Properly

    ReplyDelete
  37. Wow, that's very wonderful news and blog about the canon gadget's. i love to see this blog , looks so fabulous. i appreciate the words and blog of author. love to see again this type of blog by the author.
    Canon printer is the best printer brand used by many of the users in the worldwide. If anyone having the technical problem regarding the canon printer process or installation.
    canon pixma drivers

    ReplyDelete
  38. yes i love to see this type of blogs at this site , thank you for the site owner for providing the valuable information to the users and me. this site is just a wonderful and present always a wonderful content.
    Canon printer is the backbone of printing in the every office or mall or business firm etc. because it will provide you the best quality of the printing and scanning .
    if you need any type of technical help regarding the installation , download of drivers , visit us ijsetupcanon

    ReplyDelete
  39. What a article this was, so interesting to read this. i love this type of content on the internet. these blogs are just awesome and provide us some extra knowledge and information .
    In the today's era every one is doing the printing work , but in almost every where canon printer is the mostly used printer on this earth. every where you can see the working canon printer.
    so, if you need any help regarding the canon printer than visit us :
    pixma printer
    canon mp495

    ReplyDelete
  40. this blog is posted on the technology information. which is very essential in the field of internet. so author just provided the important blog with us . just like author if you need any help related to canon printer for any model than just walk into the site
    canon pixma mg2522 canon pixma ts5320

    ReplyDelete
  41. author mind is creative and also some good thinking sense in the mind. because author loves to share the information with the users. i love to see this again in the form of technology .
    canon support , if you need help regarding this printer than click o the printer name :

    ReplyDelete
  42. what an amazing blog by the author, this blog provides us many good information which is good for me and the users. i love to see again these types of blogs. canon ts3322 printer is the best printer in the world. so we provide the best solutions for your canon ts3322 problems. if you need any help just visit here

    ReplyDelete
  43. This site is as good i want see. this site contains some good blogs and content. author is the greatest thinker because here the blogs are just wonderful and useful. same like IF any canon printer need to setup their printer on mac , and don't have proper information about this setup. so, just we are here to provide this full information in free. just tap the button. PIXMA G620
    g620s

    ReplyDelete
  44. Wow! This could be one of the most useful blogs we have ever come across on thesubject. Actually excellent info! I’m also an expert in this topic so I can understand your effort.



    토토사이트웹
    먹튀검증

    ReplyDelete
  45. Yay google is my queen assisted me to find this great web site!

    섯다 팁
    고스톱

    ReplyDelete
  46. I’m really enjoying the design and layout of your website.
    It’s a very easy on the eyes which makes it much more pleasant for me to come
    here and visit more often. Did you hire out a developer to create your theme?
    Exceptional work!

    토토사이트
    메이저사이트 목록
    먹튀검증

    ReplyDelete
  47. HP laptop is totally an easy computing machine for users. If any users want to take a screenshot on their 123.hp/setup hp laptop running Windows or Chrome OS, which means you can click screenshots with an easy keyboard click.

    ReplyDelete
  48. Have A Word With Experts Via Cash App Customer Service Phone Number
    If you are suffering from any glitches or troubles while sending or receiving money on your Cash App account, you should immediately take outstanding support from the experienced Cash App professionals. To have a word with them, just place a call at Cash App Customer Service Phone Number
    right now!

    ReplyDelete
  49. Can I Unlock Facebook Account If Get Locked Unknowingly?
    Are you looking for a solution to get your Facebook account locked account? In such a case, you have to visit the Facebook help center as quickly as possible. All you have to do is to determine the instructions and carefully implement the steps so that you can easily Unlock Facebook Account
    without any kind of loopholes.

    ReplyDelete
  50. It's hard to find the best printer installation and printer repair service, But you don't have to worry for that as you've already found it. We are the specialized team of experts who are particularly skilled in this domain and we'd be more than happy to help you with your problems.

    ReplyDelete
  51. World777 is the biggest Esports Fantasy and fan engagement platform in Asia, created in 2020 by seasoned businessmen Mr. Rishabh Bhansali and Ms. Richa Singh. Here, players may access carefully chosen content and receive their daily need of thrills by playing fantasy on 10+ games, including FreeFire, PUBG PC, PUBG Mobile, COD Mobile, COD PC, Valorant, CS:GO, League of Legends, and DOTA 2, which has a winning distribution of more than 50 lakhs.

    ReplyDelete
  52. Being awesome among uPVC windows producers in the country, Fenesta brings to you a broad scope of stunning and wonderful home window plans that won't just change the façade of your home yet additionally shield your home from the upvc window suppliers in gurugram rest of the world. With the right window plan for your home, you can keep out the commotion, residue, downpour, and contamination, alongside overseeing the rising energy costs. We offer creative uPVC window plans that length the most famous kinds of windows in India, going from sliders and casement home windows to sound, slant and-turns , and blend home windows.

    ReplyDelete
  53. Getting an ATA Certified Translation Service is a major benefit to a translator’s career. The ATA is a well-trusted name in the United States and across the globe and is a recognized (and requested) certification for many prestigious organizations that hire translators.

    ReplyDelete
  54. O The Spanish Group se orgulha de estar entre as empresas de serviço de tradução disponíveis no mercado. Também oferecemos nosso serviço de entrega urgente, o que significa que garantimos a entrega no mesmo dia.

    ReplyDelete
  55. Thank you for the inspiring and insightful piece of writing. I found This post is quite helpful.Very good service, very funny and thoughtful. I recommend 100% ! He makes the trip great !!Indian Private Driver

    ReplyDelete
  56. In Texas, auctions serve as dynamic marketplaces where diverse goods are bought and sold through competitive bidding. Ranging from antiques and art to real estate and livestock, these events attract a wide array of participants seeking unique treasures or investment opportunities. Auctions in Texas blend tradition with modern technology, often featuring both in-person and online bidding options.

    Whether held in iconic auction houses, community centers, or conducted virtually, these events showcase the state's rich cultural tapestry. From sprawling ranches to urban art scenes, Auctions Texas offer a captivating blend of history, innovation, and the thrill of securing one-of-a-kind items in the Lone Star State.

    ReplyDelete
  57. To contact a live person at Etihad, dial their customer service number and follow the prompts to speak with a representative. Alternatively, visit Etihad's official website and look for the "Contact Us" section to find relevant phone numbers or live chat options. Express your concerns or queries clearly to get assistance from an https://www.airmonks.com/blog/how-do-i-speak-to-a-live-person-at-etihad for a more personalized and efficient resolution.

    ReplyDelete