Blender Git Loki

Blender Git commits from all branches.

Page: 2642 / 2888

April 23, 2014, 00:18 (GMT)
Cycles-Bake: remove assert and comment cleanup
April 23, 2014, 00:18 (GMT)
Cycles-Bake: Fixing building for MSVC + supress warnings
April 23, 2014, 00:18 (GMT)
Cycles-Bake: Active to select and cage extrusion

New parameters:
* use_selected_to_active=False
* cage_extrusion=0.0

Selected and active are baked using local coordinates.
So they don't need to be in the same location.

Also, the cage always look inwards.

Note, I tested with XNormal and things seem good.
The object normals, however, are coded differently:

Cycles RGB = XNormal R(1-B)G
XNormal RGB = Cycles RB(1-G)

To be investigated ...
April 23, 2014, 00:18 (GMT)
Cycles-Bake: stop building undeformed mesh

This silent the warning printed out in the console
April 23, 2014, 00:18 (GMT)
Cycles-Bake: fix errors after recent rebase to master
April 23, 2014, 00:18 (GMT)
Cycles-Bake: get the mesh with modifiers applied
April 23, 2014, 00:18 (GMT)
Cycles-Bake: Cycles-Bake: Margin (image bleeding)
April 23, 2014, 00:18 (GMT)
Cycles-Bake: SUBSURFACE only supported in cpu
April 23, 2014, 00:18 (GMT)
Cycles-Bake: CUDA doesnt like make_float3(x) with one element
April 23, 2014, 00:18 (GMT)
Cycles-Bake: fix for multiple-objects scene

I was creating the object index when the scene didnt have the info of all the objects yet
April 23, 2014, 00:18 (GMT)
Cycles-Bake: fix for viewport lagging redraw

I was turning G.is_rendering on, but never off. Lets drop it now
April 23, 2014, 00:18 (GMT)
Cycles-Bake: free memory after done baking

I think this will fix a lot of the bugs I have now.
I left this code out originally because it was crashing things.
April 23, 2014, 00:18 (GMT)
Cycles-Bake: removing commented out code
April 23, 2014, 00:18 (GMT)
Cycles-Bake: make white background when baking AO

It hides the seams problem a bit, but it doesnt fix it for real. I will look at it later
April 23, 2014, 00:18 (GMT)
Cycles-Bake: AO pass
April 23, 2014, 00:18 (GMT)
Cycles-Bake: save as linear if is a data pass type
April 23, 2014, 00:17 (GMT)
Cycles-Bake: remove old code for passes + style touch ups
April 23, 2014, 00:17 (GMT)
Cycles-Bake: always write alpha 1.0 for now
April 23, 2014, 00:17 (GMT)
Cycles-Bake: Several fixes:

* Add code for summing multiple AA samples in PathRadiance, see path_radiance_accum_sample.
* Move #includes out of namespace to avoid having to use ::ccl::ccl
* Fix wrong initialization of RNG with hash,
* Fix light computation loop.
* Initialize incoming vector with Ng instead of zero, better not have degenerate value here.
* Use shader_emissive_eval to simplify emission pass code.

* Write files in PNG instead of JPEG format.
* Also enable linear => sRGB conversion. It should actually check if it's a
non-color data pass and avoid conversion then, but this is needed for inspecting
light passes.
April 23, 2014, 00:17 (GMT)
Cycles-Bake: Passing samples, and hack to enhance bake result

To see the result pick a scene render sample odd (e.g., 27, 39, ...).
Only working-ish for diffuse only scene (no emmit and no lights).
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021