Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1396)

Issue 4518055: Normals baker from sculpt data

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by nazgul
Modified:
13 years ago
Reviewers:
bf-codereview, sparky, brechtvl
Base URL:
https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Visibility:
Public.

Description

Hi everybody! Morten Mikkelsen and me were working under baker, which could bake normals directly from mesh with multi-resolution modifier without using much of additional memory. Here's patch for Blender which makes able to bake in such way. It isn't replacing existing maker, just adds new method which could be specified from UI and bakes against given subdivision level. It's my first change in baker-related area, so i want this patch be reviewed by other developers. Thanks!

Patch Set 1 #

Total comments: 27

Patch Set 2 : I hope all of reported issues were fixed. #

Patch Set 3 : Fixed errors when baking several objects #

Total comments: 5

Patch Set 4 : Next version of patch. Fixed issues reported by Brecht. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1461 lines, -151 lines) Patch
release/scripts/startup/bl_ui/properties_render.py View 1 2 3 1 chunk +30 lines, -18 lines 0 comments Download
source/blender/blenkernel/BKE_multires.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
source/blender/blenkernel/intern/customdata.c View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
source/blender/blenkernel/intern/multires.c View 1 2 3 3 chunks +57 lines, -1 line 0 comments Download
source/blender/blenlib/BLI_math_geom.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
source/blender/blenlib/intern/math_geom.c View 1 2 3 1 chunk +74 lines, -0 lines 0 comments Download
source/blender/editors/object/object_bake.c View 1 2 3 7 chunks +1208 lines, -56 lines 0 comments Download
source/blender/imbuf/IMB_imbuf.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
source/blender/imbuf/intern/filter.c View 1 2 3 1 chunk +64 lines, -0 lines 0 comments Download
source/blender/makesdna/DNA_scene_types.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
source/blender/makesrna/intern/rna_scene.c View 1 2 3 1 chunk +8 lines, -0 lines 2 comments Download
source/blender/render/intern/source/rendercore.c View 1 2 3 4 chunks +6 lines, -74 lines 0 comments Download

Messages

Total messages: 12
nazgul
13 years ago (2011-05-11 18:48:58 UTC) #1
brechtvl
Comments inline. The biggest thing I guess is that this should be using the jobs ...
13 years ago (2011-05-16 11:09:17 UTC) #2
nazgul
Thanks for review. Most of reported issues are easy enough and some are already fixed ...
13 years ago (2011-05-16 12:05:21 UTC) #3
brechtvl
http://codereview.appspot.com/4518055/diff/1/source/blender/editors/object/object_bake.c File source/blender/editors/object/object_bake.c (right): http://codereview.appspot.com/4518055/diff/1/source/blender/editors/object/object_bake.c#newcode898 source/blender/editors/object/object_bake.c:898: result= sculptbake_image_exec(C, op); I don't see why we'd need ...
13 years ago (2011-05-16 12:45:11 UTC) #4
nazgul
I hope all of reported issues were fixed.
13 years ago (2011-05-16 18:14:08 UTC) #5
nazgul
On 2011/05/16 18:14:08, nazgul wrote: > I hope all of reported issues were fixed. Forgot ...
13 years ago (2011-05-16 18:19:57 UTC) #6
nazgul
Fixed errors when baking several objects
13 years ago (2011-05-17 08:59:59 UTC) #7
brechtvl
Great improvements, some comments on the updated patch below. http://codereview.appspot.com/4518055/diff/5003/release/scripts/startup/bl_ui/properties_render.py File release/scripts/startup/bl_ui/properties_render.py (right): http://codereview.appspot.com/4518055/diff/5003/release/scripts/startup/bl_ui/properties_render.py#newcode651 release/scripts/startup/bl_ui/properties_render.py:651: ...
13 years ago (2011-05-17 14:15:53 UTC) #8
brechtvl
http://codereview.appspot.com/4518055/diff/5003/source/blender/imbuf/IMB_imbuf.h File source/blender/imbuf/IMB_imbuf.h (right): http://codereview.appspot.com/4518055/diff/5003/source/blender/imbuf/IMB_imbuf.h#newcode254 source/blender/imbuf/IMB_imbuf.h:254: void IMB_mask_clear(struct ImBuf *ibuf, char *mask, int val); Correction: ...
13 years ago (2011-05-17 14:22:48 UTC) #9
nazgul
Next version of patch. Fixed issues reported by Brecht.
13 years ago (2011-05-18 15:22:54 UTC) #10
brechtvl
LGTM, though would still change the name of the flat heights option. http://codereview.appspot.com/4518055/diff/14014/source/blender/makesrna/intern/rna_scene.c File source/blender/makesrna/intern/rna_scene.c ...
13 years ago (2011-05-19 09:57:29 UTC) #11
sparky
13 years ago (2011-05-19 16:41:22 UTC) #12
> Heights" is still a weird name to me, how about "Bake to Low Resolution"?

I agree but I think people instinctively think of texture when they see "low
resolution". Perhaps we should make it "Bake to Low Resolution Mesh" or "Disable
subdivision on Low-Res" or something like that? As a programmer I'd prefer
"Piecewise flat low res" but I doubt that'd be popular? :)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b