Questions tagged [playcanvas]

PlayCanvas is an HTML5, JavaScript, WebGL game engine

PlayCanvas is an HTML5/JavaScript/WebGL game engine

18 questions
7
votes
2 answers

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 like to use PlayCanvas, but was unable to get the…
3
votes
0 answers

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 review, the reviewer returned an image with error…
3
votes
2 answers

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 understanding how it will interact with my React components.…
user9878643
  • 308
  • 4
  • 15
3
votes
1 answer

Do 3D models have size information?

I know 3d model (.fbx, .obj etc) files have accurate scale information. But do they also have embedded unit measurement information (inches, centimeters)? Is it possible to include units information where I draw a cube of 1*1*1 cm and then later…
noob Mama
  • 267
  • 8
  • 28
2
votes
0 answers

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 compiled into a UWP with Cordova Windows 10 on…
2
votes
0 answers

Cross-origin image at may not be loaded with PlayCanvas and Amazon s3

I'm trying to load texture with PlayCanvas webGL library from an Amazon S3 bucket but an error happens after loading: Uncaught DOMException: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The cross-origin image at --- may not be…
ar099968
  • 6,963
  • 12
  • 64
  • 127
1
vote
1 answer

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": "texture", "file": { "filename":…
Xora
  • 13
  • 3
1
vote
1 answer

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 OS, and the connection is established and I can…
1
vote
1 answer

Pathfinding.js in PlayCanvas

I am making a space game using Playcanvas. I want to add some AI to ships that fly around and shoot. I don't have any idea of how to impliment Pathfinding.js on a 3D space, let alone, using the PlayCanvas Script API as well. Does anyone know how…
FeaturedSpace
  • 479
  • 3
  • 18
0
votes
0 answers

PlayCanvas - Not able to see orange box on pointing hiro marker

I am expecting to see orange box when i point my mobile towards the hiro marker on my laptop screen. However i dont see it. Can anyone tell me what am i doing wrong ? Here is the project that i launch https://playcanvas.com/editor/scene/1816486 I…
Siddharth Jain
  • 380
  • 1
  • 3
  • 16
0
votes
0 answers

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 position of the cursor in the mobile devices as well. I…
0
votes
0 answers

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 tested this with Google Chrome (Version…
MadLuca
  • 81
  • 1
  • 7
0
votes
1 answer

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.SetVar("Result",score); where player…
0
votes
0 answers

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 save the path in the JSON to a .txt file located in…
likuku
  • 358
  • 6
  • 21
0
votes
1 answer

Publishing (multiple) PlayCanvas apps on a website

I’ve got an issue with publishing my PlayCanvas apps on a website. These website will contain ui elements to control the PlayCanvas apps. I want to publish the PC app (canvas) in a specific div. How to do that? My website must contain muliple (two)…
Patrick Münster
  • 459
  • 2
  • 5
  • 17
1
2