Questions tagged [3d]

Questions and problems dealing with three-dimensional space, including 3D meshes and other data structures, vector math, transformations, etc.

Filter by
Sorted by
Tagged with
1 vote
0 answers
32 views

Principal component analysis on 3d points and other ways of capturing variance

So, I would like to do capture on 3d pointclouds of 3d models the planes/vectors where for each object we have the highest variance (i.e. for object represented by 2000 3d points I would like to get ...
GreatDuke's user avatar
  • 111
1 vote
0 answers
53 views

What modern C++ Unit Testing Framework do you use for highly parallel image, 3D and higher dimensional matrix processing workloads? [closed]

Most of the existing open-source libraries such as OpenCV, Tensorflow, and Pytorch use Google Test. I would like to know about strong alternative testing frameworks that thrive under a similar ...
mohankumarSriram's user avatar
0 votes
0 answers
63 views

How to transform x-y-z red-green-blue arrows and draw them on 2D screen?

I'm making a raytracer and want to print debug arrows Blender example: Old version of 3d max: How do I do the same having camera forward, up and right vector? I think I need some kind of matrix ...
IC_'s user avatar
  • 123
2 votes
0 answers
86 views

Implementing monte carlo path traced refractions problem

I am writing a forward monte carlo path tracer with the added feature of specular refractions for transparent materials, I have managed to come this far but something is not quite right and I am ...
Marcus's user avatar
  • 21
0 votes
0 answers
89 views

Consistent Video Depth Estimation from Monocular Lens to approximate LiDAR?

If the iPhone had LiDAR sensors, it would be possible to generate a 3D point cloud that you could theoretically use to furnish a 3D AR reconstruction of your surroundings. E.g. you could create an AR ...
Sergio Charles's user avatar
0 votes
1 answer
52 views

Is it viable to create computer graphics via terrain scanning?

Couldn't find any resources on this, so I'll ask here. For example, I want to create a game model of a mountain peak. I took lots and lots of drone footage, almost from every side, photography ...
Timotej Leginus's user avatar
-1 votes
1 answer
148 views

When do people need to work directly with a graphical API (eg: Direct3D) instead of using already made software?

I had this doubt in my head for several months and have been unable to find an answer anywhere on internet. I know what OpenGL, DirectX, Vulkan, Metal, etc... are, I already know what they are used ...
lorenzo's user avatar
  • 101
0 votes
1 answer
1k views

Rotation of meshes in PyTorch

I am doing some project on object reconstruction and I need to rotate an object in PyTorch during the training to make sure I am augmenting the data properly. My data consists of points and it's ...
GreatDuke's user avatar
  • 111
0 votes
2 answers
289 views

What tris and quads need for?

I know that 3D artists make a 3D model with quads. And they advise to remesh with quads only (if it's possible). So I have some questions: Why do we use quads in CG (for games, cartoons, film, etc) ...
Jo K's user avatar
  • 101
2 votes
1 answer
745 views

What is the reason that a boolean operation between two almost identical 3D triangular meshes fails?

I have been trying to detect defects on "before-and-after" meshes, by finding the boolean difference between them, to no avail. I tried these two Python libraries(algorithms run in C++) but their ...
Thanos Sakelliou's user avatar
3 votes
1 answer
382 views

glBindImageTexture returning INVALID_VALUE

I am currently having an issue with OpenGL as I am trying to load some vector information into a 3D texture. Currently, I am developing in OpenGL 4.6 which should support Image bindings. this my ...
Sachin Chopra's user avatar
0 votes
0 answers
60 views

Mathematics in Computer Graphics

Can you please recommend some topic for research work related to mathematics in CG? (Maybe something like "Affine transformations in CG")
FlyMeToTheMoon's user avatar
0 votes
1 answer
119 views

Keep constant number of visible circles in 3D animation

I have created a 3D animation with a perspective projection of white circles moving randomly in a fake 3D space projected on a 2D computer screen (GIF 1). Since I need to keep the same number of ...
Kathia's user avatar
  • 113
2 votes
3 answers
133 views

Looking for a compact file format for outputting 3D geometry with color support

I am looking for a file format to output some 3D geometry. In my case, it only needs to handle very simple shapes - uniformly spaced and sized cubes at points in space. So far I've ended up just ...
Tyler Shellberg's user avatar
1 vote
1 answer
188 views

constant pixel width for any scale

I have a standard 3d camera/projection/model setup that renders rectangles with a WebGL shader. Users can zoom out and fly anywhere. I want to make sure that regardless of the scale, width of the ...
Anvaka's user avatar
  • 213
0 votes
1 answer
80 views

Graphics engines during the sixth console generation

From my understanding game developers used mostly proprietary, in-house graphics engines during the sixth console generation (Xbox, PS2, GC, DC) on a game to game basis. Why didn't standard engines ...
rEsTrisA's user avatar
0 votes
0 answers
64 views

What is it that really prevents photo-realistic, real-time, digital 3D simulations?

Ever since I was a small child, seeing the amazing 3D visuals that developed in the 1980s and 1990s, I was certain that photo-realism was "just around the corner". In the year 2020, I certainly ...
Riston's user avatar
  • 1
1 vote
2 answers
270 views

Defining "inside" and "outside" of a 3D space

I am not sure if this is the correct SE to ask this question. However, lets say I have been given 3D models of several enclosed spaces. I want to populate spaces with, lets say, planes flying through ...
Avatrin's user avatar
  • 113
0 votes
0 answers
19 views

Turning layered curves to polygon mesh?

I am confronted with the problem to render 3D representations for objects marked on microscope slices. So I have a set of aligned polygons in parallel planes from tracing the outline of the object in ...
mcandril's user avatar
  • 141
2 votes
1 answer
117 views

Y axis inversion in 3D rasterization

What is the correct way to invert the y axis during the 3D projection? I see a lot a people doing: ...
Jojolatino's user avatar
0 votes
0 answers
250 views

After making any 3D model using Opengl how to export it's data in .dae file?

I'm trying to make simple 3d modeling program in c++ with Opengl. So I don't know how to transfer/convert/export or save data of 3D model in .dae file. NOTE:- 3d model is made using Opengl ...
Vinayak Thube's user avatar
1 vote
1 answer
954 views

Intrinsic Matrix vs Perspective projection matrix

I was going through the camera matrix explained in the wikipedia article and understand how the matrix K \begin{bmatrix}f_x&s&x_0\\0&f_y&y_0\\0&0&1\end{bmatrix} is built. The ...
midi's user avatar
  • 111
0 votes
0 answers
104 views

Estimate 3D cube pose after camera rotation

I have some photos of 3D cube. I also know the 3D pose of the cube in each photo (yaw, pitch, roll). I want to estimate the new pose (yaw, pitch, roll) of the cube after performing 2D rotation to the ...
nrofis's user avatar
  • 177
0 votes
1 answer
737 views

Understanding the near clipping plane

I don't understand something about the near clipping plane. It's there to avoid the division by $0$ but when we compute the pixel coordinates, we just need to multiply by the clipping plane to clip ...
Jojolatino's user avatar
1 vote
0 answers
284 views

BSP tree rendering

As a little project, I'd like to implement a BSP merging algorithm for Boolean operations on solids. But to even tell whether it works, I need some way to render the BSP tree. In other words, I have a ...
John P's user avatar
  • 111
2 votes
2 answers
1k views

What are "Triangles" in 3d modeling?

In 3d modeling, there is some "triangle count" which determines complexity. I am not sure but I think cubes have 12 triangles or somethong. But I see NONE. They have squares, no triangles! Can someone ...
user avatar
3 votes
1 answer
299 views

How can I raycast with chunks?

I am attempting to implement chunks/octrees to speed up my render times. However, sometimes the walls show horizontal or vertical lines (rays hitting the inside of voxels?) or some blocks disappear ...
Russell356's user avatar
0 votes
1 answer
414 views

Why is the z direction away from the screen/viewer?

I wonder what is the reason that when z increase, the objects appear far away and when z is negative, the object is behind the camera?
Jojolatino's user avatar
5 votes
3 answers
402 views

Visualize the interpolated unit quaternion on the surface of the unit sphere

My major is mechanical, please forgive me for asking questions that may seem trivial to you. First, I'm reading the following paper: Dam, Erik B., Martin Koch, and Martin Lillholm. Quaternions, ...
Ali's user avatar
  • 51
0 votes
1 answer
186 views

Compute Speed of Spheres in 3D animation

I have created two animations: One where a "camera" moves towards the spheres creating an optic flow (1st GIF).The code can be found here. One where spheres move randomly in a 3D coordinates space (...
Kathia's user avatar
  • 113
2 votes
1 answer
367 views

Rendering equation for spherical lights

I am currently implementing spherical lights in my DirectX game engine. I decided to build the shading formula from the classical rendering equation. Here is what I get: The simplifications show that ...
B Lee's user avatar
  • 23
0 votes
0 answers
68 views

Apply a pose to a 3D model/mesh

Assuming that I have pose information for a human, is there any ways/tools to apply that pose to a 3D model? Basically, given continous pose information say from a dancing person, I like to animate a ...
Tina J's user avatar
  • 229
1 vote
1 answer
63 views

Calculating normals for vertices which aren't a vertex of all neighbouring triangles

In my procedurally generated mesh in Unity, not all vertices are vertexes of all neighbouring triangles - essentially, it's a grid with cells of varying sizes. This is messing up the calculation of ...
Jonan's user avatar
  • 113
0 votes
1 answer
154 views

Is it possible to set visible and color for all 12 edges(spines) of the figure (cube) in matplotlib?

In 2d, matplotlib plots all 4 edges(spines) of a figure. In 3d, matplotlib plots 9 out of 12 edges of a cube. Is it possible to set visible and color for all 12 edges(spines) of a cube in 3d? I ...
JJJohn's user avatar
  • 127
0 votes
1 answer
47 views

Why does my code generate a figure whose kurtosis looks a little higher than the one I am trying to reproduce?

this figure (fig_1) is an univariate normal distribution in 3D, the corresponding equation is in the top left hand corner it seems that x varies from -5 to 5; sigma varies from 0 to 4. This Python ...
JJJohn's user avatar
  • 127
1 vote
1 answer
54 views

Why does my code to plot a cone actually generate a roof?

per this post, this formula $Z = 1 - \sqrt{X^{2} + Y^{2}}$ generates a cone where the point is at (0, 0, 1) and it spreads out below that. It meets the x-y plane at the unit circle I am trying to ...
JJJohn's user avatar
  • 127
1 vote
1 answer
87 views

Could some give an explanation or hint about this kind of equation? $\left(- \sqrt{X^{2} + Y^{2}} + 1\right) \cos{\left (2 \pi X + \phi \right )}$

This is a screen shot from an animation generated by a matplotlib example the key part in the code is ...
JJJohn's user avatar
  • 127
4 votes
2 answers
283 views

Creating a Smooth 3D Mesh from a 2D Outline

I am trying to find (or maybe create) an algorithm for creating a smooth, rounded 3D mesh given a 2D outline. I'm trying to recreate a system from a Gamecube game called Amazing Island, and you can ...
hamulstdubbins's user avatar
6 votes
1 answer
5k views

What's the difference between Clipping and Culling?

In a tutorial about OpenGL both words are mentioned, unfortunately without a good explanation. To find out, I have read this article three times, but I fear I'm a too common man... my understanding is ...
mic's user avatar
  • 297
2 votes
1 answer
643 views

Calculating the angle between two polygons

For my application, I want to render models as polygonal surfaces in 3D space and have edges that are bent "outwards" to have a solid line and those who are bent "inwards" to have a dotted line. So if ...
Anima's user avatar
  • 167
0 votes
1 answer
234 views

What is performance better - add four materials to mesh or duplicate every vertex and use packed texture?

I am making ski jumping game (in Unity) with procedurally generated hill mesh. I want to add lines on hill like this (mesh is created by script, but I've manually assigned materials in Blender) ...
Jonek2208's user avatar
1 vote
0 answers
43 views

How can I detect if an edge has flipped during the UV unfold process?

I'm writing my own UV Unfold operation (similar to Maya's Optimize UV tool or 3DS Max's Relax Tool). My code works great 90% of the time but in some instances, I'm getting faces and edges that flip ...
brucemak's user avatar
1 vote
0 answers
497 views

Help with understanding the look-at function (the view matrix)

I've been reading this article about the look-at function. I don't understand the part when they're trying to inverse the matrix N. They say that R is orthogonal because all its row and column ...
tralf_strues's user avatar
-1 votes
2 answers
757 views

How can i wrap the earth image around a 3D Sphere using OpenGL, GLFW, GLAD, GLM?

Please help me out with this thing and currently i am a little more than a beginner so please tell me in that context. i don't need any obsolete methods for creating this like using GLUT or GLEW.can ...
b_cass_'s user avatar
  • 25
0 votes
1 answer
3k views

What are the i,j,k components of a 3d mesh on plot.ly (online)?

A 3d Mesh on plot.ly online graph maker (https://plot.ly/create/#/) takes 3 mandatory variables (X, Y, Z) and 3 optional variables (I, J, K). I understand that if I want to draw a cube that I then ...
thz's user avatar
  • 103
3 votes
2 answers
252 views

Why don't I see tile-based 3D graphics?

As we know, tiles can make it quicker to update large portions of the display at once, as compared with a bitmap. To put, say a letter, on the screen, the Commodore 64 typically does two writes (the ...
Omar and Lorraine's user avatar
4 votes
3 answers
5k views

Programmatically generating bin files for GLTF models

I have a need to generate a series of GLB files. I have a base template for a GLTF file which I have to derive off of. The models thus generated will only have varying textures on them. The base mesh ...
shashanka n's user avatar
0 votes
0 answers
334 views

Using octree for cheking intersection of ray and meshes

I wrote the code for checking intersection of ray and meshes on scene. It consist of two parts - broad phase and narrow phase. In broad phase I build an oriented bounding box around each mesh and ...
NikBond's user avatar
  • 101
3 votes
1 answer
2k views

Vulkan: efficient way to update VBO mesh vertices?

I would like to change/add/remove some mesh vertices in existing VBO's (while deforming and remeshing 3D objects) . With OpenGL I would have to reload whole vertex VBO's. I suppose with Vulkan there ...
Trantor's user avatar
  • 141
4 votes
2 answers
2k views

Unfold a 3D mesh to a 2D plane

I'm trying to unfold a 3D mesh onto a 2D plane. My general idea to do this, would be to cycle through all the faces of the meshes and perform a hierarchical transformation. So I would start at the ...
Anima's user avatar
  • 167

1 2
3
4 5
7