Blender Git Commit Log
Git Commits -> Revision f81d237
Revision f81d237 by Sergey Sharybin (opensubdiv-modifier) July 8, 2014, 10:10 (GMT) |
OpenSubdiv: Support multi-textured faces in a solid view This means that if faces have different materials assigned to them they'll be textured accordingly to a diffuse settings when viewing them in solid shading mode. It uses approach based on the pertitioned mesh from OpenSubdiv and currently it creates partition for every single coarse face. This might backfire in performance for a bit because it increases number of glDrawElements() calls. But likely partitioning will stay like this (to avoid re-partitioning when changing material settings) and we'll just do some conjunction of partitions when actually drawing faces into the viewport. Currently it's like 20% speed loss, don't get too much disappointed on this, it's to be addressed. Just a bit later. For now 1st prio is to have all the shading/texturing bits in place. |
Commit Details:
Full Hash: f81d237102dc9de59b6659d64e5ab59f8681f9e3
Parent Commit: 81653fa
Lines Changed: +429, -61
1 Added Path:
/intern/opensubdiv/opensubdiv_partitioned.h (+276, -0) (View)
6 Modified Paths:
/intern/opensubdiv/opensubdiv_capi.cc (+79, -20) (Diff)
/intern/opensubdiv/opensubdiv_capi.h (+16, -10) (Diff)
/intern/opensubdiv/opensubdiv_gpu_capi.cc (+21, -8) (Diff)
/source/blender/blenkernel/intern/CCGSubSurf.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/CCGSubSurf.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/subsurf_ccg.c (+34, -20) (Diff)
/intern/opensubdiv/opensubdiv_capi.h (+16, -10) (Diff)
/intern/opensubdiv/opensubdiv_gpu_capi.cc (+21, -8) (Diff)
/source/blender/blenkernel/intern/CCGSubSurf.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/CCGSubSurf.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/subsurf_ccg.c (+34, -20) (Diff)