VR Game in scratch.

id: 225849

category: Collaboration

posts: 274

kiligrew kiligrew loading
This is the main plan. I want to get something like Oculus Rift or Google Cardboard (Something like that). And then I want to in some way connect the PC to the Phone (If we do something like Google Cardboard.). That's step 1. Any thoughts?

Step 2: would be making the game. Though I'm not entirely sure what this game is going to be about. I think we should start off kinda easy, so we can get the hang of it. But I also want to make this game, will, AWESOME! So That's step 2. Is any suggestions on how I should do this?

Step 3: Testing! This step is going to be intermingled with Step 2 though. I'm just gonna need help testing it on different phone sizes (Again if we use phones). If you wanna test… Great!

Conclusion: Thank you so much for all of you help! Any suggestion would be Marvelous! I'll go more in detail about what I am planning with this, I just need to know if you want to help or not. So will you?

If you want to do it, Please tell me what you want to be:
A Tester.
a Programmer (Please be good)
A Engineer (Basically someone who does research on the whole VR thing.)

If you have any suggestion please tell me. Thanks!
Minecart696 Minecart696 loading
A VR Game is not possible in Scratch. 3D is already near impossible and results in insane lagspikes, I don't think we can handle a VR.
kiligrew kiligrew loading
Minecart696, then let's not make it 3d. We can make a simple Animation that you watch. (And possible Interact With)
Minecart696 Minecart696 loading

kiligrew wrote:

Minecart696, then let's not make it 3d. We can make a simple Animation that you watch. (And possible Interact With)
how will you make it VR if it's not 3D?
kiligrew kiligrew loading

Minecart696 wrote:

kiligrew wrote:

Minecart696, then let's not make it 3d. We can make a simple Animation that you watch. (And possible Interact With)
how will you make it VR if it's not 3D?

Easy. Well just make a small animation. Nothing 3D, just a 2d animation. Well make the frame on the left see the left more, and the frame on the right see the right more.
what if you take a 3d photo and turn it 2d in scratch, so when you move around (tilt) the _____ it moves the photo to give a sense of a 3d world
43superm 43superm loading
TESTER PLEASE!!!!!!!!!!!!!!!!!!!!!!
Not possible in Scratch.

Would only be possible, if ported in Java.

The only problem with that is Squeak, doesn't support VR connection.

<[possibility] = [0]>
Baldi2 Baldi2 loading
Well, you can use video motion. This link shows a working scratch vr game by motion! –> scratch.mit.edu/projects/294416749/
I know how to make one. I made a red box that you can move with your hand.

VeryPlushSuprise wrote:

Not possible in Scratch.

Would only be possible, if ported in Java.

The only problem with that is Squeak, doesn't support VR connection.

<[possibility] = [0]>
There are multiple engines that support vr, so you would not need to use java
IAMTHEOWL IAMTHEOWL loading
It is possible to make a VR if it is a certain type of game. You will have to go to like a game studio not in scratch like a game maker like something like unity.We will have to type java script and then convert it to custom blocks in scratch. If it's super 3D or complicated then it should be impossible. But it is possible we just need to type it in like a game maker like unity and type it in java script and convert it to scratch in custom blocks.


when green flag clicked<[ScratchVrGame] = [Posible]>
I now realize that I am 4 years late to this conversation. I will try to make a VR game on Scratch even thought it may be impossible. (Side note: I am not a good programmer, but I will still try.)

Idea: We could use a computer mouse for the controllers. I think it would make it easier.
I think this might work out if done right
when green flag clicked
say [This is definately possible. If people do it on Unity, why can't we do it on Scratch? Let's do this!]
dantelin dantelin loading
I know im late but, what if we could instead of runniing it on scratch making it run on the pc itself and be programmed on scratch
We colud make an extention for connecting the Scratch enviroment to Steam VR output and use Riftcat or Trinus VR for streaming it to Google Cardboard
That not would only add support to expensive VR but to cheap vr and taking all the advantages of VR
For rendering 3D we could try Phosphorus, it loads the games on js so its faster, but it would have to be very simple as for rendering we should have 2 cameras, If you are trying native, keep in mind that scratch has a 4:3 thing to make games on, and VR divides 16:9 into 2, 4:3 screen for SBS.
With SteamVR we skip the issue of sensors as SteamVR driver take care of that but it would require people to have installed not only steam, but steam VR.
idk maybe we can somehow add blocks so they comunicate to the browser extention wich has system access so it can work like an intermedary between SteamVR and Scratch.
Thats the only way i can think, i was thinking of custom variables that the browser detects thought the extention wich may be harder but at least we could use the native blocks and will run on SteamVR
The other option is for Scratch to add support of SteamVR but thats imrpobable.

Heres some example code of how it would work, obuisly with custom blocks

when green flag clicked
enable SteamVR mode
repeat until <(steamVR) = (on)>
say [This game only works in VR] for (2) secs
end
when [VRTrigger Left] controller key pressed
move (12) steps
wait until <vr headset looking at [Sprite1]>
go to x: (23) y: (10) z:(23)
when green flag clicked
go to (SteamVRPositionPointer)

This is just an example with custom blocks
It doesn't have to work like this

Hope i helped, stilll cool idea thought
In order for this to work, we may have to use a keyboard to turn the character.
dantelin dantelin loading

Undistalsics1937 wrote:

In order for this to work, we may have to use a keyboard to turn the character.
That would be a good alternative to vr controllers
Srry Im late to the discussion but could'nt we use the distance sensors from LEGO MINDSTORMS EV3/EV4 to make a vr controller and then create a program to connect t to a vr program via javascript via phosphorus. Or we could in-fact emulate Kinect's motion controls inside a pprogram and make an all-new game altogether
redwolf300 redwolf300 loading
try using the phone camera to make an augmented reality and then use that in a 3D or raycaster engine

redwolf300 wrote:

try using the phone camera to make an augmented reality and then use that in a 3D or raycaster engine
That's a good idea!
AnAlgorithm AnAlgorithm loading
Virtual reality may need a headset and all that. Try doing something just that you can create it 3D. (Try using pen)
I have a game. While it is not VR it is still pretty close. here is the link https://scratch.mit.edu/projects/419689209
redwolf300 redwolf300 loading

Undistalsics1937 wrote:

redwolf300 wrote:

try using the phone camera to make an augmented reality and then use that in a 3D or raycaster engine
That's a good idea!
it might not be so easy tho
AnAlgorithm AnAlgorithm loading

_tastynoodles_ wrote:

I have a game. While it is not VR it is still pretty close. here is the link https://scratch.mit.edu/projects/419689209
Sorry, but a 404 error is coming. Did you unshare it?
AnAlgorithm AnAlgorithm loading

Minecart696 wrote:

A VR Game is not possible in Scratch. 3D is already near impossible and results in insane lagspikes, I don't think we can handle a VR.
3D is possible, only it's a bit hard, adding the extra dimension ‘z’.
ok my game is back
i just needed to fix a bug
Scratch needs to make a app for Scratch VR on phone then make some kind of lego thing

VeryPlushSuprise wrote:

Not possible in Scratch.

Would only be possible, if ported in Java.

The only problem with that is Squeak, doesn't support VR connection.

<[possibility] = [0]>

you liar,yes it's hard, but i've seen vr plane games on scratch

kiligrew wrote:

Minecart696 wrote:

kiligrew wrote:

Minecart696, then let's not make it 3d. We can make a simple Animation that you watch. (And possible Interact With)
how will you make it VR if it's not 3D?

Easy. Well just make a small animation. Nothing 3D, just a 2d animation. Well make the frame on the left see the left more, and the frame on the right see the right more.

REALLY?!!?!? THE WHOLE POINT WAS TO MAKE IT VR AND CONTROLLABLE

asherbobasher wrote:

what if you take a 3d photo and turn it 2d in scratch, so when you move around (tilt) the _____ it moves the photo to give a sense of a 3d world
use the webcam

WAFFLEWIZARD999 wrote:

VeryPlushSuprise wrote:

Not possible in Scratch.

Would only be possible, if ported in Java.

The only problem with that is Squeak, doesn't support VR connection.

<[possibility] = [0]>
There are multiple engines that support vr, so you would not need to use java

yeah,we can't do it in scratch(well,not really)
An A.R game in Scratch might be possible, a V.R game has a very low chance of success, and using a mobile device , could in-fact, break the entire program

dantelin wrote:

Undistalsics1937 wrote:

In order for this to work, we may have to use a keyboard to turn the character.
That would be a good alternative to vr controllers

wireless or connected?,controller,or camera?

_tastynoodles_ wrote:

I have a game. While it is not VR it is still pretty close. here is the link https://scratch.mit.edu/projects/419689209


no, i checked that, that's NO WHERE NEAR VR
ok guys i am currently working on a 3D vr game in scratch
AnAlgorithm AnAlgorithm loading

_tastynoodles_ wrote:

ok guys i am currently working on a 3D vr game in scratch
Me too! (But I just want to know if there is a way you can do it with a headset)
Is there an option on the Oculus Rift, Google Cardboard or Windows Mixed Reality Portal that it can connect to Scratch and you can design a game there? (I think it's for the Scratch Team to decide)
i really wish there was a way tho
i had the idea of a player controlling some sort of 3d hand
however this may take a while
AnAlgorithm AnAlgorithm loading
I think we should leave the 3D Viewer for later…so we can work on how the project will be.
Here are my suggestions-
1. Create a 2D sketch of your area you want to make
2. Make the 3D wireframe
3. Fill in the 3D shapes
4. Make a virtual world by combining simple, complex and custom shapes
5. THEN WE CAN WORK ON THE HEADSET
(P.S I'm ready to join a collaboration on this if you want my help)

redwolf300 wrote:

try using the phone camera to make an augmented reality and then use that in a 3D or raycaster engine
AnAlgorithm AnAlgorithm loading

redwolf300 wrote:

try using the phone camera to make an augmented reality and then use that in a 3D or raycaster engine
My idea is that we make the project, with projecting two images on the screen. From the headset we can experience the 3D effect.
And, making a headset isn't all that hard. You can make it out of a cardboard box.
scratchermr scratchermr loading
you can made lost of 3d photo frames like stop motion then when you use some sensors to change the photo then you make two screens and make it openable on phones and put it on your vr machine
-CloudGate- -CloudGate- loading
I actually made a VR game in my old account @meunspeakable , and it seems like what you're trying to make, you can use it as a base
-CloudGate- -CloudGate- loading

-CloudGate- wrote:

I actually made a VR game in my old account @meunspeakable , and it seems like what you're trying to make, you can use it as a base
https://scratch.mit.edu/projects/348520856/ is the game, tilt the camera up and It goes up, tilt it left and it goes left and so on
FatRhabbit FatRhabbit loading

asherbobasher wrote:

what if you take a 3d photo and turn it 2d in scratch, so when you move around (tilt) the _____ it moves the photo to give a sense of a 3d world
Dude that is not gonna work. its just gonna show you the 3D photo and you can't tilt it until you actually put some coding. but it is a good idea
FatRhabbit FatRhabbit loading

AnAlgorithm wrote:

redwolf300 wrote:

try using the phone camera to make an augmented reality and then use that in a 3D or raycaster engine
My idea is that we make the project, with projecting two images on the screen. From the headset we can experience the 3D effect.
And, making a headset isn't all that hard. You can make it out of a cardboard box.
how do you fit the actual VR headset onto the phone if the phone shows scratch but the whole game doesn't fit the screen though?
FatRhabbit FatRhabbit loading
Wait. What if we use the movment settings and make it track your head and move you in the game also?
FatRhabbit FatRhabbit loading

AnAlgorithm wrote:

I think we should leave the 3D Viewer for later…so we can work on how the project will be.
Here are my suggestions-
1. Create a 2D sketch of your area you want to make
2. Make the 3D wireframe
3. Fill in the 3D shapes
4. Make a virtual world by combining simple, complex and custom shapes
5. THEN WE CAN WORK ON THE HEADSET
(P.S I'm ready to join a collaboration on this if you want my help)
how do you make raycasting so then it just doesn't show the 3D shape as a 2D shape in a 3D world.