Forums   Articles   Events
SEARCH:
LOGIN:
Register Register Register Contact Us
Go Back   Game Artist Forums > Game Art > Support and Tech Discussion
Register FAQForum Rules Members List Calendar Mark Forums Read
Reply
 
LinkBack Thread Tools Display Modes
Old 08-11-2011, 11:55 AM   #1 (permalink)
MrN
Senior Member
MrN's Avatar
MrN's User Activity: 10/10
155 - 36
Exclamation Animating objects fading out for game engines

Hi, i'm animating a mole, he's sleeping. The zeds coming from his mouth following a spline path constraint to above his head. The problem being is that well they don't fade out in Unity. I was wondering if anybody had any tips and the know-how on this subject. Any help will be greatly appreciated!

In advance sorry if the quality of the video is bad. The issue seen (albeit not greatly due to the video) is the dragging of the z's after reaching the top :S

Sleeping Mole Animation Test Unity3D - YouTube
MrN is offline   Reply With Quote
Old 08-11-2011, 12:56 PM   #2 (permalink)
Senior Member
PermaGrin's User Activity: 1/10
185 - 46
Could you make them a particle effect (so-to-speak) and then (do not know Unity's particle control) make them fade near the end of their lifetime?
PermaGrin is offline   Reply With Quote
The Following User Says Thank You to PermaGrin For This Useful Post:
MrN
Old 08-11-2011, 01:35 PM   #3 (permalink)
MrN
Senior Member
MrN's Avatar
MrN's User Activity: 10/10
155 - 36
Quote:
Originally Posted by PermaGrin View Post
Could you make them a particle effect (so-to-speak) and then (do not know Unity's particle control) make them fade near the end of their lifetime?
Most likely yeah, that's an option i've considered but it would be awesome to know to know how to do it this way too. If i'm unable to resolve it i'll probably keep it how it is or go for the particle emitter.
MrN is offline   Reply With Quote
Old 09-11-2011, 02:07 AM   #4 (permalink)
Amateur Artist
Piflik's Avatar
Winner of Speed Modeling 
Piflik's User Activity: 6/10
223 - 102
I'd definitely use particles for that in Unity. Although I don't think you can make them follow a given path...

To fade meshes out over time I guess you would either need to create an animated material (pro only) or offset the UVs via a script to use a different tile of a texture strip/matrix and change the opacity that way...
Piflik is offline   Reply With Quote
The Following User Says Thank You to Piflik For This Useful Post:
MrN
Old 09-11-2011, 03:23 AM   #5 (permalink)
New Member
Valerien's User Activity: 5/10
50 - 26
A rather simple way to handle this kind of effect is to use an unused animation channel and bind another channel to it via script in unity.

You can make a shader with a controllable alpha value through the UI and then via script. In your shader, you only have to append it to the diffuse XYZ channels. Then in maya, you can animate for example the X scale of your objects, and using script use this value to change your opacity, then reset the X scale to 1.
You'll probably have to split your objects, but this avoids using a more complex shader and sampling a new texture.

Particles are terrible in unity, you can only make basic effects. They're working on a brand new engine for the next release.
Valerien is offline   Reply With Quote
The Following User Says Thank You to Valerien For This Useful Post:
MrN
Old 09-11-2011, 09:18 AM   #6 (permalink)
MrN
Senior Member
MrN's Avatar
MrN's User Activity: 10/10
155 - 36
Thanks for the help everyone, here's the progress so far as i've gone with a particle effect...

Unity3D sleep particle effect & paratrooper mole - YouTube

I think if i tweak this some more it will look better. The paratrooper isn't finished as i havent finished the animation and texture, for the texture, i've used a modified Toonshader to allow alpha transparency and backfacing, although the culling is a bit dodgy. Not too sure why.
MrN is offline   Reply With Quote
Reply

Bookmarks
Digg del.icio.us StumbleUpon Google
Thread Tools
Display Modes




All times are GMT -5. The time now is 11:04 AM.


Powered by vBulletin® Version 3.7.0 Beta 4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0
Copyright © 2006-2008 Game-Artist.Net