Blender Git Loki

Git Commits -> Revision 51ead09

June 24, 2012, 20:21 (GMT)
This commit includes my smoke work from previous weeks.

There are lots of changes in the code but here is a list of new things visible to users:
* A new "Adaptive Domain" setting. It makes smoke domain dynamically adapt to domain and fluid changes:
1) Domain resolution and size adapts to only cover areas where smoke is, so that as small domain as possible has to be calculated at a time. You can also add additional simulation cells around the original domain area if needed.
2) When you move the domain object during simulation you only move the smoke "boundaries". Smoke itself remains still. This way you can limit simulated area to stay around moving emitters etc.
* Domain is now rotatable. This means you are no longer need to align your simulation on x, y or z axis but you can freely rotate the domain to match the target area.
* Rotation and scaling also work during simulation with one limitation: Domain contents (smoke,fire) move with the domain.
* Smoke now uses the scene gravity setting, so you can change gravity direction if required.
* Added a new option for volume textures when "Generated" coordinates are used: "Map to Bounds". This maps texture coordinates to mesh bounding box allowing you to render adaptive domain content. It also solves issues with domains scaled in edit mode, so I'm considering to make this enabled by default.

Please note that this feature is not yet finished. I still have quite a few todos left and I'm sure there are still several bugs there.

Commit Details:

Full Hash: 51ead096c7a91cae2f263c1e32cc496e4032d2ee
SVN Revision: 48248
Parent Commit: 5a92d98
Lines Changed: +1344, -1158

20 Modified Paths:

/intern/smoke/extern/smoke_API.h (+2, -2) (Diff)
/intern/smoke/intern/FLUID_3D.cpp (+12, -11) (Diff)
/intern/smoke/intern/FLUID_3D.h (+3, -3) (Diff)
/intern/smoke/intern/smoke_API.cpp (+4, -4) (Diff)
/release/scripts/startup/bl_ui/properties_physics_smoke.py (+32, -0) (Diff)
/release/scripts/startup/bl_ui/properties_texture.py (+2, -0) (Diff)
/source/blender/blenkernel/BKE_smoke.h (+3, -1) (Diff)
/source/blender/blenkernel/intern/pointcache.c (+56, -3) (Diff)
/source/blender/blenkernel/intern/smoke.c (+1054, -1016) (Diff)
/source/blender/blenlib/BLI_utildefines.h (+5, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+7, -2) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+57, -62) (Diff)
/source/blender/editors/space_view3d/drawvolume.c (+32, -22) (Diff)
/source/blender/editors/space_view3d/view3d_intern.h (+3, -3) (Diff)
/source/blender/makesdna/DNA_smoke_types.h (+28, -16) (Diff)
/source/blender/makesdna/DNA_texture_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_material.c (+6, -0) (Diff)
/source/blender/makesrna/intern/rna_smoke.c (+23, -0) (Diff)
/source/blender/modifiers/intern/MOD_smoke.c (+7, -13) (Diff)
/source/blender/render/intern/source/render_texture.c (+7, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021