A downloadable tool

This is a first version of a 3D sound engine for Javascript, for people who write their JS games from scratch, or who need to add 3D sound support to their game engine. As panning is required for 3D sound,  but the JS commands for panning are not a living standard yet, this may not work on all browsers, but it does on most big browsers. Sounds can be loaded and positioned in 3D, then location and orientation of a game camera is fed to the dd__Update3DSounds() function. All functions and variables are uniquely prefixed ("dd__"), so it can be added to existing projects without name conflicts. However, some JS skills are required to get this working with your game, as well as a test server due to CORS restrictions.

Update: There is a new version, containing important bug-fixes. It comes with a coppercube test level. 6.3 MB, hope you don't mind.

Update2, latest version 6 contains also a keyboard handler that overrides the one of Coppercube and seems to work on itch.io

Update 3, as this seems to turn into my coppercube repository, I have added a third person perspective camera as a behavior extension for the coppercube webGL target. It features an "unstickable"  camera that prevents getting behind geometry, smoothed rotation, mouselook and or keys control and  various parameters. It is attached to the player mesh and also controls then the active camera. The file is: coppercube_tpp_cam.zip

Update 4: Due to requests I have modified the above TPP cam script so it will run for Windows, Mac OsX and Browser (not containing special itch.io  handler), file coppercube_tpp_cam_windows.zip is down below 

Update 5 :) two new versions, with a reduction of clipping artefacts and unneccessary camera-jumps.

Update 6:

Some bugfixes in this version 3 of the TPP camera extension. This file contains both, multi-target and special  itch.io target version. It shows how to add animation control and fixes a couple of bugs, also added suppression of collision jittering on the ground, resulting in nice slide-down-slope. However, when walking straight into a wall, there is still a strange bug doing some sort of cam wobble, that may be caused by the collision handler that is executed after I update the camera position based on new (+yet coll-unhandled) player position.

Update 7:

Third person perspective camera for Coppercube  version 4, both files, as describes earlier. Few bugfixes, including delta on rotation. This may be the final version for a while.

Download

Download
mini3Dsoundengine_js.zip 430 kB
Download
coppercube_3d_snd_demo6.zip 3.5 MB
Download
coppercube_tpp_cam_both4.zip 8.5 kB

Install instructions

unpack in a dedicated folder. run a server inside that folder (eg. python), browse to the sample html page.

Leave a comment

Log in with itch.io to leave a comment.