How to Create a Whiteboard in Unity VR - A Step-by-Step Guide

How to Create a Whiteboard in Unity VR - A Step-by-Step Guide

Justin P Barnett

2 года назад

41,764 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@irfanyaqoob4717
@irfanyaqoob4717 - 07.11.2023 04:44

Why my pencil passthrough the plane(page ) while writting, i am using virtual hands for grabbing the pencil and oculus integration

Ответить
@Nifuckindal
@Nifuckindal - 29.10.2023 14:34

Great Video ! it works very nicely on 3D models also
Is there a solution to draw on a skinned surface ? like a textured avatar ?
Thank you for all the great content

Ответить
@siddhanthsridhar4742
@siddhanthsridhar4742 - 23.10.2023 11:14

my marker starts rotating once it collides with the whiteboard...how to fix this

Ответить
@ugochukwunwankiti6030
@ugochukwunwankiti6030 - 23.10.2023 08:19

@JustinPBarnett I followed the instruction in this video and it worked perfectly fine. However, When I add a material with a texture like the outline of a picture to the canvas and I enter playmode, the canvas automatically turns back to being blank. Any ideas on how I can make this work?

Ответить
@unruliestcat
@unruliestcat - 20.10.2023 13:05

Thank you so much for this amazing tutorial, it was really perfect <3

Ответить
@nikhilchoubey2676
@nikhilchoubey2676 - 27.08.2023 19:10

How can I use it in a multiplayer game?

Ответить
@104nimrahkhan8
@104nimrahkhan8 - 16.05.2023 11:29

Please upload one, how to use ML in unity

Ответить
@MarceloXvX06
@MarceloXvX06 - 09.05.2023 00:38

Bro! Did you made the script for the eraser? It would be super healpfull for my vr project! So i would really aprecciate a tutorial c: ,Thanks!

Ответить
@user-bj4ww3mx3m
@user-bj4ww3mx3m - 01.05.2023 08:45

This tutorial bring you to performance issued at the end. but however thank you.

Ответить
@Wipsnipidy
@Wipsnipidy - 06.04.2023 18:18

Is there a way to be able to draw on an existing texture? I want my players to trace something but the new texture in the script just wipes it

Ответить
@AndyPonsG
@AndyPonsG - 24.03.2023 09:56

Hi! Thank you so much for the tutorial, it is very helpful. I have a question, how do you move the marker when testing the game in Unity? My object will not move..😅 Thank you!

Ответить
@PaulRobello
@PaulRobello - 16.03.2023 00:06

Great tut! I changed the raycast a bit to allow the full height of the tip to be used to draw, otherwise inserting the tip past the midpoint would not result in a raycast hit: Physics.Raycast(_tip.position - transform.up * _tipHeight, transform.up, out _touch, _tipHeight * 2);

Ответить
@lexihenrion1940
@lexihenrion1940 - 13.03.2023 01:03

Any idea how to make the whiteboard grabbable so it can be moved around? I tried adding a XR grab interactable component and rigidbody, but for some reason the markers then don't write on the whiteboard.

Ответить
@Lachesis_steven
@Lachesis_steven - 10.11.2022 15:58

Thanks Justin, you are always my teacher! I tried your code, but I find that the plan of "setPixels() + Apply()" are too slow especially when I use a big texture size.And it get worst when I made a blackboard eraser in this way——
I have to use many small square to approximate the shape of blackboard eraser Now I find a way to improve it that we can send an extra
"trial texture" to a shaderGraph, then mix it with original texture, and the way to draw the trial texture is using the `rendertexture` and `Graphics.DrawTexture`. After that, almost all the calculation
happened in GPU, I finally get a fps improvement for nearly 300%!

Ответить
@fmesteban
@fmesteban - 03.11.2022 10:36

OMG!! really amazing this video tutorial!!! Thanks you very much!!! =)

Ответить
@goodmen6938
@goodmen6938 - 29.10.2022 08:36

very informative tutorial, can anybody give me a direction as to where I should look or how to go on about making a circle instead of 5x5 squares from marker

Ответить
@MatthewCawley
@MatthewCawley - 10.10.2022 02:32

Subscribed simply because you are a fellow Rider user :D Great tutorial by the way - it has helped me understand the logic behind realtime painting for my own project. Thank you :)

Ответить
@anjalia2246
@anjalia2246 - 08.10.2022 15:12

Hi Justin, thank you for this tutorial, exactly what I was looking for!

Ответить
@lordstair1359
@lordstair1359 - 04.10.2022 11:56

Is there a way to pre-draw something on the whiteboard that appears every time you load the game?

Ответить
@lordstair1359
@lordstair1359 - 04.10.2022 11:43

Using ( _whiteboard.texture.Apply(); ) is very expensive and causes my 200FPS scene to drop down to 28FPS. Really bad for VR! Are there better methods to get the same result?

Ответить
@PhilipHerlitz
@PhilipHerlitz - 26.09.2022 22:57

My marker is still trying to change its rotation if i push it harder against the whiteboard. I have transform.rotation = _lastTouchRot; and _lastTouchRot = transform.rotation; . Any ideas why my marker is still trying to bend and rotate, and not stay at its current rotation?

Ответить
@mb_birddog9243
@mb_birddog9243 - 25.09.2022 05:06

Hey what do you do when it says "Enumerable" doesn't exist

Ответить
@ajinjoseph1
@ajinjoseph1 - 01.09.2022 10:28

how to erase what is written?

Ответить
@mariakristensenearvox8169
@mariakristensenearvox8169 - 12.07.2022 10:33

Thank you! This video was amazing! :D
I am rather new to coding, so I hope someone in the comments will be able to help. I want to add a looping sound effect that will play whenever the marker touches the whiteboard, and stops when it is not, but I am having trouble finding the right place to apply it to the code. Any insights would be really helpful!

Ответить
@0703wingyan
@0703wingyan - 30.06.2022 11:32

Sorry, I got one trouble when I type the code which that I cannot find "Enumerable.Repeat". As when I put the cs folder into unity, it shown error. Can I get any help here? Thanks

Ответить
@fernandocgi3874
@fernandocgi3874 - 01.06.2022 18:19

Awesome video! I hope you dont forget to make the erase part!

Ответить
@DeinoVideos
@DeinoVideos - 01.06.2022 15:38

ERROR CS1501, SetPixels, HELPP

Ответить
@jsissler
@jsissler - 30.05.2022 17:54

Excellent video! Any chance you can provide a reference to the classroom scene featured in the video? Looking for free assets to use to teach a college course. TIA.

Ответить
@laithbarakatt6714
@laithbarakatt6714 - 05.05.2022 17:29

Hi Justin, i am happy your out here doing this.
i get this error what ever i do , can you help please.
Assets\Whiteboard\Scripts\Marker.cs(22,19): error CS0103: The name 'Enumerable' does not exist in the current context.
thanks

Ответить
@nolanrux7866
@nolanrux7866 - 05.05.2022 13:06

THANK YOU.
I'm doing my masters thesis on Project Management in a virtual space using only hand tracking, and I needed to be able to write on sticky notes in VR, and was freaking out that I wouldn't be able to do it before testing. This tutorial literally saves my paper.
So again, thanks from the bottom of my heart.

Ответить
@axelsmaxel
@axelsmaxel - 04.05.2022 16:03

My pen is detecting the wall too soon, and draw before i even touch the whiteboard, and yes I checked the colliders... any help???

Ответить
@sarahrietkerk2212
@sarahrietkerk2212 - 30.04.2022 00:39

This was extremely helpful and cool!! Thank you so much!

Ответить
@clumsyranger2914
@clumsyranger2914 - 17.04.2022 20:06

Enumerable isnt working in the code

Ответить
@Bensmithgardening
@Bensmithgardening - 04.04.2022 18:45

Justin what software do you user for the image in the frame thing?

Ответить
@DtavsExists
@DtavsExists - 29.03.2022 05:17

your tutorials are very helpful, thanks for helping my game development process.

Ответить
@masterofchips123
@masterofchips123 - 12.03.2022 12:53

Great tutorial

Ответить
@MrTakeshi763
@MrTakeshi763 - 21.02.2022 03:25

Cant get the code on the marker to work, using ms visual basic 2019 and its throwing up a bunch of errors ( enumerable/lastTouchPos/-lastTouchFrame/whitebord does not exist in the current context) should i be using a different editor for the script? Any help would be great as I’m an absolute beginner in coding

Ответить
@Itama22
@Itama22 - 19.02.2022 03:04

Hey Justin, this is working great for me, thanks a lot!
I still have a weird issue though, maybe it's a quick fix:
On my Markers Tip, when I try to draw something on the whiteboard, only one edge of the tip can actually draw, the others won't do anything.
Kinda hard to explain, it's like it can only draw with the bottom side of the tip.
The one edge on the tip, that is working also slightly clips into the whiteboard - the other edges don't do that.
I did try to adjust the colliders on the tip, but it didn't help. ^^

Ответить
@songonyou
@songonyou - 15.02.2022 17:19

Hi! thank you for your great tutorial. But, unfortunately, I can only draw a diagonal, straight line with the marker. Does anyone have a same problem like me? I follow the exact same script what Justin wrote, but can't draw it properly.

Ответить
@ansokan1920
@ansokan1920 - 14.02.2022 17:24

Hi Justin can i make this without VR set up ?

Ответить
@mtalhakhalid1679
@mtalhakhalid1679 - 13.02.2022 10:15

Hello sir i somehow manage to write the code now i am having this error Assets\Scripts\WhiteboardMarker.cs(6,14): error CS0234: The type or namespace name 'Serializable' does not exist in the namespace 'System' (are you missing an assembly reference?)

Ответить
@mtalhakhalid1679
@mtalhakhalid1679 - 10.02.2022 13:46

you should addd code in description as well its a good practice

Ответить
@petrstach3399
@petrstach3399 - 09.02.2022 18:43

Another great tutorial. I was wondering how to get rid of those red pointers linked to hands and swap hands with some nice prefabs. Would it be simply add hands as prefabs to left and hands controllers ,or is it something more tricky to set up. Thanks

Ответить
@francescagreetham1804
@francescagreetham1804 - 08.02.2022 14:09

Love watching your videos - you explain everything so well. I wasn’t even thinking about making a whiteboard but I just love learning from you!

Ответить
@sumomafia
@sumomafia - 07.02.2022 17:46

the rotation lock doesnt seem to work. any idea why ?

Ответить
@parsarafieee5968
@parsarafieee5968 - 03.02.2022 03:12

bro you are amazzzing

Ответить
@KING4COKE
@KING4COKE - 02.02.2022 19:52

Anybody else has the problem that this just works in the Unity Editor Play mode, but when you build the project the marker just doesnt work?

Ответить
@markgiroux_
@markgiroux_ - 01.02.2022 01:34

For everyone that's having the jittery marker issue, first check and make sure that the handle and marker tip transforms are reset to zero so they are in the same position as the marker object ( with the exception of the tip which has to be moved along the y axis to be at the end of the handle). Another thing, is if you have a character controller on your player, that will cause the marker to jitter when it hits the capsule collider. I know adding one wasn't in the vid, but I wanted to interact with objects so I added one myself, and it caused problems so it's worth mentioning.

Ответить