Skip to content

Driving me crazy (work with particles)

Video tutorials, example projects

Driving me crazy (work with particles)

Postby bigSky » 10 Jun 2011, 04:17

Hi There,

I wonder if anyone can help. This example from the unity docs is driving me crazy. Such a simple script, and I can't reproduce it with blocks. I think that I'm not understanding something fundamental, and so this logic can help me out a great deal. Can anyone make a graph of this example, from the docs?

HERE
bigSky
 
Posts: 126
Joined: 05 May 2011, 22:57

Re: Driving me crazy

Postby Neodrop » 10 Jun 2011, 05:58

I'll do it in this evening.
User avatar
Neodrop
Администратор
 
Posts: 1068
Joined: 15 Jan 2011, 13:18

Re: Driving me crazy

Postby Neodrop » 10 Jun 2011, 06:13

Done. It's very easy.

The main idea - use Wizards. Assign type and select variables :

setWizard.jpg


And made your graph in 2 minuts :

CreateGraph.jpg
User avatar
Neodrop
Администратор
 
Posts: 1068
Joined: 15 Jan 2011, 13:18

Re: Driving me crazy

Postby bigSky » 10 Jun 2011, 09:03

Thanks for that response, and I had a very similar graph. But at present, it doesn't work like the script. I have particles connected to a mesh emitter. In your example, there are problematic bits missing - how do we work with LateUpdate? (or do we have to?) How do we re-assign the particles back to the emitter? Do we need any variables? If at all possible, and you (or anyone!) are able to reproduce the activity of the particles, any chance of a whole graph?
It would make a great little tutorial anyhow, as we are working with generic array, super universal wizard use, getting, setting, etc. I'm sure it wouldn't just be me who would appreciate it.
bigSky
 
Posts: 126
Joined: 05 May 2011, 22:57

Re: Driving me crazy

Postby Neodrop » 10 Jun 2011, 12:29

Activators >> LateUpdate
And you do not need reassign any particles back. If you steel loss it, make a small demo project and place here. I will polish it.
User avatar
Neodrop
Администратор
 
Posts: 1068
Joined: 15 Jan 2011, 13:18

Re: Driving me crazy

Postby bigSky » 11 Jun 2011, 02:02

Hi. Thanks for the reply. Yes, it is still a problem. I can't upload a project I'm having trouble exporting my graph in a package, and don't want to upload vizio here. However, it's easy to make, as it is just a plane, a mesh emitter, and that's it.
When I make the graph below, the particles don't behave as in the script, where they are all nicely animated with a sin wave.
Picture 5.png
bigSky
 
Posts: 126
Joined: 05 May 2011, 22:57

Re: Driving me crazy

Postby Neodrop » 11 Jun 2011, 04:38

Look at Math Sin node. You use wrong value from this block! You should use "result" OUT instead "f" OUT
Is it clear ?
And yes, we need reassign the array of particles back. I'll show you.
User avatar
Neodrop
Администратор
 
Posts: 1068
Joined: 15 Jan 2011, 13:18

Re: Driving me crazy

Postby Neodrop » 11 Jun 2011, 05:08

Yes, sorry - I have wrong in first variant. I have forgotten to set right position of particles and array reassignment

particles.jpg


This is the demo package.

ParticlesDemo.unitypackage
(168.74 KiB) Downloaded 263 times


Should be like this ?

HTML code for your blog :
Code: Select all
<script language='javascript' type="text/javascript"> document.write("<iframe marginheight='0' src='http://antares-universe.com/player.php?url=http://forum.antares-universe.com/Tutorials/Particles/WebPlayer/WebPlayer.unity3d&w=800&h=600&t={TEXT}&preview=1' height='"+(600+30)+"' width='800' frameborder='0' scrolling='no'></iframe>"); </script>
User avatar
Neodrop
Администратор
 
Posts: 1068
Joined: 15 Jan 2011, 13:18

Re: Driving me crazy

Postby bigSky » 11 Jun 2011, 05:26

Yep- that's the ticket. Thank you very much for the follow up.

There's a node there that I haven't seen before - links - how does it work?
And on the same topic - how would I work per-particle with arrays (so they don't all move at the same rate?)
bigSky
 
Posts: 126
Joined: 05 May 2011, 22:57

Re: Driving me crazy

Postby Neodrop » 11 Jun 2011, 05:39

Wait a bit - I'll do it more optimized...
User avatar
Neodrop
Администратор
 
Posts: 1068
Joined: 15 Jan 2011, 13:18

Re: Driving me crazy

Postby Neodrop » 11 Jun 2011, 05:45

This is perfectly

particles2.jpg
Attachments
ParticlesDemo2.unitypackage
(175.91 KiB) Downloaded 277 times
User avatar
Neodrop
Администратор
 
Posts: 1068
Joined: 15 Jan 2011, 13:18

Re: Driving me crazy

Postby Neodrop » 11 Jun 2011, 05:48

bigSky wrote:Yep- that's the ticket. Thank you very much for the follow up.

There's a node there that I haven't seen before - links - how does it work?
And on the same topic - how would I work per-particle with arrays (so they don't all move at the same rate?)


Links is very old node. Look at it in Workflow group. This node make nothing. Just manage one IN link to any quantity links to other nodes. All links are executed per one frame in UP-DOWN order.

You can work with every particles independently. How ? It's your choose. For example with every second particle, or so. There is no limits.
User avatar
Neodrop
Администратор
 
Posts: 1068
Joined: 15 Jan 2011, 13:18

Re: Driving me crazy (work with particles)

Postby bigSky » 11 Jun 2011, 11:14

As an artist, that "there are no limits" is amazing, but also daunting. It's hard to know where the edges are, to know what what marks these tools make.

To this - I'd love to see a logic block that used greyscale in a uv texture to drive particle emission, color, energy etc. Ideally, that'd be 's my next learning goal. Next, it would be the ability of the same texure to drive the verticies of a mesh, perhaps in communication with a shader. Can I request a tutorial?
bigSky
 
Posts: 126
Joined: 05 May 2011, 22:57

Re: Driving me crazy (work with particles)

Postby Neodrop » 11 Jun 2011, 11:19

The second one (about vertices) is easy. You can visualize it even with particles.
I can show how, when find a bit time to do it.
May be today.
User avatar
Neodrop
Администратор
 
Posts: 1068
Joined: 15 Jan 2011, 13:18

Re: Driving me crazy (work with particles)

Postby bigSky » 11 Jun 2011, 11:38

In this case, re: links, does the link finish one branch of the array before it triggers the next? (Ie: does the generic array iterate all the particles before the second link is activated?)
bigSky
 
Posts: 126
Joined: 05 May 2011, 22:57

Next

Return to Tutorials

Who is online

Registered users: No registered users