diff options
author | Ton Roosendaal <ton@blender.org> | 2004-04-12 18:53:17 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-04-12 18:53:17 +0400 |
commit | c2526dc92214e6c1929c98d32db744451aa81599 (patch) | |
tree | 1fee7998ce742314dac6a79ca9d9584da29013b4 /source/blender/src/previewrender.c | |
parent | b78641f524936785b39704e2c0b6b70c03d9f2b5 (diff) |
More AO fun to play with:
- AO energy slider to control amount
- option "Use sky color" for colored AO. The horizon color will define
bottom diffuse color, the zenith works on top
- option "Use sky texture" will do a full sky render to define AO color
Please note that AO energy and color only is found when a ray does not
intersect. So for interior scenes make sure 'Dist' value is sufficient
low.
New also is:
- World "Map input" allows "Ang Map" (Angular mapping) which can be used
for 360 degree spherical maps, aka as Light Probes. Check samples here:
http://www.debevec.org/Probes/
Note that Blender doesn't support HDRI images yet, but option "Use sky tex"
already gives intersting results with such images
- World sky rendering with Image Textures now correctly filters and uses
antialiasing. Also noticable for raytrace mirror reflections
- World preview render for sky type "Real" now gives correct view as
defined by current used camera.
I tried to speed up AO tracing with coherence systems, none of it really
worked yet... time to tackle octree itself i guess!
Diffstat (limited to 'source/blender/src/previewrender.c')
-rw-r--r-- | source/blender/src/previewrender.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/previewrender.c b/source/blender/src/previewrender.c index a5543d8276a..9621c3f2faa 100644 --- a/source/blender/src/previewrender.c +++ b/source/blender/src/previewrender.c @@ -1082,7 +1082,11 @@ void BIF_previewrender(SpaceButs *sbuts) if(G.scene->camera) { lens= ( (Camera *)G.scene->camera->data)->lens; } - + /* needed for init_render_world */ + MTC_Mat4CpyMat4(R.viewinv, G.scene->camera->obmat); + MTC_Mat4Ortho(R.viewinv); + MTC_Mat4Invert(R.viewmat, R.viewinv); + init_render_world(); init_render_textures(); /* dont do it twice!! (brightness) */ } |