Questions tagged [pyrender]

12 questions
1
vote
0 answers

World to pixel transformation in Pyrender

I'm trying to transform a point in a 3D world rendered with pyrender to pixel coordinates. The world to camera frame transformation seems to work, however the camera to pixel frame transformation is incorrect and I can't figure out what I'm doing…
nona
  • 84
  • 6
1
vote
1 answer

How to get pixel coordinates of object after rendering the scene as image in pyrender?

I am trying to obtain the pixel coordinates (x, y) of the object that is rendered using pyrender. The aim is to get the bounding box coordinates of that object. I use OffScreenRenderer to render the scene. r =…
Viole
  • 11
  • 2
1
vote
0 answers

Manually Texture Mesh with PyRender or Similar Python Library?

I have a partial mesh of a room that I am trying to texture with an image taken from a particular camera view of it. I am using pyrender to do the rendering. If I load a mesh from an .obj file that is already textured, the rendering shows up with…
argupta
  • 11
  • 2
0
votes
1 answer

Retrieve camera intrinsics from PyRender PerspectiveVamera

With PyRender, I'm trying to create a pointcloud from a depth map that I rendered using a PerspectiveCamera. For this, I will need the intrinsic parameters of the camera. Is there a straightforward way to retrieving those parameters? I tried the…
nona
  • 84
  • 6
0
votes
0 answers

GL_INVALID_VALUE of parameter GLsizeiptr in glBufferData function

I'm trying to render a mesh as depth maps using pyrender, in which it calls glBufferData like this glBufferData( GL_ARRAY_BUFFER, FLOAT_SZ * len(vertex_data), vertex_data, GL_STATIC_DRAW ) However, it throws GL_INVALID_VALUE when…
0
votes
0 answers

pyrender - after adding a new mesh, the camera pose changes to some default values

in pyrender setting the camera pose does not work in my code. `Each time I add a new mesh to the pyrender scene, the camera pose is set to default camera = pyrender.PerspectiveCamera(yfov=np.pi / 2, aspectRatio=1.0) camera_pose = np.array([ […
edgar
  • 1
0
votes
0 answers

While running POSA model: Runtime Error in smplx/body_models.py, reset_params function

I was going through the POSA repository to find the contact vertices of SMPL body and scene. Link to POSA GitHub repository Traceback (most recent call last): File "src/affordance.py", line 105, in vertices_org, vertices_can,…
0
votes
0 answers

pyrender doesn't see all gpu devices

Python script that prints all devices on bear-metal ubuntu18 (The host) doesn't see those devices in Docker container Host: Driver Version: 470.141.03 CUDA Version: 11.4 import pyrender from pyrender.platforms import egl from OpenGL.EGL import…
leonidp
  • 1
  • 1
0
votes
1 answer

Display text on point cloud vertex in pyrender/open3d

I am using SMPL demo code to display the SMPL-X mesh of a person. Instead of taking the default body joints, I need to select vertices corresponding to some other positions on the mesh, and for that I need to figure out the respective indices of…
powder
  • 1,163
  • 2
  • 16
  • 32
0
votes
1 answer

Container multi stage build with pyrender for distroless

I have the following multi stage build to add pyrender into a distroless continer FROM debian:11-slim as build ENV DEBIAN_FRONTEND noninteractive RUN apt-get update && \ apt-get install --no-install-suggests --no-install-recommends --yes…
Pavan K
  • 4,085
  • 8
  • 41
  • 72
0
votes
1 answer

Mapping 3d vertex to pixel using pyreder/pyglet/openGL

I'm implementing new algorithm for 3d point estimation using images, and right now I'm trying to test it over 3d virtual models before I'll move to real objects. The algorithm inputs are pixels before the last transformation to the viewport sizes,…
0
votes
1 answer

pyrender ValueError: Mesh is already bound to a context

I have a task to render images for a given sample size. At first, I add 5 meshes to pyrender scene, render the image, and remove the meshes from the scene. This iteration is continued for the given sample size. However, in the second loop, I get…
Viole
  • 11
  • 2