Questions tagged [graphics]
The graphics tag has no summary.
99 questions
0
votes
0
answers
96
views
How 3D assets are managed in real time configurators?
We see a lot of 3D configurator web applications on the web and even other type of configurators in embedded systems, such as LED Totem displays. From real time car configurators which every major car ...
3
votes
1
answer
411
views
Best way to type-differentiate a Point and Vector?
I'm writing a ray-tracer in C++, and while writing a constructor for the Ray class:
class Ray {
public:
Ray(const glm::vec3& origin, const glm::vec3& direction) : o{origin}, d{direction} {}
...
-3
votes
2
answers
357
views
What is YIQ color model? [closed]
As we know that RGB monitors requires separates signals for red, green, and blue components of the image but television monitors uses single composite signals. For this composite signal use YIQ color ...
-5
votes
1
answer
233
views
What is the ideal data structure for 2D and 3D graphics in WebGL or Metal? [closed]
I have been thinking about this here and there for several years but haven't gotten around to having the time to actually implement it. I am getting closer to being able to implement a graphics ...
2
votes
1
answer
176
views
How to create a T-shirt or book displacement map in practice?
So I learned that the feature I am interested in is called a "displacement map". This makes it so you can take a blank t-shirt (with all it's curves and subtle textures), and apply an image to it so ...
6
votes
2
answers
376
views
How does the Arabic typographic layout system work at a high level?
I have some Arabic content that is justified according to western conventions.
I justified it because it is justified in ancient sources:
However, the way Arabic text justification works is by ...
2
votes
1
answer
259
views
Good way to do 3D vector math in language without operator overloading
I would like to make a simple web application (a static website where all computation happens on the client) that generates a mesh and displays it. I have a working prototype in Unity and now I'm ...
2
votes
2
answers
196
views
Primitive type conversion in computer graphics
I have been repeatedly told that explicit type conversions are an indicator of bad code and they should be avoided.
Now in all honesty I have been annoyed a bit by these claims due to the nature of ...
5
votes
2
answers
2k
views
OpenGL and global state
It is generally understood in software engineering that global state is bad. However, OpenGL has been designed very much embracing the concept of global state. many of the things you modify will ...
7
votes
2
answers
295
views
The programming paradigm behind beginFill/endFill
The only place I have really noticed this sort of programming style is with the graphics engines. Essentially like this:
graphics.clear()
graphics.setStrokeStyle(myStrokeWidth)
graphics.beginStroke(...
2
votes
3
answers
2k
views
Convention for labelling coordinate axes in 3d graphics
When I recently started doing some 3d graphics, I carefully (tried to be careful, anyway) decided to use the conventional mathematical standard for labelling axes, which was much more convenient for "...
2
votes
1
answer
173
views
How did graphics programming evolve over time? [closed]
There isn't a single blog/site out there that shows how graphics technologies evolved over time, how and why they became what they're now. If anyone can shed some light on it, it would be great.
See, ...
1
vote
2
answers
2k
views
How is a quadtree stored in a file?
I'm trying to understand how a 2d or 3d map would be saved, and I'm trying to figure out quad trees. So like is each node represented by characters in a file and inside of that is the next one?
What ...
8
votes
2
answers
19k
views
Why use SDL and OpenGL instead of just OpenGL?
I've been seeing people combine SDL2 and OpenGL (glfw.h or glut.h) for a while now, I've done some research and found out SDL2 runs on OpenGL. So why does people combine these two? Some people ...
1
vote
0
answers
412
views
Canvas-like drawing interface for SVG?
There's lots of stuff out there comparing the HTML elements SVG and Canvas, but I'm still a little confused.
I'm looking for a way to draw an arbitrary shape (like, I have a description of a shape, ...