Fix Map Range node Clamp functionality #85368
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#85368
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The clamp functionality of the map range node is currently not behaving as both what the shader node version does and what the tooltip says.
It should clamp the output to the set
To
range. Currently it is clamping to [0,1].is_viewport_map_range-2021-02-04_12.34.32.mp4
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @SimonThommes
Added subscriber: @samuelmiller
I'd like to help with this, but I'm a little confused. Is this for the composite Map Range node? I can't find a Map Range node in the Geometry nodes source code, although it's in the manual.
Added subscriber: @lone_noel
@samuelmiller Some of the nodes are shared between geometry nodes and the shader nodes. Maybe take a look at
node_shader_map_range.cc
.Added subscriber: @woolllff
can you tell where are we supposed to look at.
and where is it not functioning?
Added subscribers: @HooglyBoogly, @JacquesLucke
I added a video showcasing that it's not working correctly to the description.
I'm not a developer myself, so I'm not sure where to look in the code.
@JacquesLucke @HooglyBoogly could one of you guys help out?
The bug is in the
MapRangeFunction
class innode_shader_map_range.cc
.I think I found the offending line of code and have submitted a patch. I did a limited test of the functionality and it worked for me.
This issue was referenced by
bb0b250cbd
Changed status from 'Confirmed' to: 'Resolved'