Questions tagged [vector]

In math and physics, a vector is "s a geometric object that has magnitude (or length) and direction." Blender uses 3D vectors in compositing, material and geometry nodes; and elsewhere to represent direction or force. Use this tag for questions about any of the uses of vectors in Blender.

Filter by
Sorted by
Tagged with
24 votes
1 answer
14k views

TypeError: Element-wise multiplication: not supported between 'Matrix' and 'Vector'

Blender 2.8 produces the following error whilst multiplying a combination of matrices and vectors ...
batFINGER's user avatar
  • 83.4k
13 votes
1 answer
9k views

How can I make my procedural brick texture map correctly to both a cube and cylinder?

I've been experimenting with node-based procedural materials in Cycles lately, and after spending a few hours working out a brick material that works pretty well along walls, I noticed that it has a ...
Marty's user avatar
  • 143
10 votes
1 answer
2k views

Project scene to plane in real-time

I understand I could render out the view my camera and then just that as an image texture, however, I want to try and achieve this effect in real-time. The idea is derived from an effect present in ...
masterj2001's user avatar
6 votes
2 answers
528 views

What happens when a vector is fed into a value slot of the add node?

I was wondering what happens when a vector is fed into a Math -> Add node. Notice that I'm asking about the Math -> Add node, not the Vector Math -> Add node. My guess was that the node ...
FDC's user avatar
  • 111
7 votes
2 answers
3k views

How to create Shape Keys in Geometry Nodes, including support for curve handles?

I am trying to replicate the functionality of Shape Keys but in Geometry Nodes. At the core of the setup I am using the technique quellenform introduced in this answer, but I am adding the ability to ...
Mentalist's user avatar
  • 18.8k
1 vote
2 answers
558 views

Make Curve Have A Fill and Border

Setting a fill and border is pretty easy in apps like Illustrator and Gravit Designer but in Blender. I've found it to be more tedious as I can't find anything online to solve this problem. The ...
Michael Schwartz's user avatar
9 votes
1 answer
869 views

Radial vector displacement

I'm struggle with vector displacement shader. I'm trying to do something like reverse cone but I can't figure out how to add radial direction. I would like to use RGB curves like screw (lathe) ...
Destrosvet's user avatar
3 votes
4 answers
1k views

how to create a vector (a arrow) in blender

I'm trying to create a interactive vector, but I'm not getting a way to make the arrow stable under rotations and scaling. Make it stable under translation is easy, but make the 'body' and the 'tip' ...
mack_hyuuga's user avatar
2 votes
1 answer
178 views

Red shader node noodle (line) from node group vector output to image texture vector input

I have an image that I want to pixelate down to a certain resolution. The uv mapping magic for this is done within a node group: Then outside of the node group I want to be able to select the image (...
TT-392's user avatar
  • 97
6 votes
1 answer
333 views

How can I find two vertex indexes per face on a mesh to create a secondary alignment vector

I've had troubles in the past with instance spinning when using "Align Euler to Vector" to align instances to face normals on deforming meshes. I have a setup that eliminates all spinning ...
David M's user avatar
  • 168
6 votes
1 answer
3k views

Camera Data "View Vector" Interpretation

I am trying to develop some materials with interesting optical properties. In doing so, I am investigating the use of the "View Vector", however I do not understand it. Looking at the documentation, ...
d401tq's user avatar
  • 139
5 votes
4 answers
2k views

Materials: How to compare two vectors?

I'm looking for a method that compares two vectors in order to use a mix color/shader. Example : If the camera looks at the object from atop (as the two vectors align) it should select material A. As ...
4E71-NOP's user avatar
5 votes
2 answers
4k views

World coordinates in Geometry Nodes

Is it possible to reference World coordinates in Geometry Nodes without using an external object? For example, can you establish a ray direction for the Raycast node which always points towards global ...
Kuboå's user avatar
  • 8,540
3 votes
1 answer
3k views

Complex SVG file fails to import correctly into Blender

No curves get imported at all into Blender, and I'm totally mystified why. I have a CD of vector pattern library images that I'd like to use within Blender. These appear to be good vector images, i.e. ...
biscuitlad's user avatar
2 votes
1 answer
290 views

Geometry nodes to make branches not appear on the bottom section of tree trunk

I am porting this YouTube tutorial to the Blender 3 nodes https://www.youtube.com/watch?v=WzIdcGdGXLM. I have successfully ported mostly everything over to Blender 3 up until about the 33 minute mark. ...
ChristianOConnor's user avatar
1 vote
1 answer
1k views

How best to replace Attribute Vector math and Attribute mix in Blender 3.0?

I understand that attribute vector and attribute mix are now 'legacy'/'deprecated' in Blender 3. I'm trying to achieve what's shown in the attachment with alternatives, but not really sure where to ...
Mark Rogers's user avatar
8 votes
1 answer
1k views

What's the math behind Vector Rotate node?

I’ve been taught that the Axis input is the value for input vector n^ of the Rodrigues’ rotation formula: v’ = (1-cos(θ))[(v·n^)n^]+cos(θ)v+sin(θ)n^×v But I don’t understand what ‘’Center’’ input do. ...
Ian Ambrose's user avatar
4 votes
1 answer
1k views

Geometry nodes: How to distribute points on valleys only?

I want to add vegetation to my rocky semi-desert scene of Himalayan mountains, using geometry nodes. In that scenery, vegetation only grows in valleys, where water would sometimes flow. Note that by '...
naftali10's user avatar
  • 115
4 votes
1 answer
149 views

Only show whole dots that aren't obstructed by mask

I'm drawing a dot-pattern, based on a vector grid (a) onto a plane. Based on the position of two empties, that can move on the plane, there are masks (b) generated. I then combine both of them (c), ...
Quacksilber's user avatar
3 votes
2 answers
3k views

Unable to rotate instances individually in Geometry nodes

I have instanced 14 triangles in a circle mesh. I am trying to rotate these independently of each other, making them point inwards into the circle, or outwards, pointing away from the middle of the ...
fromart's user avatar
  • 31
3 votes
2 answers
2k views

Geometry Nodes: Points and Vectors [duplicate]

i want to create lines (edges) connecting the vertices of two grids (what i'm really trying to do is have an array of parallel vectors) with geometry nodes. I thought i could take a grid and convert ...
ScientificBlender's user avatar
2 votes
1 answer
705 views

How do I get the normal vector of a selected vertex?(BMESH)

I'm trying to Orient my gizmo according to the normals, but I can't do it exactly. Sometimes perfect, sometimes not. Can you tell me what's wrong? ...
Max Derksen's user avatar
2 votes
1 answer
659 views

How to position the default blender cube given coordinates, direction Z vector and direction Y vector using python?

New to blender and python here, Given the following: Coordinates (X,Y,Z) = (-100,100,1000) and Direction Z vector = (1,0,0) and Direction Y vector = (0,0,-1) where angle between direction vectors is ...
newblender's user avatar
2 votes
2 answers
191 views

How to use the vector of another different object as information for material node?

I'm pretty new to blender so probably i'm going to say wrong terms or function in this question, feel free to ask for a better explanation if necessary. I have created a material tab that makes the ...
Er Coso's user avatar
  • 25
2 votes
1 answer
320 views

How to show out of bounds texture from a modulo operation [duplicate]

Does anyone know how to show the cut parts? I used a modulo operation with random coordinates and rotation for each cell, but when I try to randomly move them I get some parts of the texture getting ...
BEAN's user avatar
  • 53
2 votes
1 answer
416 views

Geometry Node: Find perpendicular vector to the given vector

Is it possible to get a vector that's perpendicular to given vector using geometry nodes? I know in 3D space there won't be just one such vector but any on of the perpendicular vectors will do in my ...
Loma Harshana's user avatar
1 vote
0 answers
69 views

How do you prevent geometry-node instances spinning on deformed geometry (Second Align Euler To Vector?) [duplicate]

I have a sphere (but could be anything) that I am deforming over time and I want to have instances distributed on the surface. I've got it almost working except that I am getting unwanted spinning of ...
David M's user avatar
  • 168
1 vote
2 answers
2k views

Importing a complex SVG to Blender from Illustrator - Problems with Fill

I'm working on a project of polyhedral lanterns designed on topography, and using Blender for my modelling ahead of prototyping. I'm designing artwork in Adobe Illustrator, a program I'm robustly ...
ari's user avatar
  • 11
0 votes
1 answer
51 views

Why does the Window option in Vector make my video upside down [duplicate]

I'm trying to follow the Ian Hubert's tutorial for making Lighstabers in blender. When I imported my video, when I change the vector option to window, the video gets flipped. I tried rotating changing ...
Joshua's user avatar
  • 1
0 votes
1 answer
223 views

Values to straighten wave texture?

I am using the wave texture and am faced with a dilemma: by default, it is rotated in some obscure way. I want the bands of the texture to be aligned with each axis (x, y z) but cannot for the life of ...
Rix Yarbrough's user avatar
0 votes
2 answers
110 views

Linear environment gradient

How possible to make this environment gradient linear (not spherical like) If I set location on X=0 gradient is no spherical, but I need it on bottom.
Igor Yukhimenko's user avatar
0 votes
0 answers
116 views

What's the formula of Vector Refraction which Blender implemented?

The only Vector Refraction formula I could find online is: \begin{equation} t = \mu \textbf{i} + \textbf{n}\sqrt{1- \mu^2[1-(\textbf{ni})^2]} - \mu \textbf{n}(\textbf{ni}) \end{equation} Such that ...
Ian Ambrose's user avatar
0 votes
1 answer
1k views

Projection of point on plane

I have a point in 3d view (found out with region_2d_to_origin_3d of mouse position). I want to find its projection on a plane defined by a normal (x1, y1, z1) in orthographic view. How to do this? ...
greentail's user avatar
0 votes
2 answers
2k views

Exporting UV Layout with only outlines

newbie here. I have a very specific question. I’ve done a ton of research and didn’t find anything useful. So, as the Title suggests, I’m trying to export UV layout without all the edges inside of the ...
Aleks K.'s user avatar
  • 159
0 votes
1 answer
1k views

How to switch beetwen two or more textures with material nodes?

this is a continuation of the previous question, in case you need more context of the problem: How to use the vector of another different object as information for material node? To sum up: With the ...
Er Coso's user avatar
  • 25