SurvivalMachine
  • Member for 11 years, 4 months
  • Last seen more than a month ago
1 answers
2 votes
4k views
How to Initialize OpenGL without 3rd party libraries?
Accepted answer
6 votes

On Windows, the process goes like this: Create a Win32 window normally (code not included, ask if you need it) Create a dummy GL context Query the available pixel formats Create the actual GL context ...

View answer
2 answers
0 votes
1k views
What's the difference between Gameplay Programming and Graphic Programming?
Accepted answer
4 votes

Graphics programmers do tasks like the following: Implement high-level effects like bloom, chromatic aberration or object outlines Write low-level code to handle API (D3D, GL etc.) objects for ...

View answer
2 answers
3 votes
6k views
Getting Sprites from a SpriteSheet with Rows and Columns
4 votes

Your y-coordinate is always 0, so only the first row is used. You need to change this line: SourceRect = new Rectangle(currentFrame * spriteWidth, 0, spriteWidth, spriteHeight); into something like ...

View answer
3 answers
1 votes
824 views
What should I use to handle input?
Accepted answer
4 votes

SDL and SFML are cross-platform and widely used.

View answer
6 answers
27 votes
16k views
What 3D level development tools are available to indie developers?
4 votes

DeleD is a level editor for Windows. It saves to its own format and COLLADA so it's easy to read the levels to your own game.

View answer
11 answers
15 votes
2k views
Most Needed Open Source Project
4 votes

Graphics driver develpers. Without working graphics drivers other game-related projects are irrelevant. AMD and NVIDIA actually do make usable drivers, but I'm talking about open-source drivers. Mesa ...

View answer
2 answers
-2 votes
134 views
What is OpenGL? I am new
3 votes

OpenGL is a graphics library. You can use it to draw shapes like triangles, quads etc. OpenGL is not a game engine. It can be used as a part of a game engine. If you were to program a game, you ...

View answer
1 answers
1 votes
3k views
How Apple Metal API distinguishes uniforms from vertices buffers?
Accepted answer
3 votes

They are defined in vertex shader signature, eg. vertex ColorInOut unlit_vertex(device vertex_t* vertex_array [[ buffer(0) ]], constant uniforms_t& uniforms [[ buffer(...

View answer
1 answers
0 votes
251 views
Texture doesn't scale and repeat
Accepted answer
3 votes

Your start method is named wrong. The 's' should be capitalized.

View answer
1 answers
1 votes
65 views
Do I have to use vertexArray in opengl
3 votes

If you use OpenGL 3.2, it's required.

View answer
1 answers
2 votes
2k views
SSAO looks wrong
Accepted answer
3 votes

Ok, I got it working. My depth writing shader now looks like this: void main() { float linearDepth = -vPosition.z * uLinearDepthConstant; outDepthNormal = vec4( linearDepth, normalize( ...

View answer
5 answers
2 votes
12k views
OpenGL Insanely Slow
3 votes

You should not need to use glFlush(). Also it's advisable to use vertex arrays or VBOs instead of immediate mode, though it probably won't make a difference in a program as small as this.

View answer
1 answers
0 votes
108 views
Unity2D: Muting audio Clip problems
Accepted answer
2 votes

Consider this line: gameObject.GetComponent<Gamestartsound>().volume = 0; Gamestartsound is not a component, that's why it doesn't compile. I'd fix this by adding an AudioSourceComponent into ...

View answer
1 answers
1 votes
1k views
Java - Shooting Towards Mouse Click
2 votes

I think you have a copy/paste bug here: xPos += xVelocity; xPos += yVelocity; The last line should probably be yPos += yVelocity;

View answer
2 answers
1 votes
111 views
OpenGL: Properly attach Texture
2 votes

Maybe there's more problems, but at least this looks incorrect: gl.glTexCoord2f(2f, 1.0f); Your texture is repeated horizontally 2 times because its wrap mode is repeat and the coordinates you set ...

View answer
1 answers
0 votes
283 views
C++/SDL Snake Game: Drawing Tail Crashes Game
Accepted answer
2 votes

You are loading part.png and creating the surface for each tail part in a loop. That's incredibly slow. Instead you should load it once, at the program initialization and just use it in drawing. You ...

View answer
1 answers
0 votes
470 views
Making a house in jogl java eclipse?
2 votes

You should model the house in a 3D modeller like Blender and export it into .obj and read it into your application. Listing vertices for complex objects is cumbersome and listing them here as an ...

View answer
1 answers
0 votes
1k views
How do I properly import an fbx 3D model into Unity3D?
Accepted answer
2 votes

You probably don't need .obj if you want to use .fbx. _D usually indicates a diffuse texture, _N is a normal map. You must create a new material and assign those textures into it.

View answer
1 answers
2 votes
497 views
problem adding bumpmap to textured gluSphere in JOGL
2 votes

For widely used tangent-space normal mapping you'll need to generate tangent-space transform for the sphere and do the lighting calculation in glsl. You can bind the normal map texture into a ...

View answer
3 answers
11 votes
7k views
Animation in OpenGL using 3D Models
2 votes

Blender 2.60 has fixed COLLADA animation support, it was more or less broken in earlier versions. However, if you haven't loaded any model formats yet in your own code, I'd suggest learning to load ....

View answer
3 answers
6 votes
4k views
What are the big advantages of shaders ? What is doable with them, and what can't be done without them?
2 votes

Just some examples that are hard to do without shaders: Normal mapping Parallax mapping Cartoon rendering Bloom

View answer
1 answers
0 votes
327 views
Errors attempting to use Assimp in DirectX 12
Accepted answer
1 votes

You need to add assimp.lib into the list of linked libraries. In Visual Studio's project properties it's in Linker -> Input -> Additional Dependencies. Also add its directory to Additional Library ...

View answer
1 answers
0 votes
503 views
segmentation fault in glCreateBuffers
Accepted answer
1 votes

glCreateBuffers is an OpenGL 4.5 function but you are using OpenGL 2.0 context, you need to use glGenBuffers instead.

View answer
1 answers
2 votes
265 views
opengl - texture clamping not working
Accepted answer
1 votes

You are creating a 2D texture but you are setting clamping to 2D array texture. Replace this: glTexParameteri(GL_TEXTURE_2D_ARRAY, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameteri(...

View answer
1 answers
0 votes
707 views
Right click a location and move towards it (C# Monogame)
Accepted answer
1 votes

You could compare player's distance to the destination and if it's small enough, stop. So replace this line: if (pos == dest) with if (Vector2.Distance( pos, dest ) < 0.1f) // Adjust the value ...

View answer
1 answers
0 votes
42 views
Character keeps moving
Accepted answer
1 votes

I think this line: // and has stamina if (maxStamina > 0.0) Should be written like this: if (currentStamina > 0.0) because currentStaminadetermines if you can move or not. As for the ...

View answer
2 answers
0 votes
711 views
Irrlicht engine game wont compile on linux. Undefined refrences(opengl and xfree)
1 votes

You'll need to install development libraries for OpenGL and X11. You didn't state what distro you're using, but in Ubuntu OpenGL development library is in package libgl1-mesa-dev.

View answer
6 answers
5 votes
17k views
Gfx.WaitForPresent performance issue
1 votes

In the profiler capture it looks like SetPass and Triangles increase rapidly. Multiple cameras and render textures indeed can cause that because the scene has to be rendered multiple times.

View answer
1 answers
4 votes
1k views
Unity 5 - custom lighting model
1 votes

How is your surf defined? In addition to lighting shader, you must modify it for material properties. Here's a modified example that uses red color instead of texture from http://docs.unity3d.com/...

View answer
1 answers
5 votes
969 views
Imported Blender .fbx model appears transparent
1 votes

Hard to know without more details like shader parameters. Could be a problem with alpha channel of either the texture or vertex color's alpha.

View answer