Blender Git Loki

Blender Git "bake-cycles" branch commits.

Page: 5 / 8

April 23, 2014, 00:18 (GMT)
Cycles-Bake: support non-alpha saving of png, openexr, ...
April 23, 2014, 00:18 (GMT)
Cycles-Bake: Saving different file formats *

Todo:
* I still can't have PNG to save without alpha
* I think it's always saving as 8 bit

Apart from that UI is working.
April 23, 2014, 00:18 (GMT)
Cycles-Bake: Fix for padding (margin) not working in tangent maps

Note: you cannot save png without alpha for now, Im working on that in a separate branch
April 23, 2014, 00:18 (GMT)
Cycles-Bake: Support for float formats (openexr, png, ...)

Next: Support for saving with no alpha
April 23, 2014, 00:18 (GMT)
Cycles-Bake: Fix for "missing" rays generating spurious result in tangent maps

missing rays are rays cast from the low poly mesh (or the cage) that dont hit the high poly object
April 23, 2014, 00:18 (GMT)
Cycles-Bake: another compile fix attempt
April 23, 2014, 00:18 (GMT)
Cycles-Bake: User Interface
April 23, 2014, 00:18 (GMT)
Cycles-Bake: Fix warnings and compile errors (hopefully)
April 23, 2014, 00:18 (GMT)
Cycles-Bake: accept relative path in filepath
April 23, 2014, 00:18 (GMT)
Cycles-Bake: remove invoke
April 23, 2014, 00:18 (GMT)
Cycles-Bake: ui fix - cage works for non-normal passes too
April 23, 2014, 00:18 (GMT)
Cycles-Bake: normal swizzle, and OBJECT and WORLD normal spaces

The user can now decide between the normal_space (OBJECT, WORLD)
The user can now decide on the swizzle (+X,+Y,+Z):
* normal_r, normal_g, normal_b

+ barebones code for TANGENT normal space
Though this is not working, thus it's disabled in operator enum.
April 23, 2014, 00:18 (GMT)
Cycles-Bake: silenting warning: set default string value as NULL - no more crashes
April 23, 2014, 00:18 (GMT)
Cycles-Bake: Custom Cage support

New Python argument: "custom_cage", that should be a name of the object to use as custom cage
April 23, 2014, 00:18 (GMT)
Cycles-Bake: Fix Linux build error
April 23, 2014, 00:18 (GMT)
Cycles-Bake: Tangent Normal space mode

TANGENT gives no crash and bluish results, so it seems correct.
There are some differences from BI and Cycles, I'll have to test further
to see which one is correct.

Apart from that there is a chance the swizzle is wrong.
In other words, the directions may be swapped, or inverted.
It will be an easy fix though. I just need to put time on testing this
against other applications and simple test files.

* Refactored calculateTriTessFaces to store tangent.
* Re-set neutral color for WORLD/OBJECT maps to be 0,0,0 from Cycles
April 23, 2014, 00:18 (GMT)
Cycles-Bake: Fixing building for MSVC + supress warnings
April 23, 2014, 00:18 (GMT)
Cycles-Bake: remove assert and comment cleanup
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
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021