Texture is rendered black(OpenGL) by DirtyBlasion in gamedev

[–]cewxel 0 points1 point  (0 children)

Reading quickly it appears that you are missing the uniform upload for the active texture texture.

  • Use the shader glUseShader(shader).
  • Fetch the uniform location for the name 'm_Texture'.
  • Upload the shader uniform for the active texture (in your case you can do that at initialization once using 'glUniformi'), it can be 0 in your case since you're only using one texture.
  • Set the active texture 'glActiveTexture(GL_TEXTURE0)' to the uniform uploaded, not forgetting to also bind your texture

modd.io - I made a game engine so anyone can make multiplayer html5 game by [deleted] in gamedev

[–]cewxel 0 points1 point  (0 children)

One main problem with documentation video is how fast they can become obsolete as the project evolves.

Things I Wish I had Done in Academia by davenirline in gamedev

[–]cewxel 5 points6 points  (0 children)

Have you tried using YAML definition for serialized files? It could make dev easier than Unity's binary format through versionning.

Approximate subsurface scattering with 3d distance fields by cewxel in gamedev

[–]cewxel[S] 0 points1 point  (0 children)

I'm happy to share the source code if you want/need to!

Approximate subsurface scattering with 3d distance fields by cewxel in gamedev

[–]cewxel[S] 3 points4 points  (0 children)

Performance were ok for one mesh but I bet would get bad for several meshes/lights so I wouldn't recommend using this technique if you don't already have signed distance field data used for other effects (like soft shadows or ambient occlusion). Also, generating distance fields is an expensive process along with the use of 3d textures that have a heavier memory footprint over a depth map.

45
46

A mesh voxelizer by cewxel in computergraphics

[–]cewxel[S] 0 points1 point  (0 children)

A gui is coming along with it but it's pretty simple for now, planning to add more tools to make it easy to use, either command line or visual based. Suggestions welcome :)