Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by QUICKSORT · May 21, 2013 at 09:38 PM · camerarendertexturepanoramarendertotexture

Multiple camera One rendertexture (panoramic view) Please Help Very Important!!

hi everyone, I have been looking for days and now I'm stuck. I really need help, this is really important, for my bachelor thesis.

So I created a panoramic camera out of multiple cameras with all 10 degrees FOV forming a cilinder. I have to put the output of all of them to one renderTexture. But I can't figure it out.

So my cameras are looking just like in these examples: http://www.youtube.com/watch?v=fUZFLh9zWVs http://www.youtube.com/watch?v=SdaBJ9zgruY

I can so what this guy has done. By just creating a separate plane for each camera, put them all side by side, creating a renderTexture from each camera and put them on those planes accordingly.

HOWEVER! What I need is to have all the outputs of the cameras to be rendered onto ONE texture. Because I have a customly created mesh that is loaded dynamically and I have to put the renderTexture on that.

So far I have tried, creating a renderTexture for every camera, and then putting all those textures onto 1 other created texture, But I couldn't manage to do it. I also Tried merging the cameras by using only one same renderTexture as target for every camera. But I couldn't get that to work either.

This is my custom mesh: alt text

On the example I did put a test texture on it, which is taken my a 360 degree camera. So I need to do the same from in game. (don't mind the jpeg compression artifacts, it's because of the file size limit here on unity answers) alt text

So PLEASE anyone, could you at least give me some advice or ideas?? Even if it sounds stupid, please share, at this point I have nothing to loose with trying.

thanks in advance

ketnet.jpg (483.2 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by crogersKixeye · May 21, 2013 at 11:58 PM

Can you put several materials on the mesh? might have to tweak the UV's Can you stitch the images together? or make the big texture and copy these to it. Check out hugin.sourceforge.net (stitches photos to make a panorama)

Comment
Add comment · Show 6 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image QUICKSORT · May 22, 2013 at 08:32 AM 0
Share

$$anonymous$$y mesh uses at the moment a custom made self-illu$$anonymous$$ated Diffuse shader with 2 different UV coordinates. One coordinates for the alpha masks (you can see on the edges of the meshes (3 of them) fading out to black, those are alpha masks. Because these are outputs for 3 projectors and those 3 meshes overlap, so that's that)

The second UV coordinates are for the texture. They are calculated through a calibration tool just like the meshes their shape.

$$anonymous$$y problem isn't with UV coordinates. $$anonymous$$y problem is creating a panoramic camera output that only exists out of ONE texture. At the moment I only managed to create a panoramic camera by using multiple cameras (And it's not the same when using 2x 180 degrees FOV)

So because I have multiple cameras, I have multiple outputs. I need them to get sideBySide on my mesh. Just like that example texture. So that my gameplay is viewable from my projectors. I hope you understand the idea.

Someone also advised me using orthogonal cameras which render joint quads each with their texture. He said the output to the camera is than one texture. I also didn't understand that well

So simply said, I have these cameras, (27 of them on the example with each 10 degree FOV): Walt textW

And I have to put their output just like my example texture on my custom mesh.

And thanks for your reply. I literally can use ANY help

EDIT: I forgot to mention, The program you suggested doesn't help me. I have to create my output from render-to-textures which are re-calculated every frame. But that programs is just for creating one single texture just like that on my example.

untitled.png (205.9 kB)
avatar image QUICKSORT · May 22, 2013 at 01:34 PM 0
Share

Never $$anonymous$$ind, I solved it. It had to do with viewports. Will share my result/answer when I'm finished implementing it

avatar image crogersKixeye · May 22, 2013 at 07:06 PM 0
Share

http://pixelsorcery.wordpress.com/2010/07/13/fisheye-vertex-shader/

avatar image SpiralConDave · Mar 03, 2015 at 06:12 AM 0
Share

QUIC$$anonymous$$SORT, any news? I had this working myself, for a while. Now my last camera takes over the whole RT, don't know what went wrong.

avatar image SpiralConDave · Mar 03, 2015 at 06:21 AM 0
Share

Actually, found my problem. This only works with Forward rendering.

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

14 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to specify a depthSlice of Camera's targetTexture? 1 Answer

Camera panning on pre-rendered backgrounds 2 Answers

Rendering the same Render Texture differently to separate cameras 0 Answers

Culling Mask with Depth Occlusion 1 Answer

How to make the camera render RenderTexture if the camera is in another scene? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges