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 unicornstudios · Jul 27, 2012 at 11:01 PM · gravityparticlefirebluremitter

Particle following Emitter Problem

Hello there guys, I have a problem, I made a simple Candle particle system but when I move the emitter:

alt text

I just want it to move like a normal candle,you know just move a little for the air resistance. If someone know the solution please explain me how to do it or if you want more information :)

Problem Number 2:

I've attached the Camera an image effect, Depth of Field,so the distant background is blurred. So when the flame faces the blurred background... :

alt text

I want it to be just a Simple Flame like when it's infront of an unblurred background :)

Any help would be vary appreciated :) Thank you!

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

3 Replies

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

Answer by ScroodgeM · Jul 28, 2012 at 06:23 PM

answer 1

change 'Emitter velocity scale' to 0.5 - 1 to apply emitter's move speed to particles

answer 2

'depth of field' effect is based on distance from camera to object. that distance is taken from z-buffer (also known as camera's depth texture). transparent objects (and particles too) doesn't write to z-buffer it's distance

that's why flame is blurred. all you need is to draw flame AFTER applying blur effect. this can be achieved using second camera for flame only and render it after main camera.

also you can draw flame with z-write enabled, but this can make some strange effects at flame edges.

answer 3 (bonus)

demo: http://zammyart.com/UA/SmallFire/WebPlayer.html sources: http://zammyart.com/UA/SmallFire/smallfire.unitypackage

answer 4 (extra bonus)

switch to 'simulate in world space' to off, attach this to emitter, and try to move in game mode.

using UnityEngine; using System.Collections;

public class AirResistance : MonoBehaviour { public Vector3 ConstantSpeed = Vector3.up; public float EmitterSpeedAffect = 1f;

 ParticleEmitter particleEmitter;
 Vector3 lastPosition;

 void Start() { particleEmitter = GetComponent<ParticleEmitter>(); }

 void Update()
 {
     Vector3 newPosition = transform.position;
     particleEmitter.localVelocity = ConstantSpeed - (newPosition - lastPosition) * EmitterSpeedAffect / Time.deltaTime;
     lastPosition = newPosition;
 }

}

Comment
Add comment · Show 9 · 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 unicornstudios · Jul 29, 2012 at 12:12 AM 0
Share

Hello,thanks for your answer,I fixed the blurred flame but I think you didn't get what's my problem for the 1st one. I didn't change the velocity to have that kind of flame as Picture 1 shows, that's a trail thingy it leaves when I move the candle. I think you get what I mean,It's should move only a bit when I move the flame,like a real flame,but ins$$anonymous$$d when I move the flame (move the emitter) it leaves on hell of a particles after it following the emitter.

avatar image ScroodgeM · Jul 29, 2012 at 05:26 AM 0
Share

i think i understand your question. world speed exactly do what you want, after emitter is moved all already emitted particles are not moved.

PS i can't load picture 1 from question.

avatar image unicornstudios · Jul 29, 2012 at 01:35 PM 0
Share

Hello there,thank you for your time, but I don't seem to have a "World Speed" setting. Here is the Picture from Question one. http://i50.tinypic.com/ern78k.png And now see that I don't have the World Speed setting: http://screensnapr.com/v/o3Yddk.jpg Thanks for your time.

avatar image ScroodgeM · Jul 29, 2012 at 05:27 PM 0
Share

i'd edit answer

avatar image unicornstudios · Jul 31, 2012 at 02:14 PM 0
Share

Hello there,unfortunatelly it doesn't help,It doesn't change the trail that my emitter leaves...Are you sure you get what I need? I coul'd show you the problem online on Skype,thanks in advance.

Show more comments
avatar image
2

Answer by Akill · Jul 31, 2012 at 03:01 PM

For your first problem, If you are using legacy particles, then just untick the box that says "Simulate in Worldspace" from the inspector.

I am unsure of how to fix this problem with the shuriken system(if it even occurs)

Comment
Add comment · Show 3 · 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 unicornstudios · Aug 01, 2012 at 11:41 AM 0
Share

Hello there,yes I've tried that,but now it's just a still flame,it looks so unrealistic,we want it to move,but only a bit.

avatar image Akill · Aug 01, 2012 at 12:11 PM 0
Share

I don't understand, just change the settings of your particle system to animate the particles and make it "move"

avatar image unicornstudios · Aug 01, 2012 at 05:28 PM 0
Share

But the problems is, I want when I move the Candle,the flame to follow like a normal flame. For example, light a candle and move it around,it's not gonna leave long trails behind it like $$anonymous$$e. That's the thing I am trying to achieve.

avatar image
0

Answer by Screenhog · Aug 01, 2012 at 07:18 PM

Have you tried making your particle emitter create a very large number of particles per second with a very short lifespan (0.1 seconds)? Then your candle will still have some substance to it, but the tail can't possibly get too long, because the particles don't survive very long.

You'll probably need to give the particles some kind of default force as well to make sure that the particles actually travel some distance in their short amount of time.

As for the blurring problem, you could always render your character's arm and candle with a different camera than the one that renders the scene.

Comment
Add comment · 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

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

8 People are following this question.

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

Related Questions

Fire doesn't turn on with script 2 Answers

Particle emitter works intermittently 0 Answers

particle emitter on/off using the left mouse button 1 Answer

Particle system question 1 Answer

How to emit all particles from one spot at once? 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