Blender Git Loki

Blenderin Git "master"-kehityshaaran kommitit.

Page: 2943 / 5574

Revision d59f53f by Lukas Toenne
February 24, 2014, 10:35 (GMT)
Support for generic OSL shader parameters in the Cycles standalone XML
reader.

To make a generic OSL shader connectable to other nodes, the parameters
must be declared via "input" and "output" child elements:

<osl_shader name="tex" src="./osl/stripes.osl">
<input name="Stripes" type="int" />
<output name="ColorOut" type="color" />
</osl_shader>

`name` must be the same as the OSL shader parameter name.
`type` must be one of float, int, color, vector, point, normal, closure,
string (matching cycles socket types)

Beyond this the OSL script nodes then work just like all other nodes.

OSL parameter sockets can be connected to other cycles nodes:

<connect from="checker color" to="tex Stripes" />
<connect from="tex ColorOut" to="floor_closure color" />

They can set default values for the input sockets by attributes of the
main node element:

<osl_shader name="tex" src="./osl/stripes.osl" Stripes="3" >
<input name="Stripes" type="int" />
<output name="ColorOut" type="color" />
</osl_shader>

This system of specifying custom attributes should probably be changed,
since it can easily create name conflicts and arbitrarily long elements.
But that is a different issue to be solved for all nodes in general.
February 24, 2014, 10:18 (GMT)
OSX: add debug mesg to bl_locale_pgettext for later indeep investigation
February 24, 2014, 08:55 (GMT)
Fix T38795: Mesh Analysis overhang faces show gray
February 24, 2014, 08:34 (GMT)
Fix T38756: Regression with vertex slide responding to mouse events
February 24, 2014, 08:24 (GMT)
Fix T38786: Curve unable to make segment
February 24, 2014, 06:21 (GMT)
Fix for recent changes with NDOF
February 24, 2014, 04:17 (GMT)
NDOF: various fixes for view3d

- allow zooming when in ortho+user mode
- fix for using VIEW3D_OT_ndof_orbit_zoom when the camera is locked.
- fix for locked camera changing the dist value when used with ndof.
- de-duplicate ndof_pan_zoom and ndof_all operators
February 24, 2014, 01:56 (GMT)
NDOF: Auto-Depth preference was used while orbiting
February 24, 2014, 01:56 (GMT)
NDOF: fix for use with locked offset

- when locked to cursor or object. fallback to orbit and allow zoom.
- correct speed calculation in perspective mode.
February 23, 2014, 22:17 (GMT)
OSX/scons: Fix language menu not showing up in prefs:
The languages file was not installed to locale due it has
no extension, using ditto now
February 23, 2014, 20:44 (GMT)
Partial fix for T3817: BGE crashing when using LibNew.

The BGE needs to use BKE_main_new() isntead of calloc for
allocating a Main struct since the threaded depsgraph changes.
February 23, 2014, 19:38 (GMT)
Fix an uncaught exception on OSX, perhaps general with popups
Revision d92f6b9 by Gaia Clary
February 23, 2014, 14:33 (GMT)
T38763 Fix: avoid NPE When no custom properties are defined
February 23, 2014, 07:38 (GMT)
Fix T38769: Python missing access to text materials
February 23, 2014, 03:38 (GMT)
MSVC: resolve utf8 encoding issue with some codepages
February 23, 2014, 03:38 (GMT)
Code cleanup: use lowercase names for vars
February 23, 2014, 01:23 (GMT)
Fix T38645 - Mouse reversed in standalone player with kde

Reviewers: moguri

Differential Revision: https://developer.blender.org/D344
February 22, 2014, 14:02 (GMT)
Followup for numinput: activate numinput when hitting pad* or =, this is the expected behavior from users!
February 22, 2014, 13:31 (GMT)
Avoid UUOC in install_deps.sh

The file ##build_files/build_environment/install_deps.sh## contains the following line:

THREADS=`cat /proc/cpuinfo | grep processor | wc -l`

The command within the backticks is a [[ http://catb.org/jargon/html/U/UUOC.html | Useless Use Of Cat ]].

A more compact way of writing the same thing (saving two subprocesses) is

THREADS=`grep -c processor /proc/cpuinfo`

or (using POSIX-preferred command-substitution parentheses instead of backticks)

THREADS=$(grep -c processor /proc/cpuinfo)

But the most compact, and least Linux-specific, way is to use the ##nproc##(1) command from the [[ http://www.gnu.org/software/coreutils/manual/html_node/nproc-invocation.html | GNU coreutils package ]]:

THREADS=$(nproc)

Reviewers: sergey, mont29

Reviewed by: mont29

Differential Revision: https://developer.blender.org/D255
February 22, 2014, 12:49 (GMT)
Minor UI messages fixes.
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021