Skip to main content

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
0 votes
2 answers
4k 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 ...
0 votes
1 answer
258 views

Understanding spherical harmonics code

I am trying to understand the function computeColorFromSH, which is a part of the differentiable gaussian rasterizer used by the paper 3D Gaussian Splatting for Real-Time Radiance Field Rendering. I ...
0 votes
1 answer
62 views

Generate camera trajectory with cameras' lookat following shape

I am trying with no avail to create a camera path that follows a lemniscate shape as shown in the figure. I do it in 3D but just set the vertical dimension (y) to a fixed number so really is 2D. the ...
0 votes
1 answer
26 views

too much stutters on HFW

i am playing horizon forbidden west on m.2 ssd - 9400f cpu - rx 580 4GB - 16GB RAM 2600 the problem i have is i have playable fps (40 - 45) but too much stutter i shared some log from amd adrenaline ...
2 votes
1 answer
354 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 ...
1 vote
0 answers
32 views

Difference between inverse rendering and inverse graphics

I'm trying to learn computer graphics on my own and wanted to clarify - What is the difference between inverse graphics and inverse rendering? Would it be correct to say that inverse rendering is a ...
2 votes
1 answer
223 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
2 answers
2k 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 ...
0 votes
1 answer
154 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
2 answers
330 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 ...
0 votes
0 answers
15 views

Querying a point to find the tetrahedron it lies inside in 3D

I have a set of non-intersecting packed tetrahedrons in 3D space. What is the most optimized way to find the tetrahedron inside which a query point lies? Edit: I tried some data structures and ...
0 votes
1 answer
83 views

How apply 3d transformations on 3d Mesh vertcies

I have This 3D mesh class , I use helixToolKit SharpDX to display the mesh and transformations , but i want to apply these transformations to the vertcies dirctly so the mesh can be exported with ...
0 votes
1 answer
35 views

Measuring sphere angles to triangle

I'm looking at using multiple importance sampling for path tracing, and doing some lighting calculations relating to spherical lights. I'm trying to decide, given a triangle and a point on that ...
0 votes
1 answer
274 views

Convert point clouds into voxels

I have points that are obtained by sampling a mesh(which is not watertight). Now, I would like to convert that mesh into voxel? Does anyone have any suggestions for solving this problem?
0 votes
1 answer
192 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 ...
1 vote
0 answers
45 views

Automating equirectangular horizon detection in 360 images

I would like to programatically identify pitch and roll numbers that will level the horizon on each frame in a series of equirectangular 360 panorama images. Here's why. I recently ended up with a ...
1 vote
0 answers
48 views

How to create a more photorealistic ocean?

Photorealism has many elements. Take, for instance, the figure 1 below, a shot from Dune Part One movie. Figure 1 The process of production of a image such as this one, is laborious and involve more ...
0 votes
1 answer
253 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: ...
0 votes
1 answer
197 views

Preferred GPU API to use for Steam Deck, Windows, Linux and MacOS support

Good people of the graphics SO community, I am new to Graphics programming or GPU programming in general but I have been a game dev enthusiast for over 4-5 years. I started learning about Graphics ...
0 votes
1 answer
71 views

Curvilinear triangle grid

I'm trying to figure out how the Adobe Illustrator's Inflate effect works. Basically, it converts a vector graphics object to a 3D mesh and displaces its vertices proportionally to how far they are ...
0 votes
0 answers
21 views

How to extract points corresponding to faces from cube map projection (CMP) of panorama from point cloud data

I am working with the standford2d3d dataset http://buildingparser.stanford.edu/dataset.html which contains panoramas of various scenes and a .mat file of the point cloud information of all the scenes. ...
0 votes
0 answers
50 views

Problems with distributed ray tracing and particle system

based on the ray tracing stunning effect, I'm considering a resilient distributed ray tracing implementation, I've just finished a basic computer graphics course, and I'm currently working on directX ...
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 ...
0 votes
1 answer
130 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
141 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
22 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 ...
2 votes
1 answer
2k 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 ...
1 vote
0 answers
55 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
84 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
1 answer
120 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 ...
0 votes
1 answer
73 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
96 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
253 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. ...
3 votes
3 answers
3k views

3ds max: Z-fighting when working with Large Objects

I had a z-fighting/z-clipping issue with a scene containing some very large objects yesterday in 3ds max. It can be seen in the image below: For some reason downscaling the scene significantly (a ...
4 votes
1 answer
1k 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 ...
10 votes
2 answers
196 views

Is depth of field incongruous in a 3D still image?

If rendering an image in 2D, adding depth of field effects (blurring objects further from the focal distance) adds realism and draws the eye to the object of the image. With a 3D (i.e. stereo) image, ...
1 vote
1 answer
67 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 ...
2 votes
0 answers
40 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
47 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
57 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
301 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: <...
2 votes
2 answers
146 views

Export Model Textures Per Face

(Note that as far as attempts go, I can't find anything that helps me) I have a 3D polygon, and for simplicity's sake it's going to be the one below: It is textured using the UV map below: Side ...
2 votes
2 answers
243 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
2k 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
37 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
96 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
72 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
73 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
84 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
2 3 4 5
7