All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
1answer
17 views

Using gl-transitions in a simple html page

How can I use https://gl-transitions.com/ shaders in a static HTML page? I need a simple example for animating two images.
0
votes
1answer
17 views

How Do I change the color of webgl points?

This is the code I used to try to change the color of WebGL points: I want to change the color of WebGL points when a user clicks the body element. And FYI the shaders are compiling correctly. The ...
0
votes
0answers
32 views

How To Set SVG Image In WebGL To Be Used In Javascript?

I'm using the source code in https://codepen.io/at80/pen/tqdmv I want to use the SVG image in place of the objects being animated. Can you please help me to figure out how can I set the SVG image in ...
1
vote
0answers
16 views

Why is rendering non - deterministic when using expo-gl and react-navigation/native-stack libraries together in React Native?

I'm developing an implementation of Conway's Game of Life using React Native through Expo CLI, which is my first attempt at an RN app. The app's main screen includes a GLView component, onto which a ...
0
votes
1answer
45 views

How to add a displacement map to a point material in ThreeJS?

I'm new to ThreeJS and trying to create something like asteroids with textures made of particles (something like from this website https://staratlas.com/). Unfortunately, when I tried to apply a ...
0
votes
0answers
53 views

I don't mean to ask you to do everything, but please how do I acheive this effects? How is it done? [closed]

First of all, it is just a project for my portfolio, I don't mean to ask you guys to do the whole coding for me, far from that, but as a beginer in Three.js, I want an idea on how they were able to ...
0
votes
0answers
65 views

How to set texel invisible depending on a texture from another object

Introduction I want to be able to create a sort of fog of war for my app using shaders. I feel that I might be close, but I can't figure out how to make it work… (maybe I don’t have the right approach ...
2
votes
2answers
73 views

WebGL textures from YouTube video frames

I'm using the technique described here (code, demo) for using video frames as WebGL textures, and the simple scene (just showing the image in 2D, rather than a 3D rotating cube) from here. The goal is ...
-2
votes
0answers
51 views

Why does the WebGL shader gives me a syntax error?

I just started learning Three.js and am trying to make my first project, but the shader gives me a silly Uncaught SyntaxError: Unexpected token '{' I don't know why. Everything looks good, I think. So ...
1
vote
1answer
19 views

XBIM Web Viewer - Calculate HTML position from WCS

I'm trying to put an overlay over the top face of the bounding box of selected object. What I'm doing is: 1- Get the vertices of the bounding box top face in WCS, from center point 2- Translate each ...
-1
votes
0answers
16 views

The material should ignore everything that goes behind it, even if it’s semi-transparent

We need to gain the following behavior of the threejs material: The material should ignore everything that goes behind it, even if it’s semi-transparent. The problem needs to be solved: by mixing ...
4
votes
1answer
43 views

Canvas added to YouTube is not visible

I'm following the WebGL tutorial from MDN (code, demo (black rectangle)) to create a WebGL canvas. The goal is a userscript (with WebGL shaders, i.e. video effects) for YouTube. So I opened a YouTube ...
0
votes
0answers
34 views

What's the purpose of `gl.deleteShader` in WebGL?

It's a sensible function in OpenGL ES, where such objects are referenced by unsigned integers. But WebGL is a JavaScript binding and it's by direct object reference: gl.createShader returns a ...
0
votes
0answers
33 views

How to simulate click on canvas with webgl by coordinates?

I want to simulate clicks on https://www.thesnidewalk.com/ For example simulate clicks on "walk" button at start menu. I tried this, got coordinates on button and made mouse event and ...
0
votes
0answers
57 views

How to dynamically alternate between a canvas background color and an image in JS?

I have a webGL program where I create lights in my scene stored in an array. When I call render, I'm trying to make the background be black when there are no lights in the array and have an image ...

15 30 50 per page
1
2 3 4 5
181