Bake-API: Additional required changes
(including function to estimate a width/height when baking into multiple images).
Attempt to Fix T41222 Blender gives weird ouput when baking (4096*4096) resolution on GPU
Differential D688
Bake-API: use size_t instead of width, height
(original patch by Sergey Sharybin) Authored by Dalai Felinto (dfelinto) on Jul 28 2014, 9:11 PM.
Details
Bake-API: Additional required changes Attempt to Fix T41222 Blender gives weird ouput when baking (4096*4096) resolution on GPU
Diff Detail
Event TimelineComment Actions
Updating D688: Bake-API: use size_t instead of width, height(original patch by Sergey Sharybin) Comment Actions LGTM, even if it doesn't solve the issue, i'd say it's something how it should be actually. Comment Actions
Updating D688: Bake-API: use size_t instead of width, height(original patch by Sergey Sharybin) Comment Actions Its worry that there can be multiple images and width/height may be meaningless
Comment Actions
Updating D688: Bake-API: use size_t instead of width, height(original patch by Sergey Sharybin) Comment Actions @Campbell Barton (campbellbarton) I share your concern, but there is nothing stopping us from calling bake() once per image either. That could even help to make 'preview baking' to work. This is just not how the API was originally envisioned (I may be wrong here, but the point of passing an array of pixels to bake is that you could eventually even send only the UV mapped pixels). The reason I wanted to bring you into this conversation is that you once told me we should call bake only once with all the objects to bake. And this patch is a move in the other direction (multiple bake calls in oppose to one big bake call). @Sergey Sharybin (sergey) any final thoughts? Comment Actions I talked with @Campbell Barton (campbellbarton) and he said it's doable to allow RNA to handle size_t. Since this doesn't seem to affect the original bug report, I would say we wait for RNA to support size_t and commit only the original changes by @Sergey Sharybin (sergey) (so we don't change the Bake API itself) Comment Actions @Dalai Felinto (dfelinto), i'll be fine with adding size_t arguments for functions, adding them to generic API (such as, say. scene props would be much huger change). What about:
| ||||||||