Blender Git Loki

Git Commits -> Revision 14de836

Revision 14de836 by Kévin Dietrich (master)
January 9, 2016, 03:48 (GMT)
Smoke (fire): Move spectrum code from C++ (intern/) to C code (BLI)

This change is for a few reasons:
- it works with color, and (therefore) will need to be color managed, at
some point. This will be much easier to do if the code is closer to the
actual color management code (in Blender's core, so to speak).
- it has nothing to do with the actual fire simulation, as it is just
used to create a lookup table
- it can be reused for other purposes (i.e. in Blender internal
renderer, if people are interrested in a blackbody node � la Cycles)
- cleanup: some functions (`contrain_rgb`, `xyz_to_rgb`) already exist
in BLI

Reviewers: brecht

Reviewed By: brecht

Subscribers: brecht

Differential Revision: https://developer.blender.org/D1719

Commit Details:

Full Hash: 14de8361f97c64b3d99b6e009fc8e9d19f90a328
Parent Commit: d7da51b
Lines Changed: +148, -465

2 Deleted Paths:

/intern/smoke/intern/spectrum.cpp (+0, -428)
/intern/smoke/intern/spectrum.h (+0, -6)

7 Modified Paths:

/intern/smoke/CMakeLists.txt (+0, -2) (Diff)
/intern/smoke/extern/smoke_API.h (+0, -3) (Diff)
/intern/smoke/intern/smoke_API.cpp (+0, -6) (Diff)
/source/blender/blenkernel/intern/smoke.c (+0, -1) (Diff)
/source/blender/blenlib/BLI_math_color.h (+2, -0) (Diff)
/source/blender/blenlib/intern/math_color.c (+138, -11) (Diff)
/source/blender/editors/space_view3d/drawvolume.c (+8, -8) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021