Geometry Nodes: Utilities Map Range only works in 'Linear' interpolation mode #87117

Closed
opened 2021-04-01 14:01:44 +02:00 by Wannes Malfait · 12 comments
Member

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1050/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.89

Blender Version
Broken: Hasn't worked in any version

Short description of error
Changing the interpolation to a mode other than linear makes the node only output zero.

Exact steps for others to reproduce the error

  • Default blend file
  • Add a geometry node tree to the default cube
  • Add a Geometry -> Transform node between the group input and output.
  • Add a Utilities -> Map Range node and plug the output socket into the Translation input socket of the Transform node.
  • Changing the value socket of the Map Range node changes the position of the cube.
  • Set the interpolation mode to Smoothstep (or another one). Changing the value socket does nothing to the translation of the cube.

image.png

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce GTX 1050/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.89 **Blender Version** Broken: Hasn't worked in any version **Short description of error** Changing the interpolation to a mode other than `linear` makes the node only output zero. **Exact steps for others to reproduce the error** - Default blend file - Add a geometry node tree to the default cube - Add a `Geometry -> Transform` node between the group input and output. - Add a `Utilities -> Map Range` node and plug the output socket into the `Translation` input socket of the `Transform` node. - Changing the value socket of the `Map Range` node changes the position of the cube. - Set the interpolation mode to `Smoothstep` (or another one). Changing the value socket does nothing to the translation of the cube. ![image.png](https://archive.blender.org/developer/F9916859/image.png)
Author
Member

Added subscriber: @wannes.malfait

Added subscriber: @wannes.malfait
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Added subscriber: @victorlouis

Added subscriber: @victorlouis

I'm not sure whether this is a bug. I believe the Utilities Map Range node uses the code from node_shader_map_range.cc. In that file you can find this:

  if (interpolation_type == NODE_MAP_RANGE_LINEAR) {
     ...
  else {
    builder.set_not_implemented();
  }

So I think the other modes were just never implemented for the CPU code path of the shader node.

I'm not sure whether this is a bug. I believe the Utilities Map Range node uses the code from `node_shader_map_range.cc`. In that file you can find this: ``` if (interpolation_type == NODE_MAP_RANGE_LINEAR) { ... else { builder.set_not_implemented(); } ``` So I think the other modes were just never implemented for the CPU code path of the shader node.
Wannes Malfait self-assigned this 2021-04-02 09:13:53 +02:00
Author
Member

Yes, but then the user shouldn't be able to select the other modes. I'll try implementing the other functions, since they are really useful.

Yes, but then the user shouldn't be able to select the other modes. I'll try implementing the other functions, since they are really useful.
Wannes Malfait removed their assignment 2021-04-03 10:42:03 +02:00
Member

Added subscriber: @CharlieJolly

Added subscriber: @CharlieJolly
Charlie Jolly self-assigned this 2021-04-03 17:13:36 +02:00
Member
Patch added here: [D10885: Geometry Nodes: Add missing Map Range modes to shader node](https://archive.blender.org/developer/D10885)

Added subscriber: @dfelinto

Added subscriber: @dfelinto

Confirmed bugs need to be tagged to one of the modules to show in the queries.

Confirmed bugs need to be tagged to one of the modules to show in the queries.

I used the wrong option when setting Nodes & Physics projects. I didn't mean to remove BF Blender and the Geomtry Nodes projects.

I used the wrong option when setting Nodes & Physics projects. I didn't mean to remove BF Blender and the Geomtry Nodes projects.

This issue was referenced by b08394d57a

This issue was referenced by b08394d57a5d32037d5ab99ccb4b7943a1432cee
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#87117
No description provided.