Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 CarlLawl · Jun 12, 2011 at 12:31 AM · lightgunmuzzleflash

Muzzleflash Question

Ok so at the moment, I've taken the render/unrender a plane with a material/texture attached.

This is working fine, the only thing I noticed is when in a not very lit area the muzzleFlash darks due to lack of light. Where as in real life the muzzle flash would actually be a source of light (If that makes sense) What would you suggest be the best route to take on making my muzzle flash more realistic in this sense?

Would it be better to use particles or am I going in the "right" direction?

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
1
Best Answer

Answer by Eric5h5 · Jun 12, 2011 at 02:33 AM

Use an unlit or self-illuminated shader for the muzzle flash.

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 CarlLawl · Jun 12, 2011 at 12:02 PM 0
Share

I gave it a Transparent/VertexLit shader, this seems to do the trick! Thanks for a push in the right direction

avatar image
3

Answer by FutchProductionsSyndicate · Jun 12, 2011 at 03:45 AM

I've recently made a nice muzzle flasth for a gun for my game.

There are two ways i experimented with when making a muzzle flash:

  • Using a plane with muzzleflash texture.

  • Using particles.

I personally like using particles better because they look realistic from every angle and change with every shot. I used a Mesh Particle Emitter, along with the pink cone below.

This made a random amount of particles appear for 0.03 seconds.

Then i had a point light parented to the particle system that was turned off until the gun was shot.

When the gun was shot, the lights intensity changed randomly between a value, the light was turned on, and the particles were emitted.

I personally think this simulates the most realistic muzzleflare i could think of.

alt text

Also, this way you can customise the shape of the muzzleflash.

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 Owen-Reynolds · Jun 12, 2011 at 12:39 PM 0
Share

For settings, to make particles more spiky and less "firebally," I like to move the paticles in a cone with a little TangentVelocity.y. Then set StretchParticles-Stretch (in the Particle animator) so they face and grow the way they are moving, then swap in a texture with "jags" on the top.

avatar image
1

Answer by Eli-Davis · Jun 12, 2011 at 02:30 AM

I would think you would add a small (but intense) point light right next to where your muzzle flash is. Then have it enabled only when the muzzle flash is being executed. My opinion though. I personally wouldn't use particles unless it was a shot gun blast.

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 CarlLawl · Jun 12, 2011 at 11:59 AM 0
Share

The only thing I noticed with this is when you get quite close to a wall you can see the point light on the wall which kinda sucks!

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Gun Muzzle Flash Effect 0 Answers

muzzle flash help 0 Answers

Muzzle flash help 1 Answer

Gun Muzzle Flash 2 Answers

How to create a light effect on weapon fire 0 Answers


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