Cycles - Per BSDF Bump Mapping #31716

Closed
opened 2012-06-05 08:58:39 +02:00 by Agustin benavidez · 9 comments

%%%Dear Blender developers, I want to offer you per BSDF bump mapping capability for Cycles, this feature is often very welcome when we create coated materials like car paints/ metal flakes, organic materials, diffuse bump and glossy coated with bump scratches and many other possibilities.

This also sent the ground for normal mapping support.

The patch is quite simple and modifies some small things from the previous behavior:

  • BumpNode got some extra inputs and a normal output. It also has been exposed in the UI for the user (vector sub menu).
  • BumpNode no longer modify directly the ShaderData::N, instead a new internal SetNormalNode has been created for this propose.
  • BSDF sampling functions uses the new ShaderClosure::N to sample.
  • Bump mapping from displacement socket is performed first, then each extra BumpNode added for users will do bump on top of it.
  • Mode details commented in the code.

Should i upload this in codereview tool? Is there anything I can do to make easier the review task for you?

Image:
http://www.pasteall.org/pic/show.php?id=32728

Thanks
Agus,
%%%

%%%Dear Blender developers, I want to offer you per BSDF bump mapping capability for Cycles, this feature is often very welcome when we create coated materials like car paints/ metal flakes, organic materials, diffuse bump and glossy coated with bump scratches and many other possibilities. This also sent the ground for normal mapping support. The patch is quite simple and modifies some small things from the previous behavior: - BumpNode got some extra inputs and a normal output. It also has been exposed in the UI for the user (vector sub menu). - BumpNode no longer modify directly the ShaderData::N, instead a new internal SetNormalNode has been created for this propose. - BSDF sampling functions uses the new ShaderClosure::N to sample. - Bump mapping from displacement socket is performed first, then each extra BumpNode added for users will do bump on top of it. - Mode details commented in the code. Should i upload this in codereview tool? Is there anything I can do to make easier the review task for you? Image: http://www.pasteall.org/pic/show.php?id=32728 Thanks Agus, %%%

Changed status to: 'Open'

Changed status to: 'Open'

%%%Hi,
thanks for the patch. One thing that is obsolete in your patch is the declaration of intensity and bump in DNA / RNA. Sockets don't need to be exposed. %%%

%%%Hi, thanks for the patch. One thing that is obsolete in your patch is the declaration of intensity and bump in DNA / RNA. Sockets don't need to be exposed. %%%

%%%Attached patch PerBSDF_BumpMapping_0.91.diff which removes DNA structs and only keeps RNA declaration in rna_nodetree_types.h%%%

%%%Attached patch PerBSDF_BumpMapping_0.91.diff which removes DNA structs and only keeps RNA declaration in rna_nodetree_types.h%%%

%%%Hi,
Thanks for patch. Do you know when this patch appears in trunk?
Best Regards
%%%

%%%Hi, Thanks for patch. Do you know when this patch appears in trunk? Best Regards %%%

%%%When it is reviewed and approved. %%%

%%%When it is reviewed and approved. %%%

%%%Any chance on getting an updated patch while we wait for this to be approved?%%%

%%%Any chance on getting an updated patch while we wait for this to be approved?%%%

%%%Attached PerBSDF_BumpMapping_0.92.diff which applies fine to svn 50252%%%

%%%Attached PerBSDF_BumpMapping_0.92.diff which applies fine to svn 50252%%%

%%%Patch committed with some minor modifications, thanks!%%%

%%%Patch committed with some minor modifications, thanks!%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' 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
5 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#31716
No description provided.