Questions tagged [3d]
Questions and problems dealing with three-dimensional space, including 3D meshes and other data structures, vector math, transformations, etc.
309
questions
0
votes
1
answer
43
views
how can I estimate the depth of an object with a bound box from just a few images where i moved it?(knowing how much i moved)
how can I estimate the depth of an object with a bound box from just a few images where i moved it?(knowing how much i moved)
For testing purposes I have a cube and a camera perpendicular to it and I ...
0
votes
0
answers
40
views
Can STEP files contain polygon data? How do I get a smoother mesh out of a STEP file?
I am trying to work with a .STEP file I have received. Upon opening it in CAD Assistant, I find
its surface as jagged lines, like a low poly model. When I export it as OBJ from there, the edges and ...
0
votes
0
answers
16
views
How to retrieve a mask for a partially filled 3D Truncated SDF based on its ground truth?
I am trying to create a mask which is required for a 3D inpainting task. My data contains 3D truncated SDF grid of size 64*64*64 with a truncated value of ...
0
votes
0
answers
20
views
How can I understand the logic of Fast Point Feature Histograms (FPFH) descriptor?
I have been using FPFH features quite a lot in global registration and key-point extraction a lot, I also looked pcl page that tries to explain what it is, but fails to give detail to reader in my ...
1
vote
0
answers
36
views
How to transform face mesh?
We can use ARcore to create custom textures and 3D models for Augmented Faces, like the augmentation of a Fox ears. But aside from augmenting 3D objects, can we "transform" facemesh, for ...
1
vote
0
answers
45
views
How to find point on mesh at a minimum distance from ray
I'm searching for an efficient data structure and algorithm to compute the minimum distance between a ray and a set of meshes in 3D.
What I expect as a result are the coordinates of the nearest point ...
0
votes
0
answers
27
views
Object appears in unintended parts of the screen when using manual WorldToScreenPoint
Hy guys I'm new to 3d graphics and i lack some Linear algebra knowledge. I tried to recreate Unity's worldToScreenPoint method with kotlin on android. I copied some code from their forum and wrote ...
0
votes
0
answers
39
views
HTML Canvas not drawing
I'm working on a 3D Renderer with the canvas element and JS but currently the cube I made is not rendering. I currently have it set to just render a wireframe of the cube and am hoping to render the ...
0
votes
0
answers
32
views
Rotating a set of cameras to look at a rotated object
I'm trying to use Instant NGP on a synthetic image dataset. I have image sequences of a moving object with the following information:
I have the object's xyz and the camera's xyz positions in a void.
...
0
votes
0
answers
33
views
3D engine projection distortions
I'm trying to write my own 3D engine using Python and Pygame.
I have successfully implemented rotation and projection matrices to display 3D models. However I am so far unable to implement translation ...
0
votes
1
answer
62
views
Patchy patterned artefacting in depth buffer
I am writing a polygon rasterization renderer. Some meshes render flawlessly, but some produce strange artefacts in the depth buffer. These artefacts do not just appear when I save the depth buffer ...
0
votes
0
answers
80
views
How to setup a 3D camera
I'm trying to figure out how to setup a 3D camera in WebGL. This is my first swing at 3D so a lot of the matrix stuff is new to me.
Code
The code can be reviewed in this CodePen: https://codepen.io/...
1
vote
1
answer
106
views
How to get the accurate number of triangles of an wavefront obj model?
I am confused by a 'wavefront obj' file's true triangle number. For example, I downloaded the Rungholt scene from McGuire's Computer Graphics Archive.
...
0
votes
0
answers
60
views
Cropping a .usdz file
I have a program that is creating usdz 3D models from real world objects. I would like to be able to crop those objects in 3D space to remove extraneous nearby objects or walls. Is there a good ...
1
vote
1
answer
64
views
Unknown array of floating point numbers. View matrix?
I want to control the camera in an old game using head tracking (TrackIR, opentrack, etc.), such control was not provided by the game engine. I'm trying to find the camera coordinates and rotation ...
0
votes
1
answer
122
views
Creating a UV Map for a 3D Cone
I have the following problem I am currently facing.
I am creating the vertices for a cone based on the number of segments and the radius of the base and top.
This is done as follows:
...
2
votes
0
answers
33
views
Optimized 3D rendering using dots and/or line segments of different sizes in Scratch
I'm developing a 3D rendering engine in Scratch, which is a block-based visual programming language. It does not have any support for bitmap rendering, but there is a "pen" plugin that lets ...
1
vote
0
answers
45
views
How to display real time 3-D orthogonal vector rotations?
I'm an embedded developer here with very little experience in computer graphics. I'm currently working on a GUI that can display a calculated inertial solution at run time. I have hardware that can ...
0
votes
1
answer
56
views
What technique can I use to swap thousands of models per frame?
I need to render a lot of objects that swap their model from frame to frame.
Currently, I am putting every model into a single vertex buffer and giving every vertex an id. I store the same id in the ...
0
votes
2
answers
138
views
Why are the transformations of an object calculated on CPU?
If I understood correctly this is the process of rendering an object:
Array of 4d vector defining points 3d points(with the fourth component 1) representing object's vertices in object/local space:
<...
0
votes
2
answers
768
views
Conversion from W/cm2 ( or W/m2) to W/sr
I was reading a thread where you have comprehensively answered about radiometric units (Deriving radiance from irradiance and intensity).
My question is whether we can convert from W/cm2 ( or W/m2) to ...
2
votes
2
answers
127
views
Glowing objects in a raytracer? How it works?
My raytracer has a point light source, it works as it should, illuminates the scene, but there is a problem, it is not visible, I would like to add glowing objects to the raytracer, for example a ...
2
votes
1
answer
1k
views
How to convert from world coordinates to camera coordinates
In the world coordinate system, there are objects with rotation values rx1,ry1,rz1 and position values px1,py1,pz1.
Similarly, ...
1
vote
0
answers
32
views
help with libgil tutorial (python binding)
could you please give me some guidance on following this libgil tutorial? https://libigl.github.io/libigl-python-bindings/tut-chapter0/
The problem: When I do the first example (two yellow triangles), ...
2
votes
1
answer
40
views
Approximate compass bearing of a normal
Let's say I have a 3D model that represents a small real-world space; it could be bounded by a 10" by 10" by 10" box. I know the real-world compass bearing for an observer in the center ...
0
votes
0
answers
82
views
Trouble getting a raytracer camera representation for different aspect ratios
I am trying to make my camera representation work for images whose aspect ratio isn't 1 (640x480, 1920x1080...), but I am having some trouble getting it to work.
The camera model is pretty simple, as ...
0
votes
0
answers
57
views
Camera Perspective of 2D X/Y Plane
I'll start with the coordinate system I'm trying to use: If I were standing on the ground, facing north, the x axis is a line moving from the west to the east (positive X is east). Positive y is ...
0
votes
0
answers
64
views
Starting from a basic glTF (such as a static sphere or plane) exported from Blender how can I add an animation manipulating its JSON?
I'm working on a glTF, precisely I'm trying to animate a "static" mesh exported from Blender directly acting on its JSON.
In doing so, I'm following the logic used in this tutorial , where a ...
0
votes
1
answer
76
views
Identifying an openGL 3d model
I currently have an application that uses openGL in order to render a 3d model of a car.
I would like to change the car models but I have no clue what format my application uses.
The current format of ...
-1
votes
1
answer
386
views
Is a line drawn using vectors, triangles or polygons within OpenGL? [closed]
Trying to understand how OpenGL generates what is seen as images & graphics and these questions come up.
Are 3D lines (which should be drawn using vectors) drawn using triangles or polygons? Or ...
0
votes
1
answer
133
views
Point a normal vector towards a point in 3D-Space
Given a normal vector in 3D-Space, how can I rotate the vector, such it points to a point in 3D-Space.
I tried couple of ways doing this, which ended up looking completely wrong.
1
vote
1
answer
39
views
What is the proper term for 3D models which are similar but not necessarily the same size, orientation, face-count/tesselation, etc?
Sup[pose I have a model of a unit cube (12 faces) aligned to the three axes, and another model of a cube divided into thousands of faces and hard-coded in a random orientation. They are both cubes, ...
2
votes
0
answers
132
views
Finding Camera projection matrix from known input and output
Lets say I have a rectangle with known coordinates in 3D scene, and I'm projecting it using pin point camera to the plane (screen).
You can imagine it deforms on the screen per camera transformation ...
2
votes
1
answer
146
views
View rotation matrix
Im unsure about how I could describe what im trying to achieve in few words or a title so ill go on to describe it.
So I have voxel, in 3D space, represented solely by its center.
The voxel though, is ...
0
votes
1
answer
205
views
Convert one triangle to another in matrix4x4?
The context openGL instances learning.
I want to transform a reference triangle to another one. So final goal is to have one triangle and the instance being a transformation of that initial triangle.
...
1
vote
1
answer
270
views
3D head mesh morphing from one mesh into another using coding
I have 2 3D head images and want to morph one into the other (animation) without using blender etc. I want to do it using coding preferably using C++, C# or python(libraries are ok). I have done 2D ...
1
vote
1
answer
71
views
What fields should a camera class have?
For a good and scalable project structure, what fields would you add to a camera class, apart from its position and orientation? Should I add the near and far planes? Or should that be global, what ...
4
votes
1
answer
681
views
How to derive Field of View (FOV) angles from a 2D projection
I'm looking for some guidance.
I'm not sure if this is possible, and I'm not sure where to start.
I need to measure the FOV angles of a first-person, 3D game using only gameplay screenshots.
I'm bound ...
-1
votes
1
answer
84
views
What stops the auto-generated 3D worlds of Google Earth Pro from being MUCH more detailed and accurate?
I'll admit it blew my mind when I first realized that you could actually enter a "first-person mode" in Google Earth Pro, and not just view the 3D maps from a floating camera in the air. But ...
0
votes
1
answer
143
views
How to translate screen coordinates of a 3d point as the viewport size changes assuming camera state remains constant?
Okay, so let's say I have a point in 3d. And I have a camera state. That is, I know the camera position, the camera target and the camera up vector.
I am using the perspective projection to get the ...
2
votes
1
answer
145
views
Has the Stanford Bunny ever been re-imaged?
The photographic version shows much more detailed fur than the popular test image.
2
votes
0
answers
162
views
physics/math of lighting gradient of a 3D object
Consider a monochrome ball. The colours of the pixels is a function of the point height, the light intensity, the light angle, and the surface material (reflection).
What is the simplest formula ...
1
vote
1
answer
37
views
Plane detector: information provided is convex hull and pose (transl + rot). Are the "extents" the scaling?
While calibrating a system that includes the automatic detection of planes from the SLAM output, the information about planes provided is:
1 - (x,y) pairs representing the plane's convex hull
2- the &...
-1
votes
1
answer
161
views
Why we calculate z buffer value from plane equation $AX+BY+CZ+D=0$?
Suppose in perspective projection $(x, y, z)$ coordinate projects to point $(x_p, y_p, z_{vp})$ in projection plane $AX+BY+CZ+D=0$ where projection plane kept at $z_{vp}$ position. And the plane $AX+...
0
votes
1
answer
86
views
Why does today's "Metaverse" look equally or even worse than the 1990s 3D chat worlds? [closed]
In late 1990s and early 2000, I tried out "Active Worlds" and more. They let me register an account and then walk around in a vast 3D world and chat with people/avatars. It was surreal and ...
4
votes
0
answers
222
views
Historically Significant 3D Bicubic Patch Data?
The little milk pitcher / jug in Martin Newell's 1975 PhD thesis “The Utilization of Procedure Models in Digital Image Synthesis”, does anybody have the bicubic patch data for it? The teapot's data (...
0
votes
0
answers
71
views
Using Perspective Rendering To Render A 3D Point
I am wondering how I can use perspective rendering to render a point onto a screen. An image showing perspective rendering:
Say I have a 3d point (with x, y, and z coordinates), a point for the ...
4
votes
1
answer
526
views
Which provides better intuition: THREE.Geometry or THREE.BufferGeometry?
THREE.js recently dropped support for THREE.Geometry in favor of exclusively THREE.BufferGeometry. I'm trying to decide which paradigm to teach in my computer graphics course to best provide students ...
2
votes
1
answer
337
views
3D homogenous coordinates versus 4D homogenous coordinates
We know that any 2D point $(x, y) $which represents as 3D homogeneous coordinates is of the form $(x, y, 1)$ which is the points of projective plane $P^2.$
If I use the same concepts for 3D points $(...
3
votes
2
answers
244
views
$(x, y, 1)$ is 2D homogenous coordinates or 3D homogenous coordinates?
We know that $(x, y, 1)$ are the homogenous coordinates of a 2D point $(x, y)$. $(x, y, 1)$ has 2 degrees of freedom. That's why we should call it 2D homogenous coordinates. But many websites say it's ...