WebGL now supported in DroidScript!

483 views
Skip to first unread message

Dave Smart

unread,
Apr 20, 2015, 6:46:19 AM4/20/15
to androi...@googlegroups.com
Hi Guys,

Exciting news... WebGL is now available in DroidScript when running on Android Lollipop!

This means you will be able to create all sorts of cool 3d graphics like the ones shown here:- http://threejs.org/examples/
Note: For older Kitkat devices, the css3d and canvas demos on the above site should still work.

Check out the new "Molecules" demo in the WiFi editor's demos section for a nice example of css3d running in a WebView control.

Regards
David

Black Virus Script

unread,
Aug 6, 2015, 7:11:43 PM8/6/15
to AndroidScript
When i run any code from there, appears:
"Script Error: THREE is not defined"
How can i fix ?

Chris Hopkin

unread,
Aug 7, 2015, 4:27:09 AM8/7/15
to AndroidScript
If you are trying to run the examples from a DroidScript App, you need to make sure you also have the three.min.js file, and update the <script> tag src attribute to point to it's location.

If you haven't already, get the Molecules demo from the Wifi IDE Home page. It includes the three,min.js file and is a good demo of using three.js in a DroidScript App.

Chris

Xyzor Max

unread,
Jan 16, 2016, 1:43:13 PM1/16/16
to DroidScript
I am new to droidscript. can you give a more direct pointer to the molecules demo code, I cant find it anywhere here.

I am familiar with three.js but dont know how to use it from within a droidscript app.

many thanks
max

Dave Smart

unread,
Jan 16, 2016, 1:47:45 PM1/16/16
to DroidScript
Load up the WiFi editor and go to the 'Demos' tab on the home page, then you can download the SPK to your device. 

(Press the little button at the top of DroidScript to start the WiFi editor)

Xyzor Max

unread,
Jan 17, 2016, 4:28:17 PM1/17/16
to DroidScript
thanks dave. 

but the wifi editor does not work for me. 
i get a "connection refused" error.

but i dont want to use the wifi editor anyway - i do my coding on the android itself and dont want to connect with a windows device.

can you post a link here to the actual code for molecules so i can access it?

many thanks
max


Dave Smart

unread,
Jan 18, 2016, 6:05:51 AM1/18/16
to DroidScript
Hi Max,

Do you have  a Mac or Linux PC?  You don't need a windows machine to use the WiFi editor, you just need a wifi router and a computer with a browser.  

Note: You will have problems trying to use the WebGL sample with DS purely on the device because the sample includes multiple files and DS does not currently support editing of multiple files on the device.  You will need to resort to a 3rd party editor (until we add support multiple files).

All the demos SPKs can be found here:- http://androidscript.org/Home/demos/

Regards
David

Xyzor Max

unread,
Jan 19, 2016, 6:21:09 PM1/19/16
to DroidScript
many thanks indeed dave

i installed the droidscript app on my chromebook and that works a treat

so i have the molecules code and have cracked it!
now i will start wrapping other three.js examples for practice
then i can start building my own 3d webgl apps from scratch

i am so impressed with droidscript that i have subscribed to premium

so well done team - as darth vader would say; "impressive! most impressive!"

yo
max

Xyzor Max

unread,
Jan 19, 2016, 6:26:10 PM1/19/16
to DroidScript
and i meant to add..

i am using the WebMaster code editor on my android phone (as it understands js syntax etc) so i can do all my development on the android itself.
i am teaching kids to code on their phones - and most of them dont have laptops - so now i will use droidscript as the main platform for this

respect
max

Reply all
Reply to author
Forward
0 new messages