Blender Git Commit Log

Git Commits -> Revision 9a36e9b

Revision 9a36e9b by Nils Thuerey (master)
February 27, 2006, 11:45 (GMT)
Sorry for the big commit, but I've been fixing many of these
issues in parallel... So this commit contains: an update of
the solver (e.g. moving objects), integration of blender IPOs,
improved rendering (motion blur, smoothed normals) and a first particle
test. In more detail:

Solver update:
- Moving objects using a relatively simple model, and not yet fully optimized - ok
for box falling into water, water in a moving glass might cause trouble. Simulation
times are influenced by overall no. of triangles of the mesh, scaling meshes up a lot
might also cause slowdowns.
- Additional obstacle settings: noslip (as before), free slip (move along wall freely)
and part slip (mix of both).
- Obstacle settings also added for domain boundaries now, the six walls of the domain are
obstacles after all as well
- Got rid of templates, should make compiling for e.g. macs more convenient,
for linux there's not much difference. Finally got rid of parser (and some other code
parts), the simulation now uses the internal API to transfer data.
- Some unnecessary file were removed, the GUI now needs 3 settings buttons...
This should still be changed (maybe by adding a new panel for domain objects).

IPOs:
- Animated params: viscosity, time and gravity for domains. In contrast
to normal time IPO for Blender objects, the fluidsim one scales the time
step size - so a constant 1 has no effect, values towards 0 slow it down,
larger ones speed the simulation up (-> longer time steps, more compuations).
The viscosity IPO is also only a factor for the selected viscosity (again, 1=no effect).
- For objects that are enabled for fluidsim, a new IPO type shows up. Inflow
objects can use the velocity channels to animate the inflow. Obstacles, in/outflow
objects can be switched on (Active IPO>0) and off (<0) during the simulation.
- Movement, rotation and scaling of those 3 types is exported from the normal
Blender channels (Loc,dLoc,etc.).

Particles:
- This is still experimental, so it might be deactivated for a
release... It should at some point be used to model smaller splashes,
depending on the the realworld size and the particle generation
settings particles are generated during simulation (stored in _particles_X.gz
files).
- These are loaded by enabling the particle field for an arbitrary object,
which should be given a halo material. For each frame, similar to the mesh
loading, the particle system them loads the simulated particle positions.
- For rendering, I "abused" the part->rt field - I couldnt find any use
for it in the code and it seems to work fine. The fluidsim particles
store their size there.

Rendering:
- The fluidims particles use scaled sizes and alpha values to give a more varied
appearance. In convertblender.c fluidsim particle systems use the p->rt field
to scale up the size and down the alpha of "smaller particles". Setting the
influence fields in the fluidims settings to 0 gives equally sized particles
with same alpha everywhere. Higher values cause larger differences.
- Smoothed normals: for unmodified fluid meshes (e.g. no subdivision) the normals
computed by the solver are used. This is basically done by switching off the
normal recalculation in convertblender.c (the function calc_fluidsimnormals
handles other mesh inits instead of calc_vertexnormals).
This could also be used to e.g. modify mesh normals in a modifier...
- Another change is that fluidsim meshes load the velocities computed
during the simulation for image based motion blur. This is inited in
load_fluidsimspeedvectors for the vector pass (they're loaded during the
normal load in DerivedMesh readBobjgz). Generation and loading can be switched
off in the settings. Vector pass currently loads the fluidism meshes 3 times,
so this should still be optimized.

Examples:
- smoothed normals versus normals from subdividing once:
http://www10.informatik.uni-erlangen.de/~sinithue/temp/v060227_1smoothnorms.png
http://www10.informatik.uni-erlangen.de/~sinithue/temp/v060227_2subdivnorms.png
- fluidsim particles, size/alpha influence 0:
http://www10.informatik.uni-erlangen.de/~sinithue/temp/v060227_3particlesnorm.png
size influence 1:
http://www10.informatik.uni-erlangen.de/~sinithue/temp/v060227_4particlessize.png
size & alpha influence 1:
http://www10.informatik.uni-erlangen.de/~sinithue/temp/v060227_5particlesalpha.png
- the standard drop with motion blur and particles:
http://www10.informatik.uni-erlangen.de/~sinithue/temp/elbeemupdate_t2new.mpg
(here's how it looks without
http://www10.informatik.uni-erlangen.de/~sinithue/temp/elbeemupdate_t1old.mpg)
- another inflow animation (moving, switched on/off) with a moving obstacle
(and strong mblur :)
http://www10.informatik.uni-erlangen.de/~sinithue/temp/elbeemupdate_t3ipos.mpg

Things still to fix:
- rotating & scaling domains causes wrong speed vectors
- get rid of SDL code for threading, use pthreads as well?
- update wiki documentation
- cool effects for rendering would be photon maps for caustics,
and motion blur for particles :)

Commit Details:

Full Hash: 9a36e9b65175ecb56fdcf314adf2fd933e77d08b
SVN Revision: 6930
Parent Commit: b7ff45f
Lines Changed: +8445, -5765

2 Added Paths:

/intern/elbeem/intern/ntl_lighting.cpp (+182, -0) (View)
/intern/elbeem/intern/ntl_lighting.h (+238, -0) (View)

12 Deleted Paths:

/intern/elbeem/intern/blendercall.cpp (+0, -44)
/intern/elbeem/intern/blenderdummy.cpp (+0, -19)
/intern/elbeem/intern/globals.h (+0, -26)
/intern/elbeem/intern/ntl_lightobject.cpp (+0, -144)
/intern/elbeem/intern/ntl_lightobject.h (+0, -91)
/intern/elbeem/intern/ntl_material.h (+0, -203)
/intern/elbeem/intern/ntl_renderglobals.h (+0, -365)
/intern/elbeem/intern/ntl_rndstream.h (+0, -127)
/intern/elbeem/intern/ntl_scene.cpp (+0, -235)
/intern/elbeem/intern/ntl_scene.h (+0, -167)
/intern/elbeem/intern/ntl_triangle.h (+0, -183)
/intern/elbeem/intern/solver_dimenions.h (+0, -21)

58 Modified Paths:

/intern/elbeem/extern/LBM_fluidsim.h (+2, -2) (Diff)
/intern/elbeem/intern/attributes.cpp (+174, -16) (Diff)
/intern/elbeem/intern/attributes.h (+43, -8) (Diff)
/intern/elbeem/intern/cfglexer.cpp (+350, -347) (Diff)
/intern/elbeem/intern/cfgparser.cpp (+118, -116) (Diff)
/intern/elbeem/intern/cfgparser.h (+1, -1) (Diff)
/intern/elbeem/intern/elbeem.cpp (+210, -11) (Diff)
/intern/elbeem/intern/elbeem.h (+87, -20) (Diff)
/intern/elbeem/intern/isosurface.cpp (+122, -355) (Diff)
/intern/elbeem/intern/isosurface.h (+23, -13) (Diff)
/intern/elbeem/intern/ntl_blenderdumper.cpp (+82, -43) (Diff)
/intern/elbeem/intern/ntl_bsptree.cpp (+19, -3) (Diff)
/intern/elbeem/intern/ntl_bsptree.h (+7, -5) (Diff)
/intern/elbeem/intern/ntl_geometryclass.h (+8, -0) (Diff)
/intern/elbeem/intern/ntl_geometrymodel.cpp (+75, -71) (Diff)
/intern/elbeem/intern/ntl_geometryobject.cpp (+451, -13) (Diff)
/intern/elbeem/intern/ntl_geometryobject.h (+87, -13) (Diff)
/intern/elbeem/intern/ntl_geometryshader.h (+3, -0) (Diff)
/intern/elbeem/intern/ntl_matrices.h (+49, -6) (Diff)
/intern/elbeem/intern/ntl_ray.cpp (+254, -10) (Diff)
/intern/elbeem/intern/ntl_ray.h (+279, -6) (Diff)
/intern/elbeem/intern/ntl_vector3dim.h (+1, -0) (Diff)
/intern/elbeem/intern/ntl_world.cpp (+147, -138) (Diff)
/intern/elbeem/intern/ntl_world.h (+280, -3) (Diff)
/intern/elbeem/intern/parametrizer.cpp (+174, -160) (Diff)
/intern/elbeem/intern/parametrizer.h (+36, -75) (Diff)
/intern/elbeem/intern/particletracer.cpp (+183, -71) (Diff)
/intern/elbeem/intern/particletracer.h (+85, -62) (Diff)
/intern/elbeem/intern/simulation_object.cpp (+90, -52) (Diff)
/intern/elbeem/intern/simulation_object.h (+19, -21) (Diff)
/intern/elbeem/intern/solver_class.h (+293, -77) (Diff)
/intern/elbeem/intern/solver_init.cpp (+1036, -424) (Diff)
/intern/elbeem/intern/solver_interface.cpp (+57, -300) (Diff)
/intern/elbeem/intern/solver_interface.h (+109, -435) (Diff)
/intern/elbeem/intern/solver_main.cpp (+520, -420) (Diff)
/intern/elbeem/intern/solver_relax.h (+299, -158) (Diff)
/intern/elbeem/intern/solver_util.cpp (+710, -307) (Diff)
/intern/elbeem/intern/utilities.cpp (+13, -5) (Diff)
/intern/elbeem/intern/utilities.h (+3, -3) (Diff)
/intern/elbeem/SConscript (+1, -13) (Diff)
/source/blender/blenkernel/intern/depsgraph.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+198, -21) (Diff)
/source/blender/blenkernel/intern/effect.c (+104, -0) (Diff)
/source/blender/blenkernel/intern/ipo.c (+7, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+4, -0) (Diff)
/source/blender/include/BSE_editipo.h (+1, -0) (Diff)
/source/blender/include/butspace.h (+2, -1) (Diff)
/source/blender/makesdna/DNA_ID.h (+1, -0) (Diff)
/source/blender/makesdna/DNA_ipo_types.h (+20, -0) (Diff)
/source/blender/makesdna/DNA_object_fluidsim.h (+39, -0) (Diff)
/source/blender/render/intern/source/convertblender.c (+234, -9) (Diff)
/source/blender/src/buttons_object.c (+108, -7) (Diff)
/source/blender/src/drawobject.c (+10, -2) (Diff)
/source/blender/src/editipo.c (+52, -0) (Diff)
/source/blender/src/editipo_lib.c (+7, -0) (Diff)
/source/blender/src/editipo_mods.c (+1, -0) (Diff)
/source/blender/src/fluidsim.c (+721, -315) (Diff)
/source/blender/src/header_ipo.c (+14, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021