All Questions
Tagged with javascript opengl
11 questions
21
votes
2
answers
8k
views
What is a "normal" in game development
I'm new in Game development and probably this is a silly question.
I had a look online but haven't found a clear answer, I did it bit quick but enough to evaluate that this is a confusing topic ...
4
votes
2
answers
709
views
Why use sprite tile maps on the GPU in WebGL?
I'm trying to figure out the best way of rendering my layered tiled maps with WebGL, and have come across this tutorial several times: https://blog.tojicode.com/2012/07/sprite-tile-maps-on-gpu.html
...
0
votes
0
answers
897
views
For drawing many layered 2D tiles, should one use the painter's algorithm, or Z-buffering?
Sorry if this question doesn't make sense, I'm still very new to WebGL / OpenGL.
Basically, I'm trying to draw a tilemap similar to the one in Stardew Valley. Here's a screenshot from that game: https:...
2
votes
1
answer
60
views
UnrealEngine4 "backwards compatilibility": Can I view a site that uses Unreal Engine4 on a very old laptop and still see in high definition?
Backwards compatible?
The project:
I want to render a high definition model on my personal website such that it'll be rendered in the highest definition possible on any device, from a 20-year-old ...
1
vote
1
answer
1k
views
Unpacking Sprite Sheet Into 2D Texture Array
I am using WebGL 2. A tag for it does not exist but it should.
I have a 10x10 sprite sheet of squares that are 16x16 pixels in size (all in one PNG image).
I'd like to create a 2D texture array out ...
0
votes
1
answer
834
views
Reset Camera view - webgl
I have camera rotating by dragging mouse.
Im trying to add reset button that restart the scene to initial view.
The rotating camera works as expected but I can't figure out how to reset it.
The ...
0
votes
1
answer
466
views
Default color for 3D scene
I have webgl 3D scene with background image and few shapes with textures.
I want to add some lines and other shapes and apply on them default color which not affect the shapes with textures.
How can I ...
0
votes
1
answer
1k
views
orbit object around another object
I am building 3D solar system containing (sun > earth > moon).
I have difficult to add the part which the moon rotate around earth.
I separated between "moon" and ...
1
vote
0
answers
530
views
rotate 3D sphere around itself - webGL
I'm trying to build 3D solar system with webGL.
I have all the stars moving in a circle around the sun as sholud be, and I want them also to spin around their own Y axis.
How can I add it?
I tried :
...
0
votes
1
answer
427
views
WebGL wrong scaling of rectangle
I'm working with this tutorial http://www.html5rocks.com/en/tutorials/webgl/webgl_transforms/
and my result is, that the rectangle moves in the direction of it's scaling values, and also scales at ...
1
vote
1
answer
1k
views
WebGL immediate mode
I know that WebGL is based on OpenGL ES 2.0 and that glBegin and glEnd have been removed and replaced with vertex buffer objects....