Category "graphics"

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:

Coefplot plotting same (name) estimate from different OLS models across three years in a single graph

Using coefplot in Stata, I am unable to plot the same estimate from different models across three years without having the estimates bunch up into a single year

Rotate a Multiple Lines in OpenCV/Python

I have many lines in my opencv, I want to rotate them but Opencv does not have shape rotation functionality. It has image rotation function. I made a rectangle

Why are we offseting the pixels by 4 when updating colors?

var canvas = document.getElementById("canvas"); var canvas_context = canvas.getContext("2d"); var canvas_buffer = canvas_context.getImageData(0, 0, canvas.width

Something goes weird with my decals when I change FOV

I'm on v2019.4.30f1, am using the old render pipeline (i.e. not urp nor hdrp) and using the blood decals from this pack: https://assetstore.unity.com/packages/v

How to draw QRubberBand on a QGraphicsView using Mouse?

I have my MainWindow with a GraphicsView on which I want to draw a QRubberBand using MouseEvents. Therefore I created a custom GraphicsView class where I have t

Drawing with drawString doesn't look good

The result of drawString with the same font and size in java The appearance is different when drawn with the same font and size in a painter (or word). Drawing

Paint not showing up on JPanel? I want to paint only if if statement conditions are met

I want to paint the walls of the pacman maze for my APCS A final. I am relatively new to graphics, as you can probably tell. The paintComponent() methods don't

How to expand particle system angle spread to 3 dimensions

I am trying to understand how to implement angle spread for a 3D particle system, to achieve an effect similar to a fountain. I can get it to work for a 2D syst

Controlling the order of drawing objects

It appears that in Python graphics.py, new objects are drawn behind existing objects. So if I draw a blue circle and THEN place a rectangular box over half the

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 can I get the current text size in graphics.py

In Python graphics.py you can use the function setSize() to set the font size. How can you read the current font size of an object? What is the default font si

R plot doesn't shows on Mac but the same plot shows on Windows

Yesterday I bought a Mac (M1 processor) and today I installed R and R Studio. I tried to plot the same code in a Windows machine and my Mac, but the plot only s

Python raises error when I use graphics.py commands inside a function when using multithreading

I'm trying to create a little game where when you type in 'inventory' it opens a little window to display your items. However it doesn't work and give me an err

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

what can you use in place of gdi/direct2d on linux and macos and which one of them do windows uses to draw its controls and window frames?

I am trying to learn computer graphics recently and i have a bunch of question mainly about api's -in windows there is gdi/direct2d what there is in macos and l

Android animation to draw alphabet

I am stuck at the animation part which is kinda tough for me, I need to draw this green sign like this. I tried this Github guide achieve my requirement but wit