Jump to content

Viewport into another map


Nimzog
 Share

Recommended Posts

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)

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...