1
vote
0answers
42 views

Is there an out-of-the-box way to create a custom non-convex polygon in three.js?

Does Three.js offer an out-of-the-box way to create custom non-convex polygon, or do I have to use THREE.Geometry and set faces manually? I'm guessing that ShapeGeometry has something to do with this, ...
0
votes
1answer
105 views

Specific Position in THREE.js

I want to ask, how to find out the terrain height at specific points in three.js as I searched a lot but nothing find suitable or working according to my situation. Actually I want to move the car on ...
0
votes
0answers
168 views

What are pros and cons using easelJS library? [closed]

I am new to browser-based game development.I want to build a game that would be hosted on local server or on a system.Not to be on internet..currently.. I am completely new to field of game ...
2
votes
1answer
116 views

mat3x4 in webGL shaders

I am porting the IQM bone animation format to Javascript and have run into a problem... The vertex shader is failing to compile and the only error message I get out is 'mat3x4' : syntax error on the ...
-4
votes
2answers
156 views

enemy shooting towards FPS [closed]

WELL first of all I want you to see my game (its deployed on heroku cloud) : http://still-escarpment-3701.herokuapp.com (It takes almost 10 sec to load so please wait for couple of sec) I have ...
1
vote
0answers
267 views

shader-based particle systems

I have a classic particle system where each particle is represented by a quad and, each time step, I move each particle. My target is webGL which means I don't have instancing, attribute divisors nor ...
1
vote
1answer
143 views

WebGL: Texture appears as black

I have a simple WebGL canvas, where I'm attempting to render a texture on a square. When working with textures as local files, all is fine. But when I try to load a texture from the web, I get a black ...
-1
votes
1answer
371 views

Javascript A* path finding ENEMY MOVEMENT in 3D environment [closed]

iam trying to implement pathfinding algorithm using PATHFINDING.JS in 3D world using webgl. iam have made a matrix of 200x200. and placed my enemy(swat) in it .iam confused in implmenting the ...
2
votes
2answers
1k views

Rotate sphere in Javascript / three.js while moving along x/z plane

I have a sphere/ball in three.js which I want to "roll" around on the x/z plane. For the z axis I could simply do this no matter what the current x and y rotation is: sphere.roll_z = ...
4
votes
3answers
583 views

List of 3D libraries based on WebGL

Is there a up-to-date list of WebGL libraries or articals with comparison? Until now I heard only tree.js and GLGE.
-4
votes
1answer
141 views

Beginner looking for advice on game development [closed]

Are there any beginner libraries with full tutorials for starting with WebGL and Javascript or C++(and whatever library on MinGW)?
0
votes
2answers
318 views

How is JS source protected in Chrome games?

I was playing a space arcade shooter https://moonbreakers.com/ and tried to see some of the JS and shader code. However, I was unable to find anything but some server communication code. Game code is ...
1
vote
1answer
410 views

Problem when animating MD5 model (GPU Skinning)

I'm trying to implement a GPU skinning version of the md5mesh.js by @tojiro (demo with CPU skinning) in WebGL (live demo of the project here, use WASD to move the camera around). The main concept is ...
2
votes
2answers
716 views

Why is my quaternion camera rotating around strange axes?

I can't get it to work for the life of me. Its rotating the camera in the global coordinate system, or some other random coordinate system, not the camera local coordinate system. WASDEC work ...
1
vote
1answer
143 views

How do I draw a multi-object mesh at once?

This is a very elementary question. At the moment I am drawing lots of faces separately by setting a location uniform separately for each one of them. This is very slow. As I understand it, the ...

1 2
15 30 50 per page