Page MenuHome

Geometry Nodes: New Is Viewport node.
ClosedPublic

Authored by Jacques Lucke (JacquesLucke) on Feb 4 2021, 11:14 AM.
Subscribers
None
Tokens
"Love" token, awarded by damian."Love" token, awarded by johjakob."Love" token, awarded by kenziemac130.

Details

Summary

This little node just outputs true or false depending on whether geometry nodes is evaluated for the viewport or rendering.

Ref T85277.

Diff Detail

Repository
rB Blender
Branch
is-viewport-node (branched from master)
Build Status
Buildable 12605
Build 12605: arc lint + arc unit

Event Timeline

Jacques Lucke (JacquesLucke) requested review of this revision.Feb 4 2021, 11:14 AM
Jacques Lucke (JacquesLucke) created this revision.
Harbormaster completed remote builds in B12605: Diff 33535.

Node works as expected.

I think the label of the output socket Value is pretty confusing though, that's usually the label we have for generic float inputs.
I wouldn't mind calling it the same as the node itself Is Viewport. Or at least Boolean.

Another thing I noticed while testing:
The Map Range node's Clamp functionality behaves different from the same node we have for shading (and different from its tooltip). The output should be clamped to the To range and not to [0,1].

Additionally to that, I think it would be nice to already put a very simple version of a Switch not on the project backlog, that only supports a boolean
case for now. Could be something for the community. We can still think about a design to support integer cases later on.

I'll create tasks for map range fix and simple switch.

This revision is now accepted and ready to land.Feb 4 2021, 3:05 PM
This revision was automatically updated to reflect the committed changes.