Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Drakonno · Sep 09, 2015 at 09:39 AM · texturescenerendercardgraphic

How can I - Display camera view from scene in another scene?

Hello.

I'm trying to create fancy cards with 3D "pictures" on them. If someone played MTG or any trade card game, probably understand my problem and idea better. Sample of a card. As You can assume, there would be many cards, with different pictures.

Because I am not a graphic, I can't make decent 2D sprites, and thought that creating a scene from models, and rendering it on a card would be easier, and prettier, because of all the animations, effects and stuff which can be created in Unity.

I found how to render view from a camera on a object (TextureRender), that's fine. But I'd like to create scene for each picture of card, and display view from camera in that scene on a card. I can workaround it making many cameras, and all my "scenes" somewhere in the world, but it seems to be clumsy. The main thing is, that I would like to use all the features of normal scene, translation, rotation, moving camera for different point of view on a card, special effects and such... [EDIT] when game is running (that's important), so when player pick a card, and look at "picture" he would see moving objects (for example two monsters fighting each other, and casting spells, what will be scripted in scene).

Unfortunately I don't know how:

  1. Store a scene inside memory. (On a list, and get elements from stored scenes.)

  2. Use variables between these scenes. (Like camera, which would make TextureRender for me.)

I'm using C# for scripting, and Unity 5 Personal Edition (it allows to use TextureRenders).

Maybe You have another ideas for duplicating desired by me effect?

Thank You in advance, Drakonno

Comment
Add comment · Show 2
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 Scribe · Sep 09, 2015 at 10:21 AM 1
Share

You can use layers, put your object on a different layer, have a camera that renders only that layer, and render it to your texture. Have you main camera render NOT that layer, but everything else. Done!

avatar image Drakonno Scribe · Sep 09, 2015 at 11:29 AM 0
Share

Point for idea of layers. Strange that I forgot them. Probably because I don't like "random things" packed into one box.

I'd still prefer having possibility to create Co-Scenes somehow. Just less mess inside all prefabs and objects. :)

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Scribe · Sep 09, 2015 at 11:32 AM

You could create the scenes separately, you could then load them additively. But everything you end up using has to eventually be available in your current scene. Which other scenes aren't unless you load them up.

EDIT: With card games you also have the benefit that the camera doesn't move far. Hence you could build your scenes with the camera and model and just position them somewhere high up or far away from the origin, then load them additively. Then you don't have to worry about setting layer masks and things!

Comment
Add comment · Show 2 · 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 Drakonno · Sep 09, 2015 at 02:40 PM 1
Share

That's it. Layers and LoadSceneAdditive do the job. Could You reply (or convert into answer) ins$$anonymous$$d of commenting that I can accept it as answer?

avatar image Scribe Drakonno · Sep 11, 2015 at 09:29 AM 0
Share

Done :) Glad you've work out a good method!

avatar image
0

Answer by IHackedDeath · Sep 09, 2015 at 09:56 AM

Hi Drakonno,

I have read through your question and I am not too sure on how to get the desired effect you are after in unity, but seeing as it sounds like you have created 3d Objects for them I would assume that you use a 3rd party program (eg. 3dMaya, Blender etc.)

What I would do is in those programs I would take a screenshot and save it as an image and then bring that into unity or modify it in another program like photoshop then bring it into unity.

This way you can create a card without needing a camera.

If you were after some more information or wanted further explenation I am happy to help :)

I hope this helps.

Kind Regards.

IHackedDeath.

Comment
Add comment · Show 1 · 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 Drakonno · Sep 09, 2015 at 10:14 AM 0
Share

Hello,

Thank You for answer, I realised that I missed important thing in my question. Edited.

The thing is I want to create a something better than 2D and static picture, so screenshot won't solve it. If a player pick a card, and look in place, where should be a picture, he should see a moving objects. That's why I was messing around with TextureRenders.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

How to keep maya textures in a scene? 1 Answer

Render Texture in Scene 1 Answer

How i can make my scene looks good 1 Answer

Please Help!!! my LineRenderer Script is not show when bulid on android device 1 Answer

is using OnPostRender to draw textures Pro only? 3 Answers


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