2,585 reputation
11018
bio website
location Umeå, Sweden
age 30
visits member for 4 years
seen 2 hours ago

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


Jan
22
comment Translate a point on a circumference
Consider making a diagram. If it doesn't outright solve the problem you have, it may lend insight to you and responders.
Jan
20
comment Multi texture obj files?
@KyleJensen Your existing system with an implicit UV map is ad-hoc. In the obj format the way you associate texture maps with geometry is always via material libraries. You can establish some other convention for your application where you communicate the material definitions in some other way. You can't in general use a single map, as the texture coordinates for each subobject is for the maps of a particular material.
Jan
19
answered Multi texture obj files?
Jan
19
comment Validating victory report to PHP leaderboards
The data still exists in the request and is trivially spoofable. The OP requires ways of avoiding replay attacks, for example by means of incorporating unique tokens in the reported game state that cannot be reused. Obfuscation does not gain you any measurable security.
Jan
10
awarded  Yearling
Jan
3
comment What is the purpose for drawing vertices and shapes in OpenGL (or DX), if a game is using sprites?
This answer does not quite address the underlying misunderstanding of the OP, which is what 3D APIs actually deal in only primitives. There are no sprites in the core API.
Jan
3
comment What is the purpose for drawing vertices and shapes in OpenGL (or DX), if a game is using sprites?
@johnny You need to accept that the only way to draw things in OpenGL/Direct3D is to draw geometry. It may be textured with images to emulate what you call sprites. The edges in the image above is debug output to help you visualise the underlying geometry used.
Dec
25
comment Designing Diverse 2D Environment Tilesets
Please consider using the image upload functionality of StackExchange (backed by imgur) instead of hotlinking other's images, assuming you at all have rights to use the image.
Dec
25
answered Should I use DirectX 11 for 2d games or should I stick to DirectX 9?
Dec
25
comment Should I use DirectX 11 for 2d games or should I stick to DirectX 9?
Do you have any concrete measurements of your opinions? We prefer researched answers over wild speculation, hearsay and FUD.
Dec
23
comment How to pick a 3D object with known mouse coordinates if the camera is rotated 60 degrees?
You appear to misunderstand what GLU's unproject does. It does a plain boring transform from window coordinates to world coordinates. Do it for two arbitrary WinZ values and you get two points you can form rays from, just like your mathy math math tries to do. The downside of GLU is that it has some dependencies on GL state like the viewport, and wants matrices in GL style. It in no way draws or uses the drawn geometry to do any read-back based picking. Please adjust your answer accordingly.
Dec
22
comment box2d rendering performance degrading extremely even with sleeping bodies?
The limiting factor tends not to be geometry count, but draw call count. A debug layer can get away with individual draw calls for each thing they want to draw, with performance characteristics as you outline. Your own code probably batches properly, I reckon.
Dec
21
answered Rotating and scaling textures built up of pixel arrays in java?
Dec
17
answered How can I ensure GLFW callback events only happen once in the main loop?
Dec
17
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
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.