Blender Git Loki
Git Commits -> Revision 470b5c0
Revision 470b5c0 by Ton Roosendaal (master) August 31, 2003, 20:33 (GMT) |
So, for the platform managers to check: - the link order for Blender has changed, the libradiosity.a has to be moved after the librender.a (obviously for a new dependency!). Check blender/source/Makefile - there's a new file: blender/source/radiosity/intern/source/radrender.c Here's what the new code does: Using the core routines of the Radiosity tool, each renderface with 'emit material' and each renderface with 'radio material flag' set will be used to itterate to a global illumination solution. Per face with high energy (emit) little images are rendered (hemicubes) which makes up lookup tables to 'shoot' its energy to other faces. In the end this energy - color - then is directly added to the pixel colors while rendering, Gouraud shaded. Since it's done with renderfaces, it works for all primitives in Blender. What is doesn't do yet: - take into account textured color of faces. Currently it uses the material RGB color for filtering distributed energy. - do some smart pre-subdividing. I don't know yet if this is useful... Right now it means that you'll have to balance the models yourself, to deliver small faces where you want a high accuracy for shadowing. - unified render (is at my todo list) User notes: - per Material you want to have included in radiosity render: set the 'radio' flag. For newly added Materials it is ON by default now. - the Ambient slider in Material controls the amount of radiosity color. - for enabling radiosity rendering, set the F10 "Radio" button. - the Radiosity buttons now only show the relevant radiosity rendering options. Pressing "collect meshes" will show all buttons again. - for meshes, the faces who use Radio material always call the 'autosmooth' routine, this to make sure sharp angles (like corners in a room) do not have shared vertices. For some smooth models (like the raptor example) you might increase the standard smoothing angle from 30 to 45 degree. Technical notes: - I had to expand the renderface and rendervertices for it... shame on me! Faces have one pointer extra, render vertices four floats... - The size of the hemicubes is now based at the boundbox of the entire scene (0.002 of it). This should be more reliable... to be done - I fixed a bug in radiosity render, where sometimes backfaces where lit In general: I'd like everyone to play a bit with this system. It's not easy to get good results with it. A simple "hit and go" isn't there... maybe some good suggestions? |
Commit Details:
Full Hash: 470b5c0366dd31197b7ba39b5c2bc2256a3d8d0f
SVN Revision: 1190
Parent Commit: b64b5d7
Lines Changed: +772, -139
1 Added Path:
/source/blender/radiosity/intern/source/radrender.c (+541, -0) (View)
13 Modified Paths:
/source/blender/blenkernel/intern/material.c (+3, -1) (Diff)
/source/blender/makesdna/DNA_material_types.h (+1, -0) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+2, -2) (Diff)
/source/blender/radiosity/extern/include/radio.h (+4, -1) (Diff)
/source/blender/radiosity/intern/source/radfactors.c (+1, -1) (Diff)
/source/blender/render/extern/include/render_types.h (+10, -1) (Diff)
/source/blender/render/intern/source/initrender.c (+9, -8) (Diff)
/source/blender/render/intern/source/rendercore.c (+21, -6) (Diff)
/source/blender/render/intern/source/renderPreAndPost.c (+4, -0) (Diff)
/source/blender/render/intern/source/zbuf.c (+58, -23) (Diff)
/source/blender/renderconverter/intern/convertBlenderScene.c (+8, -5) (Diff)
/source/blender/src/buttons.c (+109, -90) (Diff)
/source/Makefile (+1, -1) (Diff)
/source/blender/makesdna/DNA_material_types.h (+1, -0) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+2, -2) (Diff)
/source/blender/radiosity/extern/include/radio.h (+4, -1) (Diff)
/source/blender/radiosity/intern/source/radfactors.c (+1, -1) (Diff)
/source/blender/render/extern/include/render_types.h (+10, -1) (Diff)
/source/blender/render/intern/source/initrender.c (+9, -8) (Diff)
/source/blender/render/intern/source/rendercore.c (+21, -6) (Diff)
/source/blender/render/intern/source/renderPreAndPost.c (+4, -0) (Diff)
/source/blender/render/intern/source/zbuf.c (+58, -23) (Diff)
/source/blender/renderconverter/intern/convertBlenderScene.c (+8, -5) (Diff)
/source/blender/src/buttons.c (+109, -90) (Diff)
/source/Makefile (+1, -1) (Diff)