All Questions

Tagged with
Filter by
Sorted by
Tagged with
-3
votes
0answers
29 views

how do i move the wepon with the camera [closed]

How To Move The Gun With The Camera I Already Have A camera,renderer,scene,lock function and wepon object const controls = new PointerLockControls(camera, document.body); var movingSpeed = 0.1; ...
0
votes
1answer
21 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
18 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
1answer
22 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
vote
1answer
55 views

Rotating 2d in WebGL

How to rotate and scale 2d objects in WebGL? I think we will make changes in the "vPostion" part, but I could not set it fully. javascript: function render() { tMatrix = mat4(); ...
0
votes
0answers
24 views

I want to use mixing HTML and three.js, but if I insert URL, all the scenes don't work

I want to mix HTML and three.js, but if I insert URL, all the scenes don't work. .img{ width: 300px; height: 300px; background-color: chartreuse; background:url('../static/img/Fabio.jpg'); } enter ...
0
votes
1answer
211 views

Can Not Overlay div Over Full Screen Canvas for Unity WebGL Build

I want to overlay a div in front of full-screen Unity - Canvas. I can overlay it when it is not full screen but can not figure out how to overlay div front of Unity Canvas while canvas is in full-...
-1
votes
1answer
30 views

three.js component wont be displayed in my html page

I've been trying to integrate three.js to my html project [19:48] html code for the canvas js code I get this error :(( and the cube is not displayed Please help me out
0
votes
0answers
38 views

Do-While Loop Not Working | TimeOut might be the problem HTML and JS

I am trying to create a growing/shrinking effect with WebGL. I approached this problem by using setTimeout(). I incorporated a do-while loop so that this process can repeat However, the growing/...
0
votes
1answer
67 views

In a threeJS canvas with an animated scroll function, how do I prevent scrolling up beyond the top of the page?

I'm implementing a smooth scroll in Three.js based on this tutorial, it amounts to the following scroll listener: window.addEventListener("wheel", onMouseWheel); let y = 0; let pos = 0; ...
1
vote
1answer
302 views

Resize unity webgl canvas non-responsive

I am trying to resize the Unity's WebGL canvas to fit to the aspect ratio of browser window. I do not want it to be responsive, just resize to fit in the window. How do I achieve this in css/html? I ...
0
votes
0answers
97 views

How to change texture's color in webGL?

I am learning webGL, and now I can change the color of the 3D model on webGL, but the effect is not real, because my 3D model has a texture map, I can’t find the relevant technology that can change ...
0
votes
0answers
62 views

Bloom or some other post-processing (filter) on a webpage?

Is it possible to apply post-processing effects, such as bloom or chromatic aberration, over a whole web page? I know that we can write shaders for a canvas element, but would they take effect on ...
4
votes
0answers
101 views

html color blending composite

the title of my question includes the terms "blending" and "composite", but I don't understand the difference between the two. Here are two canvas D and C. the rgba of D is: ( ...

15 30 50 per page
1
2 3 4 5
34