|
Blender V4.3
|
#include <cmath>#include <cstdlib>#include <cstring>#include "MEM_guardedalloc.h"#include "DNA_modifier_types.h"#include "DNA_scene_types.h"#include "BLI_math_vector.h"#include "BLI_path_utils.hh"#include "BLI_rand.h"#include "BLI_task.h"#include "BLI_utildefines.h"#include "BKE_image.hh"#include "BKE_image_format.hh"#include "BKE_ocean.h"#include "ocean_intern.h"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "RE_texture.h"#include "BLI_hash.h"Go to the source code of this file.
Based on original code by Drew Whitehouse / Houdini Ocean Toolkit OpenMP hints by Christian Schnellhammer
Definition in file ocean.cc.
| Ocean * BKE_ocean_add | ( | void | ) |
Definition at line 1577 of file ocean.cc.
References MEM_callocN.
Referenced by copy_data(), init_data(), and blender::ed::object::ocean_bake_exec().
| void BKE_ocean_bake | ( | Ocean * | o, |
| OceanCache * | och, | ||
| void(* | update_cb )(void *, float progress, int *cancel), | ||
| void * | update_cb_data ) |
Definition at line 1658 of file ocean.cc.
Referenced by blender::ed::object::ocean_bake_exec(), and blender::ed::object::oceanbake_startjob().
| void BKE_ocean_cache_eval_ij | ( | OceanCache * | och, |
| OceanResult * | ocr, | ||
| int | f, | ||
| int | i, | ||
| int | j ) |
| void BKE_ocean_cache_eval_uv | ( | OceanCache * | och, |
| OceanResult * | ocr, | ||
| int | f, | ||
| float | u, | ||
| float | v ) |
| void BKE_ocean_eval_ij | ( | struct Ocean * | oc, |
| struct OceanResult * | ocr, | ||
| int | i, | ||
| int | j ) |
| void BKE_ocean_eval_uv | ( | struct Ocean * | oc, |
| struct OceanResult * | ocr, | ||
| float | u, | ||
| float | v ) |
| void BKE_ocean_eval_uv_catrom | ( | struct Ocean * | oc, |
| struct OceanResult * | ocr, | ||
| float | u, | ||
| float | v ) |
| void BKE_ocean_eval_xz | ( | Ocean * | oc, |
| OceanResult * | ocr, | ||
| float | x, | ||
| float | z ) |
| void BKE_ocean_eval_xz_catrom | ( | Ocean * | oc, |
| OceanResult * | ocr, | ||
| float | x, | ||
| float | z ) |
| void BKE_ocean_free | ( | Ocean * | oc | ) |
Definition at line 1612 of file ocean.cc.
References MEM_freeN().
Referenced by free_data(), and blender::ed::object::oceanbake_endjob().
| void BKE_ocean_free_cache | ( | OceanCache * | och | ) |
Definition at line 1622 of file ocean.cc.
References MEM_freeN().
Referenced by BKE_ocean_free_modifier_cache(), and free_data().
| void BKE_ocean_free_modifier_cache | ( | OceanModifierData * | omd | ) |
Definition at line 1676 of file ocean.cc.
References BKE_ocean_free_cache(), OceanModifierData::cached, and OceanModifierData::oceancache.
Referenced by blender::ed::object::ocean_bake_exec().
| bool BKE_ocean_init | ( | struct Ocean * | o, |
| int | M, | ||
| int | N, | ||
| float | Lx, | ||
| float | Lz, | ||
| float | V, | ||
| float | l, | ||
| float | A, | ||
| float | w, | ||
| float | damp, | ||
| float | alignment, | ||
| float | depth, | ||
| float | time, | ||
| int | spectrum, | ||
| float | fetch_jonswap, | ||
| float | sharpen_peak_jonswap, | ||
| short | do_height_field, | ||
| short | do_chop, | ||
| short | do_spray, | ||
| short | do_normals, | ||
| short | do_jacobian, | ||
| int | seed ) |
| OceanCache * BKE_ocean_init_cache | ( | const char * | bakepath, |
| const char * | relbase, | ||
| int | start, | ||
| int | end, | ||
| float | wave_scale, | ||
| float | chop_amount, | ||
| float | foam_coverage, | ||
| float | foam_fade, | ||
| int | resolution ) |
Ocean cache handling.
Definition at line 1641 of file ocean.cc.
References MEM_callocN.
Referenced by blender::ed::object::ocean_bake_exec().
| bool BKE_ocean_init_from_modifier | ( | Ocean * | , |
| OceanModifierData const * | , | ||
| int | ) |
| void BKE_ocean_simulate_cache | ( | OceanCache * | och, |
| int | frame ) |