Hot answers tagged

4 votes
Accepted

How to watch image being ray traced?

This is a very common question that most people in your situation (interested or fascinated shall I say in Computer Graphics) have and a problem they want to figure out. The solution is pretty simple, ...
user avatar
  • 656
3 votes
Accepted

Clashes when combining openGL and GUI

General answer is that creating a window as a GUI element with some GUI designer library involves subclassing some basic GUI element (like widget in QtCreator for example) with class providing ...
user avatar
  • 2,037
3 votes

How to keep an object constant in screen space?

Scale the object proportional to its depth (z in camera space) and it will retain the same size on screen regardless of its position in world space. Additionally, you might also wish to scale the ...
user avatar
  • 23.7k
2 votes

Clashes when combining openGL and GUI

At one point I had a similiar issue, however, I was using DirectX as opposed to OpenGL so this may not be very helpful but you might be able to gain some knowledge out of this. My main objective was ...
user avatar
  • 2,415
2 votes

Clashes when combining openGL and GUI

Some of the easy to use GUI libraries for OpenGL I have come across are (in no specific order): imGUI NanoGUI AntTweakBar Although AntTweakBar is bit outdated, it's still pretty easy to use. imGUI ...
user avatar
1 vote

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

I'm not sure of the current state of the art, but this style of drawing windows with rounded corners originated in the NeWS graphical environment for Unix workstations. And it was accompanied by an ...
user avatar
  • 1,098
1 vote

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

Speaking from my own experience... There is no one answer to the question of "how is this UI interface element drawn". Under windows you can get them as freebies where the OS gives you a ...
user avatar
  • 2,119
1 vote
Accepted

Moving a vertex through the cursor

Figured it out, I did skip a step, you are supposed to multiply by the homogeneous coordinate. Basically the actually projected point is (courtesy of GLM): ...
user avatar
  • 1,447
1 vote

How to watch image being ray traced?

In QtCreator IDE (C++) any kind of image buffer - result of CPU raytracing or (what I did) frames captured from the camera can be easily rendered or painted on Widget - which is simplest part of the ...
user avatar
  • 2,037

Only top scored, non community-wiki answers of a minimum length are eligible