Skip to content
Browse files

Use correct ViewProjection at right time (pick world position, reset …

…projection position, preview projection as world camera)
  • Loading branch information...
1 parent 9ce1d92 commit d5ae94ed809c8321c5f890a54222ca4b4619f1bf @elliotwoods committed Jun 3, 2012
Showing with 55 additions and 47 deletions.
  1. +16 −16 Subpatches/Mesh.SelectPoints.v4p
  2. +39 −31 Subpatches/Renderer World.v4p
View
32 Subpatches/Mesh.SelectPoints.v4p
@@ -195,6 +195,8 @@
</PIN>
<BOUNDS type="Box" width="4800" height="3600">
</BOUNDS>
+ <PIN pinname="Renderer ViewProjection" visible="1">
+ </PIN>
</NODE>
<NODE componentmode="Hidden" filename="Mesh.Viewer.v4p" id="90" nodename="Subpatches\Mesh.Viewer.v4p" systemname="Mesh.Viewer">
<BOUNDS height="270" left="405" top="1650" type="Node" width="2730">
@@ -426,16 +428,6 @@
<LINKPOINT x="5900" y="13320">
</LINKPOINT>
</LINK>
- <LINK srcnodeid="89" srcpinname="View Projection" dstnodeid="0" dstpinname="View Projection" linkstyle="Bezier" hiddenwhenlocked="1">
- <LINKPOINT x="13035" y="16365">
- </LINKPOINT>
- <LINKPOINT x="13245" y="8175">
- </LINKPOINT>
- <LINKPOINT x="12570" y="2205">
- </LINKPOINT>
- <LINKPOINT x="6795" y="2205">
- </LINKPOINT>
- </LINK>
<NODE systemname="GT (Value)" nodename="GT (Value)" componentmode="Hidden" id="106">
<BOUNDS type="Node" left="10725" top="6165" width="100" height="100">
</BOUNDS>
@@ -521,14 +513,14 @@
<LINK srcnodeid="102" srcpinname="Layer" dstnodeid="91" dstpinname="Layer 3">
</LINK>
<NODE nodename="IOBox (Node)" componentmode="InABox" id="110" systemname="IOBox (Node)">
- <BOUNDS type="Node" left="8580" top="16620" width="0" height="0">
+ <BOUNDS type="Node" left="4485" top="16620" width="0" height="0">
</BOUNDS>
- <BOUNDS type="Box" left="8580" top="16620" width="795" height="240">
+ <BOUNDS type="Box" left="4485" top="16620" width="795" height="240">
</BOUNDS>
<PIN pinname="Descriptive Name" slicecount="1" encoded="0" values="|View Projection|">
</PIN>
</NODE>
- <LINK srcnodeid="89" srcpinname="View Projection" dstnodeid="110" dstpinname="Input Node">
+ <LINK srcnodeid="89" srcpinname="Camera ViewProjection" dstnodeid="110" dstpinname="Input Node">
</LINK>
<NODE nodename="IOBox (Node)" componentmode="InABox" id="111" systemname="IOBox (Node)">
<BOUNDS type="Node" left="8880" top="10500" width="0" height="0">
@@ -976,14 +968,14 @@
</LINK>
<LINK srcnodeid="111" srcpinname="Output Node" dstnodeid="115" dstpinname="Source" linkstyle="Bezier" hiddenwhenlocked="1">
</LINK>
- <LINK srcnodeid="89" srcpinname="View Projection" dstnodeid="101" dstpinname="View Projection" linkstyle="Bezier">
+ <LINK srcnodeid="89" srcpinname="Camera ViewProjection" dstnodeid="101" dstpinname="View Projection" linkstyle="Bezier">
<LINKPOINT x="8565" y="13088">
</LINKPOINT>
<LINKPOINT x="4350" y="13088">
</LINKPOINT>
</LINK>
- <LINK srcnodeid="89" srcpinname="View Projection" dstnodeid="124" dstpinname="View Projection" linkstyle="Bezier">
- <LINKPOINT x="8625" y="14970">
+ <LINK srcnodeid="89" srcpinname="Camera ViewProjection" dstnodeid="124" dstpinname="View Projection" linkstyle="Bezier" hiddenwhenlocked="1">
+ <LINKPOINT x="4545" y="14970">
</LINKPOINT>
<LINKPOINT x="12885" y="14970">
</LINKPOINT>
@@ -1000,4 +992,12 @@
</LINK>
<LINK srcnodeid="0" srcpinname="Mouse Over" dstnodeid="141" dstpinname="Input">
</LINK>
+ <LINK srcnodeid="89" srcpinname="Renderer ViewProjection" dstnodeid="0" dstpinname="View Projection">
+ <LINKPOINT x="13575" y="16380">
+ </LINKPOINT>
+ <LINKPOINT x="13575" y="2835">
+ </LINKPOINT>
+ <LINKPOINT x="6645" y="2835">
+ </LINKPOINT>
+ </LINK>
</PATCH>
View
70 Subpatches/Renderer World.v4p
@@ -87,11 +87,11 @@
<LINK dstnodeid="4" dstpinname="Input 2" srcnodeid="7" srcpinname="Actual Backbuffer Height">
</LINK>
<NODE componentmode="InABox" id="2" nodename="IOBox (Node)" systemname="IOBox (Node)">
- <BOUNDS height="0" left="4815" top="8145" type="Node" width="0">
+ <BOUNDS height="0" left="5115" top="8145" type="Node" width="0">
</BOUNDS>
- <BOUNDS height="240" left="4815" top="8145" type="Box" width="795">
+ <BOUNDS height="240" left="5115" top="8145" type="Box" width="795">
</BOUNDS>
- <PIN encoded="0" pinname="Descriptive Name" slicecount="1" values="|View Projection|">
+ <PIN encoded="0" pinname="Descriptive Name" slicecount="1" values="|Camera ViewProjection|">
</PIN>
<PIN pinname="Input Node" visible="1">
</PIN>
@@ -430,32 +430,6 @@
</NODE>
<LINK srcnodeid="43" srcpinname="Output" dstnodeid="40" dstpinname="Input 2">
</LINK>
- <NODE systemname="Multiply (Transform)" nodename="Multiply (Transform)" componentmode="Hidden" id="44">
- <BOUNDS type="Node" left="4815" top="5550" width="1350" height="270">
- </BOUNDS>
- <PIN pinname="Transform Out" visible="1">
- </PIN>
- <PIN pinname="Transform In 1" visible="1">
- </PIN>
- <PIN pinname="Transform In 2" visible="1">
- </PIN>
- <PIN pinname="Transform In Count" slicecount="1" values="3">
- </PIN>
- <PIN pinname="Transform In 3" visible="1">
- </PIN>
- </NODE>
- <LINK srcnodeid="44" srcpinname="Transform Out" dstnodeid="2" dstpinname="Input Node" linkstyle="VHV">
- <LINKPOINT x="4860" y="6693">
- </LINKPOINT>
- <LINKPOINT x="4800" y="7423">
- </LINKPOINT>
- </LINK>
- <LINK srcnodeid="6" srcpinname="View" dstnodeid="44" dstpinname="Transform In 1" hiddenwhenlocked="0" linkstyle="VHV">
- <LINKPOINT x="5275" y="5063">
- </LINKPOINT>
- <LINKPOINT x="4880" y="5063">
- </LINKPOINT>
- </LINK>
<LINK srcnodeid="5" srcpinname="Transform Out" dstnodeid="41" dstpinname="Transform In 3" linkstyle="VHV">
<LINKPOINT x="7375" y="4555">
</LINKPOINT>
@@ -562,12 +536,46 @@
</LINK>
<LINK srcnodeid="51" srcpinname="Output" dstnodeid="45" dstpinname="Go To Position">
</LINK>
- <LINK srcnodeid="6" srcpinname="Projection" dstnodeid="44" dstpinname="Transform In 2">
- </LINK>
<LINK srcnodeid="5" srcpinname="Transform Out" dstnodeid="44" dstpinname="Transform In 3" linkstyle="Bezier">
<LINKPOINT x="7710" y="4898">
</LINKPOINT>
<LINKPOINT x="6165" y="4898">
</LINKPOINT>
</LINK>
+ <LINK srcnodeid="6" srcpinname="View Projection" dstnodeid="2" dstpinname="Input Node">
+ </LINK>
+ <NODE componentmode="InABox" id="53" nodename="IOBox (Node)" systemname="IOBox (Node)">
+ <BOUNDS height="0" left="7065" top="8145" type="Node" width="0">
+ </BOUNDS>
+ <BOUNDS height="240" left="7065" top="8145" type="Box" width="795">
+ </BOUNDS>
+ <PIN encoded="0" pinname="Descriptive Name" slicecount="1" values="|Renderer ViewProjection|">
+ </PIN>
+ <PIN pinname="Input Node" visible="1">
+ </PIN>
+ </NODE>
+ <NODE systemname="Multiply (Transform)" nodename="Multiply (Transform)" componentmode="Hidden" id="54">
+ <BOUNDS type="Node" left="7050" top="7260" width="100" height="100">
+ </BOUNDS>
+ <PIN pinname="Transform In 2" visible="1">
+ </PIN>
+ <PIN pinname="Transform Out" visible="1">
+ </PIN>
+ <PIN pinname="Transform In 1" visible="1">
+ </PIN>
+ </NODE>
+ <LINK srcnodeid="41" srcpinname="Transform Out" dstnodeid="54" dstpinname="Transform In 2" linkstyle="Bezier">
+ <LINKPOINT x="6030" y="6233">
+ </LINKPOINT>
+ <LINKPOINT x="7305" y="6233">
+ </LINKPOINT>
+ </LINK>
+ <LINK srcnodeid="54" srcpinname="Transform Out" dstnodeid="53" dstpinname="Input Node">
+ </LINK>
+ <LINK srcnodeid="6" srcpinname="View" dstnodeid="54" dstpinname="Transform In 1" linkstyle="Bezier">
+ <LINKPOINT x="5370" y="5918">
+ </LINKPOINT>
+ <LINKPOINT x="7050" y="5918">
+ </LINKPOINT>
+ </LINK>
</PATCH>

0 comments on commit d5ae94e

Please sign in to comment.
Something went wrong with that request. Please try again.