Blender V5.3
ocean.cc File Reference
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "DNA_modifier_types.h"
#include "DNA_scene_types.h"
#include "BLI_math_vector_c.hh"
#include "BLI_path_utils.hh"
#include "BLI_rand_c.hh"
#include "BLI_task_c.hh"
#include "BLI_utildefines.hh"
#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 "IMB_interp.hh"
#include "RE_texture.h"
#include "BLI_hash_c.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

float blender::BKE_ocean_jminus_to_foam (float jminus, float coverage)
void blender::BKE_ocean_eval_uv (struct Ocean *oc, struct OceanResult *ocr, float u, float v)
void blender::BKE_ocean_eval_uv_catrom (struct Ocean *oc, struct OceanResult *ocr, float u, float v)
void blender::BKE_ocean_eval_xz (struct Ocean *oc, struct OceanResult *ocr, float x, float z)
void blender::BKE_ocean_eval_xz_catrom (struct Ocean *oc, struct OceanResult *ocr, float x, float z)
void blender::BKE_ocean_eval_ij (struct Ocean *oc, struct OceanResult *ocr, int i, int j)
void blender::BKE_ocean_simulate (struct Ocean *o, float t, float scale, float chop_amount)
struct Ocean * blender::BKE_ocean_add ()
bool blender::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)
void blender::BKE_ocean_free_data (struct Ocean *oc)
void blender::BKE_ocean_free (struct Ocean *oc)
void blender::BKE_ocean_free_cache (struct OceanCache *och)
void blender::BKE_ocean_cache_eval_uv (struct OceanCache *och, struct OceanResult *ocr, int f, float u, float v)
void blender::BKE_ocean_cache_eval_ij (struct OceanCache *och, struct OceanResult *ocr, int f, int i, int j)
struct OceanCache * blender::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)
void blender::BKE_ocean_simulate_cache (struct OceanCache *och, int frame)
void blender::BKE_ocean_bake (struct Ocean *o, struct OceanCache *och, void(*update_cb)(void *, float progress, int *cancel), void *update_cb_data)
bool blender::BKE_ocean_init_from_modifier (Ocean *, OceanModifierData const *, int)
void blender::BKE_ocean_free_modifier_cache (struct OceanModifierData *omd)

Detailed Description

Based on original code by Drew Whitehouse / Houdini Ocean Toolkit OpenMP hints by Christian Schnellhammer

Definition in file ocean.cc.