#penguin iglo - android vr test
72 messages · Page 1 of 1 (latest)
Hi are you using a VR device? or is this in your phone?
Looks like a phone
Do you mind telling me how you did this please?
Put the xr like a normal vr game but put its code on ready
var arvr_interface = ARVRServer.find_interface("Native mobile")
if arvr_interface and arvr_interface.initialize():
get_viewport().arvr = true
I make its on godot 3
On godot 4 i no know if is the same
Alright thank you Marcelo
I'm trying to create hand tracking technology for Android phones
I tried and it didn't work can you show me exactly the code and how you did this?and also godot 3 didn't have an option for xr/VR only godot 4 does
Also how's the farm game progress going
here
Thank you alot
So you used normal camera? But when you set up the movement it became like a very camera
no, i used this camera
Hmm but how did you get it on godot 3
I found it @real flint
Is it possible to port this thing to godot 4? I can try and see if it works
If it does we can also add hand tracking and we would have literally fully working vr game on just an Android phone
in godot 4 it must be this camera
Yes and I would have to modify the code
Good luck, I hope you can make it
Thank you Marcelo
If I make it possible I will tell you
And you can add that feature to your farm game maybe
Ok, thanks
Hey marcelo I know I asked you alot but I tried copying your exact code and I got this problem on line 16
var direction = ($vr/camera.global_transform.basis * Vector3(input.x, 0, input.y,)) * 10
It says expression expected or expressão esperada in Portuguese
there is a comma after input.y
sorry for the delay, discord didn't notify me
It is ok do not worry
Marcelo I feel like you haven't shown me the full code because there is a horizontal slider down that shows more code and I keep getting errors because my code isn't complete
So can you show the rest of it? @real flint
Thanks and you can reply when ever you can
Also about the hand tracking I realized I actually can't add it so I'll try to make vr hand controllers
There really is all the code
But I encountered another error
you're right, I thought it was cut downwards not to the side
https://filetransfer.io/data-package/t7DZAs6t#link
here the file if you want
$Tween.interpolate_property($vr,"rotation_degrees",$vr.rotation_degrees,$vr.rotation_degrees+Vector3(0,45,0),0.3,Tween.TRANS_CUBIC)
The line
Yes
it's a zip of the files
If you want you can import the zip directly
It says I cannot
I need an empty folder
Wait I have an idea
It didn't work sadly
On my cell phone it's normal, I don't know why it's like that
Oh I see so I think I need to edit it
Thank you a lot though you helped me alot
Are you currently working on any projects?
yes a duck dark souls
4 because of multiplayer
I can help you if you want I have nothing I'm working on right now
And I want to learn more about Godot
@real flint if you want you can tell me
thanks but I don't need help with programming, sorry
It's ok no problem
@real flint I think the problem is with the rotation because it does a full 360 circle than moves a little bit then does a 360 circle again
Or it's probably just with my device
What phone are you using?
Sangsung a14
I realy no know
What part of the code is responsible for the camera movement from what line to what line
Because I edited all the numbers and changed it and nothing changed
none
The camera that does this