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 surreal5335 · Jun 15, 2012 at 10:18 PM · firesmokeflame

smoke, fire, flame thrower no particle

It seems too be very popular to use particles with smoke and flame thrower effects. we are trying to run our game on ios (eventually) and that means its best avoid particles. I understand you can get away with small particles, but:

A. this not the effect we want, particles have a fuzzy cotton candy look to it, we are doing a cartoon style 2d side scroller. Particles would clash with this style terribly.

B. the game will have high physics demmands on it, so we are looking to chop out any cpu processors wherever we can.

So we are looking for a script that can take an animated sprite,

d

uplicate several times, have them start from one point and have them slowly spray out while rotating and scaling up the sprites as they get farther away from the emiting point. I need it to have a the flame or smoke trail be able to "whip" eg. changing the direction of the emiting point will only effect the direction of newly created sprites. just like smoke and fire, the sprites should very slowly go up or start to slowly go up a certain distance from the emiting point.

I know this is a long list of needs, but suggestions on any of these behaviors would (few or many) will be appreciated.

I am no stranger to javascript, so links to help me write a script on this are also welcome.

Thanks for your help

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 jspease · Jun 15, 2012 at 11:07 PM 1
Share

What you are describing is still basically a system of particles. Particles are not necessarily fuzzy-looking; if you want you could use them to draw an animated sprite from a sprite sheet without any translucency, even using the default (and legacy) particle emitters/renderers and no scripts.

Personally I've found that on some mobile devices, dynamic geometry can be pretty slow in Unity (which makes dynamic batching and Unity's built-in particle renderers and most sprite frameworks too slow), at least as of Unity 3.5. And moving and rotating and (especially) scaling many separate game objects with meshes attached is even more expensive on mobile.

So far, the most efficient alternative I've found is actually to call Graphics.Draw$$anonymous$$eshNow with a 4-vertex plane mesh once per particle (where each particle is simply a Vector3 and/or a matrix that I update in a loop) inside the OnRenderObject of a game object. It sounds like it should be slower, but it avoids a lot of the CPU overhead that's usually part of Unity's rendering pipeline, and it gives you full control over the particles. But it's kind of advanced stuff to get it right, and regular particle systems are fast enough for many situations even on mobile as long as you take care to $$anonymous$$imize the particle count and overdraw (which btw should be done either way).

avatar image Eric5h5 · Jun 15, 2012 at 11:10 PM 0
Share

Right, particles only have a "fuzzy cotton candy look" if you make them that way.

1 Reply

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

Answer by VictoryX · Jun 16, 2012 at 07:35 AM

I did a test of my own with a particle system I was able to achieve a decent flame thrower effect while only emitting 30 particles at any given time. It was pretty simple, by just adding a particle system component to my Gun Then using a Sprite sheet I found online as a texture. I messed with some of the emitter options and put in some very basic code to get it going. Below is a link to a video I recorded of the effect and some coding I used.

http://www.youtube.com/watch?v=Fru0H8ruTGI

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 Heav3n · Dec 05, 2012 at 01:42 PM 0
Share

link not working, can you share again? I want to do exactly what u describe.Thanks

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

7 People are following this question.

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

Related Questions

Two Particle Systems 1 Answer

Torch, Particles & Ladder 1 Answer

Create Fireball with fire effect 1 Answer

rendering one particleEmitter over another particleEmitter? 3 Answers

Magic Spell with Particles 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