2,520 reputation
1918
bio website
location Umeå, Sweden
age 30
visits member for 3 years, 11 months
seen 18 hours ago

C++ developer at heart, loves to play around with graphics APIs.


2d
answered invoking callback events only in the main loop
2d
comment It possible to render a true quad (without triangles) using OpenGL?
@Toun Data in a vertex buffer can be interpreted as any kind of primitive. It's perfectly fine to have both quad and triangle primitive data in a vertex buffer, as long as you match the right primitive type when drawing the subsets.
Dec
13
comment Lua Implementation
@Mario Not all script code is intended to be modified/accessible by end-users or modders, nor should all games be modded. It's perfectly fine to script things to ease development or accelerate iteration times, if your project needs such things.
Dec
12
answered Replace each white spot of image to radial gradient
Dec
12
reviewed Reject Guessing game - 3 Levels
Dec
11
reviewed Edit Octree Malfunction
Dec
11
revised Octree Malfunction
Reworded to be less about "fixing my code", and more about the problem in the theory that the code is based on.
Dec
11
comment 32 bit or 16 bit textures
Is "16-bit" in Photoshop per channel or total for the image? Same question for "32-bit".
Dec
11
answered Multiplatform GLSL shader validator?
Dec
1
comment Video Encoding library for C++ game
Questions on what library to use are off-topic on GDSE, I hear, as the responses will be overly broad, mostly subject to opinions, and peppered with thinly veiled advertisements. You may be able to rephrase your question to avoid this problem.
Nov
17
comment My texture blends into one single color (DirectX11)
@MooseBoys It's also possible that he is making one sample from a detailed mip level with filtering, but that sample ends up somewhere between a red and a yellow texel to yield orangeish.
Nov
12
awarded  Revival
Nov
8
comment Canvas - darken sprites rendered by drawImage
Note that answers that reference transient external resources should recap the information in them to avoid the inevitable dangling links that render the answer near-useless.
Nov
4
answered Should I check SDL_Event for NULL?
Nov
2
answered Invalid coordinates returned by glutMouseFunc()
Oct
30
comment How should I fix a graphic glitch caused by t-junctions when using greedy meshing
A very common reason for non-identical geometry in a Minecraft-like is instead of generating the geometry as a whole, there's a set of cube faces which are translated around the scene, leaving cracks all over the place.
Oct
30
comment OpenGL Question about scaling 3D Object
It might help to mention the very common pattern to transform around an arbitrary point. Translate so the point is at origin, transform, translate back.
Oct
27
comment Key mapping for a 2-players game
It might help to elaborate on that with most keyboards, there are several combinations of keys that just cannot be detected at the same time. It's only lightly alluded to as it currently stands.
Oct
25
revised Getting the correct texture from an Atlas
elaborate on metadata meaning as requested in comment
Oct
24
answered Getting the correct texture from an Atlas