6,795
questions
0
votes
0
answers
14
views
three.js renderer make white crack line, antialias + logarithmicDepthBuffer option
Three.js renderer make white crack line, antialias + logarithmicDepthBuffer option like image below.
enter image description here
enter image description here
I checked the glb model with gltf-viewer(...
0
votes
0
answers
18
views
How to switch Safari WebGL rendering engine from Metal to OpenGL
Following up on a previous question, I have a WebGL application that suffers serious performance issues under Chrome v127 until I set a flag to switch the backend WebGL renderer from Metal/ANGLE to ...
0
votes
1
answer
34
views
Multiply 2 sources, WebGlLayer (openlayers)
I have been struggling with this whole night. All I want to do is multiply two rasters together. I know I can do that with RasterSource, but I need better performance. When I create a layer (webgl) ...
0
votes
0
answers
30
views
Fluid cursor mouse movement in reactjs
how can we create a fluid mouse cursor movement like we have in www.buttermax.net in R3F
I tried to create using https://github.com/whatisjery/react-fluid-distortion/
but there are 2 thing, there is ...
0
votes
0
answers
21
views
How to render threejs AR applications like VR
I created threejs application , embedded VR button , now the scene is rendered with stereoscopic images. I deployed the application and accessed same on my mobile , inserted my mobile into google ...
0
votes
0
answers
30
views
WebGL Support - Switch Option Control Not Switching Color
I am trying to get the menu box on this code to change color using webgl. For some reason I cannot get the color to change properly. The html, initShaders.js, and utility.js is already created.
Please ...
-1
votes
0
answers
26
views
How to best handle the barycentric points of shared vertices in an arbitrary polygon?
I have the barycentric coordinates of an irregular sided polygon. I would like to create an effect such that I can highlight the unique vertices of the polygon or the shared vertices. For example if ...
-1
votes
0
answers
22
views
In clip space, the Cartesian coordinates for -1, 0, and 1 are non-linear
I try to create ray and check is intersect with a triangle
I do some transformations:
let ndc_near = Vector4::new(x_ndc, y_ndc, -1.0, 1.0);
let ndc_far = Vector4::new(x_ndc, y_ndc, 1.0,...
0
votes
0
answers
44
views
Headless chrome instance inside a livekit docker container not able to pick up on underlying GPU
I have been trying to enable WEBGL support on Livekit Egress and use it to stream webGL games.
Here's the Livekit Egress repo
The problem I'm facing is that the headless instance that egress is using ...
1
vote
1
answer
41
views
Why does GLSL assume missing function would return a float?
Consider the simple GLSL ES 1.0 and 3.0 code
int i = f();
When f() is not defined, this produces 2 errors:
ERROR: 0:41: 'f' : no matching overloaded function found
ERROR: 0:41: '=' : cannot convert ...
1
vote
0
answers
18
views
Is a distance based approach better than a Barycentric based approach to outlining a polygon with many vertices in pixi.js?
I'm trying to apply a fragment shader to a Mesh within pixi.js. The calculation of the geometry of the shape is correct and the application of a shader to change the color of the entire shape works ...
1
vote
1
answer
60
views
Copying image from webgl to 2D canvas loses display-P3 color profile in Safari
I'm having a strange issue with Safari where moving an image from webgl to 2d doesn't respect the display-P3 color profile. It works fine in Chrome.
Any help would be greatly appreciated.
Here's the ...
0
votes
0
answers
33
views
Unity 2022.3.19 Webgl iOS RAM refreshes
Environment: Unity 2022.3.19, WebGL, mobile Safari. The game consumes a significant amount of RAM on iOS.
The main issue is that the game randomly reloads when switching scenes. I suspect this might ...
1
vote
1
answer
39
views
WebSocket connection error on Unity WebGL
I created a Spring WebSocket server.
I want to real-time connection with Unity webgl.
It works well when I connect with postman.
It works well on Unity Game Scene.
async void Start()
{
Debug....
0
votes
2
answers
74
views
requestAnimationFrame exceeds screen refresh rate
i use requestAnimationFrame in a js webgl project where i change the pixel color from black to white on each frame by accessing a texture that contains the content of the last frame ) but the ...