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 Serious-Ray · May 22, 2013 at 01:37 AM · terrainparticlesshape

How to spawn particles from a part of a terrain?

I need to simulate snow dust which is moving on a part of the terrain around the player. Therefor I'd like to spawn snow dust particles directly on the terrain (be it vertices, edges or faces) and blow them with a wind zone. To limit the selection one might be able to use a custom shape (like a sphere). However using only the editor this seems impossible. I tried sticking my nose into the scripting reference, but I don't see how to set a shape (specifically a mesh) for the particle system via scripts.

Comment
Add comment · Show 3
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 AlucardJay · May 22, 2013 at 07:10 AM 0
Share

As much as I want to understand this question, I cannot.

What do you mean by : spawn snow dust particles directly on the terrain (be it vertices, edges or faces)

Again, what does this mean : To limit the selection

Using the legacy particle system, you can use a mesh emitter. I have never used the shuriken system so cannot speak about that.

Can you please elaborate on your question, it really is confusing and unclear.

avatar image Serious-Ray · May 22, 2013 at 10:41 AM 0
Share

True, in the editor you can set a shape for the particles system to spawn particles from. This works in the Shuriken system too. However I can't choose a terrain to emit from. Also I don't want to emit particles from all of the terrain. Just from vertices/edges/faces near to the player. To deter$$anonymous$$e which vertices/edges/faces should be used for the emission, I had the idea of using some shape which intersects with the terrain. All vertices/edges/faces of the terrain which are inside the shape then are used for the emission. Now I'd only have to copy the position of the player each frame. So I get my particles to spawn "directly on a limited selection of vertices/edges/faces of the terrain" around the player. And so I wouldn't have to use approximations like using only primitive objects or meshes which have nothing to do with the terrain as emitters. The overall question now is: How do I get the particles to spawn how I want them to spawn. (Around the player on the terrain) And should anybody think my idea might be worth something: How do I set the shape for the particle system? (Of course I need to find out how to create a mesh by using the intersection, but I suppose that's another question. Also if there is no possibility to set a custom mesh via scripting, I suppose this isn't relevant.) I hope I could clarify my question a bit. I wanted to keep it short but possibly some information was lost on the way.

avatar image 2dkot · May 22, 2013 at 10:58 AM 0
Share

it could be better solution to create a several empty game objects around your character then locate them on terrain surface every frame by using raycasting, and then add particle system to them with animation

0 Replies

· Add your reply
  • Sort: 

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

15 People are following this question.

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

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

How do I use emissionRate in scripting? 1 Answer

Terrain and heights arrays 1 Answer

how to have bullets produce particles? 2 Answers

Can someone help me fix my Javascript for Flickering Light? 6 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