Skip to content Skip to sidebar Skip to footer
Showing posts with the label Webgl

Export From Shadertoy To Three.js

I am making my first steps coding. I made some courses on internet, then I played with some three.j… Read more Export From Shadertoy To Three.js

I'm Doing Something Wrong With Spotlights And Shadows In Three.js

I have a really simple scene which has one .dae mesh in it, and a 7000*7000 plane underneath the me… Read more I'm Doing Something Wrong With Spotlights And Shadows In Three.js

Windows-specific Issue When Rendering Webgl... Attribute Set To Zero?

I'm running into a hard-to-debug issue using WebGL. I was implementing a WebGL backend for the… Read more Windows-specific Issue When Rendering Webgl... Attribute Set To Zero?

How To Use Multiple Textures In Webgl?

I wanted to use 6 different textures on a cube, one per side, but can't find the mistake. Here&… Read more How To Use Multiple Textures In Webgl?

Performance Drops When Trying To Reset Whole Scene With Three.js

In my current project Im using Threejs for buildin a level with meshes. All the graphical stuff wit… Read more Performance Drops When Trying To Reset Whole Scene With Three.js

An Error When Try To Use Mipmaping In Three.js

I'm trying to use mipmaps generation in three.js textures. When creating a texture I assign an … Read more An Error When Try To Use Mipmaping In Three.js

Webgl Colors And Alpha

I have a problem with colors and alpha in webgl. A part of my JavaScript-Program: gl.clearColor(0.0… Read more Webgl Colors And Alpha

Webgl - Reading Pixel Data From Render Buffer

Is there a way to get the raw pixel data from a WebGL render buffer or frame buffer that is off scr… Read more Webgl - Reading Pixel Data From Render Buffer

Blend Two Canvases Onto One With Webgl

What I'm trying to do is blend two canvases onto a single canvas for a drawing app I am creatin… Read more Blend Two Canvases Onto One With Webgl

Return Function In Javascript And How It Works?

I'm trying to optimize and existing piece of WebGl JavaScript code, and the bottleneck of the c… Read more Return Function In Javascript And How It Works?

Debugging Webgl In Chrome

I have a webgl page running in chrome. Every now and then chrome will report the following error. [… Read more Debugging Webgl In Chrome

Three.js/webgl And 2d Canvas -- Passing Getimagedata() Array Into Three.datatexture()

I'm new to WebGL (and 3D graphics in general) and am using three.js. What I want to do is creat… Read more Three.js/webgl And 2d Canvas -- Passing Getimagedata() Array Into Three.datatexture()

Truly Rotate Center Of Equilateral Triangle In Fabric.js

Using Fabric.js, I'm having trouble truly rotating a triangle around its center point, or at le… Read more Truly Rotate Center Of Equilateral Triangle In Fabric.js

Webglcontextcreationerror Event: Is It Triggered Synchronously?

Is the webglcontextcreationerror event triggered synchronously or asynchronously? For example does … Read more Webglcontextcreationerror Event: Is It Triggered Synchronously?

Texture Is Not Generated Valid (probably)

My app for volume ray casting in WebGL is almost done. But i have found a problem. I have to simul… Read more Texture Is Not Generated Valid (probably)

Shadow Map Appearing On Wrong Place

I'm trying to make use of the built-in shadow map plugin in three.js. After initial difficultie… Read more Shadow Map Appearing On Wrong Place

Why Is The Webgl Instancing Extension Only Drawing One Triangle Instead Of Two?

I'm trying to use instancing with WebGL based on this guide. I've tried to create a simple … Read more Why Is The Webgl Instancing Extension Only Drawing One Triangle Instead Of Two?

Custom Shader - Three.js

I am trying to use a custom shader with Three.js. I tried to do it like the many examples, but it d… Read more Custom Shader - Three.js

Debug Glsl Code In Webgl

Is it possible to debug GLSL code or print the variable values from within the glsl code while usin… Read more Debug Glsl Code In Webgl

Custom Shader Material Taking Forever To Initialize?

I've been working on a raymarched project in three.js for a little over a year now and as the c… Read more Custom Shader Material Taking Forever To Initialize?