Announcements

AREA content is being relocated to the Autodesk Community M&E Hub and Gallery. Notifications may be intermittently unavailable 10–12 November. Learn more HERE.

"wrangling" Fields parameters - How to

"wrangling" Fields parameters - How to

brandaosa
Enthusiast Enthusiast
1,123 Views
7 Replies
Message 1 of 8

"wrangling" Fields parameters - How to

brandaosa
Enthusiast
Enthusiast

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?


1,124 Views
7 Replies
Replies (7)
Message 2 of 8

morten.bojsen-hansen
Autodesk
Autodesk

@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

brandaosa
Enthusiast
Enthusiast

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

morten.bojsen-hansen
Autodesk
Autodesk

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?

0 Likes
Message 5 of 8

jason-t-brown
Autodesk
Autodesk

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

brandaosa
Enthusiast
Enthusiast

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

0 Likes
Message 7 of 8

brandaosa
Enthusiast
Enthusiast

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

Message 8 of 8

jason-t-brown
Autodesk
Autodesk

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
0 Likes