• Advertisement
Sign in to follow this  

Unity Pre-rendered Backdrop with 3d Character

This topic is 1847 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi I'm new here.

 

I'm a programmer who know C#, JavaScript, AS & a little bit of C++.
I'm using actually Unity (C#) for recreating a map in Chrono Cross.

<There is a good example of what I want to reproduce>
http://www.youtube.com/watch?feature=player_detailpage&v=0eZ4TIVMTv8#t=323s

<There is the visual>
http://chronocompendium.com/images/wiki/e/ef/Terra_tower_stairway.png

1# Is it A good think to recreate it on Unity?

 

2# If yes how can I easily put in layer my Background?

*Because I use perspective and with the frustum placing each 2d layer is hard.

*When I move the camera with perspective the layer are offset.


3# How Can I make my player look like smaller when the image is clearly a optical effect? <See Visual & See stairway video>

Thank you everyone in advance & please excuse my English.

 

Share this post


Link to post
Share on other sites
Advertisement
That looks like a resident evil 1 style system, but with 2d scrolling. You just need to render the Z value of each pixel when you render the background (they are all pre-rendered, right, rather than drawn in 2d)? And use that to fill the Z buffer before doing 3d rendering as usual.

Share this post


Link to post
Share on other sites

[quote name='Paradigm Shifter' timestamp='1356821251' post='5015557']
(they are all pre-rendered, right, rather than drawn in 2d)?
[/quote]

They are plane with texture. <Unity style.>

Share this post


Link to post
Share on other sites
Is that like Gangnam Style? ;) Assuming it is billboard planes at a set Z then... just render the layered textures with Z writes and do the 3d characters as normal.

Share this post


Link to post
Share on other sites

[quote name='Paradigm Shifter' timestamp='1356821741' post='5015560']
Is that like Gangnam Style?
[/quote]
Unity Style XD ... it's because Unity is not really good with 2D. This is why I question myself if it's the good engine to do that.

[quote name='Paradigm Shifter' timestamp='1356821741' post='5015560']
just render the layered textures with Z writes and do the 3d characters as normal.
[/quote]
With perspective camera it's just lame of placing the plane. & when the camera with perspective move the plane are offset with each other. We need it if we want perspective with the 3D character. But even there the player don't go smaller when we go down.
 

Share this post


Link to post
Share on other sites

Render the character directly to a texture on a completely different frustum that gives the desired look and then place him on screen as a billboard. Otherwise you are unlikely to get the two to line up perfectly without rendering the character orthographically. Speaking of: to prevent artifacts to the image you will want to render it in screen space not world space. Use parallax scrolling to achieve the effect you want with multiple layers. This also has the added benefit of making the placement of the 2d layers near trivial.

Share this post


Link to post
Share on other sites

[quote name='Aeramor' timestamp='1356829767' post='5015588']
Aeramor

[/quote]
Hummm sorry I'm a little lost right now ^^", I don't think it's possible on Unity. :\

Share this post


Link to post
Share on other sites
You need Unity Pro to render to texture.

If you know where your camera is going to be, and the FOV you can just set up the same camera, and then render the picture WITH the depth values possibly stored in the alpha channel. You can write a shader to do this.

As long as the FOV and camera position is the same, it's pretty much the same as having rendered it out in 3D to begin with, because you have the exact same frame buffer data. Then anything else you render will be the same, because the depth is there to test against.

Share this post


Link to post
Share on other sites

As long as the FOV and camera position is the same


If I need to do translation like this http://www.youtube.com/watch?feature=player_detailpage&v=0eZ4TIVMTv8#t=323s ?
 



Not 100% sure about that.

The camera never changes position or distance in these games, or it would invalidate the pre-rendered point of view. It only pans. So there must be a formula to line up the camera panning and the image panning. I forget the term. It may be called match moving.

You're still in a 3D world, and in that video you posted, the characters are walking and climbing on slopes and planes. So you need a good function to determine where to center the picture based on where the camera is centered.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
  • Advertisement
  • Popular Now

  • Advertisement
  • Similar Content

    • By RoKabium Games
      Custom coffee mugs have arrived... More caffeine!
      Have a great weekend everyone! 
      #gamedev #indiedev #sama #caffeine
    • By Atwo Studios
       
      Hey guys,

      Anthony here from Atwo Studios bringing you some new updates for the new year!
      In this video I go over our game ROY, the new games and some general updates to the company!

      If you have not checked out ROY feel free to give it a try! Many people have said they enjoyed the game thus far!
      ROY: https://goo.gl/o6JJ5P
       
    • By Affgoo
      https://play.google.com/store/apps/details?id=com.NE.Alien
      still a lot of work to do, but its pretty stable  please let me know what you think <3
      Atlas Sentry is a game of destroy everything. Using your turret, simply swivel and shoot your way to victory, upgrading your weapons to unleash destruction on the variety of spaceships. The bigger your combo’s the more score you get! Earn silver as you play and then purchase new weapons and abilities to better deal with your enemy. Different enemies use different tactics and weapons, work out your own priorities in their destruction order. 

      Features: 
      **2 different game modes 
      **A level select mode with 20 difficult levels including a final boss, can you defeat it? **Arcade mode of endless destruction, how long will you last? 
      **High scores to compete against others, see who can take the top spot. 
       
    • By Chamferbox
      Chamferbox, a mini game asset store has just opened with some nice game assets, 
      Here you can find a free greek statue asset 

      Also check their dragon, zombie dragon and scorpion monster out:



      They're running the Grand Opening Sale, it's 30% off for all items, but for gamedev member, you can use this coupon code:
      GRANDOPEN
      to get 50% off prices What are you waiting for, go to
      http://chamferbox.com
      and get those models now!

      View full story
    • By Dafu
      FES Retro Game Framework is now available on the Unity Asset Store for your kind consideration!
      FES was born when I set out to start a retro pixel game project. I was looking around for an engine to try next. I tried a number of things, from GameMaker, to Fantasy Consoles, to MonoGame and Godot and then ended up back at Unity. Unity is just unbeatable in it's cross-platform support, and ease of deployment, but it sure as heck gets in the way of proper retro pixel games!
      So I poured over the Unity pipeline and found the lowest levels I could tie into and bring up a new retro game engine inside of Unity, but with a completely different source-code-only, classic game-loop retro blitting and bleeping API. Months of polishing and tweaking later I ended up with FES.
      Some FES features:
      Pixel perfect rendering RGB and Indexed color mode, with palette swapping support Primitive shape rendering, lines, rectangles, ellipses, pixels Multi-layered tilemaps with TMX file support Offscreen rendering Text rendering, with text alignment, overflow settings, and custom pixel font support Clipping Sound and Music APIs Simplified Input handling Wide pixel support (think Atari 2600) Post processing and transition effects, such as scanlines, screen wipes, screen shake, fade, pixelate and more Deploy to all Unity supported platforms I've put in lots of hours into a very detail documentation, you can flip through it here to get an better glimpse at the features and general overview: http://www.pixeltrollgames.com/fes/docs/index.html
      FES is carefully designed and well optimized (see live stress test demo below). Internally it uses batching, it chunks tilemaps, is careful about memory allocations, and tries to be smart about any heavy operations.
      Please have a quick look at the screenshots and live demos below and let me know what you think! I'd love to hear some opinions, feedback and questions!
      I hope I've tickled your retro feels!



      More images at: https://imgur.com/a/LFMAc
      Live demo feature reel: https://simmer.io/@Dafu/fes
      Live blitting stress test: https://simmer.io/@Dafu/fes-drawstress
      Unity Asset Store: https://www.assetstore.unity3d.com/#!/content/102064

      View full story
  • Advertisement