Blender Git Loki

Git Commits -> Revision 82f1583

Revision 82f1583 by Jason Wilkins (soc-2010-jwilkins)
July 17, 2010, 23:17 (GMT)
== MatCap Shade Mode ==
Added MatCap shade mode to 'BB, Wire, Solid, Texture' selector.
Use the MatCap panel on the nkey panel to load and select a MatCap
MatCap is a quick and easy way to visualize how models will look with a particular shading style. This is particularly useful for sculpting and modeling where it is possible to get a quick idea how a finished object may look without rendering it.

However, the selected MatCap will have no effect on a finished render. Its purpose is to allow quick and easy visualization of a surface without creating or changing materials or loading images into the .blend.

Known Problems:
* MatCap is global so it will be used to render every object in a view. A per-object matcap would be more complex to implement and goes against the idea that it be simple and minimal.

* Only the image used last as MatCap will be saved to the .blend. There is no intention at this time to save multiple MatCaps, in fact, saving just one is a concession to usability.

In the future I intend to load the MatcCp selector with images from a directory the user selects and keep none of the images in the .blend file at all. I think this would be the best way.

Sorry this is a little long winded. I am trying to justify this feature as simple and needed because I've heard objections that it would introduce complexity when MatCaps are already possible with the existing options. However, this commit is intended as a proof of concept on how it can be done simply and unobtrusively.

Commit Details:

Full Hash: 82f1583eb4708c6f4757ecc5a8a7a277ff8a31a6
SVN Revision: 30452
Parent Commit: 38646bc
Lines Changed: +164, -74

14 Modified Paths:

/release/scripts/ui/space_view3d.py (+13, -0) (Diff)
/source/blender/blenkernel/intern/material.c (+16, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+5, -2) (Diff)
/source/blender/editors/space_view3d/drawmesh.c (+2, -2) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+3, -3) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+11, -1) (Diff)
/source/blender/editors/space_view3d/view3d_draw.c (+1, -1) (Diff)
/source/blender/gpu/intern/gpu_codegen.c (+4, -0) (Diff)
/source/blender/gpu/intern/gpu_draw.c (+83, -63) (Diff)
/source/blender/gpu/intern/gpu_material.c (+2, -0) (Diff)
/source/blender/makesdna/DNA_object_types.h (+1, -0) (Diff)
/source/blender/makesdna/DNA_view3d_types.h (+2, -1) (Diff)
/source/blender/makesrna/intern/rna_object.c (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_space.c (+20, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021