Questions tagged [ui]

7 questions
3
votes
1 answer

How to keep an object constant in screen space?

If you open the modern Blender UI and select for example scaling, and then you use the scroll wheel to "zoom" (move the camera along the radial axis). You will notice that the size of the 3D widget remains constant in screen space (it becomes bigger…
Makogan
  • 1,584
  • 8
  • 27
3
votes
4 answers

Clashes when combining openGL and GUI

For the fun of it, I've taken up a task of writing a level editor for a voxel game. The idea is to have window that contains two main components. First component is openGL viewport placed in lower left or right corner of the window (or anywhere,…
Karlovsky120
  • 231
  • 2
  • 8
3
votes
1 answer

Algorithms for rendering overlapping (floating) windows in 2D

I'm trying to figure out a solution to a problem that looked simple at first: how to render overlapping windows in a 2D windowing system. Originally I was thinking about implementing a text-based UI system, something like twin; not to reinvent the…
2
votes
2 answers

How to watch image being ray traced?

In my ray tracer, I render my images out to a .PPM file and then view it in photoshop. To make things easier and faster I want my ray tracer to open up another window and show the image being rendered each ray at a time like how modern renderers…
Arjan Singh
  • 2,463
  • 3
  • 20
  • 37
2
votes
2 answers

How are rounded corners of user interfaces usually rendered in modern applications like browsers?

I'm just trying to figure out, how rounded corners are usual drawn for user interfaces in a performant way & as insight also try to figure out how it's done in Browser, as they allow for variable round corners (without being blurry) :) In the end I…
realvictorprm
  • 183
  • 1
  • 8
1
vote
0 answers

How to Pan Zoom a spherical camera?

I asked this in regular SO but I think people are not understanding the question so i will try here: So, for anyone familiar with Google Maps, when you zoom, it does it around the cursor. That is to say, the matrix transformation for such a zoom is…
Makogan
  • 1,584
  • 8
  • 27
0
votes
1 answer

Moving a vertex through the cursor

There is a way to move a selected point in a mesh with a cursor(assuming a camera that doesn;t change between frames). The way I remember the algorithm (but seems to be wrong) is: Unproject the cursor position onto the world position Use this and…
Makogan
  • 1,584
  • 8
  • 27