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: 

"wrangling" Fields parameters - How to

7 REPLIES 7
Reply
Message 1 of 8
brandaosa
300 Views, 7 Replies

"wrangling" Fields parameters - How to

I am trying to achieve an effect where I need to generate fields in a certain way.
Longstory short, field values should increase with height.

 

blili.png

But I wanted to use this scalar to tweak individual parameters (magnitude, or frequency, in a turbulent_wind_field). 

Can't find a way to connect fields to drive individual parameters so I am using two sets of parameters (YELLOW) and unsing an extra scalar field to blend (GREEN) between these two parameter sets. Which is very limitting.

 

fields.png


Considering a node like turbulent_wind_field as example. Is there a way to control individual parameters by an array of floats or vectors, or fields?


Labels (3)
7 REPLIES 7
Message 2 of 8

@brandaosa Which version of Bifrost are you using? In recent versions we have wind_influence and turbulence_influence which do allow you to modulate the parameters using fields.

Message 3 of 8

Thanks for your reply!  This is 2.9.0.
I see. These nodes are to be used with solvers. I am trying to create an effect without relying on particle simulations because of reasons.
Maybe a naive approach, but using something like a turbulent_wind_field + a curve to control volume animation would be more affordable. Not the most intuitive way to build this tree, but works, except for that kind of tweaking where an array instead of a float would give more freedom to create.
blib.pngnodes.png
Wonder if my graph could be reduced...

Didn't have time yet to explore creating nodes from Python...hope this could become more user friendly. Doing "everything" by nodes takes longer sometimes.

Message 4 of 8

OK. Maybe I misunderstood your question. Is turbulent_wind_field your own node? If you want your nodes to be able to work with both float parameters and field parameters, you should leave them as type auto (not set them explicitly to float type). For more advanced uses you need to use e.g. interpret_auto_port_as_scalar which can convert inputs into arrays of floats.

 

There is a wind field in the grass_wind browser graph example. Perhaps you can use that as inspiration?

Message 5 of 8
jason-t-brown
in reply to: brandaosa

You can also retrieve the field from the influence thus:

Hope this helps

jasontbrown_0-1715198828695.pngjasontbrown_1-1715198870697.png

 



Jason Brown
Software Developer, Bifrost
Message 6 of 8

Turbulent_wind_field was there when I updated bifrost... not a custom node.
I will investigate  interpret_auto_port_as_scalar node! Thanks

Message 7 of 8
brandaosa
in reply to: jason-t-brown

Thanks for the reply. Converting influence to fields would surely help. Let me see.

Message 8 of 8
jason-t-brown
in reply to: brandaosa

So I had a look at what you are trying to do here, and maybe this is a very simple solution.  This one is specifically driving the field by the height of the object, but it can be applied to anything you can make a property out of (so basically everything).

Hope this helps.

jasontbrown_1-1715347950663.png
jasontbrown_0-1715347778201.png

 





Jason Brown
Software Developer, Bifrost

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report