8#include <pxr/imaging/hd/light.h>
9#include <pxr/imaging/hd/renderBuffer.h>
34 pxr::GfVec4f border(0, 0, 1, 1);
42 int width = image_res[0] * border[2];
43 int height = image_res[1] * border[3];
56 pxr::TfToken *aov_token = aov_tokens_.lookup_ptr(rpass->name);
74 char elapsed_time[32];
76 float percent_done = 0.0;
87 std::string(scene_name) +
": " + view_layer->
name,
88 std::string(
"Render Time: ") + elapsed_time +
89 " | Done: " + std::to_string(
int(percent_done)) +
"%");
95 update_render_result(width, height, view_layer->
name);
98 update_render_result(width, height, view_layer->
name);
104 if (
STRPREFIX(key.c_str(),
"aovToken:")) {
105 aov_tokens_.add_overwrite(key.substr(key.find(
":") + 1),
106 pxr::TfToken(val.UncheckedGet<std::string>()));
118void FinalEngine::update_render_result(
int width,
int height,
const char *layer_name)
127 pxr::TfToken *aov_token = aov_tokens_.
lookup_ptr(rpass->name);
void BKE_id_full_name_get(char name[MAX_ID_FULL_NAME], const ID *id, char separator_char)
void * BLI_findstring(const struct ListBase *listbase, const char *id, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
#define LISTBASE_FOREACH(type, var, list)
Platform independent time functions.
double BLI_time_now_seconds(void)
size_t BLI_timecode_string_from_time_simple(char *str, size_t maxncpy, double time_seconds) ATTR_NONNULL()
#define CLOG_WARN(clg_ref,...)
ViewLayer * DEG_get_evaluated_view_layer(const Depsgraph *graph)
Contains defines and structs used throughout the imbuf module.
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object for example to give variation to multiple instances of an object Point Retrieve information about points in a point cloud Retrieve the edges of an object as it appears to Cycles topology will always appear triangulated Convert a blackbody temperature to an RGB value Normal Generate a perturbed normal from an RGB normal map image Typically used for faking highly detailed surfaces Generate an OSL shader from a file or text data block Image Sample an image file as a texture Gabor Generate Gabor noise Gradient Generate interpolated color and intensity values based on the input vector Magic Generate a psychedelic color texture Voronoi Generate Worley noise based on the distance to random points Typically used to generate textures such as or biological cells Brick Generate a procedural texture producing bricks Texture Retrieve multiple types of texture coordinates nTypically used as inputs for texture nodes Vector Convert a or normal between camera
const Value * lookup_ptr(const Key &key) const
RenderEngine * bl_engine_
float renderer_percent_done()
std::unique_ptr< pxr::HdxFreeCameraSceneDelegate > free_camera_delegate_
pxr::HdTaskSharedPtrVector tasks()
std::unique_ptr< RenderTaskDelegate > render_task_delegate_
std::unique_ptr< pxr::HdRenderIndex > render_index_
virtual void set_render_setting(const std::string &key, const pxr::VtValue &val)
std::unique_ptr< LightTasksDelegate > light_tasks_delegate_
std::unique_ptr< pxr::HdEngine > engine_
void set_render_setting(const std::string &key, const pxr::VtValue &val) override
void notify_status(float progress, const std::string &title, const std::string &info) override
RenderResult * RE_engine_begin_result(RenderEngine *engine, int x, int y, int w, int h, const char *layername, const char *viewname)
RenderResult * RE_engine_get_result(RenderEngine *engine)
bool RE_engine_test_break(RenderEngine *engine)
void RE_engine_update_stats(RenderEngine *engine, const char *stats, const char *info)
void RE_engine_end_result(RenderEngine *engine, RenderResult *result, bool cancel, bool highlight, bool merge_results)
void RE_engine_update_progress(RenderEngine *engine, float progress)
struct CLG_LogRef * LOG_HYDRA_RENDER
static pxr::GfCamera gf_camera(const CameraParams ¶ms, const pxr::GfVec2i &res, const pxr::GfVec4f &border)