Category "3d"

Setting coordinates for sphere

I have a code that produces a sphere. I want to change the coordinates in which the sphere spawns import numpy as np import matplotlib.pyplot as plt from mpl_to

How to add color definition in 'pygltflib' python library to 3D triangular mesh?

The following example generates a 3D object using arbitrary triangle definitions (vertices and connectivity matrix). https://gitlab.com/dodgyville/pygltflib#cre

3D head mesh morphing from one mesh into another using scripts (C, C++, python etc) [closed]

I have 2 3D head images and want to morph one into the other (animation) without using blender, three.js etc. I want to do it using coding pre

Screen space reflections bug

I try to implement screen space reflections in my graphics engine using ray marching algorithm. I've got weird results, which you can watch in the video: https:

NRRD File of brain tumor is not being read into python with pynrrd module

I have nrrd files of the brain tumor. When reading the file into an array with a header and passing the code print(filename), I get an array of zeros. I checked

How many models of 3D truck

I want to model your 3D tractor. But I don't have dimensions in my hand. How do my models. To make a real volvo. I am using blender

Having Problems Plotting a 3D Map in R

I am having problems plotting a 3D map in Rstudio. Here is the code I used; plot_ly(myLocalClean, x = ~date, y = ~median, z = ~sales, opacity=0.5) #3D my resul

Plotly (R): Make a surface plane in a plotly 3d scatter plot

I have made a 3d scatter plot using plotly and on that plot I would also like to have a 3d surface plane at manual positions and geometries. I don't want to mak

how can i view .obj 3d model with .mtl file (without engine) in vb6 (needs to be fast because models bigger than 1 km)

how can i view .obj 3d model with .mtl file (without engine) in vb6 (needs to be fast because models bigger than 1 km I search but nothing solves this question

Not able to access Operator presets in Blender

I am unable to access the operator properties in the blender. Every time I add a new mesh in the scene, the operator windows appear but it is not accessible. I

Calculating a matrix to invert a "flattened" 3D rendering context

Context: In my web app I create several groups of elements all positioned relative to each other in 3d space. All elements have transform-style: preserve-3d. A

Pygame mouse position not precise enough to rotate the 3D scene

I need to rotate a 3D scene or a character using the mouse position: for example, if I move the mouse to the right, I want to turn to the right / the character

How to calculate 2d X-ray image projection given camera orientation (theta, phi, distance) and 3d object coordinates

I'm trying to recreate an X-ray projection I have 3D coordinates of an object of shape (100,3), spherical coordinates of the camera (theta, phi, distance), dist

Unity HDRP Dark Pixels on random objects and edges

I have been trying to fix this problem for the past 5 days There are a lot of annoying dark pixels on multiple random objects. Examples: Walls/Pillar: https://i

How do I generate a partial view of a mesh as a point cloud in Python?

I have a dataset of meshes, which I want to use to generate partial view data as point clouds. In other words, simulating the way an RGB-D sensor would work. My

How can I rotate a vector 90 degrees into a perpendicular plane, and then 15 degrees free from that plane?

What I ultimately want is a vector, giving the direction of the green line in the image below, knowing only the position of the yellow and green dots. To be mor

Blender render color different from the actual one

So, here's what i created But on rendering, the color changes.... I'm using cycles and HDRI.

Computing affine transformation between two sets of unpaired points

I have two sets of points, P and Q, where Q is a transformation of P (rotation, translation and scaling). The pairing of points is unknown. How would I go abo

Generate a GMM Dataset by using multivariate_normal from scipy.stats

How can I use from scipy.stats import multivariate_normal to generate data? In specific, I want to create a GMM data that contains 3 columns (features) and a la

Visualizing the permutohedron in 3D plot

I am trying to plot the Permutohedron in python using plotly, numpy, and pandas. This is my current code: import plotly.express as px import numpy as np import