Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
334 commits
Select commit Hold shift + click to select a range
faf0324
[RELEASE] v1.43.0
willeastcott Jun 17, 2021
3c9db92
[VERSION] v1.44.0-dev
willeastcott Jun 17, 2021
a39037e
bump the playcanvas dependency to v1.43.0 (#3248)
ellthompson Jun 17, 2021
00a51b1
Anim events fix (#3249)
ellthompson Jun 17, 2021
49927b7
[RELEASE] v1.43.1
willeastcott Jun 17, 2021
5c164b1
[VERSION] v1.44.0-dev
willeastcott Jun 17, 2021
f8e9296
Ignore maxlines in linebreak logic (#3251)
yaustar Jun 18, 2021
e905de4
Update NPM dependencies
willeastcott Jun 22, 2021
fd6037f
extend the example directory script to build a list of examples in a …
ellthompson Jun 22, 2021
2e60b3b
example (#3256)
mvaligursky Jun 24, 2021
8edddb3
Engine example - cleaned up and converted to render components (#3257)
mvaligursky Jun 24, 2021
5e13f21
Support for KHR_lights_punctual extension (#3253)
mvaligursky Jun 24, 2021
c226d67
Updated post effects engine example to more showcase the effects (#3261)
mvaligursky Jun 24, 2021
e76b5fa
Exposed additional public functions for mesh morphing (#3241)
mvaligursky Jun 24, 2021
ba326db
Fix WebXR AR quarter rendering issue (#3262)
yaustar Jun 24, 2021
999ed89
[AnimComponent] Refactor and API update (#3237)
ellthompson Jun 24, 2021
68bd08b
Corrected Curve and CurveSet JSDocs (#3265)
yaustar Jun 25, 2021
826d23c
Clustered lighting does not use lights with intensity of zero (#3271)
mvaligursky Jun 28, 2021
d056579
Screen Space Ambient Occlusion post effect (#3266)
mvaligursky Jun 28, 2021
43fbcbe
[FIX] Support building engine from downloaded zip of source (#3274)
kungfooman Jun 29, 2021
7cfa99b
Renamed last references of point light to omni light (#3276)
mvaligursky Jun 29, 2021
67a8fc7
Improved error reporting for missing / incorrect shader (#3279)
mvaligursky Jun 30, 2021
b9579b4
Update NPM dependencies
willeastcott Jul 1, 2021
b62aeec
Bump actions/setup-node from 2.1.5 to 2.2.0 (#3283)
dependabot[bot] Jul 1, 2021
c615c56
findAvailableLocale refactor - Removed the static function from the A…
yaustar Jul 1, 2021
dbdad36
provide -> provided in docs (#3286)
yaustar Jul 1, 2021
9a2273e
Basis worker fixes (#3277)
slimbuck Jul 1, 2021
2125940
Basis lazyInit (#3288)
slimbuck Jul 2, 2021
d2eaf1d
Partially migrate graphics to let and const (#3289)
willeastcott Jul 2, 2021
11dd9a3
Fix to primitives mesh ref-counting to avoid those getting released (…
mvaligursky Jul 5, 2021
0c4eb9e
handle inf on windows correctly (#3293)
slimbuck Jul 5, 2021
4893f90
Small refactoring of batching code (#3295)
mvaligursky Jul 5, 2021
cb90a7c
Update NPM dependencies
willeastcott Jul 6, 2021
e20c5af
[EXAMPLES] Update NPM dependencies
willeastcott Jul 6, 2021
1ad06f4
Expose node names to Spector captures in debug mode (#3300)
mvaligursky Jul 6, 2021
fbbff92
Fix BasicMaterial for skinned and morphed meshes (#3299)
mvaligursky Jul 6, 2021
9bd3896
Few additional examples converted to use render component (#3304)
mvaligursky Jul 6, 2021
4fa9f30
Destroy all lightmaps when the Application is destroyed (#3302)
mvaligursky Jul 6, 2021
839c16b
reveal the horizontal scrollbar when the code editor has multiple fil…
ellthompson Jul 6, 2021
04259aa
MeshInstance - tiny refactor (#3306)
mvaligursky Jul 6, 2021
662d833
fix (#3307)
slimbuck Jul 7, 2021
61e98b7
[Examples Browser] Debug mode (#3275)
ellthompson Jul 8, 2021
cfb844b
fix for the basis example (#3314)
ellthompson Jul 8, 2021
398d9a6
[RELEASE] v1.44.0
slimbuck Jul 8, 2021
d3af9ba
[VERSION] v1.45.0-dev
slimbuck Jul 8, 2021
584c3a6
Video texture example now autoplays on Android and iOS (#3318)
yaustar Jul 8, 2021
ddc3723
Reverting JS docs for curveset but correcting the example code (#3319)
yaustar Jul 8, 2021
d099847
handle etc2 extension without etc1 correctly (#3320)
slimbuck Jul 9, 2021
3e94e72
[RELEASE] v1.44.1
slimbuck Jul 9, 2021
7173ff4
[VERSION] v1.45.0-dev
slimbuck Jul 9, 2021
67cd715
do not set the loop property when assigning animations via the loadAn…
ellthompson Jul 12, 2021
b46c7e5
Render handles refouncing of meshes (#3328)
mvaligursky Jul 12, 2021
5f12561
Bind assets to material fix - Fixes an issue that shows in Editor whe…
yaustar Jul 13, 2021
7758ea1
[RELEASE] v1.44.2
slimbuck Jul 13, 2021
b3be224
[VERSION] v1.45.0-dev
slimbuck Jul 13, 2021
7fcdb9c
Fix to culling of non-moving skinned objects (#3330)
mvaligursky Jul 13, 2021
a492825
Updated docs from array format of position to vec3 (#3332)
yaustar Jul 14, 2021
df24f7e
[Examples Browser] Updates & fixes (#3333)
ellthompson Jul 15, 2021
03762bd
[Examples Browser] Controls for the post effects / lights examples (#…
ellthompson Jul 15, 2021
ec4b67f
[FIX] Adopt top-left texture origin (#3335)
slimbuck Jul 15, 2021
7eb4a67
Update SSAO code to Use New RenderTarget API (#3339)
Jul 16, 2021
77f438e
Add more companies to Users section of README
willeastcott Jul 17, 2021
ef89495
handle uv flip with tiling (#3343)
slimbuck Jul 19, 2021
b84e9eb
fix drop shadow (#3344)
slimbuck Jul 19, 2021
52e8bbf
[RELEASE] v1.45.0
slimbuck Jul 19, 2021
bab62d0
[VERSION] v1.46.0-dev
slimbuck Jul 19, 2021
ac8d987
flip Y defaults to false (#3345)
yaustar Jul 19, 2021
8c747f0
[Fix] Falling shapes example - larger shadow distance to cover the ar…
mvaligursky Jul 20, 2021
b4fac34
[Fix] Model parser releases meshes correctly (#3348)
mvaligursky Jul 20, 2021
c944d38
RTT texture flip flag (#3346)
slimbuck Jul 20, 2021
278c7f8
[RELEASE] v1.45.1
slimbuck Jul 21, 2021
5a56cb2
[VERSION] v1.46.0-dev
slimbuck Jul 21, 2021
f03687d
[Fix] Fixes skining using render component meshes imported using hier…
mvaligursky Jul 21, 2021
b6f5a83
Removing unused import to avoid warning report (#3351)
mvaligursky Jul 21, 2021
5897fd3
check _flipFaces on camera not camera component (#3352)
slimbuck Jul 21, 2021
f9cd308
[RELEASE] v1.45.2
slimbuck Jul 21, 2021
7e65888
[VERSION] v1.46.0-dev
slimbuck Jul 21, 2021
6289b0b
[Fix] Drc loader example uses loaded colors correctly (#3356)
mvaligursky Jul 22, 2021
140170d
Moved layer-compisition and light-composition-data to composition fol…
mvaligursky Jul 22, 2021
12d6687
Updated documentation to reflect the behaviour of asset.loaded (#3360)
yaustar Jul 23, 2021
225bdc7
invert TBN, glTF texture transform (#3363)
slimbuck Jul 23, 2021
895add4
[RELEASE] v1.45.3
slimbuck Jul 23, 2021
8e4c5ca
[VERSION] v1.46.0-dev
slimbuck Jul 23, 2021
05630f9
Update NPM dependencies
willeastcott Aug 1, 2021
fd4f944
Bump actions/setup-node from 2.2.0 to 2.3.0 (#3372)
dependabot[bot] Aug 2, 2021
1786fdb
Support ktx2 supercompressed textures (#3380)
slimbuck Aug 6, 2021
1414aa8
Support browserless environment (#3381)
slimbuck Aug 9, 2021
de345b4
Added retry behaviour to template asset handler (#3382)
yaustar Aug 9, 2021
e9d8c55
Fix for wayward duck vertex (#3383)
slimbuck Aug 9, 2021
cce5af8
invert y particle model tex coords (#3384)
slimbuck Aug 9, 2021
70d5a11
Update JSDoc on procedural.js (#3386)
LeXXik Aug 10, 2021
b49251b
Updated JS Docs for bounding box and sphere (#3387)
yaustar Aug 10, 2021
8aa699d
Support for cameras stored in the GLB file (#3354)
mvaligursky Aug 12, 2021
cfdeeb6
Draco library updated to 1.4.1 (#3362)
mvaligursky Aug 12, 2021
ff57d3b
add hideconstructor for better docs (#3285)
Maksims Aug 12, 2021
eac6471
Uniquify gltf texture asset names (#3390)
slimbuck Aug 13, 2021
7704145
Fixes for examples (#3349)
ellthompson Aug 13, 2021
fd7e0b6
StandardMaterial code cleanup (#3391)
slimbuck Aug 16, 2021
69e26f2
Update NPM dependencies
willeastcott Aug 17, 2021
4b1ccff
Support KHR_texture_transform (#3394)
slimbuck Aug 17, 2021
50ad6f1
use correct prefiltered lighting data (#3395)
slimbuck Aug 17, 2021
0681d51
add map rotations to params list (#3397)
slimbuck Aug 17, 2021
47dbf32
[RELEASE] v1.46.0
slimbuck Aug 17, 2021
23b0e7a
[VERSION] v1.47.0-dev
slimbuck Aug 17, 2021
88364d5
Fix enabled flag on camera and light (#3408)
slimbuck Aug 18, 2021
49b2ea2
[RELEASE] v1.46.1
slimbuck Aug 18, 2021
07cc0ab
[VERSION] v1.47.0-dev
slimbuck Aug 18, 2021
0afb685
call equals on internal property (#3417)
slimbuck Aug 19, 2021
957f717
Added retries to scene loading (#3418)
yaustar Aug 19, 2021
914e318
[FIX] Force precision of depth texture to highp (#3420)
willeastcott Aug 23, 2021
95417a6
Update NPM dependencies
willeastcott Aug 24, 2021
def2568
Fix lighting basis during RTT (#3424)
slimbuck Aug 24, 2021
8077982
Migrate from babel-eslint to @babel/eslint-parser (#3423)
willeastcott Aug 24, 2021
a450733
Remove Babel class properties plugin (#3425)
willeastcott Aug 24, 2021
4e8adc8
Create codeql-analysis.yml
willeastcott Aug 24, 2021
c6afb57
Remove unzipbundle script from package.json
willeastcott Aug 25, 2021
df4bb2a
[FIX] Allow Application#destroy to work under Node.js (#3428)
willeastcott Aug 25, 2021
8b86603
[Fix] Fix to generated UV1 coordinates of Primitives (#3429)
mvaligursky Aug 27, 2021
a08df7b
Update NPM dependencies
willeastcott Aug 31, 2021
4b0760b
Prevent shapes creation on disabled entities (#3432)
LeXXik Aug 31, 2021
1cfffb6
[Fix] model->render in example comment (#3439)
mvaligursky Aug 31, 2021
0b8f95b
Bump actions/setup-node from 2.3.0 to 2.4.0 (#3440)
dependabot[bot] Sep 1, 2021
17197ba
When entity is reparented, whole child hierarchy is notified (#3436)
mvaligursky Sep 1, 2021
350f7a0
Fixes for loading quantized glTF data (#3431)
slimbuck Sep 1, 2021
2f7a384
Update to latest pcui (#3438)
vkalpias Sep 1, 2021
aceed6c
Revert "Prevent shapes creation on disabled entities (#3432)" (#3441)
slimbuck Sep 1, 2021
4c13f4b
include a deployment section in the examples readme (#3442)
ellthompson Sep 1, 2021
cfd9334
AnimComponent transition updates (#3329)
ellthompson Sep 1, 2021
73b4007
[Fix] Glb loader example - enable lights that are by default disabled…
mvaligursky Sep 1, 2021
ab94f3b
[RELEASE] v1.46.2
slimbuck Sep 1, 2021
6d9b030
[VERSION] v1.47.0-dev
slimbuck Sep 1, 2021
88659b6
revert anim transition change (#3447)
ellthompson Sep 1, 2021
65b3276
[RELEASE] v1.46.3
willeastcott Sep 1, 2021
f09c474
[VERSION] v1.47.0-dev
willeastcott Sep 1, 2021
76fc6f8
Update NPM dependencies
willeastcott Sep 3, 2021
c6f7502
[AnimComponent] Fix for transitions (#3454)
ellthompson Sep 3, 2021
720c2fa
[RELEASE] v1.46.4
willeastcott Sep 3, 2021
cfb9e32
[VERSION] v1.47.0-dev
willeastcott Sep 3, 2021
fe4fe4f
[Fix] Use correct UV transform for tiled normal map of clear coat (#3…
mvaligursky Sep 7, 2021
eae49f6
Fix for cloned anim and render components (#3463)
ellthompson Sep 8, 2021
3d8c6f4
[Fix] Fix shadow not rendering in Editor in some cases (#3464)
mvaligursky Sep 8, 2021
e5a6249
Engine example Shadow Cascades has HUD controls (#3444)
mvaligursky Sep 8, 2021
170b978
Converted few classes in scene folder to use let/const (#3437)
mvaligursky Sep 8, 2021
bd28154
Update var to let and const in deprecated.js (#3453)
willeastcott Sep 8, 2021
a125a1a
Added documentation example on accessing mesh instances of a render h…
mvaligursky Sep 9, 2021
a6dbad1
[Fix] Disable skybox from picker (#3466)
mvaligursky Sep 9, 2021
ebf64d5
[Fix] Avoid crash in Animation blending under certain conditions (#3468)
mvaligursky Sep 9, 2021
ad24fe9
Track active StandardMaterial parameters correctly (#3455)
slimbuck Sep 10, 2021
901f49d
Hide '.vscode' settings folder from git (#3470)
mvaligursky Sep 10, 2021
695a49d
[Fix] Fix to insert and remove events when reparenting (#3471)
mvaligursky Sep 10, 2021
fd24a78
Converted more classes in scene folder to use let and const (#3473)
mvaligursky Sep 10, 2021
777b5ff
Fix shadow cascades, to respect chunks overrides. (#3484)
Maksims Sep 16, 2021
28be44b
Add Japanese README file. (#3489)
yushimatenjin Sep 17, 2021
5ed8e61
[Fix] Fixes to Application.Destroy to destroy in correct order (#3495)
mvaligursky Sep 20, 2021
0208cc0
Use mouse scroll wheel events to navigate content in scroll-view UI c…
jpauloruschel Sep 20, 2021
49e532d
[Fix] Fix to calculateTangent function was hiden by local variable wh…
mvaligursky Sep 20, 2021
371bcde
warn when KTX2 support is missing (#3497)
slimbuck Sep 20, 2021
24821b4
[Fix] Fixes texture memory leak when window is resized and posteffect…
mvaligursky Sep 20, 2021
6baccc6
Forward renderer - cleanup, separated static-meshes functionality (#3…
mvaligursky Sep 20, 2021
e7b06ec
Fix recent crash for Safari 15 on MacOS (#3503)
Maksims Sep 21, 2021
c7e29f2
Temporary change to preserve compatibility with the Editor (#3504)
mvaligursky Sep 21, 2021
e4663eb
[RELEASE] v1.46.5
slimbuck Sep 21, 2021
074f03d
[VERSION] v1.47.0-dev
slimbuck Sep 21, 2021
f315587
Improvements to shadow-cascades engine example (#3510)
mvaligursky Sep 23, 2021
e70e913
[Fix] Fixes an issue with cloning a model component with customAabb (…
mvaligursky Sep 23, 2021
4d8c568
Update NPM dependencies
willeastcott Sep 24, 2021
1bb85da
Include scripts in npm package (#3516)
slimbuck Sep 25, 2021
1eaff50
Shadow atlas for clustered spot lights (#3235)
mvaligursky Sep 27, 2021
b49658f
Spot light cookies support by the Clustered lighting. (#3521)
mvaligursky Sep 27, 2021
cff19f4
Lightmapper improvements - soft shadow & Ambient Occlusion support (#…
mvaligursky Sep 27, 2021
5f77331
Better shader compilation error reporting (#3523)
Maksims Sep 28, 2021
0b3ecb1
Renamed "Clustered Shadows" example to "Clustered Spot Shadows" (#3524)
mvaligursky Sep 28, 2021
32641df
Remove a no longer needed temporary function (#3505)
mvaligursky Sep 28, 2021
3684936
[AnimComponent] Layer masks (#3264)
ellthompson Sep 30, 2021
33eeee2
Properly resume AudioContext on iOS platform. (#3499)
jpauloruschel Sep 30, 2021
3453b9e
Bump actions/setup-node from 2.4.0 to 2.4.1 (#3531)
dependabot[bot] Oct 1, 2021
2fdf027
Update NPM dependencies
willeastcott Oct 1, 2021
03ee7b1
Trigger events on world UI elements in the correct order. (#3482)
jpauloruschel Oct 1, 2021
767fa58
Omni shadows for clustered lights (#3537)
mvaligursky Oct 5, 2021
8439b26
Refactoring, fixes and improvements of the line rendering (#3019)
mvaligursky Oct 5, 2021
310cdc1
Removed PlayCanvas version logging (#3508)
yaustar Oct 5, 2021
2f97d37
More var to let and const (#3517)
willeastcott Oct 5, 2021
536c4ec
Updated engine examples to use new line rendering API (#3539)
mvaligursky Oct 5, 2021
832ecae
[Fix] Lightmap size estimation is improved for render component (#3545)
mvaligursky Oct 5, 2021
e7bcdbb
[Fix] Shader compile error correctly reports shader type (#3546)
mvaligursky Oct 6, 2021
863356e
[Fix] Fix to texture based morph targets to occasionally morph incorr…
mvaligursky Oct 6, 2021
5b14ece
Cubemap cookie texture in Lights example (#3548)
mvaligursky Oct 6, 2021
cc1e346
Deprecated functionality improvements (#3550)
mvaligursky Oct 7, 2021
bc49584
Always reset internal asset and model references on ModelComponent on…
jpauloruschel Oct 7, 2021
7abc16f
[FIX] Unit test for Mat4#setLookAt (#3433)
olkotov Oct 8, 2021
e778999
Cookies support for clustered omni lights (#3555)
mvaligursky Oct 8, 2021
6de7d31
Removes unused Asset List Loader (#3263)
yaustar Oct 11, 2021
88d6a23
Added version logging in debug only (#3558)
yaustar Oct 11, 2021
41e3906
[RELEASE] v1.47.0
slimbuck Oct 12, 2021
3714abd
[VERSION] v1.48.0-dev
slimbuck Oct 12, 2021
04e703b
add missing blend modes (#3564)
slimbuck Oct 12, 2021
d04cd53
Revert "[AnimComponent] Layer masks (#3264)" (#3566)
ellthompson Oct 12, 2021
40ca6f0
[RELEASE] v1.47.1
slimbuck Oct 12, 2021
cb1547f
[VERSION] v1.48.0-dev
slimbuck Oct 12, 2021
8a060ec
dont rely on shiny new read function (#3573)
slimbuck Oct 13, 2021
0313665
Update the build process for the examples app (#3565)
ellthompson Oct 13, 2021
ba2f25d
Rearanged main clustered lighting loop to avoid unrolling and improve…
mvaligursky Oct 15, 2021
052d948
Do not generate uniforms for lights when clustered lighting is used (…
mvaligursky Oct 15, 2021
0f8d72b
[Fix] Fix lightmap estimation to be compatible with the Editor (#3581)
mvaligursky Oct 15, 2021
46acd79
support javascript and typescript in the examples browser (#3577)
ellthompson Oct 15, 2021
414e61c
Make UI elements on screens take proper precedence when determining t…
jpauloruschel Oct 15, 2021
027d830
move the js-beautify package into the examples package.json (#3582)
ellthompson Oct 15, 2021
5be2111
[VERSION] v1.48.0-dev
slimbuck Oct 15, 2021
b336e2b
[RELEASE] v1.47.2
slimbuck Oct 15, 2021
20eccd6
Merge branch 'release-1.47.2'
slimbuck Oct 15, 2021
2eafc0d
Merge remote-tracking branch 'upstream/master'
slimbuck Oct 15, 2021
3f6f18f
jsdocs-template 1.0.20 (#3583)
yak32 Oct 15, 2021
54ad1b9
[Fix] Update to handling of LightComponent.shadowUpdateMode (#3584)
mvaligursky Oct 18, 2021
b78f62c
[Fix] Setting up render target for lights with SHADOWUPDATE_NONE curr…
mvaligursky Oct 18, 2021
6e39736
Unified deprecated message logging from other classes (#3574)
mvaligursky Oct 19, 2021
61b4775
Refactored renderForward into two passes (#3579)
mvaligursky Oct 20, 2021
dc12631
Glb-parser now supports loading meshes with more than 2 UV channels (…
mvaligursky Oct 20, 2021
1336ba2
Clustered lighting can globally disable shadows or cookies (#3567)
mvaligursky Oct 20, 2021
0cdb8e4
Make ComponentSystem and Default Material, Application scope (#3557)
OlegGedzjuns Oct 20, 2021
39cfb9e
anim layer masks PR with fixes (#3568)
ellthompson Oct 20, 2021
bccf26a
Fix element input for negative scales. (#3587)
jpauloruschel Oct 20, 2021
329ab7f
ES6 code updates (#3576)
willeastcott Oct 20, 2021
ba5dfe1
Anim layer mask updates (#3593)
ellthompson Oct 20, 2021
eb8ae70
Anim layer masks example and updates (#3594)
ellthompson Oct 20, 2021
0fbb770
switch out js-beautify for prettier (#3596)
ellthompson Oct 20, 2021
dc225d7
Merge branch 'master' into stable
slimbuck Oct 20, 2021
14f01fa
[RELEASE] v1.48.0
slimbuck Oct 20, 2021
f21df95
[VERSION] v1.49.0-dev
slimbuck Oct 20, 2021
32e3586
[Fix] Fix to ParticleSystem crash caused by recent refactor (#3598)
mvaligursky Oct 21, 2021
72a2e0c
Anim ES6 migration (#3599)
ellthompson Oct 21, 2021
83b45e6
[Fix] Fix to ParticleSystem crash caused by recent refactor (#3598)
mvaligursky Oct 21, 2021
89325c6
[RELEASE] v1.48.1
slimbuck Oct 22, 2021
85988bc
Merge branch 'stable'
slimbuck Oct 22, 2021
f25e9c9
New release script (#3605)
slimbuck Oct 22, 2021
8424572
More ES6 migration (#3597)
willeastcott Oct 22, 2021
e5dc294
Moved RenderAction class to its new folder (#3607)
mvaligursky Oct 22, 2021
46948d9
separated texture encoding part of world clusters into separate file …
mvaligursky Oct 22, 2021
acc1e51
All var keywords now eliminated from codebase (#3608)
willeastcott Oct 23, 2021
dcbcae6
[DOCS] Various spelling and grammatical corrections (#3610)
willeastcott Oct 24, 2021
1858a84
Make more use of template literals (#3611)
willeastcott Oct 24, 2021
8ecab15
Make import statements consistent (#3612)
willeastcott Oct 24, 2021
cacf662
Make unary op spacing consistent (#3613)
willeastcott Oct 24, 2021
8d86ad5
Update NPM dependencies
willeastcott Oct 25, 2021
bd786d2
Used instanceof to check against Entity type directly in Anim rootBon…
yaustar Oct 25, 2021
2edd140
[FIX] Type error in JSDocs for AnimComponent#addLayer (#3620)
willeastcott Oct 25, 2021
114c028
Switch JSDoc lists from stars to dashes (#3621)
willeastcott Oct 25, 2021
f0c4cd6
[FIX] Multi app support for triggers (#3624)
willeastcott Oct 27, 2021
1294f4b
[DOCS] Minor JSDoc corrections (#3626)
willeastcott Oct 27, 2021
c835d82
More use of template string literals (#3628)
willeastcott Oct 27, 2021
bb5aa65
Eliminate unnecessary spaces (#3615)
willeastcott Oct 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 5 additions & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ Simple code is always better. Modular (horizontal dependencies) code is easier t

For example, use "Initialize" instead of "Initialise", and "color" instead of "colour".

### Whitelisted ES6+ features:
### Permitted ES6+ features:

You may use the following JavaScript language features in the engine codebase:

* [`let`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let)
* [`const`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const)
Expand All @@ -42,6 +44,8 @@ For example, use "Initialize" instead of "Initialise", and "color" instead of "c
* [Default parameters](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Default_parameters)
* [Modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules)
* [Optional chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining)
* [Static keyword](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/static)
* [Template literals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals)

### Opening braces should be on the same line as the statement

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js 12.x
uses: actions/setup-node@v2.1.5
uses: actions/setup-node@v2.4.1
with:
node-version: 12.x
- name: Install dependencies
Expand All @@ -29,7 +29,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js 12.x
uses: actions/setup-node@v2.1.5
uses: actions/setup-node@v2.4.1
with:
node-version: 12.x
- name: Install dependencies
Expand All @@ -44,7 +44,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js 12.x
uses: actions/setup-node@v2.1.5
uses: actions/setup-node@v2.4.1
with:
node-version: 12.x
- name: Install dependencies
Expand All @@ -59,7 +59,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js 12.x
uses: actions/setup-node@v2.1.5
uses: actions/setup-node@v2.4.1
with:
node-version: 12.x
- name: Install dependencies
Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '28 18 * * 3'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
/docs
node_modules/
.idea/
.vscode/
npm-debug.log
.java-version
release.py
examples/node_modules
examples/dist
181 changes: 181 additions & 0 deletions README-ja.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
<div align="center">

<img width="200" src="https://s3-eu-west-1.amazonaws.com/static.playcanvas.com/platform/images/logo/playcanvas-logo-medium.png"/>

# PlayCanvas WebGL Game Engine
[Docs](https://developer.playcanvas.com) | [Examples](https://playcanvas.github.io) | [Forum](https://forum.playcanvas.com) | [Blog](https://blog.playcanvas.com)

PlayCanvasは、オープンソースのゲームエンジンです。

HTML5とWebGLを使用してゲームやインタラクティブな3Dコンテンツをモバイルやデスクトップのブラウザで実行できます。

[![NPM version][npm-badge]][npm-url]
[![Minzipped size][minzip-badge]][minzip-url]
[![Average time to resolve an issue][resolution-badge]][isitmaintained-url]
[![Percentage of issues still open][open-issues-badge]][isitmaintained-url]
[![Twitter][twitter-badge]][twitter-url]

[English](https://github.com/playcanvas/engine/blob/master/README.md)
[中文](https://github.com/playcanvas/engine/blob/master/README-zh.md)
[日本語](https://github.com/playcanvas/engine/blob/master/README-ja.md)

## ショーケース

PlayCanvasエンジンを使って[多くのゲームやアプリ](https://github.com/playcanvas/awesome-playcanvas#awesome-playcanvas-
) 公開されています。ここではその一部をご紹介します。


[![Seemore](https://s3-eu-west-1.amazonaws.com/images.playcanvas.com/projects/14705/319531/O4J4VU-image-25.jpg)](https://playcanv.as/p/MflWvdTW/) [![After The Flood](https://s3-eu-west-1.amazonaws.com/images.playcanvas.com/projects/14928/440410/98554E-image-25.jpg)](https://playcanv.as/p/44MRmJRU/) [![Casino](https://s3-eu-west-1.amazonaws.com/images.playcanvas.com/projects/14928/349824/U88HJQ-image-25.jpg)](https://playcanv.as/p/LpmXGUe6/)
[![Swooop](https://s3-eu-west-1.amazonaws.com/images.playcanvas.com/projects/12/4763/TKYXB8-image-25.jpg)](https://playcanv.as/p/JtL2iqIH/) [![Master Archer](https://s3-eu-west-1.amazonaws.com/images.playcanvas.com/projects/12/415995/10A5A9-image-25.jpg)](https://playcanv.as/p/JERg21J8/) [![Flappy Bird](https://s3-eu-west-1.amazonaws.com/images.playcanvas.com/projects/8/375389/23PRTL-image-25.jpg)](https://playcanv.as/p/2OlkUaxF/)
[![Car](https://s3-eu-west-1.amazonaws.com/images.playcanvas.com/projects/12/347824/7ULQ3Y-image-25.jpg)](https://playcanv.as/p/RqJJ9oU9/) [![Star-Lord](https://s3-eu-west-1.amazonaws.com/images.playcanvas.com/projects/12/333626/BGQN9H-image-25.jpg)](https://playcanv.as/p/SA7hVBLt/) [![Global Illumination](http://s3-eu-west-1.amazonaws.com/images.playcanvas.com/projects/4373/625081/6AB32D-image-25.jpg)](https://playcanv.as/p/ZV4PW6wr/ )


他のゲームは[PlayCanvasのウェブサイト](https://playcanvas.com/explore)で見ることができます。


</div>

## 利用実績

PlayCanvasは、ビデオゲーム、広告、ビジュアライゼーションの分野で大手企業に採用されています。
**Animech, Arm, BMW, Disney, Facebook, Famobi, Funday Factory, IGT, King, Miniclip, Leapfrog, Mojiworks, Mozilla, Nickelodeon, Nordeus, NOWWA, PikPok, PlaySide Studios, Polaris, Product Madness, Samsung, Snap, Spry Fox, Zeptolab, Zynga**

## 機能

PlayCanvasはフル機能のゲームエンジンです。

* 🧊 **グラフィックス** - WebGL 1.0 & 2.0で構築された高度な2D + 3Dグラフィックスエンジン。
* 🏃 **アニメーション** - キャラクターやシーンに対する強力なステートベースのアニメーション
* ⚛️ **物理** - 3Dリジッドボディ物理エンジン [ammo.js](https://github.com/kripken/ammo.js)
* 🎮 **インプット** - マウス、キーボード、タッチ、ゲームパッド、VRコントローラのAPI
* 🔊 **サウンド** - Web Audio APIを利用した3D位置情報サウンド
* 📦 **アセット** - [glTF 2.0](https://www.khronos.org/gltf/)、[Draco](https://google.github.io/draco/)、[Basis](https://github.com/BinomialLLC/basis_universal) の圧縮技術を利用した非同期型ストリーミングシステム
* 📜 **スクリプト** - TypeScriptとJavaScriptをサポート

## 使用方法

シンプルなHello Worldの例です。

```html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>PlayCanvas Hello Cube</title>
<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no' />
<style>
body {
margin: 0;
overflow: hidden;
}
</style>
<script src='https://code.playcanvas.com/playcanvas-stable.min.js'></script>
</head>
<body>
<canvas id='application'></canvas>
<script>
// create a PlayCanvas application
const canvas = document.getElementById('application');
const app = new pc.Application(canvas);
// fill the available space at full resolution
app.setCanvasFillMode(pc.FILLMODE_FILL_WINDOW);
app.setCanvasResolution(pc.RESOLUTION_AUTO);
// ensure canvas is resized when window changes size
window.addEventListener('resize', () => app.resizeCanvas());
// create box entity
const box = new pc.Entity('cube');
box.addComponent('model', {
type: 'box'
});
app.root.addChild(box);
// create camera entity
const camera = new pc.Entity('camera');
camera.addComponent('camera', {
clearColor: new pc.Color(0.1, 0.1, 0.1)
});
app.root.addChild(camera);
camera.setPosition(0, 0, 3);
// create directional light entity
const light = new pc.Entity('light');
light.addComponent('light');
app.root.addChild(light);
light.setEulerAngles(45, 0, 0);
// rotate the box according to the delta time since the last frame
app.on('update', dt => box.rotate(10 * dt, 20 * dt, 30 * dt));
app.start();
</script>
</body>
</html>
```
このコードを自分で試すには[CodePen](https://codepen.io/playcanvas/pen/NPbxMj)をクリックします。

## ビルドの手順

Node.jsがインストールされていることを確認します。
次に、必要なNode.jsの依存関係をすべてインストールします。

npm install

これで、様々なオプションでビルドを実行できるようになりました。

| コマンド | 説明 | 出力ファイル |
|------------------------|-------------------------------------------|----------------------------------|
| `npm run build` | リリース用、デバッグ用、プロファイラー用エンジンをビルドする | `build\playcanvas[.dbg/.prf].js` |
| `npm run tsd` | TypeScript型定義ファイルをビルドする | `build\playcanvas.d.ts` |
| `npm run docs` | [APIリファレンス][docs] をビルドする| `docs` |


また、ビルド済みのエンジンも利用できます。

最新版のビルド(masterブランチのHEADリビジョン)

* https://code.playcanvas.com/playcanvas-latest.js
* https://code.playcanvas.com/playcanvas-latest.min.js

最新安定版のビルド
* https://code.playcanvas.com/playcanvas-stable.js
* https://code.playcanvas.com/playcanvas-stable.min.js

特定のバージョンのビルド
* https://code.playcanvas.com/playcanvas-1.38.4.js
* https://code.playcanvas.com/playcanvas-1.38.4.min.js

### Generate Source Maps

エンジンのデバッグがしやすいようにソースマップを構築するには、任意のエンジン構築コマンドに`-- -m`を追加します。例えば、以下のようになります。


npm run build -- -m

これにより`build/output/playcanvas.js.map`が出力されます。

注意: ソースマップを生成する際、プリプロセッサはマッピングを破壊するため無視されます。つまり、ソースマップの生成時には、すべてのデバッグコードとプロファイリングコードがエンジンのビルドに含まれます。

## テスト

PlayCanvasではユニットテストにKarmaを使用しています。テストを実行する方法は2つあります。

| コマンド | 説明 |
|------------------------|---------------------------------------------------------------------------------------|
| `npm run test` | ビルドされた `playcanvas.js` に対してユニットテストを実行します。 |
| `npm run test:watch` | 変更が検出されたときにユニットテストを再実行する - open http://localhost:9876/debug.html |

## PlayCanvasエディター

PlayCanvas エンジンは、HTML5 アプリやゲームを作成するためのオープンソースのエンジンです。エンジンに加えて、[PlayCanvasエディター](https://playcanvas.com/)があります。

[![Editor](https://github.com/playcanvas/editor/blob/master/images/editor.png?raw=true)](https://github.com/playcanvas/editor)

エディター関連のバグや問題については、[Editor's repo](https://github.com/playcanvas/editor)を参照してください。


[npm-badge]: https://img.shields.io/npm/v/playcanvas
[npm-url]: https://www.npmjs.com/package/playcanvas
[minzip-badge]: https://img.shields.io/bundlephobia/minzip/playcanvas
[minzip-url]: https://bundlephobia.com/result?p=playcanvas
[resolution-badge]: http://isitmaintained.com/badge/resolution/playcanvas/engine.svg
[open-issues-badge]: http://isitmaintained.com/badge/open/playcanvas/engine.svg
[isitmaintained-url]: http://isitmaintained.com/project/playcanvas/engine
[twitter-badge]: https://img.shields.io/twitter/follow/playcanvas.svg?style=social&label=Follow
[twitter-url]: https://twitter.com/intent/follow?screen_name=playcanvas
[docs]: https://developer.playcanvas.com/en/api/
1 change: 1 addition & 0 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ PlayCanvas 是一款使用 HTML5 和 WebGL 技术运行游戏以及其他 3D 内

[English](https://github.com/playcanvas/engine/blob/master/README.md)
[中文](https://github.com/playcanvas/engine/blob/master/README-zh.md)
[日本語](https://github.com/playcanvas/engine/blob/master/README-ja.md)

## 项目展示

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ PlayCanvas is an open-source game engine. It uses HTML5 and WebGL to run games a

[English](https://github.com/playcanvas/engine/blob/master/README.md)
[中文](https://github.com/playcanvas/engine/blob/master/README-zh.md)
[日本語](https://github.com/playcanvas/engine/blob/master/README-ja.md)

## Project Showcase

Expand All @@ -34,7 +35,7 @@ You can see more games on the [PlayCanvas website](https://playcanvas.com/explor
## Users

PlayCanvas is used by leading companies in video games, advertising and visualization such as:
**Animech, Arm, Disney, Facebook, IGT, King, Miniclip, Leapfrog, Mozilla, Nickelodeon, Nordeus, PikPok, PlaySide Studios, Polaris, Product Madness, Samsung, Snap, Spry Fox, Zeptolab, Zynga**
**Animech, Arm, BMW, Disney, Facebook, Famobi, Funday Factory, IGT, King, Miniclip, Leapfrog, Mojiworks, Mozilla, Nickelodeon, Nordeus, NOWWA, PikPok, PlaySide Studios, Polaris, Product Madness, Samsung, Snap, Spry Fox, Zeptolab, Zynga**

## Features

Expand Down
Loading