Nimzog Posted August 5, 2014 Share Posted August 5, 2014 Hello I need to make a "portal" that looks into another map. I looked through the forums and all the comments are either vague or dated. I have a general idea on how : put something(the portal) in front of my player and on the material/display area of the portal display what a camera in the other map sees. I have no idea on how to link said camera to the material/display area. Any input or guidelines are welcome (if possible in c++ please) Quote Link to comment Share on other sites More sharing options...
bandrewk Posted August 5, 2014 Share Posted August 5, 2014 Look up render targets. You render the view from your second world into a texture / material that you apply in the first world. There is an example for LUA that can be easily ported to C++: http://leadwerks.wikidot.com/wiki:render-to-texture-security-cam Quote Link to comment Share on other sites More sharing options...
xtreampb Posted August 6, 2014 Share Posted August 6, 2014 so i had a similar question. you can try this topic Quote bool Life() { while(death=false) { if(death==true) return death; } } I have found the secret to infinite life Did I help you out? Like my post! Link to comment Share on other sites More sharing options...
Nimzog Posted August 19, 2014 Author Share Posted August 19, 2014 Look up render targets. You render the view from your second world into a texture / material that you apply in the first world. There is an example for LUA that can be easily ported to C++: http://leadwerks.wikidot.com/wiki:render-to-texture-security-cam This is one of the topic I was calling dated almost no commands are recognizable in 3.x And thank you xtreampb it helped a lot in making this portal a reality Quote Link to comment Share on other sites More sharing options...
shadmar Posted August 19, 2014 Share Posted August 19, 2014 But that is for 3.x. what is not working with it? Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Nimzog Posted August 19, 2014 Author Share Posted August 19, 2014 this line here looks totally alien to me: self.MainCamera:SetMatrix(self.TrackingPivot:GetMatrix()) and all the matrix related lines Quote Link to comment Share on other sites More sharing options...
shadmar Posted August 19, 2014 Share Posted August 19, 2014 It sets the matrix ..rotation, position and scale, all in one command. Documented under Entity. Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.