{"id":536,"date":"2019-03-10T19:53:48","date_gmt":"2019-03-10T17:53:48","guid":{"rendered":"http:\/\/www.noxis-studio.com\/blog\/?page_id=536"},"modified":"2019-03-12T01:05:07","modified_gmt":"2019-03-11T23:05:07","slug":"render-view-system","status":"publish","type":"page","link":"http:\/\/www.noxis-studio.com\/blog\/render-view-system\/","title":{"rendered":"Render view system"},"content":{"rendered":"<p>[vc_row][vc_column][vc_column_text]<\/p>\n<h4>Render View System<\/h4>\n<p>Render views are used in order to allow offscreen renderings, post-process effects, rendering to several windows &#8230;<br \/>\nA Render view is the association of<\/p>\n<ul class=\"list16\">\n<li>A render target<br \/>\nThe render target is the surface where the scene will be rendered. This can be a texture, the back buffer of a swap chain &#8230;<\/li>\n<li>A viewport<br \/>\nThe viewport is the 2D rectangle into which the rendering is made.<\/li>\n<li>Something to render<br \/>\nThe Render view can render<\/p>\n<ul>\n<li>A scene graph using specific parameters<\/li>\n<li>A 2D quad in order to make a post process effect<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>There are different kinds of Render views:<\/p>\n<ul class=\"list16\">\n<li>Scene graph render views<br \/>\nUsed to render the scene graph into a render target.<\/li>\n<li>Scene graph shadow map render views<br \/>\nUsed to create a shadow map from a light of the scene.<\/li>\n<li>Post process render views<br \/>\nUsed to apply a 2D post-process or screen space effect.<\/li>\n<\/ul>\n<p>Render views are organized into a tree in order to ensure that the children are rendered before the parents. Thus, the parents can use the results of the children (render target textures for instance).<\/p>\n<p><em>The following diagram is an example of Render view graph and should be read from the bottom to the top. It represents the graph used to render a 3D scene with shadow mapping and a water effect using both a reflection and refraction map.<\/em>[\/vc_column_text][vc_single_image image=&#8221;538&#8243; img_size=&#8221;full&#8221; alignment=&#8221;center&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]First, the shadow map render view renders the scene from the light point of view in a texture using a shadow map generation shader.<\/p>\n<p>Then, two post-process render views are used to blur the shadow map.<\/p>\n<p>The blurred result shadow map is used by both a reflection and refraction render views. The reflection render view renders the scene visible from the reflection of the water while the refraction render view renders the underwater.<\/p>\n<p>The main renderview uses the reflection and refraction render views in a water shader for the water rendering but also uses the blurred shadow map (even if it is not a direct child of the node).[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column][vc_column_text] Render View System Render views are used in order to allow offscreen renderings, post-process effects, rendering to several windows &#8230; A Render view [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-536","page","type-page","status-publish","hentry"],"acf":{"full_width":false,"header_transparent":false},"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.noxis-studio.com\/blog\/wp-json\/wp\/v2\/pages\/536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.noxis-studio.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.noxis-studio.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.noxis-studio.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.noxis-studio.com\/blog\/wp-json\/wp\/v2\/comments?post=536"}],"version-history":[{"count":3,"href":"http:\/\/www.noxis-studio.com\/blog\/wp-json\/wp\/v2\/pages\/536\/revisions"}],"predecessor-version":[{"id":540,"href":"http:\/\/www.noxis-studio.com\/blog\/wp-json\/wp\/v2\/pages\/536\/revisions\/540"}],"wp:attachment":[{"href":"http:\/\/www.noxis-studio.com\/blog\/wp-json\/wp\/v2\/media?parent=536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}