Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/scene.c
| Show First 20 Lines • Show All 560 Lines • ▼ Show 20 Lines | void BKE_scene_init(Scene *sce) | ||||
| CurveMapping *mblur_shutter_curve; | CurveMapping *mblur_shutter_curve; | ||||
| BLI_assert(MEMCMP_STRUCT_AFTER_IS_ZERO(sce, id)); | BLI_assert(MEMCMP_STRUCT_AFTER_IS_ZERO(sce, id)); | ||||
| sce->cursor.rotation_mode = ROT_MODE_XYZ; | sce->cursor.rotation_mode = ROT_MODE_XYZ; | ||||
| sce->cursor.rotation_quaternion[0] = 1.0f; | sce->cursor.rotation_quaternion[0] = 1.0f; | ||||
| sce->cursor.rotation_axis[1] = 1.0f; | sce->cursor.rotation_axis[1] = 1.0f; | ||||
| sce->r.mode = R_OSA; | sce->r.mode = 0; | ||||
| sce->r.cfra = 1; | sce->r.cfra = 1; | ||||
| sce->r.sfra = 1; | sce->r.sfra = 1; | ||||
| sce->r.efra = 250; | sce->r.efra = 250; | ||||
| sce->r.frame_step = 1; | sce->r.frame_step = 1; | ||||
| sce->r.xsch = 1920; | sce->r.xsch = 1920; | ||||
| sce->r.ysch = 1080; | sce->r.ysch = 1080; | ||||
| sce->r.xasp = 1; | sce->r.xasp = 1; | ||||
| sce->r.yasp = 1; | sce->r.yasp = 1; | ||||
| ▲ Show 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | void BKE_scene_init(Scene *sce) | ||||
| sce->audio.doppler_factor = 1.0f; | sce->audio.doppler_factor = 1.0f; | ||||
| sce->audio.speed_of_sound = 343.3f; | sce->audio.speed_of_sound = 343.3f; | ||||
| sce->audio.volume = 1.0f; | sce->audio.volume = 1.0f; | ||||
| sce->audio.flag = AUDIO_SYNC; | sce->audio.flag = AUDIO_SYNC; | ||||
| BLI_strncpy(sce->r.pic, U.renderdir, sizeof(sce->r.pic)); | BLI_strncpy(sce->r.pic, U.renderdir, sizeof(sce->r.pic)); | ||||
| BLI_rctf_init(&sce->r.safety, 0.1f, 0.9f, 0.1f, 0.9f); | BLI_rctf_init(&sce->r.safety, 0.1f, 0.9f, 0.1f, 0.9f); | ||||
| sce->r.osa = 8; | |||||
| /* Note; in header_info.c the scene copy happens..., | /* Note; in header_info.c the scene copy happens..., | ||||
| * if you add more to renderdata it has to be checked there. */ | * if you add more to renderdata it has to be checked there. */ | ||||
| /* multiview - stereo */ | /* multiview - stereo */ | ||||
| BKE_scene_add_render_view(sce, STEREO_LEFT_NAME); | BKE_scene_add_render_view(sce, STEREO_LEFT_NAME); | ||||
| srv = sce->r.views.first; | srv = sce->r.views.first; | ||||
| BLI_strncpy(srv->suffix, STEREO_LEFT_SUFFIX, sizeof(srv->suffix)); | BLI_strncpy(srv->suffix, STEREO_LEFT_SUFFIX, sizeof(srv->suffix)); | ||||
| ▲ Show 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | void BKE_scene_init(Scene *sce) | ||||
| copy_v3_v3(sce->display.light_direction, (float[3]){M_SQRT1_3, M_SQRT1_3, M_SQRT1_3}); | copy_v3_v3(sce->display.light_direction, (float[3]){M_SQRT1_3, M_SQRT1_3, M_SQRT1_3}); | ||||
| sce->display.shadow_shift = 0.1f; | sce->display.shadow_shift = 0.1f; | ||||
| sce->display.shadow_focus = 0.0f; | sce->display.shadow_focus = 0.0f; | ||||
| sce->display.matcap_ssao_distance = 0.2f; | sce->display.matcap_ssao_distance = 0.2f; | ||||
| sce->display.matcap_ssao_attenuation = 1.0f; | sce->display.matcap_ssao_attenuation = 1.0f; | ||||
| sce->display.matcap_ssao_samples = 16; | sce->display.matcap_ssao_samples = 16; | ||||
| sce->display.render_aa = SCE_DISPLAY_AA_SAMPLES_8; | |||||
| sce->display.viewport_aa = SCE_DISPLAY_AA_SAMPLES_8; | |||||
| /* OpenGL Render. */ | /* OpenGL Render. */ | ||||
| BKE_screen_view3d_shading_init(&sce->display.shading); | BKE_screen_view3d_shading_init(&sce->display.shading); | ||||
| /* SceneEEVEE */ | /* SceneEEVEE */ | ||||
| sce->eevee.gi_diffuse_bounces = 3; | sce->eevee.gi_diffuse_bounces = 3; | ||||
| sce->eevee.gi_cubemap_resolution = 512; | sce->eevee.gi_cubemap_resolution = 512; | ||||
| sce->eevee.gi_visibility_resolution = 32; | sce->eevee.gi_visibility_resolution = 32; | ||||
| sce->eevee.gi_cubemap_draw_size = 0.3f; | sce->eevee.gi_cubemap_draw_size = 0.3f; | ||||
| ▲ Show 20 Lines • Show All 1,492 Lines • Show Last 20 Lines | |||||