Page MenuHome

Mantaflow [Part 10]: Updated fluid modifier settings
ClosedPublic

Authored by Sebastián Barschkis (sebbas) on Oct 29 2018, 6:30 PM.

Diff Detail

Repository
rB Blender

Event Timeline

Changes include new outflow flag.

Update manta files after merge with master.

Once again, I do not really see the point of re-using existing smoke data structures here, given the amount of changes, would rather see new data structures, with new modifier type, etc.

Updated diff with latest changes from fluid-mantaflow branch

Updated diff with latest changes from fluid-mantaflow branch

@Bastien Montagne (mont29) This is probably one of the diffs that required only smaller changes:
It's basically everything we had in DNA_smoke_types.h but now with Manta naming, plus a couple of new parameters to account for liquids.

Sergey Sharybin (sergey) requested changes to this revision.Dec 10 2019, 3:33 PM
Sergey Sharybin (sergey) added inline comments.
source/blender/makesdna/DNA_manta_types.h
127–128 ↗(On Diff #19924)

Use anonymous enum.

214 ↗(On Diff #19924)

This structure is either split entirely, or to be refactored in a way that it is clear what is a setting (aka, what user actually specifies in the interface and what is saved to disk) and what is a runtime-only fields.

This actually applies to other structures in this file.

478 ↗(On Diff #19924)

temp is the worst variable name.

This revision now requires changes to proceed.Dec 10 2019, 3:33 PM
Sebastián Barschkis (sebbas) marked 3 inline comments as done.Dec 11 2019, 11:25 AM

See a3328a8699ad for changes.

source/blender/makesdna/DNA_manta_types.h
214 ↗(On Diff #19924)

The order of items in the structs was supposed to give an indication to this. I have added some comments to clarify which fields are being used internally and which are for the user to define.

Would this be sufficient?

478 ↗(On Diff #19924)

Oh yes .. otherwise big fire hazard!

source/blender/makesdna/DNA_manta_types.h
214 ↗(On Diff #19924)

In other areas of DNA the convention is to have explicit field. See Object_Runtime as an example,

Discussed here in person.
The runtime thing is already "violated" in SmokeDomainSettings. Bottom line: nice to move those to a dedicated struct, but can happen as an on-going improvement after the merge (since that is not intrusive for users).

There is also discussion here for the DNA/RNA naming, but don't think it helps stopping EVERY patch with something we know we are doing. After that topic is addressed there is nothing i can add here.

This revision is now accepted and ready to land.Dec 12 2019, 9:39 AM
Sebastián Barschkis (sebbas) marked 3 inline comments as done.

Updated diff with latest changes from fluid-mantaflow branch

Updated diff with latest changes from fluid-mantaflow branch