Re: [Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [41023] trunk/blender: - add template for defining custom driver functions.
woa this looks sexy! Daniel Salazar 3Developer.com On Sat, Oct 15, 2011 at 1:19 AM, Campbell Barton ideasma...@gmail.com wrote: Revision: 41023 http://projects.blender.org/scm/viewvc.php?view=revroot=bf-blenderrevision=41023 Author: campbellbarton Date: 2011-10-15 07:19:34 + (Sat, 15 Oct 2011) Log Message: --- - add template for defining custom driver functions. - comment unused assignments. Modified Paths: -- trunk/blender/GNUmakefile trunk/blender/source/blender/nodes/intern/node_exec.c Added Paths: --- trunk/blender/release/scripts/templates/driver_functions.py Modified: trunk/blender/GNUmakefile === --- trunk/blender/GNUmakefile 2011-10-15 05:01:47 UTC (rev 41022) +++ trunk/blender/GNUmakefile 2011-10-15 07:19:34 UTC (rev 41023) @@ -233,7 +233,7 @@ doc_py: $(BUILD_DIR)/bin/blender --background --factory-startup --python doc/python_api/sphinx_doc_gen.py cd doc/python_api ; sphinx-build -n -b html sphinx-in sphinx-out - @echo docs written into: 'doc/python_api/sphinx-out/index.html' + @echo docs written into: '$(BLENDER_DIR)/doc/python_api/sphinx-out/contents.html' clean: Added: trunk/blender/release/scripts/templates/driver_functions.py === --- trunk/blender/release/scripts/templates/driver_functions.py (rev 0) +++ trunk/blender/release/scripts/templates/driver_functions.py 2011-10-15 07:19:34 UTC (rev 41023) @@ -0,0 +1,34 @@ +# This script defines functions to be used directly in drivers expressions to +# extend the builtin set of python functions. +# +# This can be executed on manually or set to 'Register' to +# initialize thefunctions on file load. + + +# two sample functions +def invert(f): + Simple function call: + + invert(val) + + return 1.0 - f + + +uuid_store = {} + +def slow_value(value, fac, uuid): + Delay the value by a factor, use a unique string to allow + use in multiple drivers without conflict: + + slow_value(val, 0.5, my_value) + + value_prev = uuid_store.get(uuid, value) + uuid_store[uuid] = value_new = (value_prev * fac) + (value * (1.0 - fac)) + return value_new + + +import bpy + +# Add variable defined in this script into the drivers namespace. +bpy.app.driver_namespace[invert] = invert +bpy.app.driver_namespace[slow_value] = slow_value Modified: trunk/blender/source/blender/nodes/intern/node_exec.c === --- trunk/blender/source/blender/nodes/intern/node_exec.c 2011-10-15 05:01:47 UTC (rev 41022) +++ trunk/blender/source/blender/nodes/intern/node_exec.c 2011-10-15 07:19:34 UTC (rev 41023) @@ -180,7 +180,7 @@ /* prepare group tree inputs */ for (sock=ntree-inputs.first; sock; sock=sock-next) { - ns = setup_stack(exec-stack, sock); + /* ns = */ setup_stack(exec-stack, sock); } /* prepare all internal nodes for execution */ for(n=0, nodeexec= exec-nodeexec; n totnodes; ++n, ++nodeexec) { @@ -198,7 +198,7 @@ /* tag all outputs */ for (sock=node-outputs.first; sock; sock=sock-next) { - ns = setup_stack(exec-stack, sock); + /* ns = */ setup_stack(exec-stack, sock); } if(node-typeinfo-initexecfunc) ___ Bf-blender-cvs mailing list bf-blender-...@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] node ior
It's been like that for years, same with the transmission settings as well. Last time I tried, there were other problems using refracting materials in node trees too - it doesn't really work properly and is better to just avoid avoid node materials for this purpose (or use another renderer :). On Sat, Oct 15, 2011 at 4:09 PM, Daniel Salazar - 3Developer.com zan...@gmail.com wrote: gah, got a bit of a problem here, afaik the nodetree gets the IOR for the entire material from what ever node it decides. So i'm having to set the same ior for all the shaders in a nodetree which is by itself annoying, however it get's worst when certain materials are shared with other nodetrees where I wan't other IOR values. Since blender doesn't support mixing multiple IOR materials I guess we need to move IOR to the Render Pipeline Options panel and make ir a nodetree option? cheers Daniel Salazar 3Developer.com ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] node ior
Maybe it's possible to just move this setting globally to the shader tree and solve this hidden annoyance. I'm not asking to correctly mix different transparent shaders but at least unify it in the UI and shader tree Daniel Salazar 3Developer.com On Sat, Oct 15, 2011 at 1:35 AM, Matt Ebb m...@mke3.net wrote: It's been like that for years, same with the transmission settings as well. Last time I tried, there were other problems using refracting materials in node trees too - it doesn't really work properly and is better to just avoid avoid node materials for this purpose (or use another renderer :). On Sat, Oct 15, 2011 at 4:09 PM, Daniel Salazar - 3Developer.com zan...@gmail.com wrote: gah, got a bit of a problem here, afaik the nodetree gets the IOR for the entire material from what ever node it decides. So i'm having to set the same ior for all the shaders in a nodetree which is by itself annoying, however it get's worst when certain materials are shared with other nodetrees where I wan't other IOR values. Since blender doesn't support mixing multiple IOR materials I guess we need to move IOR to the Render Pipeline Options panel and make ir a nodetree option? cheers Daniel Salazar 3Developer.com ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] what is the license of Blender GLSL shaders?
Hi Skoti, That's an interesting viewpoint as well. What I read in the GNU FAQ would mean: Even when we conclude that shader exports from Blender are GPL itself, for as long they're not used too link against a program, you can freely use them. It becomes like 'data' that way. AFAIK you can also freely bundle gpl-ed components with non-gpl, for as long they're not acting as one single program. This might be the most elegant solution; I should seek advise from FSF on it though :) Googling for the issue doesn't give replies sofar... it even shows this thread on the first page! -Ton- Ton Roosendaal Blender Foundation t...@blender.orgwww.blender.org Blender Institute Entrepotdok 57A 1018AD Amsterdam The Netherlands On 14 Oct, 2011, at 1:07, skoti wrote: Your code is not linked with the shaders, so you do not have to share your code. You just pass the code to drivers, and there is compiled and sent to the graphics card. Code of your program is not connected with the shader, and only run it through the driver (which is allowed to run as separate programsfrom non-free (shaders is separate programs) http://www.gnu.org/licenses/gpl-faq.html#NFUseGPLPlugins). Just do not hide the code shaders and shader code, do not changecode after reading from a file. On Thu, Oct 13, 2011 at 19:48, Dalai Felinto wrote: Hi Ton, the shader files (gpu_shader_material.glsl and gpu_shader_vertex.glsl) have no license header on them. Thus my hope that they were not under the GPL. In fact most of the code snippets we have there are classic implementations. I don't think they can even be under specific license. I find strange to have GPL reinforced over them. First: there's no BF or BFL license... it's just GNU GPL v2 or later. I guess I was a bit outdated :p I was referring to this http://www.blender.org/BL/ Thanks, Dalai 2011/10/13 Tom Mletter...@gmail.com Ton, check with FSF, but I seriously doubt that a shader would be expressive, and hence is not copyrightable. A generated shader is even less likely to be viewed as expressive. LetterRip On Thu, Oct 13, 2011 at 1:36 AM, Ton Roosendaalt...@blender.org wrote: Hi Dalai, First: there's no BF or BFL license... it's just GNU GPL v2 or later. If I understand the function well, it's generating a text file using the GLSL shader code as in our svn (which is GPL). In that way the exported glsl code remains GPL. -Ton- Ton Roosendaal Blender Foundation t...@blender.org www.blender.org Blender Institute Entrepotdok 57A 1018AD Amsterdam The Netherlands On 13 Oct, 2011, at 8:17, Dalai Felinto wrote: Hi, I understand that Blender code is under GPL/BF licensing. But if I use the command (added on rev. 40061): shader = gpu.export_shader(scene,material) Is the shader still GPL/BFL? The shader is made of snippets of Blender code, so I can see what lawyers may clam. And technically speaking a GLSL Shader is a program (compiles and run in the GPU). It would be really sad if this is the case though. Otherwise this could be used for external engines. Thanks, Dalai ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] Call for another RC build
Hi. I need to know exact hardware configuration and versions of drivers. Also, does it happen when running blender-softwaregl? Kel M wrote: Reporting a bug, on Linux, when you start up Blender, the splash screen displays for a millisecond, and vanishes. Not really a showstopper, but can cause problems for new users. -- With best regards, Sergey I. Sharybin ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] Call for another RC build
No GPU, Ubuntu 64. There are no proprietary drivers on my system. When running software-gl, it just adds the RGB of the blender UI to whatever's underneath the Blender window.(Dark areas have the blender UI, light areas are white, generally bright.) Release 11.04 Natty Kernel Linux 2.6.38-11-generic GNOME 2.32.1 8GB Memory IntelCore2 Duo 2.33Ghz On Sat, Oct 15, 2011 at 2:55 PM, Sergey I. Sharybin g.ula...@gmail.comwrote: Hi. I need to know exact hardware configuration and versions of drivers. Also, does it happen when running blender-softwaregl? Kel M wrote: Reporting a bug, on Linux, when you start up Blender, the splash screen displays for a millisecond, and vanishes. Not really a showstopper, but can cause problems for new users. -- With best regards, Sergey I. Sharybin ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] Call for another RC build
One, two more details you may find useful: 1) I recently did a fresh install of Ubuntu 11.04 Natty Narwhal after my Oneiric Ocelot headache. 2) I accidentally saved my user preferences in Cycles, which I soon discovered caused the blender trunk releases to segfault from missing nodes, so I resaved the User Preferences in a newer trunk build which solved the segfault. If it's the latter, it's probably unlikely to be triggered by someone else, and not a serious issue, but if it's the former, then we have a bigger problem. On Sat, Oct 15, 2011 at 3:02 PM, Kel M kelvinsh...@gmail.com wrote: No GPU, Ubuntu 64. There are no proprietary drivers on my system. When running software-gl, it just adds the RGB of the blender UI to whatever's underneath the Blender window.(Dark areas have the blender UI, light areas are white, generally bright.) Release 11.04 Natty Kernel Linux 2.6.38-11-generic GNOME 2.32.1 8GB Memory IntelCore2 Duo 2.33Ghz On Sat, Oct 15, 2011 at 2:55 PM, Sergey I. Sharybin g.ula...@gmail.comwrote: Hi. I need to know exact hardware configuration and versions of drivers. Also, does it happen when running blender-softwaregl? Kel M wrote: Reporting a bug, on Linux, when you start up Blender, the splash screen displays for a millisecond, and vanishes. Not really a showstopper, but can cause problems for new users. -- With best regards, Sergey I. Sharybin ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] Call for another RC build
Hi, It's best to report such bugs in the tracker, easier to manage that way. Also, it's not possible you have no GPU, it's probably an intel integrated graphics card. What also matters is, did this happen in a previous release or is this a new issue? And how are you starting Blender, double clicking, enter, terminal command? Maybe it's something like, you're double clicking and the second click incorrectly ends up on the splash screen. Brecht. On Sat, Oct 15, 2011 at 11:00 PM, Kel M kelvinsh...@gmail.com wrote: One, two more details you may find useful: 1) I recently did a fresh install of Ubuntu 11.04 Natty Narwhal after my Oneiric Ocelot headache. 2) I accidentally saved my user preferences in Cycles, which I soon discovered caused the blender trunk releases to segfault from missing nodes, so I resaved the User Preferences in a newer trunk build which solved the segfault. If it's the latter, it's probably unlikely to be triggered by someone else, and not a serious issue, but if it's the former, then we have a bigger problem. On Sat, Oct 15, 2011 at 3:02 PM, Kel M kelvinsh...@gmail.com wrote: No GPU, Ubuntu 64. There are no proprietary drivers on my system. When running software-gl, it just adds the RGB of the blender UI to whatever's underneath the Blender window.(Dark areas have the blender UI, light areas are white, generally bright.) Release 11.04 Natty Kernel Linux 2.6.38-11-generic GNOME 2.32.1 8GB Memory IntelCore2 Duo 2.33Ghz On Sat, Oct 15, 2011 at 2:55 PM, Sergey I. Sharybin g.ula...@gmail.comwrote: Hi. I need to know exact hardware configuration and versions of drivers. Also, does it happen when running blender-softwaregl? Kel M wrote: Reporting a bug, on Linux, when you start up Blender, the splash screen displays for a millisecond, and vanishes. Not really a showstopper, but can cause problems for new users. -- With best regards, Sergey I. Sharybin ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers