• Register

Back in the times when magic was part of our existence, in a land far far away, the dreadful Lords of Evil, planned to subdue the entire world. A young girl fled when the darkness engulfed her village and started a life of adventures. She didn't know how big the world was, only knew the peaceful village she grew up in and now she discover a world of wonders, a world so big and diverse, she never imagine. While traveling through the land she find out that the darkness corrupted the heart of many people, men and women a like. Greed, intolerance and hate has spread far more than the darkness who devoured her village. Her world is in agony and in the brink of falling complete to the eternal darkness. Will she be able to turn the tide? Will she be able to save the world and establish the equilibrium between good and evil?

Post news Report RSS Fixing Unity 5 assets

A while back, after the launch of Unity 5 I've been seduced to switch the project to the new shiny version of the game engine. I knew there will be problems, heck there are problems when installing a new minor version of unity all the time, with scripts written in javascript and not using #pragma strict, with namespace collision and so on.

Posted by on

We added a new blog post about how to fix the assets created for Unity 4.x, especially the trees with transparency. Read the full article here Saradonhildiadventures.com

A while back, after the launch of Unity 5 I've been seduced to switch the project to the new shiny version of the game engine. I knew there will be problems, heck there are problems when installing a new minor version of unity all the time, with scripts written in javascript and not using #pragma strict, with namespace collision and so on. But the worst are those who reveals themselves at play time. While red errors in console prevent you to launch the game, they have the solution and you can fix it, errors that show in player are far more challenging. First of all you need to understand what is happening and be able to describe it accurately. It is of no use to search for rendering problem in Unity while the shaders from assets were crafted with 4.x in mind and don't work anymore. I had such a problem with trees from a package bought before, they shown a white border around the leafs. Searching the Internet revealed a lot of people having the same issue, offering various solutions, none satisfactory. One guys says, disabling the Receive shadows on the mesh renderer fix the problem for him. Tried, didn't worked for me. Another one said it modified the camera background color to black, also didn't helped. I decided after a while, to wait untill the author of the assets update the packages to 5.x version and focused on another pressing issues. Many months later, the author only updated one assets from 3 i had bought from him and there was no ETA for the rest of them. So I decided to investigate the problem in depth and see if I can fix the problem without needing to write shaders myself. I have 2 problematic packages the Medieval Environment and Medieval Village. They have a lot of assets, so I changed only those I had use in main scene for now. It was easy for the buildings and small items (benches, barrels, tables, boxes etc.), just replaced the legacy shaders with standard shader and everything fall in place nicely. Piece of cake. Not so easy though with the trees. All the trees were created with Unity Tree Creator and optimized for 4.x. Luckily I found an easy fix for them too. Just changing shader to the one recommended by Unity fixed all the problems:

Trees must use the Nature/Soft Occlusion Leaves and Nature/Soft Occlusion Bark shader. In order to use those shaders you also have to place the tree in a special folder that contains the name "Ambient-Occlusion".

So, to fix this:

Saradonhildiadventures.com

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Follow Report Profile
Icon
Sara Donhildi Adventures
Platforms
Windows, Mac, Linux
Creator
scarpelius
Engine
Unity
Contact
Send Message
Release date
Game watch
Follow
News
Tags
Fix, Release
Browse
News
New
Post news
Report
Report
Views
53 (1 today)
Share
Related Games
Related Engines
Unity
Unity Commercial