Page MenuHome

Textures: Example for using field evaluator for texture nodes (WIP).
Needs ReviewPublic

Authored by Jacques Lucke (JacquesLucke) on Jul 14 2022, 10:16 PM.
Tags
None
Tokens
"Like" token, awarded by Draise."Love" token, awarded by Moder."Love" token, awarded by sanek2005."Like" token, awarded by DerivedC."Doubloon" token, awarded by filedescriptor.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

This is based on D15160 with some changes. Not all functionality is implemented yet.
Mainly note that this is just building a field from the node tree and evaluates that whenever the texture is evaluated. For batch evaluation, this approach works perfectly fine currently. For single element evaluation, I have to refactor things a bit.

The file below contains three different use cases:

  • Painting on image directly.
  • Using texture in displacement modifier.
  • Painting texture in 3D view.

Issue is, none of these code paths seem to pass geometry specific information to texture evaluation currently (e.g. vertex indices, or triangle index + barycentric weights). So not sure how to test that yet.

Diff Detail

Repository
rB Blender
Branch
texture-nodes-cpu-prototype (branched from master)
Build Status
Buildable 23002
Build 23002: arc lint + arc unit

Event Timeline

Jacques Lucke (JacquesLucke) requested review of this revision.Jul 14 2022, 10:16 PM
Jacques Lucke (JacquesLucke) created this revision.
Jacques Lucke (JacquesLucke) retitled this revision from Textures: Example for using field evaluator for texture nodes. to Textures: Example for using field evaluator for texture nodes (WIP)..Jul 14 2022, 10:21 PM
Jacques Lucke (JacquesLucke) edited the summary of this revision. (Show Details)