Questions tagged [webgl]

WebGL extends the capability of the HTML canvas element to allow it to render accelerated graphics in any compatible web browser. **DO NOT TAG QUESTIONS ABOUT 3D LIBRARIES (like THREE.js) WITH THIS TAG** unless the question is specifically about a WebGL API feature. **DO NOT TAG QUESTION ABOUT UNITY WEBGL WITH THIS TAG!!**

Filter by
Sorted by
Tagged with
0
votes
0answers
20 views

three.js on Android: will I need to run a local webserver in my android application?

I am working on a WebGL app developed with three.js. When I test this app on my computer, I need to run a local server as mentioned here. When I will run my three.js/WebGL app in a webview of my app, ...
0
votes
0answers
23 views

GL ERROR :GL_INVALID_OPERATION : glDrawArrays: attempt to access out of range vertices in attribute 1, three.js

This has had me beat for a while now. I'm making a game, and the main map is a model using the obj format. I load it like this: var objLoader = new THREE.OBJLoader(); objLoader.setPath('Assets/'); ...
0
votes
2answers
38 views

Text Rendering Problem with Distance Field in WebGL

I made this Distance Field example with Qt OpenGL 3.3: It works very good. I made it using this video tutorial: OpenGL 3D Game Tutorial 33: Distance Field Text Rendering I rewrote this example line ...
-1
votes
2answers
44 views

how to force a canvas size to real size of a window in pixels, disregarding the zoom factor of the browser?

I'm working on this website : sphere.mars2540.com. Is there any way in javascript or css to force the canvas size not to scale regarding the zoom factor of the page and to constantly correspond to the ...
0
votes
1answer
40 views

Pixi.js sometimes throws an error: WebGL unsupported in this browser

The site is constantly running on the terminal, and sometimes it gives the following error WebGL unsupported in this browser, use "pixi.js-legacy" for fallback canvas2d support. But when ...
-1
votes
0answers
15 views

Webgl build audio becomes disorted in ios devices [closed]

I developed a game using unity and taken webgl build.The game works fine in android browser.but audio becomes disorted or stretched in ios device browser. Can anyone say whats happening
0
votes
0answers
21 views

WebGL build audio distorted in safari browser

Hi guys I ve been trying to play my WebGL build on my iPad but audio is getting distorted asif it being played in half it's normal speed it works perfectly on android and windows browsers is there ...
0
votes
0answers
18 views

What are the use cases for WebGL 2's `texImage2D()` overloads?

I have two specific questions about WebGL 2's overloads added to texImage2D(). What is the purpose of WebGL 2 adding new overloads for texImage2D() that specify width, height and border for image/...
1
vote
1answer
25 views

threejs rendered model very small on screen

hey guys i am new to three js and i am currently trying to render a 3d model on my sccreen. however, the model i rendered is too small on the screen, i am trying to make it bigger. Currently the ...
0
votes
0answers
20 views

Clear three js Canvas after selecting another model to display?

Working on a react app which uses react-three-fiber to display OBJ files whenever a user selects a file component in the sidebar. The challenge is that whenever the user selects a file it is ...
0
votes
1answer
75 views

OpenGL: Problem with normals when drawing instanced mesh [closed]

I'm rendering a sphere with instanced drawing, while rotating the model-view-matrix around the Y axis. It looks ok at the beginning: But at another angle, things get worse: It looks to me like a ...
0
votes
0answers
16 views

About the lookat() function

This is the function: lookat(vec3 eye, vec3 at, vec3 up) As we all know, the up vector can be(0.0, 1.0, 0.0). It cannot be parallel to the observation vector n, or there will be somethingw wrong. My ...
-1
votes
0answers
31 views

Unity in ReactJS with WebGL won't display anything

I've been trying to include my unity game onto my webapp through different methods including: WebGL and the react-unity-webgl library (which is too poorly documented to work). All I need is for it to ...
0
votes
1answer
35 views

Translate shadertoy texture to webgl not behaving the same

I'm able to translate the code and run it, but it behaves diferrent from the orginal fork. https://www.shadertoy.com/view/llS3zc --orignal https://editor.p5js.org/jorgeavav/sketches/i9cd4lE7H - ...
1
vote
1answer
36 views

How to set ThreeJS origin point?

I'm new to ThreeJS. Currently, I wanna load a model from .obj file and use AxesHelperto measure its length. However, once I loaded the model I found the origin point of the model is different with the ...

15 30 50 per page
1
2 3 4 5
408