Most Popular
1500 questions
15
votes
1 answer
DirectX11 without window attached?
I just wonder, if it's possible to initialize and use DX11 or DX9 for offscreen rendering only - meaning with no attached window.
My intention is to do some GPU benchmarking before opening actual window. In this benchmarking some test scene is…

GPUquant
- 517
- 3
- 13
15
votes
3 answers
How to extract euler angles from transformation matrix?
I have a simple realisation of entity/component game engine.
Transform component have methods to set local position, local rotation, global position and global rotation.
If transform is being set new global position, then local position also…
user27061
15
votes
3 answers
Are .sln / .csproj usefull for sharing the Unity project?
We are experiencing some problems with GIT and Unity. It occurs pretty often that file .sln / .csproj give us some trouble, so after searching for a while on the web I've found that maybe this files are not necessary to push. Someone have any…

Max
- 483
- 1
- 5
- 15
15
votes
5 answers
Why is chunk size often a power of two?
There are many Minecraft clones out there and I am working on my own implementation. A principle of terrain rendering is tiling the whole world in fixed size chunks to reduce the effort of localized changes.
In Minecraft the chunk size is 16 x 16 x…

danijar
- 5,731
- 9
- 40
- 62
15
votes
8 answers
How to generate Spritefonts for monogame
I just want to render some text to the screen using:
monogame 3.0
MS Visual Studio 2010 C# Express
In XNA, you were able to add fonts to the content pipeline quite easily. But this doesn't seem to be the case in monogame. Loading TTF Files using…

Khôi
- 253
- 1
- 2
- 5
15
votes
3 answers
How do I scale down pixel art?
There are plenty of algorithms to scale up pixel art. (I prefer hqx, personally.) But are there any notable algorithms to scale it down? My game is designed to run at a resolution of 1280x720, but if it is played at a lower resolution I still want…

Michael Stum
- 2,543
- 5
- 30
- 41
15
votes
6 answers
Should developers make their games easier with new versions?
It seems that the game Angry Birds is becoming gradually easier with new versions. Maybe so people get the illusion of progress and satisfaction of breaking new records?
I would like to know if gradual small modifications of games to enhance the…

Gil Kalai
- 203
- 1
- 8
15
votes
2 answers
Toon/cel shading with variable line width?
I see a few broad approaches out there to doing cel shading:
Duplication & enlargement of model with flipped normals (not an option for me)
Sobel filter / fragment shader approaches to edge detection
Stencil buffer approaches to edge…

Engineer
- 29,455
- 4
- 72
- 120
15
votes
2 answers
OpenGL ES 2.0: Setting up 2D Projection
This article describes in general, how to draw sharp OpenGL 2D graphics, using fixed function pipeline.
http://basic4gl.wikispaces.com/2D+Drawing+in+OpenGL
Because OpenGL ES 2.0 has some ES 1.x functions not available (such as: glOrtho()), their…

Bunkai.Satori
- 2,743
- 9
- 36
- 47
15
votes
2 answers
What is "game state?"
The terminology "game state" is a bit vague to me. Could anybody clarify what is included in the game state, please?
Is it a state of all the variables and objects within the game at particular moment?

Bunkai.Satori
- 2,743
- 9
- 36
- 47
15
votes
3 answers
How do I handle moving platforms in a platform game?
I don't want to use box2d or anything, I just want simple moving platforms (up-down, left-right, diagonal and circular paths). My question is to handle the update order / control hierarchy so that the player stays fixed to the platform solidly,…

Iain
- 6,518
- 3
- 33
- 46
15
votes
1 answer
Creating a 3D map for XNA?
Is anyone aware of a nice 3D map tutorial (how to import and use the map) using XNA without any engine but not limited to an external application (like Tiled for 2D maps) ?
I did a search arund here but have'nt found anything towards xna 3d maps…

Guapo
- 369
- 4
- 10
15
votes
5 answers
How much longer should I support iPhone 3G?
I'm in the process of developing and releasing an iOS game, and have found that it just won't run on an iPhone 3G (don't even ask about a 2G) for many reasons. Primarily, the number of sprites and sounds needed for each level continually cause low…

jtalarico
- 253
- 1
- 6
15
votes
3 answers
Where to attach global scripts in Unity?
As far as Iknow in Unity, every script must be attached to an object. But what is the case with global scripts? For example in a tetris-like game to which object should I attach the element spawner and mover scripts? Or should a the element handle…

nosferat
- 812
- 2
- 11
- 24
15
votes
3 answers
Get angle in radians given a point on a circle
I'm working on a dial that rotates around a circle.
This dial should lets you mousemove anywhere in a circle to adjust the position of the dial to a point on the circle with the same angle as the click. For example, from the dial above if you…

editor
- 253
- 1
- 2
- 6