[SAMPLE] planets

61 views
Skip to first unread message

Rodrigo Faustino

unread,
Jun 26, 2016, 7:48:58 PM6/26/16
to DroidScript
for those interested in the solar system, up to the fifth planet, who want to improve.
plan.spk

Alex F

unread,
Jun 27, 2016, 5:01:11 AM6/27/16
to DroidScript
Thanks 4 sharin. I'll test it
Message has been deleted

Alex F

unread,
Jun 27, 2016, 5:10:33 AM6/27/16
to DroidScript
var ORIGEM = new THREE.Vector3(0, 0, 0);
error: THREE is not defined.

BareK

unread,
Jun 27, 2016, 6:10:14 AM6/27/16
to DroidScript
Hi Rodrigo,

Thanks for this interesting sample :)
No error on my device, but I've got multiple warnings (the same one appearing 10 times):
[.CommandBufferContext.Offscreen-MainThread-0x9d1dc060]RENDER WARNING: there is no texture bound..
Sadly, the end of the line is croped by DS Console view.

As it's just a warning, the sample runs without problem :)

Cheers!

Alex F

unread,
Jun 27, 2016, 6:14:55 AM6/27/16
to DroidScript
Can you send the .apk file please? Hope then it works on ny device :)

Francisco J Arnoso

unread,
Jun 27, 2016, 6:47:34 AM6/27/16
to DroidScript
"Script error:
Error creating WebGl context"

Galaxy 4
Android 4.2.2

BareK

unread,
Jun 27, 2016, 6:52:00 AM6/27/16
to DroidScript
@Alex who are you asking for?
Technically, as this sample belongs to Rodrigo, I won't generate any apk out of it and neither distribute it.
Also, Dave do not recommand to share apk on this forum.

But we should try to find why it's not working on your device, which is strange.
Did you simply import the .spk, or did you create a "clone" of the sample by your own?

Dave Smart

unread,
Jun 27, 2016, 7:12:36 AM6/27/16
to androi...@googlegroups.com
Hi Guys,

WebGL is not supported on most Android devices before Lollipop.


Alex F

unread,
Jun 27, 2016, 7:25:42 AM6/27/16
to DroidScript
@BareK
I downloaded it and opened with ds but it was saved as .js
So i cpiied the code and saved with the html tool.

BareK

unread,
Jun 27, 2016, 8:44:29 AM6/27/16
to DroidScript
@Dave thanks for the info.

@Alex F this way you miss the imports (the "THREE" object belongs to "three.min.js").
Try again downloading the whole .spk from the first post of this thread.

D.W.

unread,
Jun 27, 2016, 9:17:44 AM6/27/16
to DroidScript
Very nice.
Regards

Alex F

unread,
Jun 27, 2016, 9:29:40 AM6/27/16
to DroidScript
It foesnt wirk. I tried to copy the files if the downloaded file to the new .html file but then the file wasn't shown in ds :(

Alex F

unread,
Jun 27, 2016, 9:33:11 AM6/27/16
to DroidScript
The error shown if i start the downloaded file is
Error creating WebGL context

BareK

unread,
Jun 27, 2016, 9:50:45 AM6/27/16
to DroidScript
@Alex as Dave stated, your device probably doesn't support WebGL.
So the sample code cannot work.

Alex F

unread,
Jun 27, 2016, 10:59:12 AM6/27/16
to DroidScript
Is there a possibility to add it to my device?

Dave Smart

unread,
Jun 27, 2016, 1:07:51 PM6/27/16
to DroidScript
Unless your phone carrier supplies you with an upgrade to Lollipop, then your only option is probably to install "Cyanogen Mod", but that might be a bit drastic and might be a little risky.  (I'm not 100% sure Cyanogen supports WebGL, but I expect the latest versions will)

Alex F

unread,
Jun 27, 2016, 1:12:51 PM6/27/16
to DroidScript
I have v 4.4.2 I don't know the name (kitkat lollipop ...)
no update available.

Alex F

unread,
Jun 27, 2016, 1:22:27 PM6/27/16
to DroidScript
Ok if i have a new device I will root this device and download CM.

BareK

unread,
Jun 27, 2016, 1:25:25 PM6/27/16
to DroidScript
I am on CyanogenMod 13.1 (Marshmallow) and WebGL works on it.

Netpower8

unread,
Jun 27, 2016, 1:26:35 PM6/27/16
to DroidScript
Aw... My phone dont work also. Shucks. Error creating WebGL... Well its ok. :)

Rodrigo Faustino

unread,
Jun 27, 2016, 4:14:56 PM6/27/16
to DroidScript
I think before versions of Android before Lollipop. are not compatible as Dave said

Rodrigo Faustino

unread,
Jun 27, 2016, 4:17:51 PM6/27/16
to DroidScript
I found a version that does not use WebGL that can be of help for those interested only did not use because it is not responsive, tried everything, but someone here can try and share if successful

Reply all
Reply to author
Forward
0 new messages