Having trouble getting Cordova to work properly with threejs?

I've developed a game using three.js in JavaScript, and I'm looking to publish it on the IOS and Android app stores with Cordova. However, I've encountered an issue where Cordova doesn't seem to support webGL. When I tried using a canvas renderer instead, my game performance suffered significantly. I'm now considering giving cocoonJS a shot.

My main question is: Is it possible to use three.js with Cordova, and if not, does cocoonJS offer support for webGL?

Answer №1

Everyone knows that Android's web view is not as fast as iOS or Windows Phone 8, but it's getting better. When it comes to three.js and Cordova, they seem to have some compatibility issues according to this source. However, CocoonJS now supports WebGL in its latest update, as mentioned by Ludei here. In fact, you can find a demo app on Google Play created by Ludei. If you need more information, I recommend reaching out to Ludei support for assistance.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Choosing multiple images by clicking on their alternative text with jQuery

I am currently working on a project that involves clicking on a thumbnail to enlarge the image and display its name (alt) below it. I have made progress, but there seems to be an issue where only one image is displayed no matter which thumbnail I click on. ...

The collection-repeat feature in Ionic seems to be having trouble displaying in the specified location

I have successfully developed an application, but I am facing difficulties in displaying a collection-repeat feature. Other functionalities within the app are working perfectly fine. ShowDetails.html <ion-view view-title="Parts Listing"> <ion ...

What's the best way to trigger useEffect whenever a useRef variable gets updated?

I am facing an issue where the variable changes are lost on every re-render when trying to have useEffect run every time it modifies a variable. Using useRef to store the variable between renders leads to useEffect not detecting changes to a ref. I came a ...

How to effectively utilize jQuery datepicker with multiple forms in a single Django webpage

My issue lies in having a create announcement form and an edit form for each announcement, both with their own datepicker. The function I've been using to control the datepicker is: $(function() { $( ".datepicker" ).datepicker({ changeMon ...

Aligning dynamically-sized TextInput in React Native

I am facing a challenge in centering a text input with a width that matches the length of the input text. I have tried using alignSelf: 'center' and alignItems: 'center', but the text input is not visible without specifying a width. Fo ...

How can a dialog be displayed using a template in Onsen UI in a proper manner?

I am having trouble displaying a dialog in my Angular app with Onsen UI 1.3.6. Whenever I try to show the dialog, I encounter a 404 Not Found error. This is the JavaScript code I am using: ons.createDialog('iconselector.html').then(function(dl ...

Ensuring continuous execution of JS EventListener

The other day, I received a solution from someone on this platform for a script that changes the color of a div when scrolling. Here is the code I implemented: const x = document.getElementById("menuID"); window.addEventListener("scroll", () => { ...

Creating a dynamic canvas with a three-dimensional model using three.js: A step-by-step guide

I'm currently developing a website where I have integrated a canvas element to display a 3D object (specifically, a cube) using three.js. The canvas is housed within a div, following the guidelines found in various documentation. The issue arises wh ...

Extracting data from XPath results reveals information beyond just the elements themselves

Having trouble using the getElementsByXPath function in CasperJS to return a specific string from an xpath I determined. Despite my efforts, it seems like the function is only returning data for the entire webpage instead of the desired string. var casper ...

Tips for mocking a particular http resource (URL) solely in Angular

I'm part of a team with front-end and back-end developers. At times, the front-end team needs to make REST requests to an http address or REST-resource that hasn't been implemented yet. Within ngMockE2E, I've come across the $httpBackend se ...

How to insert a row above the header in an Excel sheet using JavaScript within

i am using excel js to export json data to excel. The json data is successfully exported to the sheet, but now I need to add a row that provides details of the sheet above the header text. for more details please refer image the code is shown below: i ...

Troubleshooting 'Warning: Prop `id` did not match` in react-select

Having an issue with a web app built using ReactJs and NextJs. I implemented the react-select component in a functional component, but now I'm getting this warning in the console: Warning: Prop id did not match. Server: "react-select-7 ...

Tips for implementing a countdown timer with JavaScript

I have created a program using HTML that functions like a website but works offline. I am looking to incorporate a 35-minute countdown timer that will automatically log out the user once the time is up. However, my current JavaScript code only counts down ...

Location of Android Emulator Database in the Real World

Can a SQLite database on an Android Emulator be accessed when both the SDK and Eclipse are not running? (e.g. directly from the filesystem) I am okay with retrieving it through Eclipse, but the Emulator needs to be running, and it tends to shut down when ...

Experiencing a 400 error while transitioning from ajax to $http?

I am facing an issue while trying to make a GET request using $http instead of ajax. The call functions perfectly with ajax, but when attempting the same with $http, I encounter a 400 (Bad Request) error. I have referenced the Angular documentation and bel ...

Verifying the "select" dropdown option prior to final submission

My website features multiple select dropdowns that require validation before submission. For instance, there may be a situation where seven select dropdowns are present as described below. My desired validation criteria is: If there are 5 or more "sel ...

The Express.js main router is functioning properly, however, the other routers connected to it are experiencing

I'm encountering an issue with my routers. The main route /weather is working fine, but other routes connected to it are not functioning properly. app.js const express = require('express'); const weatherRoute = require('./back/routes/w ...

Conceal a different div unless it includes

Hi everyone, I need help with a filter code snippet: $(".title").not(":contains('" + $("[name=filter]").val() + "')").hide() The issue I'm facing is that the .title class is nested within the .sortAll class along with many other divs. I w ...

Query to create a trigger in SQL Lite

I'm currently attempting to run the following query: String CREATE_TRIGGER_DELETE_PATIENT = "CREATE TRIGGER " + KEY_USERID +" BEFORE DELETE ON " + TABLE_USERS +" FOR EACH ROW BEGIN " ...

How to Re-run an External JavaScript File when React Conditional is updated?

Kindly review the complete question before providing an answer. I am currently working with a vanilla javascript file to trigger a fetch request upon pressing a button in a separate react file. The vanilla javascript file is located outside the src folder ...