Community
Bifrost Forum
Welcome to the Bifrost Forum. This is the place for artists using Bifrost to ask and answer questions, browse popular topics, and share knowledge about creating effects procedurally using Bifrost. You can also visit the Bifrost Community on AREA to download an array of ready-to-use graphs, read Bifrost news and updates, and find the latest tutorials.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Particle Evaluation Question

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Anonymous
695 Views, 4 Replies

Particle Evaluation Question

 

I’m having a problem figuring out how particles evaluate in the graph, and I’ve distilled the issue down to a simple scene. I have a locator moving across a field of black particles. Using an if node, when the locator is within a certain distance of a particle, it turns from black to red. My problem is that I don’t see how to keep them red once they’ve turned so the locator leaves a trail as opposed to a moving red circle; the evaluation runs fresh with every frame, and I see no way to maintain a variable state. I know there's something simple I'm missing here.

How do you save a variable in a particle so it can be used in the subsequent frame?

particlesTurnRed.JPG

4 REPLIES 4
Message 2 of 5
mjcg91
in reply to: Anonymous

You probably want to use the feedback port to save the new state of your particles.

Maxime Jeanmougin - Technical Artist
https://maximejeanmougin.com

Join the Bifrost Addicts community on Discord:
https://discord.gg/bifrost-addicts
Message 3 of 5
ken.ootani
in reply to: Anonymous

example1 : use the feedback port .

example2 : use influence

example3 : edit simulate_particles

 
Message 4 of 5
Anonymous
in reply to: ken.ootani

That's awesome! Thanks so much.

 

One followup question: as I was working on this, I was looking into using feedback connections as a way to send data back upstream, but I don't see how to create them. I've seen feedback connections in compounds for things like velocity calculation, but see no documentation for how to create them.

 

 

Message 5 of 5
Grahame_Fuller
in reply to: Anonymous

You need a matching pair of input and output ports on a compound. Then on the inside of the compound, you can right-click on one of them, set it as a feedback port and specify its match.

 

There is some documentation in Create custom simulations.

 

I hope that helps,gray


Grahame Fuller
Learning Content Developer

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report