Skip to content
Snippets Groups Projects
  • Alexander Romanov's avatar
    0da13ad1
    World space switch for BI nodes. · 0da13ad1
    Alexander Romanov authored
    At the moment light shading in Blender is produced in viewspace. Apparently, that's why
    shader nodes work with normals in camera space. But it is not convenient for artists.
    The more convenient approach is implemented in Cycles where normals are represented in world space.
    Blend4Web Team designed the engine keeping in mind shader parameters readability,
    so normals are interpreted in world space as well. And now our users have to use some tweaks, like
    empty node group with the name "Replace", which is replacing one input by another on the engine side
    (replacing working configuration in Blender Viewport by the configuration that has the same behavior in the engine).
    
    This patch adds the ability to switch to world space for normals and lamp vector in BI and Viewport.
    This patch is very important to us and we crave to see this patch in Blender 2.7 because
    it will significantly simplify Blend4Web material creation workflow.
    
    {F315547}
    
    {F315548}
    
    Reviewers: campbellbarton, brecht
    
    Reviewed By: brecht
    
    Subscribers: homyachetser, Evgeny_Rodygin, AlexKowel, yurikovelenov
    
    Differential Revision: https://developer.blender.org/D2046
    0da13ad1
    History
    World space switch for BI nodes.
    Alexander Romanov authored
    At the moment light shading in Blender is produced in viewspace. Apparently, that's why
    shader nodes work with normals in camera space. But it is not convenient for artists.
    The more convenient approach is implemented in Cycles where normals are represented in world space.
    Blend4Web Team designed the engine keeping in mind shader parameters readability,
    so normals are interpreted in world space as well. And now our users have to use some tweaks, like
    empty node group with the name "Replace", which is replacing one input by another on the engine side
    (replacing working configuration in Blender Viewport by the configuration that has the same behavior in the engine).
    
    This patch adds the ability to switch to world space for normals and lamp vector in BI and Viewport.
    This patch is very important to us and we crave to see this patch in Blender 2.7 because
    it will significantly simplify Blend4Web material creation workflow.
    
    {F315547}
    
    {F315548}
    
    Reviewers: campbellbarton, brecht
    
    Reviewed By: brecht
    
    Subscribers: homyachetser, Evgeny_Rodygin, AlexKowel, yurikovelenov
    
    Differential Revision: https://developer.blender.org/D2046