diff options
author | Ton Roosendaal <ton@blender.org> | 2003-12-10 23:41:53 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-12-10 23:41:53 +0300 |
commit | a18cc02374e8993824cfeb12b9e67b5b067317d9 (patch) | |
tree | 92b674659affe20fcdbf521ddc1a7269d4cc696b /source/blender/makesdna/DNA_scene_types.h | |
parent | cad30134cb9093650488a37803361fcbf1f1db2f (diff) |
- Xmas special: shiny mirroring bells & whistles!
This is a revision of the old NeoGeo raytracer, dusted off, improved quite
a lot, and nicely integrated in the rest of rendering pipeline.
Enable it with F10-"Ray", and set either a 'ray-shadow' lamp or give the
Material a "RayMirror" value.
It has been added for 2 reasons:
- get feedback on validity... I need artists to play around with it if it's
actually useful. It still *is* raytracing, meaning complex scenes will
easily become slow.
- for educational purposes. All raytracing happens in ray.c, which can be
quite easily adjusted for other effects.
When too many disasters pop up with this, I'll make it a compile #ifdef.
But so far, it seems to do a decent job.
Demo files: http://www.blender.org/docs/ray_test.tgz
An article (tech) about how it works, and about the new octree invention
will be posted soon. :)
Note: it doesn't work with unified render yet.
Diffstat (limited to 'source/blender/makesdna/DNA_scene_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_scene_types.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index ca482800917..48c448187f6 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -174,12 +174,13 @@ typedef struct RenderData { * 9: borders * 10: panorama * 11: crop - * 12: save SGI movies with Cosmo hardware (????) - * 13: odd field first rendering - * 14: motion blur - * 15: use unified renderer for this pic! + * 12: save SGI movies with Cosmo hardware + * 13: odd field first rendering + * 14: motion blur + * 15: use unified renderer for this pic + * 16. enable raytracing */ - short mode; + int mode; /** * What to do with the sky/background. Picks sky/premul/key @@ -199,7 +200,7 @@ typedef struct RenderData { /** For unified renderer: reduce intensity on boundaries with * identical materials with this number.*/ - short same_mat_redux, pad_3[3]; + short same_mat_redux, pad_3[2]; /** * The gamma for the normal rendering. Used when doing @@ -263,7 +264,7 @@ typedef struct Scene { #define R_FRONTBUF 4 #define R_FRONTBUFANIM 8 -/* mode */ +/* mode (int now) */ #define R_OSA 0x0001 #define R_SHADOW 0x0002 #define R_GAMMA 0x0004 @@ -277,10 +278,10 @@ typedef struct Scene { #define R_PANORAMA 0x0400 #define R_MOVIECROP 0x0800 #define R_COSMO 0x1000 -/* these difines were different between IrisGL and OpenGL!!! */ #define R_ODDFIELD 0x2000 #define R_MBLUR 0x4000 #define R_UNIFIED 0x8000 +#define R_RAYTRACE 0x10000 /* scemode */ #define R_DOSEQ 0x0001 |