[Bf-committers] Nodes

Branan Riley branan at gmail.com
Tue Jul 18 22:14:07 CEST 2006


HAHA! found it! set_node_shader_lamp_loop is called in
source/blender/render/intern/source/convertblender.c, setting
node_shader_lamp_loop to shade_material_loop. Now I'm getting somewhere. I
may just have this figured out by tonight, if I'm lucky...

On 7/18/06, Branan Riley <branan at gmail.com> wrote:
>
> I've read through those, and have added some simple nodes for practice.
> The issue I have is trying to sort out how the Material system works, more
> than the Node system. I'm more or less trying to replace what's currently
> being done by sticking a whole old-style material in a node...
>
> For now, just finding out where node_shader_lamp_loop is would be a
> wonderful thing. That should give me some more insight on how the materials
> are tied to the nodes, and may just be the key to sorting this whole blasted
> thing out...
>
>
> On 7/18/06, Ramon Carlos Ruiz <ramoncarlosruiz at gmail.com> wrote:
> >
> > I'm a begginer on node stuff but this links could help
> >
> > http://mediawiki.blender.org/index.php/Hackers_Guide/Node_types
> > http://mediawiki.blender.org/index.php/BlenderDev/AddingANode
> >
> > and check source/blender/blenkernel/intern/node_shaders.c for the
> > material node as reference
> >
> > Un Saludo
> > RCRuiz
> >
> > On 7/18/06, Branan Riley <branan at gmail.com> wrote:
> > > I've been trying to figure out how to split the current Material input
> > node.
> > > Create a "Diffuse" node, "Specular" node, etc. The Material node can
> > still
> > > be there, of course. I'd also like to be able to add a "lights" node,
> > which
> > > gives the vectors to the lights for each pixel as well. Coupled with
> > some
> > > easy-to-write vector math nodes, this gives a very powerful low-level
> > shader
> > > design system, but also allows for less advanced users to create
> > simpler
> > > systems.
> > >
> > >  My problem is the three main nodes - diffuse, specular, and lights.
> > I've
> > > been digging through the source, but I can't find any sort of
> > easy-to-use
> > > hook already in place. I tried looking at the Material Node code, but
> > that
> > > pretty much is a front-end for the Material code itself, which is not
> > very
> > > fun to look through at all. Any advice on where to get started on any
> > of
> > > those nodes would be greatly appreciated.
> > >
> > >  Branan
> > >
> > > _______________________________________________
> > > 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
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.blender.org/pipermail/bf-committers/attachments/20060718/faf76d4c/attachment.htm


More information about the Bf-committers mailing list