Questions tagged [graphics]

Graphics are visual presentations. Questions using this tag should also be tagged with the appropriate language and graphics subsystem in use. For more general graphics questions, consider Computer Graphics Stack Exchange (computergraphics.stackexchange.com).

Filter by
Sorted by
Tagged with
-1 votes
0 answers
13 views

I wanted to make 3d graphics in python but I have an issue [duplicate]

I want to make a cube and rotate it but without using pyopengl, of course I am using python and pygame as a framework I created the perspective projection matrix the rotation matrix and then I ...
adam naanaa's user avatar
1 vote
2 answers
48 views

Find cone normal

I am actually making a raytracer in c. I need to find the normal of a cone depending of the hitpoint. My function is prototyped like so : t_vec_3 cone_normal(t_point hitpoint, t_cone cone); the ...
coromo's user avatar
  • 11
2 votes
0 answers
32 views

How can a block compressed image always have a first mip level that's a multiple of 4?

In DirectX according to the rules the topmost mip (the most detailed), needs to be a multiple of 4: The formal rules of DirectX is that BC compressed images must have a multiple of 4 for the 'top-...
Zebrafish's user avatar
  • 11.8k
0 votes
0 answers
29 views

in Java SWT how to draw an animated dash lines on a cell

in Java SWT how to draw an animated dash lines on a caption (like in XL when you type control-C) dashOffset gc.getLineAttributes and gc.setLineAttributes gc.setLineDash(new int[] {10,10}); I expect ...
Bernard85's user avatar
0 votes
0 answers
29 views

Tangent seams in Vulkan using GLSL and C++

I am writing a small Vulkan toy renderer using tinygltf to load my models. For the past two weeks I've been trying to implement normal mapping into the renderer, but I've been running into issues. I ...
Jef Belmans's user avatar
-1 votes
0 answers
32 views

Directx11 Vsync duplicate images

I noticed something about vsync and made a test case on it. I have frame N which is a blue colored frame and frame N+1 which is a red colored frame. I use these frames consecutively and the result is ...
Roveldo's user avatar
  • 45
-1 votes
0 answers
21 views

Common core features across different rendering pipelines? [closed]

I want to create some sort of abstraction layer for the rendering pipelines of different graphics APIs. Therefore I am trying to figure out the similarities between different rendering pipelines in ...
Erik So's user avatar
  • 55
0 votes
0 answers
13 views

Graphic issue . Vsc and NVIDIA

It seems that the problem is coming from the Nvidia graphics card and the driver the problem .... I have Rog ASUS 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:25a0] (rev ...
Edwin Granzotto's user avatar
0 votes
0 answers
23 views

Unity DrawMeshInstancedIndirect 2D Quads - How to sort draws by Y axis?

I'm drawing around a million 2D quads using DrawMeshInstancedIndirect - - think like im using it for grass. Now I want it to be drawn on top of one another based on Y coordinate, but I can't get it to ...
basicbeing's user avatar
0 votes
0 answers
54 views

How can I combine a rotation and drawing function to draw a circular spoke pattern?

My assignment: Using rotation function, rot and graphics primitive function, toTree make a program, which calls render to draw 36 spokes on the screen as illustrated in Figure 2 The rotation ...
Flems's user avatar
  • 115
0 votes
0 answers
22 views
+50

Create model thumbnails with filament

When starting from mesh data, i.e. I have a model specified in a "collection of triangles" format, it's pretty straightforward to render it with filament. But is it possible to use filament ...
Lorah Attkins's user avatar
-1 votes
0 answers
13 views

Why does this visual bug happen and how can I replicate it? (ARM Mac OS, ViewSonic Monitor, USB-C Display Connection) [closed]

So I was using this weird monitor in my graphic design class, I don't know the make or model but it was ViewSonic, and the MacBook was connected by USB-C; A couple times I plugged it in and it ...
Joe Dimagio's user avatar
0 votes
0 answers
6 views

can i get the plane describing the edge of my view frustum

tldr: I have a view frustum ive made by performing several cross products between different matrices, now im struggling to clip objects since i cant find a way to describe the planes at the edge of my ...
tgmjack's user avatar
1 vote
0 answers
44 views

Move a simple Window left or right in C

I have a simple window in C and I'm trying to move it to the left and right by pressing ctrl+left or ctrl+right. I already have declared the shortcuts. case GDK_KEY_Left: left(window); return TRUE; ...
ChristianPix's user avatar
1 vote
0 answers
19 views

WebGl faulty calculating of normals

I've been calculating normals for my webgl lightning and I encountered an issue where there is a linear pattern of black spaces, I have smothed it a little by adding 0.1 to every normal but it still ...
O F A L's user avatar
  • 11
0 votes
0 answers
9 views

Run taichi lang canvas on web browser

I want to integrate my Taichi Lang real-time fluid simulation within a web application. I'm not sure how to approach this, I can't wrap it in an api and continuously fetch the results as it's too ...
AB2000's user avatar
  • 31
-1 votes
0 answers
21 views

How can draw 2d high performance CAD workarea?

i want to start new CAD Application for my cnc device by C#. i need a plotting app have some fetures like draw lines,circuits and ... i need to know how can draw a graphical workarea around 100cm x ...
Mehdi Soheili's user avatar
0 votes
0 answers
14 views

How to add AxexHelper at a specifc position in ThreeJs?

I try to fix position of axeshelper on three js. But it rotates when the scene rotates. I need to fix the axeshelper at bottom left corner like every 3D application has. How can I set the position for ...
zenhanu's user avatar
0 votes
0 answers
12 views

Installing ezgraphics in google Collab

I am trying to install ezgraphics module by pip install ezgraphics in google colab. When using pip intall ezgraphics, is gives ERROR: Could not find a version that satisfies the requirement ...
user22113644's user avatar
-1 votes
0 answers
40 views

Decompose curve(contour) to arcs and segments

I'm attempting to smooth a curve by decomposing it into approximate arcs and segments. For more details, Take this image (which has noisy points) as an example; it's a fabric cut pattern: When i ...
Arman_Ahmadi's user avatar
2 votes
0 answers
27 views

D3D12 descriptor creation

Is creation of D3D12 descriptors free? By "free" I mean is there an allocation while calling ID3D12Device::CreateShaderResourceView or ID3D12Device::CreateConstantBufferView or ID3D12Device::...
Mateusz Bahyrycz's user avatar
0 votes
0 answers
24 views

Drawing stroke inside of path with Android Graphics

I am using Android Graphics to draw shapes onto a view. I have some Path and what I want to achieve is to have a stroke on the inside along the edges of that path. Unfortunately, Paint.Style.STROKE ...
Pascal's user avatar
  • 1
0 votes
0 answers
17 views

How to prevent character from tunneling through walls in unreal engine?

I am a beginner for unreal and I am making a game and I got to know that unknowingly I messed something so my character is able to tunnel walls. Here are my Viewport settings What am I supposed to ...
D Star Let's Explore's user avatar
0 votes
0 answers
46 views

How to view the slices of a 3d stl file separately in Python?

I am trying to load a stl file and trying to view the slices of the stl file. I have tried this: import numpy as np from stl import mesh import matplotlib.pyplot as plt Load the STL file mesh_data = ...
sripathi akhil's user avatar
0 votes
1 answer
23 views

mixing of noise from four corner glsl

I am studying noise from the bookofshaders and in 2d noise this is the code in the book or website. #ifdef GL_ES precision mediump float; #endif uniform vec2 u_resolution; uniform vec2 u_mouse; ...
Pravin Poudel's user avatar
0 votes
0 answers
36 views

MIS path tracing got brighter image

I am currently implementing a Path tracer, and I want to implement the Multiple importance sampling which use two distributions (Light and BRDF) at each bounce to evaluate direct lighting This is my ...
yys_c's user avatar
  • 15
0 votes
0 answers
44 views

why would vulkan graphics not work despite vulkan compute working?

When I run vkcube, I get this: Selected GPU 0: NVIDIA GeForce RTX 4070, type: DiscreteGpu Could not find both graphics and present queues But when I run vulkaninfo --summary, I get this: ========== ...
evenex_code's user avatar
0 votes
0 answers
55 views

Unity upgrade to 2022.3 or Gradle Upgrade to 7x Causing Black Screen (GetGpuPixelFormat Error)

I've had to upgrade to Unity 2022.3, which comes with the Gradle plugin upgrade from 4.0.1 to 7.1.2 and gradle from 6x to 7x. android.enableR8 had to be removed from gradle.properties, since it is ...
Doruk Okbay's user avatar
0 votes
1 answer
32 views

font.getGlyphID gives KeyError on unicode

I'm trying to render SVG out of an unicode using Python's fonttools: from fontTools.ttLib import TTFont from fontTools.pens.svgPathPen import SVGPathPen def unicode_to_svg(unicode_char, font_path, ...
Maifee Ul Asad's user avatar
0 votes
0 answers
78 views

Approximate quadratic Bezier with circle SDF function

Summary: I have an triangle with points at specified positions, they all have F signed distance field value, this field is lineary interpolated between each other point and used to get the distance by ...
not-a-real's user avatar
0 votes
1 answer
36 views

Is GPU not updated every frame as CPU is?

I'm learning about graphics programming and am trying to practice by building a particle system. As every particle should have a lifetime, I'm tracking the lifetime in a compute shader. The problem is ...
4892 ligor's user avatar
1 vote
0 answers
30 views

Display [x, x] grid with [y, y] size in Processing

I have a 2d array, let's say [500][500]. I want to render that array onto a [200][200] grid, where I will render each pixel from the second array onto my computer. How do I render my [500][500] grid ...
Clinks's user avatar
  • 11
0 votes
0 answers
32 views

How to perform artifact-free fast drawing from bitmap data in Cocoa / Objective-C?

Disclaimer: I am mostly experienced with Gtk and FLTK on Linux and Windows. I am pretty much starting my macOS / Cocoa / Objective-C development journey. While I have done much research, I am not ...
Will B's user avatar
  • 155
0 votes
1 answer
43 views

3D object location to 2D image

I am using ROS to record data from CARLA Simulator. I want to render a bounding box on the RGB Front camera image that correspond to the other vehicle's location. Here is an example frame from the bag ...
wiswasi's user avatar
  • 23
0 votes
0 answers
22 views

How do I draw lines using LineRenderer on a canvas in 2D Unity, so that the lines don't go diagonally to point A

I'm trying to build a logic gate simulator, however, I've noticed that the line drawing system I'm using looks messy and unorganized for drawing wires in between two gates... I'm trying to avoid the ...
begluka0's user avatar
1 vote
0 answers
41 views

How are you supposed to use upscaling technologies such as DLSS when programming at a low level with Vulkan or DirectX?

I don't understand what upscaling technologies such as NVidia's DLSS and AMD's Contrast Adaptive Sharpening (CAS) are very well, but I was wondering how they work from the Vulkan and Direct API point ...
Zebrafish's user avatar
  • 11.8k
0 votes
0 answers
47 views

Draw a Circle in 3D space facing towards Direction Vector

I will try to explain as clearly as possible. Goal: Draw a Set of circular point around a center point in 3D space facing towards the direction vector. Trying to model a Cylinder and bend model using ...
Ans shakeel's user avatar
0 votes
0 answers
13 views

GPU instanced mesh does not render for a camera that is strictly being rendered by Camera.Render()

Mesh does not render when camera is called strictly with Camera.Render(). As in the camera component is disabled. Mesh is being drawn with Graphics.DrawMeshInstanced() In this video, the lightning is ...
Nick Hudson's user avatar
0 votes
0 answers
22 views

How can I solve the normal vertex problem in the Android Build Unity?

In my Unity 2022.3.2f1 project, I'm experiencing an issue with normals on a 3D object. The problem is that the normals appear to be incorrect, causing the material to render strangely in the current ...
ligary's user avatar
  • 1
0 votes
2 answers
48 views

Curve intercept as text on y-axis: ggplot2

I'm trying to put the model's intercept value on the y-axis. The code I'm using is this: library(ggplot2) mod <- lm(circumference ~ age + I(age^2), Orange); summary(mod) novo_dados <- data....
user55546's user avatar
1 vote
0 answers
47 views

Improving unidirectional path tracer convergence

I implemented a non-naive unidirectional path tracer inside my software. My scene has only one light(the sun). After 1 hour of rendering(2000 samples/pixel) I get this result:: Is there a way to ...
StudenteChamp's user avatar
0 votes
0 answers
28 views

Simple occlusion culling algorithm is not culling out any of the objects

I have some issues with implementing occlusion culling. For me, it doesn't seem to work as intended. Basically, on images I have my view frustum and object right in front of the camera. Unfortunately, ...
Arheus's user avatar
  • 21
2 votes
0 answers
97 views

Implementing shadow mapping under DirectX 12

I would like to implement shadow mapping inside my renderer. I decided to start with Directional lights. To do so i need to address the following: 1) Render shadow map for each light To do so I plan ...
StudenteChamp's user avatar
0 votes
0 answers
20 views

Why is glTexImage2D() reading my rgb array wrong? [duplicate]

I am trying to draw a 12 bytes long array of rgb values. Since rgb is 3 bytes this should total 4 pixels held within the array.All the pixels are red. Thus I am trying to draw a 2*2 square of red ...
Saw's user avatar
  • 125
0 votes
1 answer
22 views

How does Lambertian Reflection in Ray Tracing in One Weekend work?

I have started to implement Ray Tracing in One Week. I have gone pretty far ahead, but when I decided to look back to recap some things did not sit right with me. Why is this part called True ...
MOLD's user avatar
  • 11
1 vote
0 answers
100 views

How to use Mediapipe face mesh for Face transformation

Using Mediapipe Face landmark detection we can get 3D face landmarks and a mesh. But is it possible to use it to "transform" and change facial landmarks? Say can we use that to make the eye ...
angel_30's user avatar
1 vote
0 answers
66 views

Optimizing alpha blending for two colors with alpha

I'm looking for a way to optimize alpha blending, but for two colors with alpha (what differs from the question How to alpha blend RGBA unsigned byte color fast? ) Initially I used a solution with ...
Spook's user avatar
  • 25.3k
0 votes
0 answers
54 views

How to view the slices of a 3d image separately in Open3d Python?

I am new to Open3d. I have a 3D image and I want to view the slices of that 3D image separately.I have this code where I can view the image in a window. import open3d as o3d mesh=o3d.io....
sripathi akhil's user avatar
0 votes
0 answers
11 views

Object appears in unintended parts of the screen when using manual WorldToScreenPoint

I new to 3d graphics and i lack Linear algebra knowledge. I tried to recreate Unity's worldToScreenPoint method with kotlin on android. I copied some code from their forum and wrote missing math with ...
Ilya FIlippov's user avatar
-1 votes
2 answers
47 views

Rotation about line y=mx+c in computer graphics

How do I determine the homogeneous transformation matrix for the following question: A triangle with vertices A(50,20),B(40,10),C(60,10) is required to be rotated by 45 degrees in clockwise direction ...
P_99's user avatar
  • 9

1
2 3 4 5
411