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

No Texture Bound To The Unit 0

I am currently facing an error that I cannot seem to figure out. In chrome I am receiving: GL ERRO… Read more No Texture Bound To The Unit 0

Dragging And Clicking Objects With Controls

Right now I have a scene with two spheres and a point light at (0,0,0). The spheres rotate around t… Read more Dragging And Clicking Objects With Controls

Render Html In Canvas/webgl

Is it possible to render HTML elements in Canvas or WebGL? (similar to how one can draw a video ele… Read more Render Html In Canvas/webgl

User Uploaded Textures In Three.js

Here you will find a jsFiddle adaptation of the problem. I would like to create a 3d web applicatio… Read more User Uploaded Textures In Three.js

Texture Not Being Rendered By Objmtlloader

I have a 3d model with texture that comes from Blender in OBJ/MTL/JPG format. But I cannot get this… Read more Texture Not Being Rendered By Objmtlloader

Using A Different Vertex And Fragment Shader For Each Object In Webgl

I have a scene with multiple objects in webgl. For each object I want to use a different vertex and… Read more Using A Different Vertex And Fragment Shader For Each Object 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?

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()

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?

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

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

Do I Have To Create Separate Buffers Per Webgl Program?

Do I have to create separate webglbuffers if I have two programs or can I use the same ones in each… Read more Do I Have To Create Separate Buffers Per Webgl Program?

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?

For Loops Are Disturbing Rendering

I have some pretty simple 3D objects (basically THREE.Sphere which is a parent of 1-30 other THREE.… Read more For Loops Are Disturbing Rendering

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

How To Load A Text File In Javascript?

I'm creating a simple WebGL project and need a way to load in models. I decided to use OBJ form… Read more How To Load A Text File In Javascript?

HTML5 Video Draw Into Canvas2D Issue On Android Chrome

I am developing VR html5 page in javascript (no jQuery or other frameworks) that uses WebGL to rend… Read more HTML5 Video Draw Into Canvas2D Issue On Android Chrome

Rendering WebGL Image In Headless Chrome Without A GPU

I'm trying to export an image rendered with WebGL on a linux server without a GPU. To do this I… Read more Rendering WebGL Image In Headless Chrome Without A GPU

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?

Issue When Rendering A Torus In WebGL

I'm writing a program that is supposed to draw 3D parametric shapes in webgl. The code I have c… Read more Issue When Rendering A Torus In WebGL