|
Blender
V3.3
|
#include <math.h>#include <stdlib.h>#include <string.h>#include "MEM_guardedalloc.h"#include "DNA_modifier_types.h"#include "DNA_scene_types.h"#include "BLI_math.h"#include "BLI_path_util.h"#include "BLI_rand.h"#include "BLI_task.h"#include "BLI_utildefines.h"#include "BKE_image.h"#include "BKE_image_format.h"#include "BKE_ocean.h"#include "ocean_intern.h"#include "IMB_imbuf.h"#include "IMB_imbuf_types.h"#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.c.
Definition at line 1608 of file ocean.c.
References MEM_callocN.
Referenced by copyData(), initData(), and ocean_bake_exec().
| void BKE_ocean_bake | ( | struct Ocean * | UNUSEDo, |
| struct OceanCache * | UNUSEDoch, | ||
| void(*)(void *, float progress, int *cancel) | update_cb, | ||
| void * | UNUSEDupdate_cb_data | ||
| ) |
Definition at line 1699 of file ocean.c.
References update_cb(), and void.
| void BKE_ocean_cache_eval_ij | ( | struct OceanCache * | UNUSEDoch, |
| struct OceanResult * | UNUSEDocr, | ||
| int | UNUSEDf, | ||
| int | UNUSEDi, | ||
| int | UNUSEDj | ||
| ) |
| void BKE_ocean_cache_eval_uv | ( | struct OceanCache * | UNUSEDoch, |
| struct OceanResult * | UNUSEDocr, | ||
| int | UNUSEDf, | ||
| float | UNUSEDu, | ||
| float | UNUSEDv | ||
| ) |
| void BKE_ocean_eval_ij | ( | struct Ocean * | UNUSEDoc, |
| struct OceanResult * | UNUSEDocr, | ||
| int | UNUSEDi, | ||
| int | UNUSEDj | ||
| ) |
| void BKE_ocean_eval_uv | ( | struct Ocean * | UNUSEDoc, |
| struct OceanResult * | UNUSEDocr, | ||
| float | UNUSEDu, | ||
| float | UNUSEDv | ||
| ) |
| void BKE_ocean_eval_uv_catrom | ( | struct Ocean * | UNUSEDoc, |
| struct OceanResult * | UNUSEDocr, | ||
| float | UNUSEDu, | ||
| float | UNUSEDv | ||
| ) |
| void BKE_ocean_eval_xz | ( | struct Ocean * | UNUSEDoc, |
| struct OceanResult * | UNUSEDocr, | ||
| float | UNUSEDx, | ||
| float | UNUSEDz | ||
| ) |
| void BKE_ocean_eval_xz_catrom | ( | struct Ocean * | UNUSEDoc, |
| struct OceanResult * | UNUSEDocr, | ||
| float | UNUSEDx, | ||
| float | UNUSEDz | ||
| ) |
Definition at line 1645 of file ocean.c.
References MEM_freeN.
Referenced by freeData(), and oceanbake_endjob().
| void BKE_ocean_free_cache | ( | struct OceanCache * | och | ) |
Definition at line 1655 of file ocean.c.
References MEM_freeN.
Referenced by BKE_ocean_free_modifier_cache(), and freeData().
| void BKE_ocean_free_modifier_cache | ( | struct OceanModifierData * | omd | ) |
Definition at line 1717 of file ocean.c.
References BKE_ocean_free_cache(), OceanModifierData::cached, NULL, and OceanModifierData::oceancache.
Referenced by ocean_bake_exec().
| bool BKE_ocean_init | ( | struct Ocean * | UNUSEDo, |
| int | UNUSEDM, | ||
| int | UNUSEDN, | ||
| float | UNUSEDLx, | ||
| float | UNUSEDLz, | ||
| float | UNUSEDV, | ||
| float | UNUSEDl, | ||
| float | UNUSEDA, | ||
| float | UNUSEDw, | ||
| float | UNUSEDdamp, | ||
| float | UNUSEDalignment, | ||
| float | UNUSEDdepth, | ||
| float | UNUSEDtime, | ||
| int | UNUSEDspectrum, | ||
| float | UNUSEDfetch_jonswap, | ||
| float | UNUSEDsharpen_peak_jonswap, | ||
| short | UNUSEDdo_height_field, | ||
| short | UNUSEDdo_chop, | ||
| short | UNUSEDdo_spray, | ||
| short | UNUSEDdo_normals, | ||
| short | UNUSEDdo_jacobian, | ||
| int | UNUSEDseed | ||
| ) |
| OceanCache* BKE_ocean_init_cache | ( | const char * | UNUSEDbakepath, |
| const char * | UNUSEDrelbase, | ||
| int | UNUSEDstart, | ||
| int | UNUSEDend, | ||
| float | UNUSEDwave_scale, | ||
| float | UNUSEDchop_amount, | ||
| float | UNUSEDfoam_coverage, | ||
| float | UNUSEDfoam_fade, | ||
| int | UNUSEDresolution | ||
| ) |
Definition at line 1680 of file ocean.c.
References MEM_callocN.
| bool BKE_ocean_init_from_modifier | ( | struct Ocean * | UNUSEDocean, |
| struct OceanModifierData const * | UNUSEDomd, | ||
| int | UNUSEDresolution | ||
| ) |
| void BKE_ocean_simulate_cache | ( | struct OceanCache * | UNUSEDoch, |
| int | UNUSEDframe | ||
| ) |