Webgl Questions
Ad
Why is the WebGL instancing extension only drawing one triangle instead of two?
I'm trying to use instancing with webgl based on
Javascript arrays not working in some instances for WebGL
I'm working on a obj file reader for webgl and i'm having problems rendering the read triangles. when i try to draw the triangles i get this
WebGL textures not working on some textures
I am trying to follow a tutorial on webgl and i am getting weird behavior with textures. i use this code to create the texture:
Is there a way to have two images on a cube?
I'm trying to have two external images as textures for my cube. when i use one image, it works perfectly and my cube is rendered but i'm having
How to get the 2d dimensions of the object being drawn for hit test on webgl after model view transform
I follow webgl fundamentals and draw 2d object and use matrices to scale vertices and render. before render i pass
Texture Bleeding despite disable mipmaping and half pixel correction
I've applied two necessary steps given in this answer
Trouble rendering a 2D SVG in Three.js & WebGL
I have a threejs scene (below, or here on codepen) with some
Quality differences between HTML, Canvas and WebGL
I want to draw an image in webgl, but downscaled. when i don't scale it, then the image has a good quality, but if i scale it down then it has
WebGL: Why I get the elongated rectangle instead of a square?
Webgl. i try to draw a point by the webgl programming guide book
Is passing just the length of the sides of a triangle, sufficient to draw a triangle in WebGL?
The question may not be clear, but i am gonna clear it here. let's consider an array which have th co-ordinates of a triangle in clip space :
Ad
Are WebGL objects garbage collected?
In javascript memory that i allocated (e.g. an arraybuffer) gets freed up when i don't have any reference to it anymore by the gc as i understood
Incorrect vertices in 3d cylinder
Right now, i'm trying to draw a 3d cylinder shape in webgl, where the top is thinner than the bottom. the cylinder is also uncapped. the cylinder
How to fix three.js loading more than 2 minutes and it's crashing
I'm creating a 3d game, and i just began. however, i quickly ran into a problem with the localhost get taking more than 2 minutes, and after like
(WebGL) How to add vertices to an already initialized vertex buffer?
I am following webgl tutorials. i have an initialized vertex buffer with buffer data's purpose is set to gl.static_draw. as far as i
How to get the 2d dimensions of the object being drawn for hit test on canvas 2d after canvas transformations?
I draw simple shapes on 2d canvas, while applying transformations on shapes like so: const rect = ({ x, y, width, height })
Is total order guaranteed on WebGL calls?
By reading this answer i now know that webgl always runs on a separate process and its calls
Combining vertex buffers
I have an issue, the problem is that vertex arrays are stored separately in object file, so they look like that (not a real data):
html2canvas captures everything except the content of an inner canvas
I've got a map rendered by means of leaflet. i need to make a screenshot of that map by using html2canvas.
Create textures in javascript and WebGL and identify them in WebAssembly
I want to create some
samplerCube in struct cause GL_INVALID_OPERATION
I have the following code in glsl: // snippet 1, works well uniform vec4 udiffuse; uniform sampler2d udiffusemap; uniform vec4
Ad
Converting intBitsToFloat in GLSL and floatBitsToInt back in Javascript
I'm trying to encode an integer identifier in glsl 3.3 shader to a float output using intbitstofloat (i'm using highp output float
Unity API not pure php have problem to Post , How to solve it?
I am trying to post request using unity web request i created a pure php api for testing after that web developer created api for me to work on
WebGLSync is always UNSIGNALED
I'm trying to play around with webglsyncs and
smooth scroll and webgl image effect like this site
I want to create smooth scroll and webgl effect on images like this site:
Hosting Unity WebGL Game using Laravel Framework
How do i put my unity game built in webgl into laravel? fyi, unity webgl, when built gives me these files: - build (folder) - templatedata
Draw the ouput of a webglearth canvas to a 2d canvas
I am trying to copy the output of a canvas running webglearth
Animating a large number of simple shapes
I have a rendering system currently written in canvas. it's hitting performance issues and i'm hoping webgl can help with some of them. basically
Return string from UnityWebGL jslib
I want use jslib to get url parameter code like this jslib geturl: function(){ var s ="";
triangle not being shown in basic webgl program
I am trying to create a simple webgl program that draws a triangle with some gradient. here us the program. first, i created
Canvas added to YouTube is not visible
I'm following
Problems by coloring WebGL 3D Object
I'm trying to implement a webgl app according to the documentation in the mozilla docs. my code generates a sphere with is shaped by a
Ad
What is the difference between vec3(1.,1.,1.) and (1.,1.,1.)
My code compiled without errors, but did not work until i added the vec3 in front of the brackets. the contents were vec3 components, so i would
Proper pattern for merging curved lines into one geometry?
I've got thousands of sparsely arranged curved lines (made with cubicbeziercurve3) being merged into one geometry for obvious performance
OpenGL rotate car towards circular path
I have a problem regarding the "steering" of an object towards a circular path. i have written a small animation where a 2d car
fancybox html inside webgl earth javascript
I have a globe with markers made using webgl earth (http://www.webglearth.org/) and i am
Javascript and html, UI construction
First of all, thats what i need to do so i started to get a value for a;
FRAMEBUFFER_INCOMPLETE_ATTACHMENT only happens on Android w/ Firefox
I have some javascript/webgl code that works on every browser i've tried, except for the mobile version of firefox running on android. the problem
How to use fragment shader from glslsandbox.com
I want experiment with shadermaterial material from three.js. but i don't know opengl shading language.when i use fragment shader code in above
Reading out an FBO with Premultiplied Alpha
I am drawing brush strokes to an framebuffer object using the method described in the answer of this question:
Ad
Blog Categories
Ad