[Bf-committers] Material system - function to get the value of a
material?
Ton Roosendaal
ton at blender.org
Sun Aug 13 15:09:59 CEST 2006
Hi,
After discussion topic on IRC, this conclusion came out of it:
It is safer and more future proof if Modifiers don't link to a
Material. Materials are a candidate to further evolve a lot (node
shading, support for other renders). Have this integrated directly in
modifiers is making things to complex, especially because no shading is
needed for modifiers, only texture. And not to mention the Material
then still can be used for rendering, giving potential conflicts when
same Material is used in a Modifier.
Better is to only use a Texture in a Modifier, and use similar code as
used for the Texture node in Compositor now. Mappings for this can be
provided locally in the modifier then.
-Ton-
On 9 Aug, 2006, at 12:57, Ben Batt wrote:
> Hi,
> The Displace modifier I'm adding as part of Google SoC takes a
> material as the displacement input. Is there a function which I can
> call to get the value of a material at a given coordinate? I've had a
> look through the code, but what I've found so far is fairly heavily
> tied to the render system.
>
> Currently I'm using externtex() and looping through the material's
> textures manually, which is not ideal.
>
> Thanks,
> Ben (artificer)
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
>
>
>
------------------------------------------------------------------------
--
Ton Roosendaal Blender Foundation ton at blender.org
http://www.blender.org
More information about the Bf-committers
mailing list