Campbell Barton
502dfcce5f
use job types when checking for jobs in areas of the code that made assumptions about job types (that could be wrong)
2012-08-15 10:23:06 +00:00
Campbell Barton
15bd03f958
fix for missing change to fluidsim from last commit and name jobs a more useful name - 'wm_job'.
2012-08-15 10:03:29 +00:00
Campbell Barton
97859e8709
add wm job types they are not used yet, so this just defines them for new jobs add add argument to search by job type.
2012-08-15 09:42:06 +00:00
Campbell Barton
c567cf3fab
code cleanup: WM naming conventions
2012-08-11 21:35:24 +00:00
Campbell Barton
f0951f58ca
code cleanup: rename G.afbreek --> is_break, G.rendering --> is_rendering
2012-08-08 18:37:06 +00:00
Sergey Sharybin
4a33d7f210
Fix related on #31984 : Multires Displacement Bake creates ripples for each subidived face
...
Skip applying subdivisions in cases when low resolution mesh is disabled
and baking happens from higher level to higher level/
2012-07-02 07:40:25 +00:00
Sergey Sharybin
acd468f2b3
Fix #31500 : Displacement Baking from Multires doesn't work
...
Issue was caused by wrong calculation of grid coordinates when switching
from low resolution mesh to high resolution mesh. Somehow was affected only
for face U or V equals to 1.0f.
Checked fix using all test files used during initial implementation of
multires baker and tested sample file from bug/ Seems everything is OK.
2012-05-22 07:06:48 +00:00
Campbell Barton
af3e348430
code cleanup: use TRUE/FALSE rather then 1/0 for better readability, also replace do prefix with do_ for bool vars.
2012-05-19 13:28:19 +00:00
Campbell Barton
ce17c35240
style cleanup: mainly sculpt/whitespace
2012-05-11 08:05:47 +00:00
Nicholas Bishop
f751d0f6ae
Replace hardcoded DMGridData structure with CCGElem/CCGKey.
...
* Changes to DerivedMesh interface: DMGridData has been removed,
getGridData() now returns an array of CCGElem pointers. Also added
getGridKey() to initialize a CCGKey (implemented only by
CCGDerivedMesh.)
* PBVH: added BLI_pbvh_get_grid_key().
* A lot of code is affected, but mainly is just replacing
DMGridData.co, DMGridData.no, and sizeof(DMGridData) with the
CCG_*_elem functions, removing the reliance on grid elements of
exactly six floats.
2012-05-10 20:33:09 +00:00
Nicholas Bishop
3794ad5e14
Code cleanup for multires_dm_create_from_derived().
...
Changed name to multires_make_derived_from_derived() and parameter
order to be more similar to subsurf_make_derived_from_derived().
Added MultiresFlags enum with flag values to replace the local_mmd and
useRenderParams parameters.
2012-05-10 20:32:09 +00:00
Nicholas Bishop
6dbfbabcd6
Code cleanup for parameters of subsurf_make_derived_from_derived.
...
This is the first commit of the sculpt masking merge. Documentation:
http://wiki.blender.org/index.php/User:Nicholasbishop/PaintMasks
Thanks to Brecht for reviewing!
Replaced four boolean parameters with a single flag and a new enum,
SubsurfFlags.
2012-05-10 20:31:55 +00:00
Campbell Barton
a5af5e8f50
style cleanup: re - http://wiki.blender.org/index.php/Dev:Doc/CodeStyle#Braces_with_Macros
2012-04-30 16:22:40 +00:00
Campbell Barton
e2c453b5f9
style cleanup: editors / mesh & object
2012-04-28 15:42:27 +00:00
Campbell Barton
ef054e165c
style cleanup: format 'for' loop macros the same as for loops, some renaming to BLI_array macros.
2012-04-28 15:14:16 +00:00
Campbell Barton
b340f930ec
style cleanup: changes to brace placement / newlines - for/while/if/switch
2012-04-28 06:31:57 +00:00
Campbell Barton
6701933f5c
style cleanup
2012-04-21 12:51:47 +00:00
Campbell Barton
ab4a2aaf4a
style cleanup: follow style guide for formatting of if/for/while loops, and else if's
2012-03-24 06:38:07 +00:00
Campbell Barton
4c3bb77012
style cleanup: spaces aroudn operators for operator definitions.
2012-03-22 07:26:09 +00:00
Nicholas Bishop
7081abf51f
Remove unused parameter from multires_dm_create_from_derived.
2012-03-15 04:08:57 +00:00
Campbell Barton
4f7bdc59d3
style cleanup: spelling.
...
also remove large, duplicate comments from sunsky.h
2012-03-09 00:41:09 +00:00
Campbell Barton
a2c182e923
style cleanup - use aligned * prefixed blocks for descriptive comments (was already used a lot and part of proposed style guide).
2012-03-03 16:31:46 +00:00
Campbell Barton
47c373c7a9
style cleanup (mostly whitespace)
2012-02-27 10:35:39 +00:00
Campbell Barton
c8b53d2aaf
code style cleanup, no functional changes.
2012-02-23 02:23:42 +00:00
Campbell Barton
e9f93b9117
for bake check polygon texface (not tessface-texface)
2012-02-19 22:55:37 +00:00
Campbell Barton
bc6bbcccc9
went over all uses of mesh->mface and added BMESH_TODO comments for
...
areas that need to be updated.
2012-02-15 14:39:18 +00:00
Campbell Barton
8926cbd0a7
svn merge ^/trunk/blender -r43819:43830
2012-02-02 00:04:47 +00:00
Sergey Sharybin
fb62923a84
Fix #30047 : Bake from multires crashes if run while sculpt mode is active
...
Issue was caused by incorrect level used for lowres DM.
2012-02-01 16:56:48 +00:00
Campbell Barton
2ea8a3b8ca
remove CDDM_copy second argument, added CDDM_copy_from_tessface instead.
...
this function caused too many conflicts and in most cases was zero anyway.
2012-01-29 21:59:47 +00:00
Campbell Barton
c8037fb56a
svn merge ^/trunk/blender -r43530:43554
2012-01-20 12:34:00 +00:00
Sergey Sharybin
f0fc8c22bb
Fix #27120 : Bake to image used for rendering glitch (bake feedback loop)
...
Detect feedback loop and do not bake to images detected in this loop and show
nice warning message in such cases.
It's a way which wouldn't overcomplicate code trying to duplicate images and so
without real benefit.
2012-01-20 07:43:46 +00:00
Campbell Barton
7b2101ace9
svn merge ^/trunk/blender -r43482:43524
2012-01-19 11:31:31 +00:00
Campbell Barton
a87c5eb52c
use color conversions functions in more places.
...
also add rgba_float_to_uchar, rgba_uchar_to_float
2012-01-19 10:04:51 +00:00
Campbell Barton
50ca81154e
svn merge ^/trunk/blender -r42973:42991
2011-12-30 09:23:06 +00:00
Sergey Sharybin
e61ffcffe9
Fix #29687 : Normal bake from multires gives distorted results.
...
It is just a limitation of multires baker which doesn't deal correct with
baking to subdivision level 0. It was supposed to work with levels on which
sculpt data is affecting on mesh, so interpolation between grids works correct.
Fully accurate baking in this case will need raycasting stuff which will make
it much slower and will remove main benefit of regular baker -- speed and
low memory usage.
Another option would be to make multires apply sculpting data on level 0,
but it's not related at baking at all and has got it's own difficulties.
2011-12-29 16:05:09 +00:00
Campbell Barton
22a1ad61f9
svn merge ^/trunk/blender -r42372:42416
2011-12-04 18:39:19 +00:00
Campbell Barton
9c5ad4fb60
remove old renderer struct member, was only used for setting yafray but was still being checked in a few places,
2011-12-04 16:22:53 +00:00
Campbell Barton
25098c741b
svn merge ^/trunk/blender -r42292:42303
2011-12-01 00:34:59 +00:00
Sergey Sharybin
ed65c46332
Forcing multires update when doing multires baking
...
Prevents issues with missed strokes baked into image when baking from sculpt mode.
2011-11-30 11:04:57 +00:00
Campbell Barton
faa022563d
svn merge ^/trunk/blender -r42245:42261
2011-11-29 18:18:56 +00:00
Sergey Sharybin
587197c13f
Fix for memory leak in multires baker.
2011-11-29 15:45:16 +00:00
Andrew Wiggin
eb46f6bf0d
More DM func renames, this one includes renames of the function pointer members of the DerivedMesh struct
2011-11-29 13:01:51 +00:00
Campbell Barton
aad88b560b
enable multires baking code, this works between different multires levels but currently not baking to level 0, added TODO in code.
2011-11-27 16:50:25 +00:00
Campbell Barton
f9e00b5c99
svn merge ^/trunk/blender -r42009:42053
2011-11-22 11:51:42 +00:00
Campbell Barton
30fd1ab523
replace ImBuf.depth with ImBuf.planes to match ImageFormatData.planes & to avoid confusion with ImageFormatData.depth
2011-11-21 20:47:19 +00:00
Campbell Barton
e6e265b2b5
svn merge -r41779:41847 ^/trunk/blender
2011-11-15 02:58:06 +00:00
Campbell Barton
e59ab6486f
svn merge -r41751:41779 ^/trunk/blender
2011-11-15 02:05:32 +00:00
Sergey Sharybin
c491b8bf45
Fix #29240 : multi-res bake broken in 2.60
...
Use preview subdivision level even when in sculpt mode. Makes more sense
than baking against sculpting subdivision level.
2011-11-13 17:45:42 +00:00
Sergey Sharybin
05d09feeee
Speedup of multires baker
...
Issue was caused by how CCGDM handles ORIGINDEX cystom layer:
It runs cycle through all faces to fill origindex array on each
call of dm->getFaceDataArray(dm, CD_ORIGINDEX)
Solved issue by obtaining origindex array once on baker data initialization and
using this stored array when interpolating multires grid data.
2011-11-13 10:48:46 +00:00
Sergey Sharybin
11a1c1ec19
Fix crash when multires-baking in sculpt mode when sculpt mode is active and sculpt level is set to 0.
2011-11-13 10:09:34 +00:00