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
2
votes
1answer
356 views

Light field rendering for 3d software?

Is there any 3d software that supports rendering an artificial scene to a light field image? With that I mean an image capturing light from more than one point in a scene, more lika a spherical ...
2
votes
1answer
66 views

Do normals in obj files have to be changed into eye coordinate before being used?

Obj files give pre-calculated normals which are in model coordinates. So I wonder if they have to be transformed into eye coordinate (where I use them to calculate lighting)? I'm thinking yes because ...
2
votes
1answer
50 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: ...
2
votes
1answer
178 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 ...
2
votes
1answer
47 views

How to display edges in a 3D file on Facebook

I'm trying to show a 3D model on Facebook and display its edges and lines. I found that I could export a 3D model from Sketchup using glTF Export plugin to a glb file that I can drag and drop in a ...
2
votes
1answer
911 views

Building view transform matrices

For a 3D scene in the world coordinates, its View Reference Point $\mathrm{VRP}$ is at $(5,-2,1)$, and a viewer is looking towards point $A=(1,1,1)$. Construct a transform matrix which will map world ...
2
votes
0answers
53 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 ...
2
votes
1answer
103 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 ...
2
votes
0answers
64 views

Intersecting Frusta

I am trying to determine whether two frusta intersect in 3D space and to quantify this intersection as a percentage of one frustum volume (eg. 100% intersection meaning that the two frusta occupy the ...
2
votes
0answers
98 views

Triangle-based and vertex-based skinning models?

I'm reading the Loper et al. 2015 paper on the Skinned Multi-Person Linear Model and I came across this: What we would like is a vertex-based model that has the expressive power of the triangle ...
2
votes
0answers
271 views

Rendering of large STL files

I am in the process of creating some software in Java for generating 3D gear geometry and saving it as an STL file. I am looking at a means of drawing the geometry so that the user can view the ...
2
votes
0answers
160 views

Interpolation of orientations

I have a problem of linear interpolation of CRV (Conformal Rotation Vector) in which CRVs are used to parameterize the orientations. In my knowledge, in order to derive a linear interpolation of ...
2
votes
2answers
902 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 ...
1
vote
2answers
273 views

Does this 3D rendering method exist? How is it called? Is there any C++ algorithm for it?

I've been thinking about making my own 3D rendering engine in C++, but I don't know much about math that's required to do it. I'm not even sure if it's possible or if it even exists or how it's called....
1
vote
1answer
83 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 ...
1
vote
2answers
492 views

How to use multithreading in 3D software renderer to speed up fetching texture values

The biggest bottleneck of my code is fetching texture RGB values from memory. My code looks something like this: ...
1
vote
3answers
1k views

How can I draw this style of grid?

I'm trying to write code (in any language) to render this 3D grid, matching the look and colors as closely as possible:
1
vote
1answer
2k views

Background behind 3D model

I have object loader, which i want to have background. I tried to put jpg image like texture to my application. I tried to make that with FreeImage library, but the image didn't show. Also i tried ...
1
vote
1answer
24 views

Real 3D interior room from 360 images

If I have 360 images of an interior room from all different angles, would it be possible with current 3D software technology to create a real 3D representation of that room, where the camera could ...
1
vote
1answer
57 views

Detect collision for non axis-aligned bounding boxes

in my application, I needed to detect collision between 2 3D objects. To make it simple I can represent a object as a bounding box. So actually the task reduced to detect collision between 2 boxes in ...
1
vote
1answer
39 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 ...
1
vote
2answers
71 views

If a 3D scene is rendered onto a hemispherical display, will there still be warping near the edges?

When a 3D scene is rendered to a 2D display, the image is distorted near the edges of the display. If a 3D scene is rendered onto a hemispherical display, will there still be warping?
1
vote
1answer
483 views

How do I implement object picking, using OBB in OpenGL?

I am trying to make 3D drawing software. I wanted to have the drag feature so I am using object picking using the OBB algorithm. I am facing problems in understanding the algorithm, and my ...
1
vote
1answer
89 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 ...
1
vote
1answer
86 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 ...
1
vote
1answer
45 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 ...
1
vote
1answer
347 views

How to rotate a camera?

So I am doing a simple FPS camera with openGL. I store the camera as 4 vector, a position vector, a lookAt vector, an up vector and a right vector. When the user presses a key, I create a rotation ...
1
vote
2answers
178 views

Is there something wrong with a column camera matrix?

I am writing a simple ray tracer. I was working on my camera matrix when I encountered a problem. When I changed the look vector, so that it headed down, the image, which was supposed to go up, ...
1
vote
1answer
200 views

What technique would I use to create fake 3d walls as seen in Realm of the Mad God

I wanted to make a little demo for a console with Realm of the Mad God esc graphics to brush up my C and SDL skills. One problem I'm running in to is creating the 3D walls. The console I'm ...
1
vote
1answer
193 views

Why do animated CG characters always feel fake?

Why do animated CG characters always feel fake? Usually if a CG character is an animal (or humanoid creature), they tend too look kinda off. Their movement tends to look oddly smooth or lightweight, ...
1
vote
2answers
709 views

How to get the 3D position for the point with (0,0) UV coordinates?

I have a 3D triangular mesh(vertices, indices, uv coords) that I'm rendering to the screen. Let's assume that the UV mapping is one-to-one. I'm trying to find a way to find the 3D position of the ...
1
vote
1answer
118 views

Overlaying a grid on to a height map

What is the method used in overlaying a grid (agonostic of the grid type) on to a height map? It seems it's some sort of projection, but what are the technical details in how to implement it? An ...
1
vote
1answer
70 views

How to raytrace triangular faces when camera is not at origin?

I've watched the Pixar In A Box, Maths of Rendering Tutorial on Khan Academy. I've started writing a raytracing program and have come to the point where I must solve for ...
1
vote
1answer
452 views

How to interpolate vertex normals for Phong lighting when barycentric coordinates are negative?

I'm interpolating normals for Phong lighting models. Since I am calculating in the light of each pixel, I'm doing the interpolating after the viewport transform has been applied. So I save a version ...
1
vote
2answers
700 views

How to calculate the view vector in Phong Lighting Model?

All the books and reference I have read say that the view vector is calculated by subtracting the point where eye is at, from the point where we want to calculate light. But since, eye is at (0, 0, 0) ...
1
vote
1answer
58 views

Stereoscopic 3D app development

I want to create an application to visualize image pairs in stereoscopic 3D. I want it to have a cursor that can move left and right, but also in and out. I think the way to achieve this is to draw a ...
1
vote
1answer
85 views

Which 3D object properties should be affected by distance?

Which 3D object properties should be affected by distance in VR and other 3D applications and how important is it that they are changed? For example the level of detail, colour (?)...
1
vote
1answer
336 views

Beginner CG Research Project [closed]

This summer I will be working with a professor on a research topic of my choice, in the field of graphics & simulation. While my professor is knowledgeable in the area he is being very hands off ...
1
vote
1answer
65 views

What is the name of these software on 2 screen? [closed]

Look at the photo, modelling for new products. Regards
1
vote
1answer
84 views

How to convert image results into data?

I have made an 3d solar exposure analysis for a 3d city model that determines how long a surface receive direct sunlight throughout the year. Results are coloured surfaces and legend of coloures that ...
1
vote
1answer
587 views

Which 3D algorithms does Windows 10's “3D Builder” application use?

Windows 10 ships with "3D Builder", a Universal App that contains utility functions to prepare STL, OBJ, 3DS, and other files that represent geometries for 3D printing. The utility looks like this: ...
1
vote
1answer
146 views

maximal convex patching in Computer graphics

Given a 3D object in Computer graphics, whose surface is represented as a 3D triangular mesh (mesh of 3D triangle objects), I need to find the maximum continual Convex patches on the surface of the ...
1
vote
1answer
39 views

Scaling models for 3D print [closed]

So I need to print out this model, however with default sizes, one of the pieces is too large for my printer (M3D). I will need to scale it down.. the question is, do I need to scale the rest of the ...
1
vote
0answers
29 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 ...
1
vote
0answers
46 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 ...
1
vote
1answer
88 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 ...
1
vote
0answers
128 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
0answers
91 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 ...
1
vote
0answers
19 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 ...
1
vote
0answers
171 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 ...