Cycles Geometry outputs support for Blender Internal and GLSL render
Needs ReviewPublic

Authored by Alexander Romanov (a.romanov) on Dec 1 2014, 3:27 PM.

Details

Summary

This is actually a proposal to implement Cycles Geometry node in the BI.
And we have also added GLSL drawing for "true normal" and "tangent" outputs of the geometry node.

Cycles:


Blender Internal:

Geometry node:

Best regards,

Valentin
Blend4Web Team.

Diff Detail

Added minor fixes.

Updated for the actual master.
Expanded benefits of the patch by adding GLSL render support (for both BI and Cycles).
Warmest wishes for a happy holiday season!

Dontsov Valentin (valentin_b4w) retitled this revision from Cycles Geometry node support for Blender Internal to Cycles Geometry node support for Blender Internal and GLSL render.Dec 28 2014, 3:04 PM
Dontsov Valentin (valentin_b4w) updated this object.

Added minor fixes.
Updated for the actual master.

Updated for the actual master.

Added some functionality for particular cases (like applying modifiers).

Sergey Sharybin (sergey) requested changes to this revision.Feb 3 2015, 3:11 PM

I don't totally agree adding CD layer for this things is the best approach to the problem here. The issue is it'll slow down all the models in your scene and bump memory usage by all the meshes, even if they don't need this data.

IMO, better approach would be to keep it render-time job to calculate those things. And for viewport it could be done as a part of shader pipeline.

Also don't think it worth adding separate node which implements existing one for another render engine.

source/blender/blenkernel/BKE_node.h
758

Why it's a new node?

source/blender/blenkernel/intern/DerivedMesh.c
1048

Sounds like you're always adding those normals layers. It's not the best thing todo i'm afraid because it'll slow down all the meshes in the scene.

This revision now requires changes to proceed.Feb 3 2015, 3:11 PM

Deleted new node and parametric layer. Now, it doesn't allocate additional memory for true_normal layer.

Alexander Romanov (a.romanov) retitled this revision from Cycles Geometry node support for Blender Internal and GLSL render to Cycles Geometry outputs support for Blender Internal and GLSL render.Feb 17 2015, 8:58 AM

Updated for the actual master.
Fixed calculations for the tangent output.
It strongly needs a review, because I think it will need some changes.

Updated for the actual master.

Updated for the actual master.

Updated according to last changes.

Updated for the actual master.

update for the actual master