As of May 31, 2023, we have updated our Code of Conduct.

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
0 votes
1 answer
30 views

Calculate middle between two vectors with Geometry Nodes

I need to calculate the coordinates of the middle between two vectors and I'm sure it's very easy to do, but I don't see how. I draw a line between two objects but I couldn't find the middle. Any ...
Pep Andorra's user avatar
1 vote
0 answers
29 views

Is there a way to make object always face the active camera or just viewport with geometry nodes? [duplicate]

Is there a way to make an object always rotate towards 3D view or active camera using geometry nodes without manually choosing targets, so it would work with multiple cameras in you scene? I saw the ...
PeterK's user avatar
  • 11
0 votes
0 answers
37 views

How do I map a texture along a vector going from multiple objects to the camera? Is it even possible?

I'm trying to make a shader which has a procedural texture mapped along a vector between the camera view and the objects. Imagine the pink arrow as the vector in the picture below. I was able to make ...
Robert Smith's user avatar
2 votes
3 answers
101 views

How do I automatically rotate and move a camera mapped texture?

I have this cylinder, I'd like the texture that has been projected onto it to move and rotate along with the shape. Here's a mockup of what I'm envisioning, made possible by animating the texture ...
Brockoli Bruce's user avatar
0 votes
2 answers
75 views

Upwards pointing Normals in Geometry Nodes in world coordinates (when object ist rotated)

I would like to get the same thing done in Geometry Nodes as was done here in Shading. I want to create points only on the faces pointing upwards. This should also be the case when the object is ...
Andi 's user avatar
  • 681
1 vote
1 answer
51 views

What is the Exponent input of Voronoi’s Minkowski Distance?

Is the parameter “Exponent” of Minkowski Distance the p value of Minkowski Distance formula? Thank you!
Ian Ambrose's user avatar
0 votes
0 answers
79 views

Is there a way to distort UV coordinates along the path of a gradient?

Here is an image representing default UV coordinates of a square image plane. In the UV editor's XY space this is visually represented with colors: X axis = red Y axis = green What I would like to ...
Mentalist's user avatar
  • 18.5k
2 votes
0 answers
35 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 ...
Mentalist's user avatar
  • 18.5k
2 votes
3 answers
203 views

Directional camera based shader

I've been trying to develop a camera based shader where half of the area of an object is in one color and the other half of is in another. It has to function the same way after a deformation, which is ...
Brockoli Bruce's user avatar
0 votes
1 answer
79 views

Geometry nodes, align instances on a face

I tried different ways to place corners instances on a wall model, but I can't figure how to do it so that the alignment would be automatic. Here I post a simplified example of the problem. There is ...
User's user avatar
  • 94
2 votes
1 answer
33 views

snap bone locations using python

I'm trying to snap bone locations which are of a certain proximity to a vertexes of a mesh, to the difference of position based an the corresponding vertex of another mesh with the same topology. ...
dan283's user avatar
  • 239
0 votes
0 answers
15 views

is it posible to work an image with kernels and matrix in blender?

I'm working on some postprocessing add-on, and I was wondering if there is a way to work on an image with kernels and pixel matrix, since a lot of the effects I want to implement depend on them, ...
Gabriel's user avatar
  • 122
3 votes
1 answer
183 views

vertex positional difference alternative using numpy

I have a function looking at a difference in vertex positions, and storing that difference on a third mesh - ...
dan283's user avatar
  • 239
2 votes
0 answers
32 views

Creating a 3D earth (sphere) with separate polygons for each country - can't turn vector of countries into sphere [duplicate]

I am new to blender and am looking for a way to use a vector or a shapefile file with all the countries to create a 3D earth with all the countries separated into separate polygons. I can Import the ...
glash's user avatar
  • 21
0 votes
0 answers
15 views

Blender Vector importing Blank Space

so Im quite new to blender and Im trying to render a logo in 3D. I have the vector of the logo which looks like this, Its a circle with some lettering in the middle. The middle lettering doesnt touch ...
Arteez's user avatar
  • 1
0 votes
0 answers
69 views

Exporting outline of object with it's internal edges to svg

Exporting outline of object with it's internal edges to svg. I have an object that I created in Blender see image below (with internal edges) When I render using SVG I get the image below. I'm ...
Rick T's user avatar
  • 3,789
6 votes
1 answer
275 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
0 votes
0 answers
56 views

How to do border detection in shading?

I want to create a node setup such that I can detect the border of a 2d shape. Below is the image of the 2D floor I have for a room. I want to detect the border of this floor. I've tried to use the ...
Matthew's user avatar
  • 31
0 votes
0 answers
32 views

How can I shrink the size of a mapped texture?

I have an eye texture as shown below I want to be able to change the size of both the black pupil and the entire eye itself. but I don't think I can do it with mapping because I already have that to ...
desperrrr's user avatar
  • 538
3 votes
1 answer
188 views

Geometry Node: Vector Rotate Angle Incorrect?

I have 2 points p1 = (0, -1, 1) and p2 = (0, -1, 0). I am trying to rotate p2 around ...
Loma Harshana's user avatar
0 votes
0 answers
39 views

Calculating join angle of an armature

For a school project I need to calculate joint angle of an armature. I found some code that works with 2 bones, but I need to calculate the angle of every 2 adjacent bones (knees, elbows, back, etc). ...
Sterke Stijn's user avatar
0 votes
0 answers
59 views

Calculating joint angle motion capture

For my school project I need to calculate the angles of joints from the human body, for example knees. I got a somewhat working code but the angles that it calculates aren't quite right. I'm using a ...
Sterke Stijn's user avatar
1 vote
0 answers
70 views

Vector Rotate scattered curves along mesh?

how can I rotate scattered curves(converted to mesh and realized) like upward the mesh they're scattered on? But not just upwards, I'd like to know how to do it in all directions along the surface of ...
s0up's user avatar
  • 171
5 votes
1 answer
471 views

Mathematically, what does Faceforward function mean?

Blender's description of Faceforward function is, quoted from Blender's document: Orients a vector A to point away from a surface B as defined by its normal C. Computes (Dot(B,C)<0)?A:-A I have a ...
Ian Ambrose's user avatar
2 votes
1 answer
127 views

how can i limit the value of a node value?

I want the value of this node's y-location between somewhere around these 2 values (preferably using drivers) what's the best way to do this? I plan on giving this to 3 other nodes as well
desperrrr's user avatar
  • 538
0 votes
0 answers
68 views

Find global rotation values of two points using python

I have a pipe object, which is defined by two points. I need to calculate what is the global rotation of that pipe because I want to rotate another object with the same rotation. Because I'm ...
mcnarik's user avatar
1 vote
1 answer
93 views

How to Get Alternating Colors on Shader Blender

I am trying to get the lights in this image to alternate red - green - red - green, etc. Not sure what math I need to get that to occur in the shader. Currently I just have an object info node running ...
Tasal's user avatar
  • 11
3 votes
2 answers
352 views

Changing Rotation Angle Using Align Euler to Vector Node

I have a vector V = (x, y, z) and I need to rotate an object in the direction of this vector. I can do that by calculating the rotation ...
Loma Harshana's user avatar
1 vote
0 answers
67 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
4 votes
3 answers
406 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 ...
Loma Harshana's user avatar
1 vote
1 answer
121 views

Geometry Node: Aligning Text With Edge (Vector)

I am trying to align text with one edge of a plane using Geometry Nodes. The solution seems to be working but when I rotate the edge the text rotates in a strange way. Rotating the edge around Z doesn'...
Loma Harshana's user avatar
1 vote
1 answer
211 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
1 answer
109 views

How can I align rectangle instances to sphere?

My set up for the geometry nodes I want the rectangles that are instanced on the cube to point towards the UV sphere. How can I change the rotation of the rectangles such that it points towards the ...
Gordon Lou's user avatar
1 vote
0 answers
41 views

Obtaining the coordinates of an objects vertices, without the objects scale and rotations applied

I have constructed a tileset for a project and need to exporting the vertices of each object. When I take the position of all of the vertices of an object it applies the scale and rotation factors I ...
Zack Younger's user avatar
0 votes
0 answers
44 views

Mathematical formula of Vector Refraction? [duplicate]

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
0 answers
101 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
0 answers
25 views

Create a list of Vector with Loop in Animation Node

I want to create a vector list in Animation node with location that I get from the Evaluate Spline with the parameter that vary with frame.Actually I want to append the location of the Spline @ every ...
Kebab Sharif's user avatar
1 vote
1 answer
51 views

Create Vector list in Animation node

I need help to make a Vector List in Animation node. What I tried you can have it in the link https://blend-exchange.com/b/w7OPLjo6 this work if I use Append list (done for 2d vector ) with vector ...
Kebab Sharif's user avatar
1 vote
1 answer
285 views

Rotate Instances on Points displaced in Height by Noise Texture accordingly to what a normal would be

I have a grid of points generated with Geometry Nodes. On these points, I'm instancing an object. The instances are then translated in height according to the color value of a noise texture. It works ...
etlaM's user avatar
  • 33
0 votes
2 answers
305 views

Create Rotation Matrix With Given Vectors

I have a set of 3 vectors defined by vertices: Vector1 - (x0, y0, z0), (x1, y1, z1) Vector2 - (x0, y0, z0), (x2, y2, z2) Vector3 - (x0, y0, z0), (x3, y3, z3) I want to create a rotation matrix from ...
Loma Harshana's user avatar
1 vote
1 answer
128 views

Create a set of points that curve based on face normals

I have 2 given locations to create a path between two points: the start and end points. I want to create a method in python that will give the points/vectors to create a curve between the two and use ...
Blenderguppy's user avatar
2 votes
1 answer
820 views

Blender 3.3 Hair - how to scale hair with Geometry Nodes?

I've already been answered about how to randomly scale hair along emitter mesh's normals. This question is a bit different. Scaling hair along emitter's normals predictably changes splines' vectors: ...
Andrey Sokolov's user avatar
0 votes
0 answers
32 views

For which areas of CAD and 2D/3D modeling and design is Blender a good choice?

Blender is known for being a good product creating things like animations for videos. Is Blender also a good choice for other areas like: 3D models for games 3D models for 3D printing 3D models for ...
user573215's user avatar
-3 votes
1 answer
93 views

Why is object axis broken in Geometry Nodes?

I'm having an issue with Geometry Nodes where the object's Y and Z axes seem to be switched. The object should move along Z axis not Y. Orientation is set to global. How to fix this?
user avatar
0 votes
0 answers
16 views

I have a 3D vector math equation that makes hard white/black shapes. How do I use this to make an opaque volume?

Passing the 3D output to Principled Volume's density input yields 3D, correct results, but I'm looking for an opaque volume, which it does not give. Any tips?
Singe Stheos's user avatar
2 votes
2 answers
209 views

How to Turn a Cube into a Mathematically Precise Sphube to the Limits of Numerical Precision Using Vector Displacement?

A sphere is given by the graph of the equation $\lvert x\rvert^2+\lvert y\rvert^2+\lvert z\rvert^2=1$. If you increase the exponents to something larger than 2, then the graph of the equation becomes ...
BlenderUser9000's user avatar
1 vote
1 answer
191 views

How can I transfer normal of cube edges to curve tilt?

Here is my problem. Ideally I want to procedually make frames like this. I start with a default cube and [mest to curve] it into some curves. After I use a custom profile shape to [curve to mesh] the ...
yuumilino's user avatar
1 vote
0 answers
70 views

Shader Vector "Normal" node how to rotate without input?

How to calculate the distance in value between 2 vectors? I doing world shader, but I tried to do it in the object shader, everything is the same. I want to get a solid color for math nodes, like &...
M_Gordon's user avatar
3 votes
2 answers
1k 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
1 vote
1 answer
184 views

Rotate instanced curve vector to point away from original curve

I am utilising aspects of the following tutorial in a project but am deviating from the tutorial: https://www.youtube.com/watch?v=T__5FyCHL4E&t=1273s&ab_channel=MaxEdge So I am instancing a ...
special_frog's user avatar