[Bf-committers] Re: [Bf-blender-cvs] CVS commit: blender/source/blender/blenkernel BKE_node.h blender/source/blender/blenkernel/intern node_shaders.c

Johnny Matthews johnny.matthews at gmail.com
Fri Aug 4 17:36:33 CEST 2006


Also the benefit of this node is that it you do not need to set a fixed
range. Sure a curves node for values would be good too.

Look here for the function

http://mathworld.wolfram.com/SigmoidFunction.html

the function is defined as 1/(1+e^(-x))

so the node does

1/(1+e^(-(x-center)*width))


On 8/4/06, Branan Riley <branan at gmail.com> wrote:
>
> I tried that, kept getting segfaults no matter how I set it up. The
> curves widget itself is designed to check what sort of curve you want
> (vector, rgb, etc.) I tried adding a value option, but couldn't get it
> to work. I probably missed something, though.
>
> Branan
>
> On 8/4/06, Joe Eagar <joeedh at gmail.com> wrote:
> > Johnny Matthews wrote:
> > > guitargeek (Johnny Matthews ) 2006/08/03 15:22:51 CEST
> > >
> > >   Modified files:
> > >     blender/source/blender/blenkernel BKE_node.h
> > >     blender/source/blender/blenkernel/intern node_shaders.c
> > >
> > >   Log:
> > >   --Value Squeeze Node--
> > >
> > >   This material node takes an input value of any size and fits it to a
> sigmoid curve (value between 0 and 1) The width of the curve can set to make
> the sigmoid fall off faster (bigger number) or slower (smaller number) and
> the centerpoint (what value is mapped to 0.5) can be adjusted as well.
> Anyone smarter than me can feel free to tweak this and make it better.
> > >
> > >
> > Why not just add new Curves Node for values?
> >
> > Joe
> > _______________________________________________
> > Bf-committers mailing list
> > Bf-committers at projects.blender.org
> > http://projects.blender.org/mailman/listinfo/bf-committers
> >
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
>



-- 
Johnny Matthews
johnny.matthews at gmail.com
Check out my blog at - http://johnnygizmo.blogspot.com

"Any sufficiently advanced technology is indistinguishable from magic."
- Arthur C. Clarke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.blender.org/pipermail/bf-committers/attachments/20060804/24f36cf5/attachment-0001.html


More information about the Bf-committers mailing list