Blender Git Loki

Git Commits -> Revision a972107

Revision a972107 by Matt Ebb (master)
November 9, 2008, 01:16 (GMT)
Point Density texture: colouring

This introduces a few new ways of modifying the intensity and colour output
generated by the Point Density texture. Previously, the texture only output
intensity information, but now you can map it to colours along a gradient
ramp, based on information coming out of a particle system.

This lets you do things like colour a particle system based on the individual
particles' age - the main reason I need it is to fade particles out over time.

The colorband influences both the colour and intensity (using the colorband's
alpha value), which makes it easy to map a single point density texture to
both intensity values in the Map To panel (such as density or emit) and colour
values (such as absorb col or emit col). This is how the below examples are
set up, an example .blend file is available here:

http://mke3.net/blender/devel/rendering/volumetrics/pd_test4.blend

The different modes:

* Constant
No modifications to intensity or colour (pure white)

* Particle Age
Maps the color ramp along the particles' lifetimes:
http://mke3.net/blender/devel/rendering/volumetrics/pd_mod_partage.mov

* Particle Speed
Maps the color ramp to the particles' absolute speed per frame (in Blender
units). There's an additional scale parameter that you can use to bring this
speed into a 0.0 - 1.0 range, if your particles are travelling too faster or
slower than 0-1.
http://mke3.net/blender/devel/rendering/volumetrics/pd_mod_speed.mov

* Velocity -> RGB
Outputs the particle XYZ velocity vector as RGB colours. This may be useful
for comp work, or maybe in the future things like displacement. Again, there's
a scale parameter to control it.
http://mke3.net/blender/devel/rendering/volumetrics/pd_mod_velrgb.mov

Commit Details:

Full Hash: a972107b03a3b8b00e1548d99e790612dc9f0ccc
SVN Revision: 17370
Parent Commit: f5f0c8f
Lines Changed: +423, -248

6 Modified Paths:

/source/blender/blenkernel/intern/texture.c (+5, -1) (Diff)
/source/blender/blenloader/intern/readfile.c (+5, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+4, -1) (Diff)
/source/blender/makesdna/DNA_texture_types.h (+18, -3) (Diff)
/source/blender/render/intern/source/pointdensity.c (+151, -56) (Diff)
/source/blender/src/buttons_shading.c (+240, -187) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021