Blender Git Loki

Git Commits -> Revision ec99255

Revision ec99255 by Ton Roosendaal (master)
December 21, 2003, 21:52 (GMT)
Phew, a lot of work, and no new features...

Main target was to make the inner rendering loop using no globals anymore.
This is essential for proper usage while raytracing, it caused a lot of
hacks in the raycode as well, which even didn't work correctly for all
situations (textures especially).

Done this by creating a new local struct RenderInput, which replaces usage
of the global struct Render R. The latter now only is used to denote
image size, viewmatrix, and the like.

Making the inner render loops using no globals caused 1000s of vars to
be changed... but the result definitely is much nicer code, which enables
making 'real' shaders in a next stage.
It also enabled me to remove the hacks from ray.c

Then i went to the task of removing redundant code. Especially the calculus
of texture coords took place (identical) in three locations.
Most obvious is the change in the unified render part, which is much less
code now; it uses the same rendering routines as normal render now.
(Note; not for halos yet!)

I also removed 6 files called 'shadowbuffer' something. This was experimen-
tal stuff from NaN days. And again saved a lot of double used code.

Finally I went over the blenkernel and blender/src calls to render stuff.
Here the same local data is used now, resulting in less dependency.
I also moved render-texture to the render module, this was still in Kernel.
(new file: texture.c)

So! After this commit I will check on the autofiles, to try to fix that.
MSVC people have to do it themselves.
This commit will need quite some testing help, but I'm around!

Commit Details:

Full Hash: ec99255c2729b555f34d75c0a2c59f141e327924
SVN Revision: 1746
Parent Commit: 16eec38
Lines Changed: +3021, -5704

1 Added Path:

/source/blender/render/intern/source/texture.c (+1872, -0) (View)

7 Deleted Paths:

/source/blender/render/intern/include/RE_basicShadowBuffer.h (+0, -93)
/source/blender/render/intern/include/RE_DummyShadowBuffer.h (+0, -71)
/source/blender/render/intern/include/RE_ShadowBuffer.h (+0, -62)
/source/blender/render/intern/include/shadowBuffer.h (+0, -80)
/source/blender/render/intern/source/RE_basicShadowBuffer.cpp (+0, -694)
/source/blender/render/intern/source/RE_DummyShadowBuffer.cpp (+0, -68)
/source/blender/render/intern/source/shadowBuffer.cpp (+0, -102)

39 Modified Paths:

/source/blender/blenkernel/bad_level_call_stubs/stubs.c (+0, -7) (Diff)
/source/blender/blenkernel/BKE_global.h (+0, -1) (Diff)
/source/blender/blenkernel/BKE_texture.h (+0, -23) (Diff)
/source/blender/blenkernel/intern/displist.c (+26, -25) (Diff)
/source/blender/blenkernel/intern/effect.c (+2, -1) (Diff)
/source/blender/blenkernel/intern/exotic.c (+3, -2) (Diff)
/source/blender/blenkernel/intern/library.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/object.c (+0, -3) (Diff)
/source/blender/blenkernel/intern/scene.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/texture.c (+0, -1785) (Diff)
/source/blender/makesdna/DNA_camera_types.h (+0, -5) (Diff)
/source/blender/render/extern/include/render.h (+27, -32) (Diff)
/source/blender/render/extern/include/render_types.h (+11, -10) (Diff)
/source/blender/render/intern/include/envmap.h (+1, -0) (Diff)
/source/blender/render/intern/include/pixelshading.h (+11, -48) (Diff)
/source/blender/render/intern/include/rendercore.h (+13, -8) (Diff)
/source/blender/render/intern/include/rendercore_int.h (+1, -2) (Diff)
/source/blender/render/intern/include/shadbuf.h (+1, -12) (Diff)
/source/blender/render/intern/include/texture.h (+4, -32) (Diff)
/source/blender/render/intern/include/zbuf_int.h (+1, -1) (Diff)
/source/blender/render/intern/source/edgeRender.c (+2, -1) (Diff)
/source/blender/render/intern/source/envmap.c (+2, -2) (Diff)
/source/blender/render/intern/source/initrender.c (+2, -51) (Diff)
/source/blender/render/intern/source/outerRenderLoop.c (+0, -6) (Diff)
/source/blender/render/intern/source/pixelshading.c (+48, -1254) (Diff)
/source/blender/render/intern/source/ray.c (+229, -367) (Diff)
/source/blender/render/intern/source/rendercore.c (+606, -635) (Diff)
/source/blender/render/intern/source/renderdatabase.c (+1, -0) (Diff)
/source/blender/render/intern/source/renderPreAndPost.c (+1, -12) (Diff)
/source/blender/render/intern/source/shadbuf.c (+9, -9) (Diff)
/source/blender/render/intern/source/vanillaRenderPipe.c (+16, -18) (Diff)
/source/blender/render/intern/source/zbuf.c (+21, -22) (Diff)
/source/blender/renderconverter/intern/convertBlenderScene.c (+4, -32) (Diff)
/source/blender/src/previewrender.c (+101, -103) (Diff)
/source/blender/src/toolbox.c (+1, -2) (Diff)
/source/blender/src/view.c (+1, -17) (Diff)
/source/blender/src/writeavicodec.c (+0, -1) (Diff)
/source/blender/src/writeimage.c (+1, -1) (Diff)
/source/blender/src/writemovie.c (+0, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021