Questions tagged [4d]

4D involves calculations in four dimensions and typically relates to graphics programming. Use the [4d-database] tag for questions about the 4th Dimension database.

From Wikipedia, as of 5 March 2017‎:

In mathematics, four-dimensional ("4D") is a geometric space with four dimensions. It is typically meant to mean four-dimensional Euclidean space, generalizing the rules of three-dimensional Euclidean space. It has been studied by mathematicians and philosophers or over two centuries, both for its own interest and for the insights it offered mathematicians and related fields.

119 questions
8
votes
1 answer

3-Dimensional Plot in GnuPlot where color is a fourth column in my data file?

I have a datafile that looks like this: 1 2 3 0.5 2 8 9 0.2 3 4 78 0.4 6 5 7 0.01 9 9 9 0.3 10 12 18 0.9 6 8 4 1 I would like to do a graph like…
Naialeoque
  • 83
  • 1
  • 4
5
votes
1 answer

MATLAB : How to build 4d plot per levels

I need to build a graph as shown, only need to be displayed at different levels of other plots. I found this: m = 10; n = 25; d = 4; S = rand([m,n,d]); slice(S, [], [], 1:size(S,3)); Can we instead S transmit another plot for example contour(), to…
Max
  • 51
  • 4
4
votes
1 answer

4D heat map in matplotlib

I want to plot a 4D heatmap in Python through matplotlib, like this 4d map. I have already a set of 3D grid points (x,y,z) and its corresponding function value f. I am thinking of plotting it using plot_surface with x, y, z as the three required…
jjv
  • 117
  • 1
  • 3
  • 14
3
votes
0 answers

How to create a contour plot on the surface of a sphere in Python?

I have plotted a sphere in Python to be used as a graphical representation of some stochastic variables u_1, u_2 and u_3. The plot can be found here. This is achieved using the following Python code: import numpy as np import matplotlib.pyplot as…
3
votes
3 answers

How to rotate in 4 dimensions?

I am trying to implement 4D Meshes for a game. However, I have found a little problem, I have got no clue how to rotate things in 4-dimensional space. I have looked across the internet and have found the following for 2-dimensions: and the…
Rafaeltab
  • 91
  • 10
3
votes
1 answer

Indexing a 4D array with a 2D matrix of indicies

I currently have a 4D matrix of images in the form height x width x RGB x imageNumber in which I would like to index with a 2D array without using a for loop. The 2D array is in the format of height x width with the values being the image number to…
David Cole
  • 43
  • 2
3
votes
1 answer

4D heatmap in Python or MATLAB

I have a 3D dataset which I visualize with a scatter plot. This is how it looks like: I would now like to color the different dots depending on the density of the data. Is there any way I can do this in Python or MATLAB? Another option could be to…
Viviane
  • 113
  • 1
  • 7
3
votes
3 answers

How to use 4d rotors

I'm trying to create a 4D environment, similar to Miegakure's. I'm having trouble understanding how to represent rotations. The creator of Miegakure wrote this small article explaining he made a class for 4d…
Azorlogh
  • 51
  • 1
  • 7
3
votes
1 answer

how should i handle (morphing) 4D objects in opengl?

i want to try writing a playground similar to this 4D toys, so i started learning opengl. from my current understanding, people use VBOs and uniform transformation matrix for mostly-static objects (like cubes, skeletal animations etc., which…
Vritra
  • 33
  • 4
3
votes
0 answers

3D cross section of a 4D mesh

First off, I'd like to note that I've seen the other topic trying to explain this. I've read over the topic and tried to implement the math, but it doesn't seem to work. I'm probably doing something wrong. For reference, I'm using C# in the Unity…
3
votes
4 answers

Fastest data structure in Java (Processing for 4D visualization)

I've got an application that i need to use a visualization framework for. I'm currently leaning towards Processing for use in a Java desktop app. Problem: I've got ~500k+ state vectors i need to visualize. 4D points - XYZ and time (GPS-like) I need…
max
  • 2,146
  • 3
  • 24
  • 32
3
votes
1 answer

4D visualization in Matlab (Surface and Mesh)

I have four variables, x,y,z,t. I would like to show (x,y,z) in form of a surface such that the color of the surface is determined by t. I want to assign "t" to color bar. Now, color bar is corresponding to z, I want to have it corresponding to "t"…
Emily
  • 45
  • 2
  • 8
3
votes
1 answer

How to interpolate and plot a 4-Dimensional hamburger?

I have solved the heat equation in octave via finite difference and produced the following 3-D plot whose point colors correspond to the temperatures in each element of my three dimensional hamburger. My computational resources limit the resolution…
3
votes
1 answer

Improve surface plot visualisation of scatter points

I want to visualize 4 vectors of scattered data with a surface plot. 3 vectors should be the coordinates. In addition the 4th vector should represent a surface color. My first approach was to plot this data (xk,yk,zk,ck) using scatHand =…
Matthias La
  • 153
  • 11
3
votes
1 answer

How do I get a 3D cross section of a 4D mesh?

I have a polychoron represented as a four-dimensional mesh, stored with the face-vertex method. All the faces are triangles. How can I get a three-dimensional cross-section of the figure? The closest thing I've found is this question, but it's one…
wwww
  • 384
  • 1
  • 13
1
2 3 4 5 6 7 8