~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/blender/makesdna/DNA_smoke_types.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
* $Id: DNA_smoke_types.h 26841 2010-02-12 13:34:04Z campbellbarton $
3
 
*
4
 
* ***** BEGIN GPL LICENSE BLOCK *****
5
 
*
6
 
* This program is free software; you can redistribute it and/or
7
 
* modify it under the terms of the GNU General Public License
8
 
* as published by the Free Software Foundation; either version 2
9
 
* of the License, or (at your option) any later version.
10
 
*
11
 
* This program is distributed in the hope that it will be useful,
12
 
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
* GNU General Public License for more details.
15
 
*
16
 
* You should have received a copy of the GNU General Public License
17
 
* along with this program; if not, write to the Free Software Foundation,
18
 
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
 
*
20
 
* The Original Code is Copyright (C) 2006 by NaN Holding BV.
21
 
* All rights reserved.
22
 
*
23
 
* The Original Code is: all of this file.
24
 
*
25
 
* Contributor(s): Daniel Genrich (Genscher)
26
 
*
27
 
* ***** END GPL LICENSE BLOCK *****
28
 
*/
29
 
#ifndef DNA_SMOKE_TYPES_H
30
 
#define DNA_SMOKE_TYPES_H
 
1
/*
 
2
 * ***** BEGIN GPL LICENSE BLOCK *****
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU General Public License
 
6
 * as published by the Free Software Foundation; either version 2
 
7
 * of the License, or (at your option) any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software Foundation,
 
16
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
17
 *
 
18
 * The Original Code is Copyright (C) 2006 by NaN Holding BV.
 
19
 * All rights reserved.
 
20
 *
 
21
 * The Original Code is: all of this file.
 
22
 *
 
23
 * Contributor(s): Daniel Genrich (Genscher)
 
24
 *
 
25
 * ***** END GPL LICENSE BLOCK *****
 
26
 */
 
27
 
 
28
/** \file DNA_smoke_types.h
 
29
 *  \ingroup DNA
 
30
 */
 
31
 
 
32
#ifndef __DNA_SMOKE_TYPES_H__
 
33
#define __DNA_SMOKE_TYPES_H__
31
34
 
32
35
/* flags */
33
36
#define MOD_SMOKE_HIGHRES (1<<1) /* enable high resolution */
34
37
#define MOD_SMOKE_DISSOLVE (1<<2) /* let smoke dissolve */
35
38
#define MOD_SMOKE_DISSOLVE_LOG (1<<3) /* using 1/x for dissolve */
36
 
#define MOD_SMOKE_INITVELOCITY (1<<4) /* passes particles speed to
37
 
                                                                                 the smoke*/
 
39
 
 
40
#define MOD_SMOKE_HIGH_SMOOTH (1<<5) /* smoothens high res emission*/
 
41
#define MOD_SMOKE_FILE_LOAD (1<<6) /* flag for file load */
38
42
 
39
43
/* noise */
40
44
#define MOD_SMOKE_NOISEWAVE (1<<0)
47
51
#define SM_CACHE_LIGHT          0
48
52
#define SM_CACHE_HEAVY          1
49
53
 
 
54
/* domain border collision */
 
55
#define SM_BORDER_OPEN          0
 
56
#define SM_BORDER_VERTICAL      1
 
57
#define SM_BORDER_CLOSED        2
 
58
 
50
59
typedef struct SmokeDomainSettings {
51
60
        struct SmokeModifierData *smd; /* for fast RNA access */
52
61
        struct FLUID_3D *fluid;
81
90
        int v3dnum;
82
91
        int cache_comp;
83
92
        int cache_high_comp;
 
93
 
 
94
        /* Smoke uses only one cache from now on (index [0]), but keeping the array for now for reading old files. */
84
95
        struct PointCache *point_cache[2];      /* definition is in DNA_object_force.h */
85
96
        struct ListBase ptcaches[2];
86
97
        struct EffectorWeights *effector_weights;
 
98
        int border_collisions;  /* How domain border collisions are handled */
 
99
        float time_scale;
 
100
        float vorticity;
 
101
        int pad2;
87
102
} SmokeDomainSettings;
88
103
 
89
104
 
92
107
/* type */
93
108
#define MOD_SMOKE_FLOW_TYPE_OUTFLOW (1<<1)
94
109
 
 
110
/* flags */
 
111
#define MOD_SMOKE_FLOW_ABSOLUTE (1<<1) /*old style emission*/
 
112
#define MOD_SMOKE_FLOW_INITVELOCITY (1<<2) /* passes particles speed to the smoke */
 
113
 
95
114
typedef struct SmokeFlowSettings {
96
115
        struct SmokeModifierData *smd; /* for fast RNA access */
97
116
        struct ParticleSystem *psys;
98
117
        float density;
99
118
        float temp; /* delta temperature (temp - ambient temp) */
100
 
        float velocity[3]; /* UNUSED, velocity taken from particles */
 
119
        float velocity[2]; /* UNUSED, velocity taken from particles */
 
120
        float vel_multi; // Multiplier for particle velocity
101
121
        float vgrp_heat_scale[2]; /* min and max scaling for vgroup_heat */
102
122
        short vgroup_flow; /* where inflow/outflow happens - red=1=action */
103
123
        short vgroup_density;
104
124
        short vgroup_heat;
105
125
        short type; /* inflow =0 or outflow = 1 */
106
 
        int pad;
 
126
        int flags; /* absolute emission etc*/
107
127
} SmokeFlowSettings;
108
128
 
109
 
/*
110
 
        struct BVHTreeFromMesh *bvh;
111
 
        float mat[4][4];
112
 
        float mat_old[4][4];
113
 
        */
 
129
 
 
130
// struct BVHTreeFromMesh *bvh;
 
131
// float mat[4][4];
 
132
// float mat_old[4][4];
114
133
 
115
134
/* collision objects (filled with smoke) */
116
135
typedef struct SmokeCollSettings {
117
136
        struct SmokeModifierData *smd; /* for fast RNA access */
118
137
        struct BVHTree *bvhtree; /* bounding volume hierarchy for this cloth object */
119
 
        struct DerivedMesh *dm;
 
138
 
 
139
//      struct DerivedMesh *dm; // UNUSED, ifdef'd in code for now.
120
140
        float *points;
121
141
        float *points_old;
122
142
        float *vel;