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.
41
questions
25
votes
2
answers
15k
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
...
13
votes
1
answer
10k
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 ...
7
votes
2
answers
963
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 ...
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 ...
7
votes
2
answers
4k
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 ...
1
vote
2
answers
628
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 ...
9
votes
1
answer
896
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) ...
2
votes
1
answer
241
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 (...
7
votes
2
answers
6k
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 ...
6
votes
1
answer
4k
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, ...
6
votes
1
answer
461
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 ...
5
votes
3
answers
866
views
What is the Center in Vector Rotate Node
As per Blender documentation the center in the Vector Rotate node is the Point to rotate around, which, I assume, means the pivot point for rotation.
However when I ...
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 ...
4
votes
4
answers
2k
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' ...
3
votes
1
answer
4k
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. ...
2
votes
1
answer
414
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. ...
2
votes
2
answers
323
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 ...
1
vote
1
answer
2k
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 ...
0
votes
1
answer
2k
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 ...
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. ...
5
votes
5
answers
1k
views
How do I calculate the normals of a point group?
I hope to come up with an interesting and tricky task this time, and would be happy to receive any expert solutions.
First of all: I'm looking for a solution that uses only simple vector math!
The ...
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 '...
4
votes
1
answer
169
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), ...
3
votes
1
answer
294
views
What does ''Axis'' input of Vector Rotate node do?
What does the Axis input do? I’m aware that if the input is 0-1-0, the rotation will be performed around Y axis, 1-0-0 for X axis and 0-0-1 for Z axis. The math to perform the rotation using those ...
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 ...
3
votes
2
answers
4k
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 ...
2
votes
1
answer
742
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 ...
2
votes
1
answer
795
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?
...
2
votes
1
answer
694
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 ...
2
votes
0
answers
159
views
Can Cycles' Vector Pass + Vector Blur node be used to create "smear" (instead of motion blur)?
Can the Cycles Vector Pass in conjunction with the Vector Blur compositor node be used to create "smear" instead of motion blur?
To be clear, by "smear" I mean this sort of ...
2
votes
1
answer
333
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 ...
1
vote
1
answer
38
views
Why does StoreNamedAttribute's Vector Type for UVMap not work in place of 2DVector type?
I'm trying to make this setup compatible for version 3.4 but I don't understand why simply switching 2DVector to Vector didn't ...
1
vote
0
answers
70
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 ...
1
vote
1
answer
377
views
Replicating Cooktorr specular with Cycles vectors, almost there, but why vector is twisted?
I'm trying to replicate material shading from Blender Internal in Cycles, so long I managed to get Diffuse working correctly with Point Lights, a rather awkward but working sunlight/hemi node setup, ...
1
vote
2
answers
3k
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 ...
0
votes
0
answers
139
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 ...
0
votes
2
answers
118
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.
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 ...
0
votes
1
answer
62
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 ...
0
votes
1
answer
243
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 ...
0
votes
1
answer
2k
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?
...