Category "graphics"

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

how to do cube mapping of a static environment onto a complex model by directx11 and HLSL?

I am very new to Shaders and programming in direct 11(c++) and HLSL for shaders. However, I have been given a task to: Implement cube mapping of a static enviro

How to Overlap Panels in Swing?

I am attempting to have multiple JPanels that can "overlap", also allowing me to perform custom painting. For this I am using a MainPanel, which extends JLayere

Classifying cubic bezier curves according to Loop & Blinn 2005

I am trying flatten a bezier path (remove all intersections and replace with end points) as part of the implementation of the rendering algori

Linear graphics

I have a dataset in this way: maximum <- c(10) #for each time minim <- c(2) #for each time Quantity c(4, 2, 10, 2, 10, 6, 2) How can I structure my datas

Scaling tangent lines in a bezier curve

I am currently working on a project about Bezier curves and their properties. I am struggling to understand a concept. I can't seem to understand why you need a

Editable graphics in WPF

I am developing a WPF application that displays complex graphics to a window. I need these graphics to be highly dynamic, meaning that for instance lines can ap

non-file image types in GraphicsMagick

I recently discovered the existence in GraphicksMagick of image types that are not actual image files. For instance, here is an excerpt of a gm batch script I a

WebGL2: what is up with max elements indices/vertices?

I'm developing a web component using WebGL2 (and three.js) with OES_element_index_uint enabled. I'm drawing a geometry using indexed vertices and I'm seeing th

Finding inflection points of a set of points

I am working on something that can fit a set of Bezier curves through a set of points. I've been able to do this using the curve fitting method from Pomax. The