Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » VR (virtual reality) in scratch
- sinwoo0112
-
58 posts
VR (virtual reality) in scratch
Thanks for advice! Your best bet (for speed and mobile use) would probably be to mod phosphorus, change the fps limit to 90 (the ideal min fps for VR) and get the fastest phone you can find.



- sinwoo0112
-
58 posts
VR (virtual reality) in scratch
this and phosphorus?not exactly… I'm using the google technique of a smart phone like the imcardboard Use >>>buy it at imcardboard.com
- sinwoo0112
-
58 posts
VR (virtual reality) in scratch
Day3 has come… =.0 sleepy, building prototype 2 01110100011010000110010100100000011011100110000101101101011001010010000001101001011100110010000001010000010101000010110100110000001100000011000000110010.
- al-x
-
45 posts
VR (virtual reality) in scratch
I don't think this is possible unless you rewrite Scratch in Java or any language that compiles to Android namely because you can't use the gyro unless it's a native application. Maybe there's some framework I don't know of (like a wrapper for android maybe?) but as far as I know you can't use gyro with html5 or js.
Edit: I forgot about Pyonkee so you could potentially get this working on iOS but I still don't know about Android.
Edit: I forgot about Pyonkee so you could potentially get this working on iOS but I still don't know about Android.
Last edited by al-x (June 29, 2016 13:55:08)
- technoboy10
-
1000+ posts
VR (virtual reality) in scratch
This isn't strictly true - projects like you can't use the gyro unless it's a native application.WebVR are able to use the gyro because the VR APIs are built into Chrome (at last for Android).
Last edited by technoboy10 (June 29, 2016 14:32:21)
- al-x
-
45 posts
VR (virtual reality) in scratch
Ah okay, so would you need to make a script in js that communicates with the Scratch mod?This isn't strictly true - projects like you can't use the gyro unless it's a native application.WebVR are able to use the gyro because the VR APIs are built into Chrome (at last for Android).
Edit: Sorry I'm still asleep, I totally forgot that Scratch is being remade in html5 and js when I wrote this question.
Last edited by al-x (June 29, 2016 14:54:08)
- karatebuilderboy
-
100+ posts
VR (virtual reality) in scratch
Hey, guys! @thepeanutman98 and I have been working on a VR headset for about 2 years now. It's raspberry pi powered, and can use moonlight to stream a steam game from your PC to the headset. I've been able to convert a couple Scratch projects into swf and run them through steam. If a program is then set up on the PC (or the pi, since the gyroscope that tracks head movement is on the pi) to always set the mouse position to the center of the screen, and the project is mouse-controlled, things work!
By the way, we're using a stereoscope, so it's necessary to use something like Trinus VR to split-screen it. @Layzej (I think) has a stereoscopic 3d game, so that didn't need to be split-screened, but the motion was a bit weird…
…So yeah! Scratch in VR is totally doable!
P.S. You could also stream a browser to the pi, but then you see the browser stuff as well, not just the project…
By the way, we're using a stereoscope, so it's necessary to use something like Trinus VR to split-screen it. @Layzej (I think) has a stereoscopic 3d game, so that didn't need to be split-screened, but the motion was a bit weird…
…So yeah! Scratch in VR is totally doable!
P.S. You could also stream a browser to the pi, but then you see the browser stuff as well, not just the project…
- sinwoo0112
-
58 posts
VR (virtual reality) in scratch
moonlight to stream a steam game from your PC to the headset. I've been able to convert a couple Scratch projects into swf and run them through steam. If a program is then set up on the PC (or the pi, since the gyroscope that tracks head movement is on the pi) to always set the mouse position to the center of the screen, and the project is mouse-controlled, things work!WOW! nice job! I may or may not try it Hey, guys! @thepeanutman98 and I have been working on a VR headset for about 2 years now. It's raspberry pi powered, and can use
By the way, we're using a stereoscope, so it's necessary to use something like Trinus VR to split-screen it. @Layzej (I think) has a stereoscopic 3d game, so that didn't need to be split-screened, but the motion was a bit weird…
…So yeah! Scratch in VR is totally doable!
P.S. You could also stream a browser to the pi, but then you see the browser stuff as well, not just the project…
- master_tolkien
-
100+ posts
VR (virtual reality) in scratch
What's the point of 2d virtual reality?
- sinwoo0112
-
58 posts
VR (virtual reality) in scratch
hmm… good point, but it a step to VR What's the point of 2d virtual reality?
- BKFighter
-
1000+ posts
VR (virtual reality) in scratch
But it can easily become 3d VR. There was some project that made a 3d looking explosion using two different camera angles; one on the left, one on the right, and you just had to put the computer in your face to make it look real. html5 + that + phone w/gyros = Scratch VR in 3D.hmm… good point, but it a step to VR What's the point of 2d virtual reality?
- karatebuilderboy
-
100+ posts
VR (virtual reality) in scratch
When I get time, I'll make a project about how to build the headset. Right now, I'm busy with other things, though.moonlight to stream a steam game from your PC to the headset. I've been able to convert a couple Scratch projects into swf and run them through steam. If a program is then set up on the PC (or the pi, since the gyroscope that tracks head movement is on the pi) to always set the mouse position to the center of the screen, and the project is mouse-controlled, things work!WOW! nice job! I may or may not try it Hey, guys! @thepeanutman98 and I have been working on a VR headset for about 2 years now. It's raspberry pi powered, and can use
By the way, we're using a stereoscope, so it's necessary to use something like Trinus VR to split-screen it. @Layzej (I think) has a stereoscopic 3d game, so that didn't need to be split-screened, but the motion was a bit weird…
…So yeah! Scratch in VR is totally doable!
P.S. You could also stream a browser to the pi, but then you see the browser stuff as well, not just the project…
- happyland440
-
1000+ posts
VR (virtual reality) in scratch
You could strap a WEDO motion sensor to a Cardboard viewer and some make a 360 picture viewer and view the project in Phosphorous on a device that has Flash, if you could even have the device pick up the WEDO. Nope, this won't happen until Scratch ports to mobile. Wait for Scratch 3.0, kids.
Last edited by happyland440 (July 9, 2016 20:20:10)
- karatebuilderboy
-
100+ posts
VR (virtual reality) in scratch
See my earlier post. I got it working with Scratch 2 and RPi. You could strap a WEDO motion sensor to a Cardboard viewer and some make a 360 picture viewer and view the project in Phosphorous on a device that has Flash, if you could even have the device pick up the WEDO. Nope, this won't happen until Scratch ports to mobile. Wait for Scratch 3.0, kids.
- sinwoo0112
-
58 posts
VR (virtual reality) in scratch
you can basically use scratch on phone, just use the puffin app. You could strap a WEDO motion sensor to a Cardboard viewer and some make a 360 picture viewer and view the project in Phosphorous on a device that has Flash, if you could even have the device pick up the WEDO. Nope, this won't happen until Scratch ports to mobile. Wait for Scratch 3.0, kids.
- comp09
-
1000+ posts
VR (virtual reality) in scratch
Warning: low frame rates (anything Scratch) are very likely to cause nausea and discomfort. You have been warned. 

- sinwoo0112
-
58 posts
VR (virtual reality) in scratch
DUDE I“M A BIG FAN!!!!! OMG FREAK”N OUTTTTTTT!!!!!!!!!!11!!!!!!!!!!!!!!!!!!!1111!11!!!!!!!!!!!!!!!!1 Warning: low frame rates (anything Scratch) are very likely to cause nausea and discomfort. You have been warned.
- Discussion Forums
- » Advanced Topics
-
» VR (virtual reality) in scratch