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

Johnny Matthews johnny.matthews at gmail.com
Tue Aug 1 15:34:16 CEST 2006


aha, thanks

On 8/1/06, Brecht Van Lommel <brechtvanlommel at pandora.be> wrote:
>
>
> An int cast in C will always round down, no matter what system (even
> if it is slow because the processor doesn't have a single native
> instruction
> for it, like the pentium). (int)(x + 0.5f) is safe as a replacement for
> round().
>
> Johnny Matthews wrote:
> > I think round() might not be in the standard lib on MSVC. I changed it
> just
> > it an int cast and it resolved the linking problem. But I know different
> > systems can handle an int cast in different ways, so this may not be the
> > best solution.
> >
> > On 7/31/06, Matt Ebb <matt at mke3.net> wrote:
> >>
> >> broken (Matt Ebb) 2006/08/01 03:12:01 CEST
> >>
> >>   Modified files:
> >>     blender/source/blender/blenkernel BKE_node.h
> >>     blender/source/blender/blenkernel/intern node_shaders.c
> >>     blender/source/blender/src drawnode.c
> >>
> >>   Log:
> >>   Three shading nodes by Nathan 'Cessen' Vegdahl. He doesn't have any
> >> time
> >> at the
> >>   moment, but they can useful so rather than let them go to waste I've
> >> merged and
> >>   committed them.
> >>
> >>   * Camera Info
> >>   Input, just provides a view vector, view z depth, view distance
> >>
> >>   * Scalar Math
> >>   A bunch of various mathematical operations on values
> >>
> >>   * Vector Math
> >>   A bunch of various mathematical operations on vectors
> >>
> >>   Revision  Changes    Path
> >>   1.17      +5 -3      blender/source/blender/blenkernel/BKE_node.h
> >>     <
> >>
> http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/BKE_node.h.diff?r1=1.16&r2=1.17&cvsroot=bf-blender
> >>
> >> >
> >>   1.9       +273
> >> -5    blender/source/blender/blenkernel/intern/node_shaders.c
> >>     <
> >>
> http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/intern/node_shaders.c.diff?r1=1.8&r2=1.9&cvsroot=bf-blender
> >>
> >> >
> >>   1.37      +27 -0     blender/source/blender/src/drawnode.c
> >>     <
> >>
> http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/drawnode.c.diff?r1=1.36&r2=1.37&cvsroot=bf-blender
> >>
> >> >
> >> _______________________________________________
> >> Bf-blender-cvs mailing list
> >> Bf-blender-cvs at projects.blender.org
> >> http://projects.blender.org/mailman/listinfo/bf-blender-cvs
> >>
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > 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/20060801/e6224711/attachment.htm


More information about the Bf-committers mailing list