2
$\begingroup$

I feel so stupid as I can't figure out how to rotate a texture 90 degrees when using Object as the Texture Coordinate without it starting to stretch on the sides. I'm using Object instead of UV as I want the texture to be same size across multiple different sized objects.

enter image description here

The only way I could achieve it is by rotating the object itself 90 degrees or by rotating the textures in photoshop but both seem really hacky.

Any advice?

$\endgroup$
5
  • 2
    $\begingroup$ Hello :). There shouldn't be any stretching afaik. Perhaps the plank doesn't have its scale properly applied? $\endgroup$ Apr 21, 2021 at 17:36
  • $\begingroup$ Did you try using a vector rotate node before the mapping node and setting the angle to 90?? Also, did you try box projection instead of trying to rotate the coordinates to get rid of the stretching?? $\endgroup$ Apr 21, 2021 at 17:42
  • 1
    $\begingroup$ Scale is applied correctly and texture is using box projection. It works great otherwise but I just cannot seem to rotate it. I tried vector rotate also but I ended up only with the same stretched result. $\endgroup$
    – lauriinc
    Apr 21, 2021 at 18:07
  • $\begingroup$ I found one more hack online: youtube.com/watch?v=kKmMW4ARyzM but I hope I do not need to use this as it seems like a lot of work to redo every object and arrays etc.. $\endgroup$
    – lauriinc
    Apr 21, 2021 at 18:15
  • $\begingroup$ Can you share the blend file?? $\endgroup$ Apr 22, 2021 at 13:14

2 Answers 2

2
$\begingroup$

For those who are also searching for a solution for rotating Object texture coördinates, I found a way by using the normal texture coördinates of the object. By attaching those to vector rotate node you can rotate just 1 single axis. I also added the possibility to rotate just a individual axis or rotate all axis with the same angle. Maybe there is a more effective solution, but I'm still learning, so please let me know.

Here is the inside of the node group: enter image description here

This is with the standard Object texture coördinates:

enter image description here

X axis set to 90 degrees:

enter image description here

every axis set to different angle: enter image description here

I hope you you can appreciate my contribution. Let me know if this a solution to the question.

$\endgroup$
0
$\begingroup$

If you want to rotate around normal, you can do this like so:

To rotate just one axis, just choose a normal - doesn't have to be axis aligned. To make it work for the opposite normal, in case of an axis aligned normal you can use "vector math: absolute".

$\endgroup$

You must log in to answer this question.

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