2
$\begingroup$

i have a bezier curve. i used geometry nodes to add an object as it's spline. then i created a material which has a wave texture. i was able to use a capture attribute and send that data to the material in order for the wave texture to follow the curve (by watching a default cube tutorial). but what i am trying to do is rotate the texture 90 degrees.

current

red lines indicate rotation

geometry node setup enter image description here

which passes the capture attribute as "coord" enter image description here

and sends it to the material.

shader node setup: enter image description here

$\endgroup$
6
  • $\begingroup$ Switch the Wave texture from X to Y ? Or.. take the captured vector parameter, and switch the X and Y components using Separate XYZ and Combine XYZ Nodes $\endgroup$
    – Robin Betts
    Jun 15, 2022 at 16:34
  • $\begingroup$ neither one seemed to work. i feel like i am supposed to take the wave texture and use that to create a new wave texture that is perpendicular to the first one, and then delete or mask the first one. i dunno. $\endgroup$
    – mark
    Jun 15, 2022 at 17:38
  • 1
    $\begingroup$ @mark what about adding a mapping node with a texture coordinate into the wave texture vector and changing it to 90 degrees? This might not work since I specifically don't know what is your material/geometry nodes etup. $\endgroup$ Jun 15, 2022 at 18:15
  • $\begingroup$ Need to see how you're doing this.. all trees.. $\endgroup$
    – Robin Betts
    Jun 15, 2022 at 18:15
  • $\begingroup$ i edited my post to include my node setups $\endgroup$
    – mark
    Jun 15, 2022 at 18:55

1 Answer 1

0
$\begingroup$

You should capture attribute from another curve:

enter image description here

why? can you elaborate?

capture attribute takes information from one point of the node tree and transfer it to the other. Let's take a look at example:

Here you can see a sphere and cube intersecting each other:

enter image description here

Now let's delete cube from the intersection. To get cube faces, we use capture attribute, and mark all cube faces by true:

enter image description here

If we put capture attribute in sphere branch, we delete sphere faces:

enter image description here

Same for your example. Then you put capture attribute from one line, you will get its own spline factor.

$\endgroup$
2
  • $\begingroup$ why? can you elaborate? $\endgroup$
    – mark
    Jun 16, 2022 at 0:33
  • $\begingroup$ i'm still curious.... $\endgroup$
    – mark
    Jun 19, 2022 at 4:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .