#🥽┃virtual-reality

1 messages · Page 58 of 1

wraith shale
#

apparently URP's fog is broken if you use deferred and VR in SPI mode

#

(I sent Unity a report already but it could be known issue already, just didn't find anything on search)

outer escarp
#

is it possible to set up unity so that I can click play and play a vr game through virtual desktop on oculus quest?

wraith shale
#

@outer escarppretty sure you should be able to do that now with OpenXR and SteamVR

#

VD works with Unity's OculusXR but I don't think you can easily hook it into editor, works on actual builds though

#

well.. there is one way but it's bit sketchy

#

is there some reason you don't want to use AirLink?

#

it works fine in Unity editor regardless of the VR backend (OculusXR, OpenXR, OpenVR, SteamVR all work)

#

I pretty much stopped using VD with Unity dev the moment AirLink released, it just made things so much simpler

#

(but I get the appeal of VD as it does do some things better - and many things worse)

grand bear
#

it is super convenient to not have your cable dangling

wraith shale
#

yeah but that's what the airlink is for too

#

it's basically VD clone, but using official API

#

I totally get the urge to not have the cable around the headset, I don't use cable on my quest 2 for anything but uploading native quest 2 builds

wraith shale
#

OpenXR could still fail if it needs some injection for it, I haven't used VD since the dev added OpenXR support

outer escarp
wraith shale
#

ah

outer escarp
#

I've read many people on reddit and the quest store that vr desktop is more lightweight on lower end pcs

gray lintel
#

Man the transparency issues with MSAA on the quest 2 are doing my head in, feels like I may just have to lean into using multipass instead of multiview

#

Is any non-MSAA even viable for quest?

north path
#

@gray lintel I wonder, does the issue still occur on vulkan?
Performance should be decent on 2020 lts (on 2021+ disable depth)

#

And msaa is definitely recommended in VR

storm ether
#

would any of you people like to play test our concept game?

gray lintel
agile dune
#

Does anyone know why my XRRig collides with walls but not the floor? The walls and floor both have rigidbodies

#

Nevermind, simple fix

clear tinsel
#

Your manifest includes the following permissions restricted by Oculus:

  • android.permission.RECORD_AUDIO
#

I get this issue when uploading to applab

#

It seems like the oculus apk is adding it

#

How do I remove and fix this

#

Anyway to fix

clear tinsel
#

Apparently it’s caused by unity automatically adding it to the permissions since it’s referenced in scripts in the oculus apk

#

How would I fix this

void oyster
#

Are you using a third party plugin which has an Android Manifest requesting microphone?

#

Maybe checkout Player Settings there is a Microphone setting there. I cant remember exactly atm.

clear tinsel
#

The only fix I found online for this issue was to modify all the files using it to not but I can’t find anything showing what files use it

clear tinsel
agile dune
#

Anyone know why my xr grabbable does this when I use the joystick on the corresponding hand?

clear tinsel
#

That was a pain

#

I had to extract the android manifest and rebuild it then resign it

#

It’s so stupid how oculus hasn’t fixed this apparently it’s been a problem for a long time

#

Spending an hour each time I want to update and release a new build is gonna be a pain

#

I can also blame unity since there’s no way of stopping it from automatically adding on permissions during the build that can not be stopped

void oyster
#

You can change the existing Android Manifests and remove mic permissions

clear tinsel
clear tinsel
#

Anyone know how long applab submissions take to be approved

wraith shale
#

I think Carmack mentioned on his Connect talk that it's currently about 2-3 months

#

no idea if things have changed since but it's been like 1-2 months since the talk so I wouldn't expect major changes

#

@clear tinsel

brazen tundra
#

Merry Christmas everyone!

#

I'm developing my game using OpenXR, and whenever someone that uses Oculus and Virtual Desktop at the same time tries to play my game, it crashes when they try to recenter or lose headset tracking. And this is the error report. Anyone knows what this is?

north path
#

@brazen tundra

  • try the latest (2021.2) version?
  • tried different APIs (vulkan etc)? see something about that in the screenshot
  • do they maybe need to enable steamvr?
#

Unity logs also might be helpful

#

They're in appdata after the crash

brazen tundra
#

Reinstalled OpenXR

brazen tundra
#

Gonna try again with the new Unity Version now

north path
#

Probably the same then. VD probably uses steamvr as access point

#

Don't think it's a unity issue but can be mistaken

wraith shale
#

VD is tricky one

#

you are essentially dealing with VR emulator on windows side there, and the dev has reverse engineered Oculus API so if it tries to run that on oculus side on OpenXR, that could cause all kinds of grief

#

in addition VD dev + community is quite toxic against actual VR devs, basically blaming others for VD issues

#

good thing AirLink does exist now (altho I do get some still prefer VD)

#

there's been some VD specific issues in past and Unity staff have pretty much raised hands up in such cases in past, so your chances to get Unity to fix that kind of crash could be challenging

#

could still try to send a bug report or try to repro the issue with AirLink etc but there's no similar recenter functionality there...

#

also totally possible VD screwed up something with the OpenXR support there with the recenter functionality...

#

@brazen tundra^

brazen tundra
#

Thanks @north path and @wraith shale !

#

Not sure what to do now, because this seems to only happen to my game =/

#

Is it because all the other VR devs were smart enough to not upgrade to OpenXR?

wraith shale
#

I don't think it's reasonable for VR devs to specifically support VD if it breaks things but if you really care about it, you could try to work the issue with VD dev (VD has own discord group) or make a custom XR plugin loader for your game and let players override the default XR plugin so it doesn't use OpenXR with VD

#

you could for example make commandline parameter for for using OpenVR instead

#

or OculusXR if you ship on Oculus store

#

OculusXR only supports DX11 on windows - just mentioning this in case it's an issue

brazen tundra
#

Thanks a lot!

#

Will get in touch with them if I cannot get this to work

bitter sundial
#

Hey I have a problem. I am trying to get started with Unity VR using OpenXR, and it works but my hands are a bit further away than they should be. I am using an Oculus Quest (not 2), and I tried using Air Link and Virtual Desktop, both yield the same result. I could not find a setting for it or any documentation or post on the matter. I made sure everything it at a position of 0,0,0 and haven't touched anything beyond adding the input stuff and an XR Rig

north path
bitter sundial
#

Yes the models are at 0,0,0
I am using XR Interaction Toolkit. I know it was removed from the package manager but I couldn't find an alternative

north path
#

Oh it's still perfectly good to use, idk why it's not there.
Do the pose trackers have the correct hands specified and are oculus touch controllers added to openxr?

bitter sundial
#

I added Oculus Touch to the openxr settings yes, but I don't know what pose trackers are

tiny niche
bitter sundial
#

They have removed it even with pre-release packages enabled, many people mentioned it when I looked it up

#

You have to use the git url

tiny niche
#

ah, must be something recent then

wraith shale
#

it's been a while like this now

#

but the instructions are on the XR toolkit doc too

#

(doc page link on pinned)

#

apparently it does show up the package in 2019.4-2020.3 if you have preview packages enabled but is hidden since 2021.2+

tiny niche
#

@wraith shale yea but according to the docs you can just name the package manually instead of referencing their git repo

wraith shale
#

it never needed git repo

#

the "add git package" etc thing had hidden functionality in some package manager versions

#

but they made it more clear on newest iterations and added "add by name" kinda thing there

#

basically the git thing there doubled as "add by name"

#

which obviously is not a very clear way of doing this

#

tbh, I prefer this name based setup more than the preview package thing

#

it's always PITA to go toggle that for new projects, so I typically just dont and I just add preview packages by name anyway

#

for starters I wouldn't even know which packages would show there and which do not... when you just add by name it will show up regardless as long as it's in their registry

stable breach
#

Anyone happen to know a good tutorial or reference for setting up XR rig hand controls?

agile dune
#

Xr interaction toolkit

#

@stable breach

amber igloo
#

Could someone point me to a good starter template that could help me make a Resident Evil 7 VR feel but with the firearm characteristics of Pavlov?

#

Scary, unease, claustrophobic, limited resources.

lone knoll
#

have anyone tried making steamVR compatible games with openXr only ( without using the steam plugin from the asset store ) ?

fiery patrol
#

Is there any way to record video and take screenshot in game ? Oculus quest ?

tiny niche
#

yes

pearl gate
#

Hello, I've been trying to get teleporting to work using XR, and after watching hours worth of tutorials and looking around the internet I just can't get it to work. All I managed to get is a beam that can teleport items to the hands, but the player itself won't change location at all?

wraith shale
#

@pearl gatehave you tried XR interaction toolkit? it has teleport mechanic built-in

#

look into pinned messages for examples (there's actual git repo with examples + tons of learn materials)

lofty tangle
sage dome
#

anyone know where I can find the xr interaction toolkit. I have enabled pre-realease packages but can't find it.

#

I am using version 2021.2.7

wraith shale
#

you have to add the package manually

#

(on 2021.2+)

outer escarp
#

Is there any good course for VR on Unity? I did gamedevtv's 3d course and it was great, but I can't find one for VR that looks good

#

the ones I find are either too short or outdated,and unity official one feels like reading the docs :awkward:. If there's a course that is specific for the oculus quest that's ok too since that's what I'm using

#

the ones I find are either too short or outdated, and the unity official one feels like reading the docs haha. If there's a course that is specific for the oculus quest that's ok too since that's what I'm using

fiery patrol
#

How to store screenshot at Picture folder Oculus quest ? using c# ?

pearl gate
gray perch
#

hey all, trying to setup an input-action that allows me to grab objects using the XR interaction toolkit, and am not exactly sure how to setup the bindings on the controllers --> can anyone point me in the right direction?

tawdry ocean
floral acorn
#

I've been working on a unity project with the xr plugin for many months with the rift s and a vive cosmos elite. For some reason, I'm unable to play test my project in editor (never had that issue before). I'm sure it's on SteamVR's end because I did not mess with any Unity related stuff until this morning when the bug occured. Instead of saying "Playing PunjiVR", it looks like this:

floral acorn
#

Nevermind, I just found out that steamvr messes up when the scene view is maximized for some reason.

gray perch
#

Running into a pesky issue -- I hit "play" from the Unity Editor --> my Oculus Quest 2 is connected via Link but the project doesn't render in my Quest...it's very finnicky...i reset the PC and the Quest, enable and disable the link...and it works, but it is not consistent and I am not sure what the issue is (Running on 2020.3.25f1)

quartz slate
#

is the following irony not lost on anyone else?: The best possible visual effects for VR experiences (bump maps, volumetric smoke and lights, transparency, reflections, PP, etc; i.e: things that actually create meaningful depth) are fundamentally too expensive for the Quest?

fleet spire
#

any volumetric and post effects are going to be too expensive for something with the power of a mobile phone, no way around it

quartz slate
#

but then they shank you in the liver with the overdrawing pitfalls of transparency (which is the next best way to fake volumetric stuff)

wraith shale
#

@quartz slate in ideal case, everything would be unlit shaders or if there's lighting, it's all baked

#

have you played a lot of Quest games? it should give you some idea what you can expect but in general, Quest versions look very stripped down

#

many games can't even render at native resolution due to perf concerns

#

also... at the same time, best looking quest games tend to be very stylized, there's only few more realistic looking ones that look decent (it's just way harder to pull off there)

#

same applies to some extent to even on PCVR but at least you can do some extra processing

#

also would debate on reflections being good effects for VR... they are a major PITA to get aligning properly in true VR. outside VR, nobody can tell if your reflections are tad off, in VR it looks horrible immediately

sharp radish
#

is there away to test your vr game wirelessly without virtual desktop?

wraith shale
#

@sharp radishAirLink?

sharp radish
quartz slate
# wraith shale have you played a lot of Quest games? it should give you some idea what you can ...

I have played a fair amount; mostly they look pretty flat but a few of them do alright. I'm not naïve about Oculus limits, but I find it ironic, or just plain unlucky, that the best type of effects for VR are also inherently the most expensive.

From the perspective of my physics stuff, especially with 3DOF tumbling in space, distant objects, and fast movement, the need for volumetric stuff is very apparent. It can make scenes look incredibly good and seamless at a range of distances (including while being inside them), but it also creates 3D detail that, when parallaxed, gives a much more immersive sense of depth and movement...

#

in the context of mobile VR (and PCVR too somewhat), it seems like having a toolkit of efficient and effective high quality effects will be critical to actually making good content in years to come

fervent sedge
#

Hey!

#

Which OAuth flow should be using in VR?

#

what do you prefer to go with?

#

I use Azure.

#

Thanks!!

urban cloak
blissful aspen
#

Ty

acoustic lodge
#

I mean, of course the best effects are going to be the most expensive. If an effect is both expensive and not as good as a cheaper effect then no-one's going to care about it; if a cheap effect is good, people will find an expensive way to make it even better. On any hardware the challenge is always to make things look as good as you can within the hardware's limitations. That's nothing specific to VR.

polar valve
#

I need some help with the steamvr interaction system.

I’m trying to retrofit it into kerbal space program as a mod. The gloves are rendering, but not in the right positions and while they move with the controllers, it’s not in the right axes (roll becomes pitch etc). It’s taken me many hours just to get to this point and I can’t help but think someone who knows what they were doing could have this hooked up in a matter of minutes.

#

Since it’s a mod, I can’t just drop a prefab into a scene. But I should be able to set everything up from code.

#

in the Player prefab from steamvr, there's an empty GameObject named SteramVRObjects that contains LeftHand, RightHand, VRCamera (which has a camera component), and SteamVR as child objects.

KSP has its own camera system, so I'm trying to figure out how to attach these components and objects into that system

acoustic lodge
#

I can easily imagine that KSP could make any kind of VR integration very difficult, since astronomical scales mean it's going to be all weird frames of reference all over the place. I'd possibly suggest trying to get it working for the in-cockpit view first, then try to work outwards from there to the other views?

polar valve
#

Right. I have a few things working by doing some reparenting: a lot of KSP code directly manipulates the transforms for the gameobjects that the Camera components are on. In VR that doesn’t work, so I make a child gameobject with a cloned Camera and disable the stock KSP one. Apart from some visual effects, this actually works pretty well.

The internal view camera was attached to a transform at the eye position, but I just moved the entire gameobject to be reparented to the seat origin. For the camera, that works fine. I also attached the component that manages the hands to this transform. But the hands aren’t where they’re supposed to be. I can see them and they move, but not the right way. I’m using some hacked up code from an older kerbal-vr mod that was originally sort of derived from the SteamVR code, rather than the actual Player component…maybe there’s some kind of disconnect there.

If you’re familiar with the SteamVR prefabs, would you attach the Player component to the seat’s transform for a seated environment?

polar valve
#

Yeah I think I should probably just switch to using the Player component..

ornate questBOT
#
Is Google Cardboard based applications and games still worth developing? I need some suggestions before I continue on my new 6DOF VR Implementation for google cardboard.

1️⃣ New inventions are welcomed

2️⃣ Mobile VR is dead

3️⃣ I Don't know...

4️⃣ PC/VR Hardwares are the thing

wraith shale
#

@solar sphinx those alternatives are totally flawed

#

you miss "no" option, "mobile vr" mostly means quest's today if you look at the market share they got on mobile space but I don't think your poll mean them. simply yes/no would have been better

#

also 6DOF for cardboard is doomed since there's no device support for such without external hardware... and at that point you are just paying for nonsense since you could then as well get actual VR headset

#

even if some phones has depth sensors that would let you pull of 6DOF without extra gear, userbase would be super limited

#

my assumption would be that cardboard vr experiences are pretty much dead in the water unless it's some 360 video thing

polar valve
#

I don’t have any experience with them but that seems like a shame since practically everyone has a phone that could work. VR is awesome but the amount of hardware out there still seems super limiting. But that’s just my naive take, maybe I’m wrong. Seems like a lot of quests were sold this Christmas

wraith shale
#

yeah but Quests are legit real VR devices, cardboards are not. they are more like something that can give you taste of VR without really going all the way. You can't get good VR experience with them for numerous reasons. People have tried to bring 6DOF to these setups before and failed, either by hardware being poor or too expensive (remember that Quest's are relatively affordable already so why would anyone pay serious money for something that's going to be subpar in every way and practically without any good content)

#

I don't wonder these got scrapped

#

it's was a nice dream

solar sphinx
#

I am just trying to do a feasibility study for taking my implementation to the next level

wraith shale
#

with single mobile phone camera?

solar sphinx
#

Yep

wraith shale
#

my thoughts would be, doubt on how well that can work. there's been single camera solutions but none of them have been precise enough for proper VR use

#

if you've solved it, congrats I suppose? 😄

#

I don't try to bash people's attempts for 6DOF cardboard... it's just... quite dead already and with currently affordable VR headsets with tons of content available, it's just not going to be great experience

solar sphinx
#

Here's my prototype roadmap

  1. Demo app ready with 6dof movement (Works well for maps greater than 10 meters because there will be drifting)
  2. Going to use Manomotion for hand tracking as a controller
wraith shale
#

even if you got the tracking working, getting actually proper headset that both had decent lenses and good enough cooling would be challenging

solar sphinx
wraith shale
#

I've tried riftcat, trinusvr etc for streaming PCVR to cardboard (bobovr which is among the better cardboard enclosures for generic devices).. but even when it worked, I could like play for half an hour before the whole thing overheated and battery got drained

#

but for avg consumer.. they don't want to go through with all that, and they are likely to try cardboard vr with somewhat horrible cardboard enclosure and never want to touch that again

solar sphinx
#

Right...even oculus runs out of battery quick...Its a glorified mobile VR 😬

wraith shale
#

quest still works for like 2h out of the box

solar sphinx
#

So overall you think its beating a dead horse...right?

wraith shale
#

I've done 5h HL:Alyx session on my Quest 2 with small powerbank attached but I stopped before batteries were drained

wraith shale
#

I just feel it's really hard to sell for people today when we have affordable VR headsets available already

#

it was kinda different when VR was new and these costed a fortune (or just werent all that great)

solar sphinx
#

Let me correct you there...VR headsets are definitely not affordable

#

Its freakin 50k in India

wraith shale
#

if you want phone that does 90Hz+ which you put into that cardboard, that's probably costing more than Quest 2

#

stock 60Hz is pretty horrible in VR

solar sphinx
#

Well... That was a good opinion i suppose

wraith shale
#

that's just one person's opinion though 😄

solar sphinx
wraith shale
#

how I see it, even if you got the tracking to work acceptably and found golden device combination. lack of proper content is a real issue

#

(unless you only go for PCVR but even then the streaming performance and latency is real issue)

solar sphinx
#

True...very true

#

Anyways lets hear from others as well, Thanks mate

solar sphinx
#

Please do let me know your comments

wraith shale
#

asking people to install random APK to their personal mobile phone is quite big ask

solar sphinx
#

Its upto them, If they want to try 6dof, Its just an unity app, nothing malicious 😂

abstract forge
#

hi there guys, im new to unity and started a course on XR for oculus, i have a very noob question but i can't seem to figure out how to align the XRcontroller to the hand model, when i move my controller my hand model is waaay off from where it should be, is there an easy way to fix this and have the hand model centered where the controller is?

solar sphinx
sage dome
#

I am trying to develop a vr game. And when in the game I am having some weird stuff happen with my controller model. The scale of it changes based on its distance from the camera. When its close it gets bigger and when its far it gets smaller. I know that this is how its supposed to be but the effect is overexagerated

#

Just overall the size of the scene is werid

#

Any settings I have to setup?

sage dome
#

I am having an issue that when I enable the OpenXR plug-in my controllers have a weird offset from my hands. It is visible only the vr device. Though when I have enabled the oculus plug-in everything is fine with my controllers

agile dune
#

Anyone know how I would make like a realistic VR avatar creator, or get VR IK to work with UMA?

broken rampart
#

@solar sphinx are we just talking a game that could do 6d0f with hand tracking for cardboard versions? i mean if people have the phone with 120hz refresh....maybe.... but yah how much is a decent phone cost verse a decent vr headset. I know for a fact my phone cost more then my oculus quest 2. and i got controls with it. And printed a battery pack holder already. so im gonna get the 5 hours of gaming in 🙂 10Ah so probably more then 5 🙂

hallow maple
#

hi guys, i'm looking for a plug-in that can make me able to bind, for exemple, the headset on my mouse controller

pseudo warren
#

Hey have a Problem with my Ultraleap Gemini (Leap Motion). I have the Correct Handtracking in the Editor, but if i build the Project the Hands are in the Wrong Position (i would say 2m far away). Have someone expierence with it?

novel cape
#

Does finger tracking with the Valve Index controllers currently work with OpenXR in Unity, or is support for that still not there?

hallow maple
# north path What do you mean?

i want to test some things in VR but with my pc without building my app on my headset.

Like, control the RightHand with my arrow keyboard, the head with my mouse and test the game in the editor

I know there's a plugin for that but i cant remember his name

north path
# novel cape Does finger tracking with the Valve Index controllers currently work with OpenXR...

https://forum.unity.com/threads/valve-index-finger-tracking-in-openxr.1079441/

Nope, it has to be done via SteamVR I think unless Valve pushes a seperate package for it (which I hope they do)

Maybe its possible manually tho, never tried it myself

north path
#

It depends on what you currently use

novel cape
north path
novel cape
#

I assume if I were to use OpenXR I would at least have the ability to point, have an open hand, make a fist, and do a thumbs up gesture on the Index? It seems to have grip and trigger support?

#

What I mean is, if I installed Hurricane with OpenXR, it would have those gestures automatically on Index and other controllers?

north path
#

Don't see why not (:

#

Just the per finger touch is not something generic, so it's not yet in openxr

novel cape
#

I just don't know what gestures Hurricane supports by default for like, an Oculus controller.

north path
#

Should be the same as index, personally havent used hurricane much but I didnt notice anything being off on my quest 2 (using link or standalone)

novel cape
#

Oh damn I thought I was in the HurricaneVR discord.

#

I'd asked there as well.

north path
#

👌

novel cape
#

Well, thanks for the help anyway!

north path
#

no problemo!

novel cape
#

How come the package manager only shows version 1.8.1 as the latest...

north path
#

What unity version?

novel cape
#

2019.4.23f1

north path
#

And (unless building for quest standalone) you can also use openxr for oculus

#

Try to update to the latest 2019

#

Or edit the manifest file manually, also works

novel cape
#

Am I to understand from that that v2.0 and up require 2020?

north path
#

Yep

novel cape
#

Because that's just part of my confusion here...

north path
#

but 2.0 and 3.0 are preview

novel cape
#

The above thread has a post from August... Stating that haptics will be added in v1.3 which hadn't been released yet.

north path
#

Here it says openxr is not natively supported on unity 2019

#

but openxr does support rumble now I think

#

1.3 does have send haptic

novel cape
#

So they went from version 1.3 to v 3.0 between August and now?

north path
#

OpenXR is not Oculus XR

#

Oculus XR is for oculus specifically (also works with others tho)
OpenXR is for everything basically

novel cape
#

Oh damn I misread that package name.

north path
#

Yep haha

novel cape
#

But it took me to the OpenXR page!

#

When I clicked Changelog.

#

Well... It took me to the Oculus XR page I guess?

#

These naming conventions are so damn confusing.

north path
#

you'll get used to it

#

OpenVR (steamvr) and OpenXR are more annoying haha

#

But tbh, once you've done this you probably dont have to touch it anymore

novel cape
#

That's assuming it works...

#

I had some other issues when I tried to use newer versions of Unity before.

#

Like, auto-exposure in post processing working differently per eye.

north path
#

Just use OpenXR unless you need platform specific features (:

#

Unity 2020 lts is really stable for me, but dont use auto exp

#

2020.2 did have quite some issues for xr yeah

novel cape
#

The auto exposure issue was specifically with using multi-pass rendering. Which I'd enabled because post-processing had a bug where it discarded half the pixels in VR: https://twitter.com/MrZulubo/status/1290714652234543104

PSA to unity VR devs. If you're using Single Pass Stereo and the post processing package, your game is getting downsampled by 50%. This is a really stupid error that has likely affected many shipped games. Fortunately, there's an easy fix.

Likes

225

#

And because I couldn't use single pass instanced rendering with a water shader I wanted to use which renders caustics.

tiny niche
#

post processing just works differently in vr. it doesn't discard pixels

novel cape
#

But that post there has images which indicate otherwise, and a fix...

#

Why else would the cube on the right be blurrier?

tiny niche
#

as i understand it, he did post-processing the pancake way to end up with that

novel cape
#

What do you mean by the pancake way?

tiny niche
#

by pancake i mean non-stereo rendering

novel cape
#

I only know one way of doing post processing, and that's to add the post processing volume and make the main camera trigger it.

#

The main camera is either a vr camera or not.

#

So what could he be doing different?

tiny niche
#

i haven't looked at his implementation though, but it sure sounds like he did what you'd normally do in a non-vr game

north path
#

And if ur settings up a project make sure to set it up as single pass instanced unless absolutely impossible (for example my raymarcher). Really good for performance

novel cape
#

I understand the performance difference. I was just trying everything to get something to work.

tiny niche
north path
#

But indeed check if your post processing assets work with VR

novel cape
novel cape
north path
#

Do you use the built in rendering or urp?

novel cape
#

Built in.

#

There's literally one way I know of that post processing can be set up with the built in renderer. There's nothing I know of which would be different between a pancake game or VR. Aside from certain effects its suggested you don't use.

north path
#

vr multi pass basically has 2 cameras. So each eye has a bit different content, so post processing can not match between 2 eyes

#

And urp also works with post processing, don't think it has auto exp natively tho

#

not too sure

novel cape
#

Speaking of effects you shouldn't use, why in god's name does that tutorial for post processing in VR have a section on how to enable motion blur? That's terrible in VR.

novel cape
north path
novel cape
#

I suppose there could be something about how they render the scene that prevents it but then why not disable that feature entirely if it is not supported with multi pass VR?

north path
#

Because Unity does not launch a different unity if you have a project supported for VR (cross platform etc)

#

Just like you can load a project with poorly made shaders yourself

#

But in VR auto exposure also is a bit meh from what I see

#

Can't help you much more tho, haven't use auto exp and havent touch built in in over a year

novel cape
#

Auto exposure is indeed problematic in VR, but I feel like that's just Unity's implementation of it. For example, the rise and fall time for the adjustment doesn't seem to work at all, which causes the exposure to change rapidly as you look around, if you are in a place where you can see both very bright and very dark areas.

#

And of course, the way it processes the HDR scene is limited to mapping the tones to a curve, but that's not the ideal way to deal with an HDR scene. You want bright regions to be brought down, as a whole, like a window looking out into a yard. With tone mapping, the interior also has to become darker, to get the outside to be not overexposed.

north path
#

Then don't use it (;
Don't think they're going to work much on built in anymore. HDRP does have auto exp (hdrp is not on quest ofc) and they're working on bringing it to URP

tiny niche
novel cape
#

The way I compensated for this with a house that has bright light outside and no lights inside, was to set bakery to multiply the light bounce intensity, so that light from outside illuminated what was inside more than it would in real life, to get the inside's brightness to be closer to the outside brightness, so that the auto exposure didn't have to work so hard.

#

If I were to use HDRP I'd lose access to dozens of shaders. Like Poiyomi, which has subsurface scattering for skin. Or Red_Sim's water shader which renders both surface waves and caustics and fog underwater.

#

The materials setup also looks much more complicated.

tiny niche
#

well you'd rework your materials to take advantage of hdrp if you where going to use it

#

its not a "make pretty" toggle

north path
#

And you cannot release on quest, which is for VR a potential setback

tiny niche
#

yea i wouldn't go hdrp for vr, since a lot of the stuff that visually differentiates hdrp from urp simply doesn't work there

#

and 99% of the potential userbase wouldn't be able to run it anyways

novel cape
#

I get why devs target it, it has a large install base, but Quest is way too underpowered for a compelling VR experience.

#

VRChat worlds which are quest compatible all look terrible.

tiny niche
#

there are plenty of compelling vr experiences on the quest, but vrchat is not a good metric to go by

novel cape
#

I'm not even sure the thing supports lightmaps with color in them to be honest. I have never seen a quest map with colored lightmapping.

#

I've seen the games available for Quest. Arizona Sunshine on Quest looks like a PS3 game.

tiny niche
#

lightmaps are not a gpu feature. the reason you don't see them is because people don't use them

novel cape
#

Yes. but WHY don't they use them? There's no logical reason not to, unless the Quest's memory limitations force them not to.

#

Or it could be the shader complexity. A tradeoff for performance. No lighting pass. Just vertex lighting.

tiny niche
#

its not. the shader complexity difference is not nothing, but if you really needed colored lightmaps then it would not be one of the bigger perf sinks either

novel cape
#

Point is, there's no Quest game which looks as good as this: (This is a world I made for VRChat)

#

Even my 3080 struggles a bit with that level of detail. Partly because VRChat doesn't support distance shadowmasking and I wanted the shadows to move as the trees swayed in the wind. And Unity doesn't like properly rendering trees with baked lighting on terrains either. So a single realtime shadow casting light was the easiest way to make it look good.

tiny niche
#

sure, but its not like you need to make things look realistic in order to have a compelling vr experience

novel cape
#

Depends on what you mean by compelling I suppose. I want to feel like I'm really there. Toony graphics doesn't do that for me.

#

I've only once forgotten I was in VR for a moment. I was when I was standing in a living room in a house in VRChat which had photorealistic lighting. Half Life: Alyx didn't even trigger that for me. I think perhaps because it auto-lowers the resolution of your display and the textures may not be the highest resolution. I did kinda get that feeling when I made that world and first uploaded it and my boulders had 4K textures on them, but I had to reduce them because the world download size was a 1GB which was way too big. It's 300mb now wth 2K textures compressed as much as possible for the normal / metallic / smoothness maps and the albedo at 50%.

#

But I suppose if you made a game with a character like that robot in the Oculus First Contact demo, something like that could be compelling, by virtue of the character feeling real. But like, Arizona Sunshine is not compelling as a zombie game with ancient looking graphics that are in no way scary.

tiny niche
#

well making a vr game is just as much about engineering it for performance as it is about the artistic vision. which is why i said vrchat is a poor metric to go by, since it limits you a lot in how you can tweak the system to improve performance and cheat to get better visuals

novel cape
#

Sadly I'm not so much an artist as a programmer with a good eye for color and lighting. So doing something artsy with a style that would work well on Quest is not really in my wheelhouse.

tiny niche
#

but it also means that you can't just do any scene and have it look nice. gotta pick a composition that you can make perform well

novel cape
#

I mean I have done stuff like this, which is another VRChat world of mine, but that's just generic low poly asset flipping with nice lighting and a custom water shader.

agile dune
#

Anyone know how I would make like a realistic VR avatar creator, or get VR IK to work with UMA?

north path
#

You can do it manually with Animation Rigging probably. VR IK is just a quick way to get a good result from what ive heard

solar sphinx
tiny niche
tiny niche
lone knoll
#

i was thinking fake shadows something like a stencil

tiny niche
#

could do that, but since you're the only one casting shadows, you can get away with a really short shadow distance on shadow maps

#

basically don't need to cascade at all

lone knoll
#

something like this ?

tiny niche
#

yea

lone knoll
#

hopefully that won't fry my quest

tiny niche
#

i'd bump it up to 10m just to be safe though

#

since while the objects might not be that far away, the shadows can still stretch on for a while when the sun is low

lone knoll
#

is there performance cost for shadow distance ?

tiny niche
#

no, its the resolution that matters

lone knoll
#

50 m it is

#

maybe more , need to get cliff shadows if that's not too expensive

tiny niche
#

you're stretching the shadow map over the whole distance though, so a longer distance requires higher resolution for the same level of detail

lone knoll
#

ah fair

tiny niche
#

cliff shadows can be done using lightmaps though

agile dune
#

I’m trying to get the most realistic physics possible, as my game needs to be as realistic as possible,

tiny niche
polar valve
#

Is there a straightforward way for determining where the transform of the root of the VR objects should be when you know the in-game eye transform?

Basically I'm modding in VR support to a game that wasn't built for it, and the camera ends up too high, I think because the old eye position ends up as the "floor" of the VR space.

tiny niche
#

@polar valve you'd have an easier time finding the floor position for the character

#

there's most likely a capsule collider somewhere, or even a property dedicated to storing the floor position

polar valve
polar valve
#

There’s also the question of scaling..I need to get the cockpit the right size

broken rampart
#

use real world measurements. take a 1M cube. resize to .1x.1x.1 and then use x,y,z to adjust until it aligns with object. then you can measure it. if you have to, google Meter to feet/inches etc.. but in reality. as long as it looks to scale when in the headset you should be good 😉 i do prefer real units of measure as i do a lot of CAD. but this seems to help determine game size for VR fairly well. the cube size will be in Meters. so 0.1 is 100cm 1000mm etc...

#

@novel cape yah i just picked up an oculus quest 2. i know what you mean about real looking games. i keep looking for one. some are not that bad. i have a horror type game that is pretty good looking.

storm ether
#

I'm having a UI issue with a Package called "VR UIKit"

#

has anyone encountered this issue with or without the package?

#

Basically, once the laser pointer points at the menu it stays in that location when I move from the menu.

#

I can post details if need be. Like the component list with settings.

tiny niche
nimble tangle
#

I've been struggling for the paste couple of days. What are the packages I should use for developing Unity XR with SteamVR controller support?

nimble tangle
#

I used steamVR before but I didn't like how it managed input, unity XR seems good but I had problems getting it to work with index controllers. I hear Xr incteraction tool fixes this with action based inputs but its a preview package so I'm not sure if I'm supposed to be using that

jovial sonnet
#

is the oculus quest 2 air link out yet I see a support page but I can't find anywhere to buy it

agile dune
#

You don’t buy it

#

It’s free

#

Check the beta page of the Oculus app on your pc

#

And the experimental features on your quest

#

@jovial sonnet

jovial sonnet
#

Thanks man I'll check it out!

north path
#

Got an interesting issue after upgrading Unity and Oculus XR.
If I open SteamVR and SteamVR home and then click the .exe of my game (supports both oculus and steamvr), my game opens using oculus runtime, but steamvr home is also being rendered in the background causing massive performance issues.
I am guessing this is because my OpenXR default runtime is set to oculus and the new oculus plugin uses openxr in the background. Is there a way to fix this?
Using a quest 2 via link

wraith shale
#

@north pathyou sure you are actually using Oculus API when that happens?

#

OpenXR works through oculus api too, you shouldn't see SteamVR anywhere unless your system defaults OpenXR to use SteamVR

north path
#

Think so, pressing the left menu botton does nothing

#

I started steamvr myself, it did not start automatically

#

Thinking in a case where people show many vr games to friends etc and another game would have started steamvr. Then my game should probably just launch to steamvr

north path
#

Switching to legacy oculus xr did not work

#

It did work in 2020.2 before I upgraded

north path
#

Weird. In the old version it also ran on oculus runtime, while I can also sideload steamvr home, but dont have the performance issues

tiny niche
#

if they haven't already

north path
#

It's for an older game on steam. Not on the oculus store and because of not optimal methods for interaction we cant change to full openxr support

#

I also would love to switch but we simply can't right now

tiny niche
#

@north path surely you could just add a shim that translates the parts you guys use to the openxr api?

north path
#

we use VR Interaction framework and old devs modified it so much we cannot upgrade it without probably 100+ hours of work, and the version used didnt have openxr support yet

#

Gotta fix almost all of our scripts that read input etc because of the setup

tiny niche
#

that's why i'm suggesting you use a shim. you insert a class with the same name and namespace as the old one(just containing the methods you actually make use of) and just translate things over to the openxr api there

north path
#

Omfg, restarted windows and its fine now

#

I will take a look into that tho

#

But I am not sure if it's doable for the team atm

#

So thanks!

#

Huh, a version without a changelog

earnest peak
#

Heyho everyone, im an absolute noob but need to build a VR application for Uni and for some reason i cant figure out how to make my XR Controllers pick something up, these are my settings, maybe anybody has an idea what im doing wrong? Thanks in advance!

twilit tulip
#

@earnest peak You got XR Grab Intractable script in the objects you want to grab?

#

And make a new layer called Grabbable and add it to the objects you want to grab

#

And make another layer for player and add that too player

earnest peak
#

it has the grab interactable script

#

what do you mean by a new layer?

twilit tulip
#

Top right of left screen where it says Layers click on the drop down and click on "New layer" and make 2 new layers one called Grabbable and another called Player

#

Put Grabbable layer on all objects you want to grab and put Player on the XR rig

earnest peak
#

Okay done

twilit tulip
pine bison
#

VR with Andrew on youtube has some real nice introduction videos to the XR interaction toolkit

ripe loom
#

Anyone here using Vive Trackers with the OpenXR tooling and SteamVR's OpenVR XR plugin?

twilit tulip
#

not that i know of

shut wagon
#

Is there any way to call another game directly from my Unity game on the quest 2, is there anything like the activityStarter known from Android phones? I need to know this because I want to make a „hub“ for all games made of me

lone knoll
#

includes some buttons in the sample scene so u could change the settings in realtime

storm ether
#

is it possible to access a vr game through unity with an oculus quest

wraith shale
#

@storm ether you can treat it as PCVR through Oculus Link/AirLink or Virtual Desktop

north path
#

Yep, connect via USB and use oculus link or use airlink/virtual desktop to stream wireless

#

Damn you beat me

wraith shale
#

well, not sure how VD actually works in Unity editor, it's tricky but you can def use Oculus Links

north path
#

Should work using steamvr

wraith shale
#

you might be able to use VD through OpenVR yes

#

but OculusXR and OpenXR might cause extra trouble

#

and OpenVR/SteamVR is 3rd party (doesn't mean one couldn't use it, just more hoops to jump through)

grand spear
#

Hello, I am getting started with VR Development. I am following this guide: https://www.youtube.com/watch?v=gGYtahQjmWQ&t=688s
I am at 14:35 he asks us to add a XR Controller. I do not have this component, can anyone help me?

If you want to get started with VR development. This video is for you.
▶ Get access to exclusive content: https://www.patreon.com/ValemVR
▶ Join the Discord channel: https://discord.gg/5uhRegs

Want more details ? Check arvrtips articles :
▶How to Install Unity Hub and Setup a VR Project :
https://arvrtips.com/how-to-install-unity-hub/
▶The Only...

▶ Play video
twilit tulip
#

that toturial is extremely outdated

grand spear
#

Ok can you please recommend a more up yo date resource I can use to get started

#

thank you

twilit tulip
#

go to this guys channel and his latest video works amazing

#

not the link video but the latest one he uploaded

grand spear
#

Ok thanks a lot i'll check it out

twilit tulip
#

easy 10-20 min setup

grand spear
#

Is the official oculus docs, a good palce to start too?

twilit tulip
#

yea its pretty decent if you know how to read it and understand it

#

and it looks pretty similar to the tutorial's from Justins channel

#

So youll be fine

broken rampart
#

@twilit tulip i watched all his videos last week. then i found unity has the exact same videos in the unity learn area.

twilit tulip
#

ye its mostly a preference

broken rampart
#

Justin does do some things different. Like the IK stuff which is cool. waiting on him to release the hand to object adjustment video he keeps talking about. should be cool. i get the basic principles could probably whip something similar up

twilit tulip
#

oooooh alright got it

lusty sail
broken rampart
#

you need to install the package

#

follow his setup. i think it maybe a preview package still?

#

i had no trouble following it and getting pickup objects. works great. i would like to do the grab at anypoint and not lock to a target transform. i think that is simple enough to do though.

#

steal it if you want but i had dream last night (After i played some intense Echo VR) about a cave game that you only use your hands to pull yourself through to get out?

storm ether
#

Hey guys in unity 2019.4 has the oculus interactions v35 changed in what prefabs have?

#

in march i was making a vr bowling game and had the ovrcontrollerprefab and in the inspector selected hand l and r. which changed the controller model into hands with grip animations. but now nothing happens

broken rampart
#

VR has been changing a lot. but i'm just getting into it. wish i could help. This channel has been slow. i Jumped into OpenVR and XR Interaction Toolkit. hmm ovrcontrollerprefab has the hand models built in. i think i've seen those. not really nice looking but works.

storm ether
#

yeah they did used to. and you can select them in the inspector but nothing shows

fickle spire
#

So I was wondering if it were possible to determine your virtual movement (speed and direction) in a virtual reality world. I was thinking that implementing a 3D coordinate system and using simple calculus would be the best option, but I'm not sure how I would find coordinates in a VR game. However, game engines, Unity included (which is the most common engine for VR games right now), have coordinate systems, and more specifically, they have something called world space, which is the coordinate system for the map itself (I think) and the origin (0,0,0) is at the center. Would it be possible to determine the world space coordinates of your character while in-game (more specifically, while in your virtual world/game), and NOT while developing the game on the Unity editor?

broken rampart
#

i mean unity uses Meters. If you keep your character movement to normal movement and objects to normal object sizes. then world transform of the player is the position in the world. You know time. you know position over time. simple math can tell you speed.

obsidian marsh
#

Hello!
Did someone achieved tracking an object in VR? Like the hands, but other object. Rotation and position.

chrome ocean
#

Hello, recently i just try using pico neo 3 for my game and i notice that the menu button in the left and right hand can't be triggered but the menu button on the head can be trigger, did anybody know what button to trigger pico neo 3 hand menu button?

#

When i use oculus i use this InputActionReference to trigger the menu button

[SerializeField] private InputActionReference MenuButton;

private void Update()
{
  if (MenuButton.action.triggered)
  {
     //Code to show menu
  }
}
acoustic lodge
#

As far as I know menuButton should be the correct usage for the Neo 3; that's what the docs say, anyway. You could try looking at the input system debugger, or failing that asking Pico support?

pine bison
#

Support are pretty fast at responding on the pico forums

chrome ocean
#

Ok, thank you for the suggestion will try asking the pico support

pine bison
#

i've not worked with new new input system on pico yet so I can't help much personally

north path
north path
fickle spire
twilit tulip
#

Most likely some UI telling you

broken rampart
#

yah like a ui element saying you've traveled 100 Meters so far. Average speed 3 Meters a second. or convert to 6.7MPH. player transform. capture start point/end point do basic math. if hills etc. may need some more math or track more often from point to point etc... a simple traveling List<Vector3> could help and then calculate from each point. Maybe ill add something to my prototype and see what i get.

broken rampart
#

or just distanceTraveled+=Vector3.Distance(lastPoint,currentPoint); might be simple enough to work

nimble tangle
#

I swear I've gone through like 5 out dated tutorials trying to figure out how unity wants to handle VR inputs, about to just switch to unreal this isn't worth it.

#

I was using a older version of unity with seemed to screw up the XR Interaction ToolKit, so I installed a new version of unity but now I can't see any Prerelease Packages after enabling Prerelease Packages?

broken rampart
#

haha yah. you have to add git repository now

#

watch this. i jumped the time to about where he shows this part https://youtu.be/yxMzAw2Sg5w?t=445

LOTS of people got the Oculus Quest 2 for Christmas. Want to learn how to make games for them all to enjoy? Yea you do!! Come learn how to set up a VR project in Unity's lastest version as well as some basics like how to use the grab interactable to pick up objects and the locomotion system to move via teleportation or continuous movement.

// 📃...

▶ Play video
nimble tangle
#

But the unity docs say "follow the installation instructions in the Unity User Manual." which says to enable pre releases. And why is there even a enable prerelease option if it now longer works 😭

broken rampart
#

they just updated it, it's always a pain when unity does preview code. it's not really meant for production level. but to try things out before it is eventually released. i know it sucks.

raw night
#

does anyone know how to get kinect motion tracking to work in unity?

#

I made a game with switch motion controllers, and now I want to see if I can replace the controllers with my xbox 360 kinect

granite nymph
#

But yeah...change bad.

nimble tangle
robust pollen
#

Hello

#

So I have movement I want but the hands are just spheres (you move around by hitting the floor (like gorilla tag)). I have a model but idk how to connect them.

#

Connect the hands to the model I have

broken rampart
#

@robust pollen are you using the xr interaction toolkit?

#

if so i think there is a model prefab location you can just place whatever you want for the controllers. But if you want more control possibly some unity rigging would be needed. or another ik tool. try this tutorial may be close to what you want? https://www.youtube.com/watch?v=MYOjQICbd8I he uses a full body but i think you can make hands only and take some of this info to help.

Inverse Kinematics really creates the immersion necessary for a VR game. Having IK that can simulate accurate elbows and arms is incredibly useful. Unity provides us with all these tools!

Hey guys! I've been wanting to make an Inverse Kinematics video for a while now. I know there are already a few good ones out there by Brackeys and Valem, but...

▶ Play video
shy acorn
#

hi there, so I'm very new to unity and vr industry, and I'm trying to make a game. I want to get rid of the 2 red pointers that are being used are controllers by default. Anyone can help me please?

pine bison
#

I’d recommend following a tutorial @shy acorn if you’re new to both of those. Some good channels are Valem, VR with Andrew and Justin Barnett.

As for your questions, those are from the Line Interactors or whatever they’re called, components on the hands. Just remove those and you’re good.

shy acorn
balmy burrow
#

hello

#

I am developing for the quest 2 rn

#

but, I'm having a problem with the controller to hand swapping

#

when using the hands, the UIHelper tool, the line and raycast that does all the interacting with UI objects, is rotated 90 degrees

#

can anyone help?

tacit quartz
#

Hey, for those having a quest 2, is it possible to load the headset with a phone charger ? I don't have usb c port on my computer ... thanks a lot !

tacit quartz
wraith shale
#

you are supposed to charge it with the charger that came with quest 2 though? where is that at?

tacit quartz
#

It's the quest 2 of a friend and he forgot to give me the charger xD

wraith shale
#

ah ok

#

people charge Quests with all kinds of devices, altho I'd check the recommended charger type if doing this a lot

tacit quartz
#

Yea i think it's safer

wraith shale
#

that being said, apparently the stock charger isn't doing amazing job all the time because we've seen tons of images like this:

tacit quartz
#

oh

#

shit

#

Yea i think it's a bit dangerous to let it plugged while playing

wraith shale
#

I don't think I've seen people reporting that happen with battery banks or with link cable, maybe the max current isn't as big on those or oculus could be even limiting that but I don't have any real info on that one

#

but... I think Oculus specifically told to not use the device while charging it with the charger

tacit quartz
#

yea it's easier for them to say that to avoid being responsible in case of problems

broken rampart
#

i just added a battery pack. do i need to worry about it melting! guess i keep an eye on it while i play. the unit does get pretty warm when playing

#

and a nice htc vive strap 😉 love my 3D printer

#

26Ah bat should be okay right 🙂

wraith shale
#

tbh I'd be more worried about having mobile phone battery on your face in general 😄

#

and yeah I have Q2 as well

tacit quartz
#

I think it's a very common question so i apologies in advance but if i understand correctly i have the choice between Oculus integration and XR Interaction toolkit for unity that's it ?
and XR Interraction toolkit is better if i plan to create games not only for quest 2 but Oculus integration offer many cool things to begin with ?
So is it possible to create a project with the XR interraction package and import oculus SDK to have basic stuff that can be found in the Oculus Integration ?

wraith shale
#

basically:

  • XR Interaction Toolkit is VR framework to implement basic interactions like grabbing and teleporting, it works on anything that supports Unity's XR management system, including OculusXR
  • Oculus also has it's own input etc API that don't use the Unity API for the input etc but instead have direct Oculus API access through their own bindings
  • Mixing different VR frameworks is pain and you'd really want to stick with one, if you find something you want from one system, could try porting it to the main framework you use
  • XR Interaction Toolkit is still quite raw, there are some 3rd party VR frameworks that have more polish to them
#

in addition, SteamVR integration also has their own VR framework

#

all this is quite mixed bag today if you want to cover all platforms at once

#

if you go with XR Interaction Toolkit, check the pinned links on it, there's bunch of resources on it there

broken rampart
#

im liking the interaction toolkit so far. version 2.0-pre is out now

wraith shale
#

if nothing else, you don't have to pay anything to get going and can then see if you want something else

tacit quartz
wraith shale
#

best part of using XR interaction toolkit is that it's first party, meaning Unity is likely to keep it compatible with all Unity versions

broken rampart
#

VR is moving fast. i expect tons of new tools over the next couple years. specialy with oculus q2 since the sales seem to have been huge during xmas. lots of users out there

wraith shale
#

(unless you use really old unity versions that is)

broken rampart
#

yah what version to use. always a strange question with unity.

wraith shale
#

just recently checked steam's hw survey, Quest 2 + Quest 1 were 44% all VR headsets on Steam, that's nuts

broken rampart
#

wow crazy

tacit quartz
#

I'm just affraid of using Unity new input system (if it's the case with this solution), because i'm still using the old one till now

wraith shale
#

Quest 1 was only 5ish %

#

@tacit quartz afaik you need to jump to the new input with xr interaction toolkit

#

if you just stick to oculus api, you can use it's input instead

broken rampart
#

well yah OQ2 price was just at the right point for everyone to get them this year. plus with gaming cards and consoles hard to get. makes sense to get one. cant buy anything else 😉

wraith shale
#

you don't really have to config much yourself with it

tacit quartz
#

I'll try the new input, i have too, at least i will try

broken rampart
tacit quartz
#

Do you think using 2021 is better than using 2020 for this kind of projects ?

broken rampart
#

grab the sample default input actions from the toolkit. they help setup the controls for you in the input settings. super easy to setup

tacit quartz
#

nice

broken rampart
#

@tacit quartz are you going to build a game for release. or just play around with the tools?

tacit quartz
wraith shale
#

what Unity version kinda depends on what you target

#

if you use URP and dev for Quest natively (and not for PCVR), would recommend going with 2020.3, especially if you use URP

#

2021.x URP is tad slower in VR even without using new fancy feats they added there

#

for PC VR, it depends more on which feats you want but in general you'd want the VR project to not use those shiny rendering feats if possible

#

2020.3 is also way better supported today if you use any 3rd party additions

broken rampart
#

yah if going to work on long project better to use an LTS version. so 2020? not sure when 2021LTS will be out. i mean we are in 2022 already!

wraith shale
#

I'm personally on very bleeding edge but I'm not developing solely for VR either

#

2021 LTS will be out in few months

#

somewhere around March-May

tacit quartz
#

Okay thanks, I must learn URP this year

broken rampart
#

i use latest for playing around. May jump back into 2021 lts for awhile to keep things more stable

#

preview packages are a pain when upgrading. unity never makes up there mind. things change all the time. but it's preview or experimental so beware

wraith shale
#

good thing about starting with 2020.3 is that if you find it limiting, you can always upgrade later... doing the opposite (going from 2021.2 -> 2020.3) is harder

broken rampart
#

so true. start lower if you need something. make a copy of project and upgrade, see if it still works

wraith shale
#

if you already have on-going project that is. it's not impossible task but if you are new to this, would recommend against it

#

well, I'd always recommend some kind of version control anyway

#

git etc is fine for uni projects

#

makes it easier to test different things too

agile dune
#

Anyone know why my inverse kinematics arent working properly? When I look down it does this.

#

I'm using finalIK and Hexabody

#

and a UMA character

cedar bramble
#

my left controller in game is way higher than it is in real life and the right control is moved to the right

#

anyone know how i can fix this?

#

ahh, nevermind it was due to me moving it in the editor

cedar bramble
#

alright this probably really easy BUT im also really dumb

#

how do i make the player able to interact with objects

tiny niche
visual idol
#

hey, i am not a very experienced coder, but i was wondering if there was a way to store if they player is gripping or not in a boolean variable? thanks.

storm ether
#

anyone's got some experience with the hand tracking on the VivePro? Is there a way to get correct hand sizes or scale from the tracker? The positions I'm getting seem to make for a very small hand (and no, my hands are quite regular sized - political jokes aside 😛 )..?

visual idol
# tiny niche yes

could you point me at a documentation on how to do this please? thanks.

tiny niche
fervent stag
#

I got my movement down but I need hands

#

That work

#

And that are already animated for my dumb ass

visual idol
visual idol
tiny niche
storm ether
#

👋

#

Can I post a VR Clip ?

#

😬

urban cloak
storm ether
#

Hello i have a problem whenever i set the model prefab on the controllers the prefab has a giant offset to the right, and i don't know how to make it follow the controller's position, anything helps!

north path
sharp badger
#

Does the quest have better or worse limitations than mobile for small adventure games?

#

What's my poly count for a main character?

#

If it isn't obvious I'm a noob at this game dev, but I'm designing for quest

tiny niche
#

you gotta have a pretty detailed plan before you can answer those questions

storm ether
tiny niche
storm ether
#

no i dont

#

but shouldn't it just find the controller position automaticllay?

tiny niche
#

in other words: it does snap the object to the controller position, the position just isn't where you want it to be

#

define controller position

storm ether
#

i mean like in-game the position of where i can see the virutal controller

tiny niche
#

well as you can see here, that position could be anywhere

#

and then you gotta figure out which position on the sword to match with what position on the controller

#

that's why you need to specify the origin

storm ether
#

ok so how do i get the different positions of the controller in a script

storm ether
tiny niche
#

you don't you get the one that's picked as the origin

#

that origin is positioned so it lines up with the tracking data

#

your job is to place the origin correctly on the sword, so it lines up with the tracking data too

storm ether
#

but the problem is i would have just dragged the prefab over where the controllers spawn so it would follow correctly, but i don't know where in the game the controllers spawn

tiny niche
#

doesn't matter. they always spawn 0,0,0 away from the tracking node

#

but you need to grab the controller asset and place the sword origin relative to that

storm ether
#

how would i do that

tiny niche
#

depends on which 3d modeling program you use

storm ether
#

i am just using 2 3d object parts in unity editor and creating a prefab

tiny niche
#

then use the fbx exporter package to export that over to maya/blender and fix the origin

storm ether
#

i will try

#

so i exported it to fbx and now the size of it is very small

#

nvm

#

how do i change the origin of it

tiny niche
placid birch
pine bison
#

It's so difficult to quantify performance, especially when comparing with phones. There are so many tiers of phones, and there are so many kinds of VR apps that need different kinds of optimization. Your best measurement is gonna be to look at what's available on the store

storm ether
#

Hey guys Sing Slot

#

What do you think??

#

It’s just a demo right now Zero-G flying 😵‍💫🤚🤚

pine bison
#

the unreal hands confuse me so much lol

#

But that looks like a lot of fun! I'm imagining a game where you have a button to turn gravity off and on and you use it to solve puzzles

tiny niche
storm ether
clear tinsel
#

Anyone knows how long it takes for a game to get approved for oculus app lab it’s been around a month and haven’t had any feedback

wraith shale
#

@clear tinselaccording to Carmack on the FB Connect talk (few months ago), it's like currently quite long wait, like few months (2-4?)

#

can't tell from own experience though, never released anything there

visual idol
#

hey, a new question today, is it possible for me to "fake" input to the xr interactor so i could make items go to the players hands without them needing to grip. i wish to be able to activate the fake grip with a boolean. Thanks to anyone who can help me out.

formal bough
#

For those who are using XR toolkit (2.0.0.6 preview for example), is there any need for SteamVR plugins (input or so) or does new input system handle multiple headsets just fine (Oculus/Vive/Index/WMR) ?

modest gull
#

Im creating my first vr hand for my controller and everything is working fine exept the thumb animation. It doesnt work, there isnt an error though. Anyway i was wondering if there was an issue with my code anyone could point out. And if its not the code do you have any ideas what it could be?

dark idol
#

hi
I have the gradle build failed problem since yesterday. i tried a lot of solutions but nothing works.
I'm with unity 2021.2.7

pine bison
#

Do you have any non-ascii characters in your build path @dark idol?

dark idol
#

i don't think so
is there a way to check that ?

tulip anchor
#

clearly you do

dark idol
#

it's the é

pine bison
#

you should also avoid spaces with gradle

dark idol
#

Okay thx i'll try

#

( I must stop french when i work on this to avoid that kind of problem 😅 )

glacial plover
#

uh i just tried to run my app in quest native and i think it bricked my quest

#

it doesnt work at all, even after hard rebooting from the boot loader

#

any ideas

coral frost
#

It would probably be a good idea to contact the Oculus support if your Quest malfunctions 🙂

granite flame
#

Trying to build onto Quest 2

#

Empty scene, 2020.3.25f1

#

MacOS

#

Anyone know what could have gone wrong?

visual idol
#

Hey, sorry to ask again but does anyone know how I could trigger an interactor to interact with an interactable in the xr interaction toolkit? Thanks

pine bison
#

Do you have spaces or non-unicode letters in your build path @granite flame?

ripe loom
#

Has anyone here managed to get stereo render-textures from cameras to work under HDRP?

#

I've been investigating it for about a week now (most recent logs are under the #archived-hdrp channel) and it seems there's code for handling it, but no valid configuration actually results in the right eye being rendered to the texture under single-pass instanced mode.

tiny niche
#

i suspect you'd be better off doing a separate render for the texture

ripe loom
#

The left eye is rendered fine- I'm saying it doesn't render to the right eye (texture 2 in the 2darray) at all ^^

It renders as if it were mono mode, instead of stereo. There's no offset to the left for the left eye, either, so it's like HDRP refuses to consider it a stereo camera at all.

tiny niche
#

sounds like you might be getting the output that normally goes to the pc window

main quarry
#

how to deny the player to view inside an object?

tiny niche
#

you pretty much don't

main quarry
#

I have colliders that block the player to move inside, but if player moves the head he can see inside it

pine bison
#

In Vader Immortal if you put your head inside a mesh it fades to black

main quarry
#

I should use OnCollisionEnter?

tiny niche
#

no

main quarry
#

why not? which else?

tiny niche
#

OnCollisionEnter happens once per penetration

main quarry
#

OnCollisionEnter fade in, OnCollisionExit fade out, something like that could work?

tiny niche
#

if you want to do it like vader immortal, you should be doing it as part of the render process

#

instead of discarding pixels below the nearclip thrshold, you want to replace them with colors

#

although that only works until the surface geometry ends up behind you

#

either way, you don't want to be doing it during fixed timesteps if you want it accurate

main quarry
#

you know how to achieve a good result for this?

tiny niche
#

there's no good universal solution for this, so you'll have to design your game with this capability in mind

#

but the best solution is to not need this feature at all

main quarry
#

yep, My case is similar to The Climb 2, so the player has to stay very close to walls and happen that he see inside it

tiny niche
#

if you're doing it like the climb, then use their mechanic. since that game gets a lot of praise for it's mechanics

violet acorn
#

Im intrested in knowing what a simple VR game goes for, like multiplayer 4 players only, around a table

ripe loom
main quarry
#

you want to play chess in VR?

violet acorn
#

Hmm could any VR experienced programmer with the multiplayer skills DM me.

young rune
north path
#

Does anyone know what the difference between XR Core Utilities and xr interaction toolkit is exactly?

balmy burrow
#

I'm having issues with the oculus passthrough api

#

I think URP is breaking it-

north path
balmy burrow
#

well

#

it doesn't work

#

it doesn't turn on I think

#

and there's a broken material

#

named Passthrough Material

#

but it isn't referenced anywhere-

#

it's like the shader wasn't imported-

north path
#

You can try upgrading the material, but check that guide maybe

balmy burrow
#

it doesn't even work with built in-

#

I think my version is just broken

#

:/

north path
#

Have you checked the guide I sent?

balmy burrow
#

yes

north path
#

The shader used in the material doesnt work, that doesnt mean everything is broken

balmy burrow
#

I actually watched that video yet

#

but I have experimental mode turned on

#

and all the settings

north path
#

You dont need experimental settings

#

Which is said in the guide I sent. I think you followed an old guide

#

Check the written section of the link I sent

#

To render it you need to put the background of the camera to black I think

main quarry
#

there is a way to use HapticFeedback with custom intensity and unknown duration?

balmy burrow
#

I changed some stuff and I did have some settings that wouldn't allow passthrough to work

#

I'm not too optimistic tho

#

since, nothing ever works the first hundreds of times on any of my software :c

#

IT WORKS!

#

thank you so much!!!

main quarry
#

it works only on builded app

#

you can't try it in editor mode

#

passthrought i mean

balmy burrow
#

I know

#

but it works now

#

I just needed to turn on backend openxr

#

but yes!

#

it works now!

visual idol
#

Hey anyone, could anyone explain to me what the Interactors use to send a signal to the interaction managers in the xr toolkit? The website doesn’t really go in to detail about how the script works. Thanks.

thin steeple
#

does anyone know how to add the graphic 'banner' on the quest apps? when you hit the quest button to exit game a popup appears with the usual, screenshot, record etc, but there is a space for an image behind the title - not sure how to set that

#

does not seem like any option in the project settings covers this in unity

thin steeple
main quarry
#

Oh, thx you

broken rampart
#

@thin steeple like the loading screen background? or the game app icon itself in oculus library? oh the application quit graphic? hmmm

broken rampart
#

probably an image you can drop into Player settings for android. I'm going to make all textures for player settings and see what goes where. should be simple enough to test

storm ether
#

is it hard to make a vr game by your self?

#

just curios

woven badge
#

making games is hard

#

VR might add more frustrations and make the workflow slower so I wouldn't advise it as a first game project

storm ether
#

is hard

storm ether
broken rampart
#

the ability to look around what you have created is great. but yah super hard. At least you can run builds from editor on headset. otherwise compiling and testing would take forever. really not liking oculus turning off everytime i take it off my head to check some code and try again. i had put tape on the sensor for awhile......i dont know. its a pain.i'll figure something out. maybe you can disable that on oculus somewhere?

balmy burrow
#

Ok so, I'm mainly building for the Quest 1 and 2 and I'm having a little bit of a dilemma right now-

#

Is using the OVRPlugin a good idea?

#

Is it deprecated?

#

Should I use the XRRig thing or just continue with OVR?

#

What's the difference between them?

#

Can I publish on other platforms and headsets using the OVRPlugin?

tiny niche
balmy burrow
#

Oh god, then how do I also use their features?

#

So I should use the XRRig?

#

I just spent 3 days learning this FOR NOTHING?

tiny niche
#

you don't have to, but unless you want to use the avatars, the oculus rig isn't all that much better

balmy burrow
#

I want hand tracking and being able to set the headset settings

#

Like cpu levels and fps and foveated rendering

#

I guess just #if?

tiny niche
#

for handtracking you need to use the oculus sdk and openxr

#

eh, #if just does compile time conditions

balmy burrow
#

I know

#

Well

#

Can I use the XRRig and their hand prefabs?

#

Uhhhhhhhh

main quarry
#

How to start scene with player looking toward one direction indipendently by the real headset direction?

#

I should use XRInputSubsystem.TryRecenter()?

#

doesn't work

#

I have to rotate all the world to have a fixed starting rotation?

tiny niche
#

but people do pick the forward direction of their playspace anyways

#

or at least used to. dunno if that has changed

main quarry
#

I get to working adding a fade out from black at scene load and rotating the player to Quaternion.Identity until the fade out ends

#
    private void OnSceneLoaded()
    {
        Fade();
        if (rotatePlayerToOriginalRotation)
        {
            StartCoroutine(RotatePlayer());
        }
    }

    private IEnumerator RotatePlayer()
    {
        float timer = 0f;
        while (timer < fadeInTime + fadeOutTime)
        {
            playerTransform.rotation = Quaternion.identity;
            timer += Time.deltaTime;
            yield return new WaitForEndOfFrame();
        }
    }
tiny niche
#

never prevent head movement, that's a big no-no

main quarry
#

because I noticed that the headset rotation is applied not instantly so have only one rotation set doesn't work

#

playerTransform is the parent

#

is that wrong?

tiny niche
#

the vr part of the rig should look something like this, but whatever you parent it to is up to you

#

im guessing you're using the oculus rig, so it'll have different names, but its functionality is pretty much the same

#

that said, lock the rotation of the parents all you want, but do not try to prevent people from looking around

#

and expect the user to re-center their tracking during gameplay

chilly lodge
#

how can i detect collision between my vr hands and an object? Im using steamvr

chilly lodge
#

im talking about the pointer finger in particular

tiny niche
#

but detecting the collision is not the hard part. you need to consider what you want the response to be

chilly lodge
#

can i like modify the default prefab for the right hand to have a collider on the finger tips?

tiny niche
#

depending on what type of interaction you're trying to achieve, you might want a raycast/spherecast/velocity-tracked rigid body/etc.

#

you can

#

but a collider might not be what you need

chilly lodge
#

im gonna use it for inputting numbers into a safe

#

and it would be a lot easier for the user if they used their hands and not a ray

tiny niche
#

is it a keypad?

chilly lodge
#

ye

tiny niche
#

you could just check the distance between the key and the fingertip

chilly lodge
#

id have to modify the hand either way

tiny niche
#

well you do need a monobehavior taking care of performing the interaction

#

and you probably want an area trigger around the keypad, so its only running the interaction logic while the hand is close to the keypad

chilly lodge
north path
chilly lodge
#

is there something i can use if i dont want them to have a rigidbody?

tiny niche
storm ether
#

Should I get help making a vr game or is it easier to make it myself

north path
#

What do you mean? @storm ether

storm ether
#

Is it better to have other people helping a person make a game instead of someone trying to make the vr game by yourself

#

Just asking out of curiosity

north path
#

Depends, do you want to learn how to make (vr) games or do you prefer a more manager-like role (and maybe make art mext to that or do marketing or design)

#

If you want to learn how to make vr games, go make VR games. There are a ton of resources out there

chilly lodge
#
foreach (GameObject knap in knapper)
        {
            int i = 0;

            if (Vector3.Distance(knap.transform.position, fingerEnd.transform.position) > 5)
            {
                display.text += i;
            }
            i++;
        }
        if (Vector3.Distance(deleteKnap.transform.position, fingerEnd.transform.position) > 5)
        {
            display.text = display.text.Remove(display.text.Length - 1);
        }
        else if (Vector3.Distance(enterKnap.transform.position, fingerEnd.transform.position) > 5 && display.text == kode)
        {
            // Open door to safe
        }
storm ether
north path
# storm ether I'm a fast learner so I'll go make a vr game

https://youtube.com/c/JustinPBarnett

He has some great guides for VR and his guides don't lock you into using either Oculus or SteamVR, but makes it cross platform

storm ether
#

Can't I use openxr as well?

#

Actually idk what I'm talking about

#

What is openxr

north path
#

Yeah OpenXR is the way to go for cross platform.
It's a standard that supports all current and probably all future headsets

#

OpenVR is SteamVR only
And Oculus is, well, Oculus

#

So go with OpenXR unless you really need a specific unique feature from another plugin

#

But the guy linked makes good guides, one of the best I've seen

young rune
#

Dev Dunk is right.

storm ether
#

ok thanks

young rune
#

If you plan on making a game that using Oculus fingers, or something though, you have to use Oculus only.

But if you're doing something that doesn't require specialty features of your VR brand, OpenXR

storm ether
#

cool

#

Hi, I'm using the XR Interaction Toolkit and previously used VRTK/Tilia - Is there a way to simulate input using keyboard/mouse in editor to playtest more easily?

tiny niche
tiny niche
# storm ether cool

even if you're using the oculus sdk, you should still use the openxr runtime

north path
#

So far stuff like spacewarp, late latching etc needs oculus and knuckle finger tracking steamvr tho

I meant that some guides only use steamvr or oculus prefabs which can cause issues later on

tiny niche
#

true, but you wouldn't run those prefabs on the openvr/oculus runtimes

north path
#

Does anyone know what the difference between XR Core Utilities and xr interaction toolkit is exactly?

thin steeple
broken rampart
ripe loom
#

So - as a Linux dev - I’m stuck developing on SteamVR without the OpenXR input system, the repo for which hasn’t been updated in about two years.

north path
ripe loom
#

OpenXR does- just not the Unity implementation 😦

drifting dagger
#

Hey so I have a problem with putting my Unity builds onto the Oculus Rift 2. For some reason the builds appear as a "screen" infront of me on the Oculus as opposed to becoming my whole environment. Not sure how to best describe it.

storm ether
#

have to enable oculus is project setting ibelieve

storm ether
nimble tangle
#

I was messing around with Time.timescale in XR and it seems like when they time scale is lowered the framerate also lowers by the same amount. Is Time.timescale connected to the framerate?

storm ether
#

yes its playback rate. you lower its like activating slow motion

nimble tangle
storm ether
#

you want to cause a slowmotion effect in your game without messing with fps.

nimble tangle
#

Yeah I'll go ask there. I thought it might have been a XR thing, but I sounds like its just a code thing

sinful sable
#

Does anyone use integrated graphics units (igpus like Ryzen 7 5600g) for VR development? I know I should have a nice dedicated GPU but that's not possible for me at the moment.

peak cedar
#

so i want to dabble in vr and im unsure if i should have open xr be whats selected or oculus. the tutorial im watching seems to be out of date with current things and im having trouble finding current date stuff

#

like me on the right and tutorial man on the left are looking at two different things

spring saddle
#

its just the menu was reworked the controller profiles on the left are the interaction profiles you have on the right. labels for things changed when it was updated like XR Rig is now XR Origin and a few other changes but mostly work the same

spring saddle
#

occulus Build question

hallow reef
#

Hey, my group and I have a project that we have been working on for a while

#

But my group mates are now sick due to corona

#

so i have to run it on my own project

#

the issue is

#

The project isn't rendering on my headset

#

I have imported it into unity, but i can't get it to run on my headset

#

i have connected the headset via air link

pine bison
#

Show your XR Project Settings @hallow reef

hallow reef
#

@pine bison

pine bison
#

Those are the Android settings. Air Link works via the Desktop settings

hallow reef
#

Oh

pine bison
#

Alright, do you get any errors in the console when you try to run?

hallow reef
#

I tried running via air link with a better connection and I can see the desktop and run the program, but I can only look around and not move

storm ether
#

so i am lost on what todo here i want to make mygame to be able to played on both steamvr and oculus how do i do that

#

How do i add vr interactible objects?

lusty sail
lusty sail
storm ether
#

ok thank you

frail harbor
#

Hey Unity people, i'm using SteamVR SDK 2.6 in Unity and when i use their camera rig it works fine. However when i use the player rig from an addon called VArmory the camera freezes and throws this error. I'm in 2020.3.25f1 HDRP, any advice for what i should do?

dark idol
#

Hello i have a problem with my XR origin ( I think )
when i teleport my character, it tp me on the rooftop of my building.
(My tracking origin is set on floor)

north path
dark idol
north path
dark idol
#

with the device in origin mode when i tp that change my height. but the mapis bigger than floor mode ( who has the good scale )

iron dome
#

Hi everybody. Do you know of some important events on VR/AR in Europe?

karmic adder
#

i have a really big issue
so i was able to get my vr game on my quest
but when i open it
its just stuck on the black loading screen with the 3 white dots
i can hear the game music
but cant see anything
i sat there for like 5 mins and nothing happened

pine bison
#

Show your XR settings

karmic adder
#

how?

#

I'm still a beginner ..

#

idk what that is

pine bison
#

your XR Project Settings in Unity

karmic adder
pine bison
#

Yes

#

And under the Oculus section?

karmic adder
pine bison
#

You need to check initialize on startup

karmic adder
#

oh

#

ok

#

tysm!

#

i remember why i disabled it last night

#

i didnt know what linear lighting meant

#

now i see i shouldnt have

#

ok ty

dark idol
#

@pine bison do you have any solutions about my problem a little bit higher in the conversation ? ^^
you helped me a few days ago

pine bison
#

With your teleportation issue?

dark idol
#

Yeah

pine bison
#

How are you doing the teleportation?

dark idol
#

With the raycast and the locomotion system and teleportation provider

pine bison
#

Did you follow a tutorial?

dark idol
#

Yes i don't know why that make me this
On internet there is subjects on forum but no answers

pine bison
#

Which tutorial?

dark idol
#

Valem's ones

#

But he use a XR Rig because it's a old tutorial
and i saw that's the same thing than a XR origin

pine bison
#

So what does your XR origin look like in the inspector?

dark idol
#

look like this

pine bison
#

Ok, and what do your colliders look like?

dark idol
pine bison
#

Are you sure you don't have other colliders in the way that are pushing you up?

#

You can use this to see collision geometry

dark idol
#

No it's the only collider i have

pine bison
#

Can you show a video showing the issue then?

dark idol
#

yes wait a minute

pine bison
#

I'm not able to see anything wrong based on what you've showed so far

#

Apart from the 0 Y scale on the collider but I don't know if that should matter

dark idol
#

and the camera scale can change something ?

pine bison
#

Yes

dark idol
#

my main camera has this scale

pine bison
#

Well then

#

Try setting that to 1

dark idol
#

Fuck that was that i'm so dumb !

Thanks you so much again for your help

karmic adder
#

hi

#

i have a problem

#

i got my game on my headset

#

but when i join

#

i just get like hovered away from the spawn

#

idk why

#

could someone test it and see what i mean

#

i can send footage too

pine bison
#

It's better to send a video than make people download a file and install it themselves @karmic adder

karmic adder
#

ok

#

another thing is

#

when the game starts

#

the player hands

#

fall out of the world

pine bison
#

Please try to write complete sentences I beg you

karmic adder
#

Ok, Im sorry..

pine bison
#

Did you follow a tutorial to set up your scene?

karmic adder
#

yea i did

#

i dont know if i did it right

pine bison
#

Presumably not with the problems you describe

#

With the hands, it sounds like you added a rigidbody and left use gravity checked

karmic adder
#

no

#

use gravity is off

#

no i see

#

its not hands

#

its guns

#

they are supposed to be on the orange block

pine bison
#

I don't have access to the file

karmic adder
#

oh

#

try now

#

idk why its doing it

#

and i have no hands in the game

pine bison
#

The file is corrupt

karmic adder
#

?

#

you just download the mp4

pine bison
#

Either way, since you're new, I would advice you to go through a tutorial about the setup and do things one step at a time. That way you don't end up with multiple things not working without knowing what you did

karmic adder
#

oh

#

get vlc player

#

aka the program that plays any file

#

i tried using windows player too

#

didnt work

pine bison
#

Same thing

karmic adder
#

what

#

how

#

ik why

#

i didnt move it right

#

yea this one works

pine bison
#

That works

karmic adder
#

yea!

pine bison
#

So what kind of scripts or locomotion do you have in your scene

karmic adder
#

wdym locomotion

#

i dont have any cars

#

i mean

#

it could be bc

#

my cube stack