22
questions
0
votes
0
answers
17
views
How to resolve "Namespace '"playcanvas"' has no exported member 'Entity'" when using PlayCanvas CDN in Vite + React + TypeScript?
When importing PlayCanvas using the CDN, I'm encountering the following TypeScript error:
Namespace '"playcanvas"' has no exported member 'Entity'.
My Setup:
Node: v20.9.0
Yarn: v1.22.0
...
0
votes
0
answers
29
views
Do Vite Build with Playcanvas embed work?
I am kind of new to Vite Configurations and Playcanvas Optimization, I have been working on a project that requires Vanilla Javascript + Vite + Playcanvas Embed.
Overall everything is working fine in ...
0
votes
0
answers
45
views
Playcanvas web collision detection
I am making a little game using playcanvas in a web browser. I build it in javascript, and I am trying to add collisions. However, they seem to not be implemented.
I defined two entities : a cube and ...
0
votes
0
answers
29
views
WebAR project in playcanvas
I want to access webcam in my playcanvas project.And also want to use the face detection API for my project.Now how should I write code for this? Can anyone help me to make a project in playcanvas? Is ...
1
vote
0
answers
70
views
My 3D JavaScript game in PlayCanvas does nothing
I am in PlayCanvas and for the first time I'm making a 3d game. I tried to make a simple movement script but, with no errors in the code that I can see, it is not working.
I made this script:
var ...
3
votes
0
answers
353
views
Audio doesn't work in a Samsung Galaxy A32 5G running Android 12 on an app compiled through Cordova
When I launch the game on Samsung Galaxy A32 5G running Android 12 the audio can't be heard.
Platforms on which I've confirmed the audio functions as intended:
Windows 11 on Chrome, Firefox, and ...
1
vote
1
answer
202
views
Store and Use image according to the User | PlayCanvas
i'm actually working on a PlayCanvas project to renderer some object with the texture i want.
My problem is, in PlayCanvas build , in the config.json there is a path for this texture like :
"type&...
0
votes
0
answers
71
views
Canvas position of cursor image in different resolution screens
I am trying to make a multiplayer game in which the user will be playing the game in desktop screen and the same will be displayed in multiple screens. I have give a cursor image to display the ...
1
vote
1
answer
394
views
WebRTC Data channel type mismatch
I'm trying to implement WebRTC communication inside playCanvas but I'm having trouble establishing a connection between Peers.
To start with the local environment, I'm using Brave Browser and Ubuntu ...
0
votes
0
answers
565
views
net::ERR_HTTP2_PROTOCOL_ERROR for large png files on throttled/slow connection
I'm having problem's loading large png texture files for a playcanvas app when the connection is bad.
For some reason chromium browser's say the request fails with net::ERR_HTTP2_PROTOCOL_ERROR. I've ...
0
votes
1
answer
319
views
Javascript functions between canvas, iframe and HTML page
I am currently working on a PlayCanvas project which is going to be embedded in an iFrame inside a slideshow(Articulate Storyline). The slideshow application lets me use Javascript by using:
player....
7
votes
2
answers
2k
views
Is there a way to switch between front and back cameras mid application
I am trying to develop a web-ar experience that allows the user to switch between front and back cameras throughout the experience, while utilizing SLAM/6dof while using the back camera. Ideally I'd ...
0
votes
0
answers
452
views
Problem grabbing image from server with https request in PlayCanvas
I'm trying to use the PlayCanvas OAuth and CORS to request an image from a service via HTML request. as I understood the response return a JSON holding the data, and in this question I just want to ...
3
votes
0
answers
638
views
facebook instant game publishing
we are developing a game for Facebook Instant Games Platform (messenger);
The game works fine for developers and testers and is virtually ready for submission; however, when we sent the game for ...
3
votes
2
answers
2k
views
Importing a WebGL framework (PlayCanvas) into React
I am currently trying to import a webGL engine known as PlayCanvas into React.
PlayCanvas Github
Since PlayCanvas runs on JS and the code will stay in my index.html; I am having trouble ...