Te vagy az egyetlen, aki nem játszik egységgel

Ez nem olyan hosszú volt, hogy egy személy feltételezheti, hogy sok hacker nem lelkes videojátékos játékosok. Rengeteg ingyenes időt töltünk a dolgok elválasztásával, a mikrocontrollerekkel, valamint az aktuális [Jenny List] Post olvasása a Hackaday.com-on. When we do believe of video games, our neurons normally terminate in the direction of emulating a console on a single board computer, such as a Raspberry Pi or a Beaglebone. Vagy akár a tényleges konzol-feldolgozót emulálja egy FPGA-n. seldom do we venture off into 3D programs indicated to make contemporary video games. Ha nem tudunk exportálni egy .stl vele, nem érdekel. Ez csak nem a táskánk.

Oculus Rift megváltoztatta ezt. The VR headset was originally developed for 3D video games, however swiftly ended up being a darling to hackers the world over. online truth innovation is far bigger than just video games, as well as brings chance to lots of fields such as genuine estate, construction, product visualization, education, social interaction… the listing goes on as well as on.

Az Oculus Team a korai napokban az Egységgel találkozott az emberekkel, hogy egyszerűvé tegye a videojáték-készítményeket, hogy anyagot készítsen a szakadék számára. Az egység egy sekély felfedezési görbével létrehozott játékmotort, valamint a nem kereskedelmi célú használatra kínálják. The Oculus Rift can be integrated into a Unity atmosphere with the inspect of a setting as well as importing a little package, offered on the Oculus site. This makes it simple for any individual thinking about VR innovation to get a Rift as well as begin pumping out content.

A hackerek egy lépést tettek, valamint olyan írásbeli szkripteket, amelyek lehetővé teszik az egység számára, hogy kölcsönhatásba lépjenek az Arduino-val. VR szórakoztató. Azonban VR plusz fizikai igazság csak ideális izgalmas! Ebben a cikkben fogunk járni az Oculus Rift és az Unity Game Engine felállításával, hogy egy Arduino segítségével kölcsönhatásba léphessünk a külvilággal.

A polcok opcióiról

Ha az Unity birtoklási oldalra, valamint az Arduino böngészése, akkor néhány lehetőséget kapsz. Sajnos, a Raspberry Pi keresése nem termel semmilyen gyümölcsöt. Van néhány általános soros kommunikációs választás, mint például az alapvető sorozat, valamint az SD soros, de ezek a választások nem ingyenesek, és nem, az értékkel való foglalkozásnál jól támogatottnak tűnik. Az Unidino ígéretesnek tűnik, de harminc dollár, valamint nincs sok tevékenység a fórumon. A nyilvánvaló lehetőség, hogy egy esős napon játszhasson, az ardunity. Van egy ingyenes verzió, amely még mindig sok képes kísérletezni, valamint jól támogatott, valamint dokumentált. Sokkal többet írt egy Wysiwyg stílusban, amely kiindulhat a kódolóknak, azonban elegendőnek kell lennie, amíg valaki sokkal fejlettebb verziót okoz.

Elkezdeni

Feltételezzük, hogy már van Arduino, valamint Oculus konfiguráció a számítógépen. Ha nincs Okulus Rifted, azt javasoljuk, hogy menjen az Oculus webhelyre, és egyébként a szoftveralkalmazást állítsa be. Ez lehetővé teszi az Unity / Arduino kommunikáció tesztelését az Oculus futási idejével, még akkor is, ha nincs hardvere. Ez a módszer, amikor kapsz egy fülhallgatót, nem kell semmit tenni. csak hajtsa végre az .exe-t, valamint látni fogod a munkáját VR-ben. Ne feledje, hogy a szoftveralkalmazás leállítására használják, hogy telepítsenek olyan számítógépekre, amelyek nem felelnek meg a minimális követelményeknek. Az OCULULULL Figyelembe vette ezt a tónusú ezt a kellemetlenséget, valamint most lehetővé teszi a szoftveralkalmazás telepítését sok számítógépen, beleértve a laptopokat is!

Az egység beállítása közvetlenül előre – csak menjen az oldalra, és töltse le a telepítőt. A bejegyzés időpontjában a jelenlegi verzió 5.6.1. Meg akarja tartani a személyes verziót – ez körülbelül öt gigabájt, így adja meg sokáig letölteni. when installed, head over to the Oculus site as well as get hold of the Unity tools import package.

Nyitott egység, valamint új projekt megnyitása. then head back to the Unity possession store as well as set up the ARDunity fundamental Import package. Ez megnyitja az egységet, és meg kell látnia a birtoklási bolt nevű fülét. Kattintson a lapra, majd importálja a csomagot. Ezután menjen a Szerkesztés-> Projektbeállítások-> Player, valamint az API kompatibilitási szint beállítása .NET 2.0. Ez eltávolítja a képernyő alján látható hibát. Ezután más beállítások alatt győződjön meg róla, hogy kiválasztja az online igazság támogatott opciót.

Now import the Oculus bundle by going to Asset–>Import Package–>Custom bundle as well as point towards the Oculus bundle you downloaded earlier. Szükség esetén indítsa újra az Unity programot.

Mindent együtt

At this point, whatever must be set to get Unity speaking to your Arduino with the Oculus Rift. Helyezzen egy LED-t D2-re, és vegye figyelembe a kommunikációs portot. From the job tab (lower left),  broaden the folders ARDunity–>Examples–>LED–>Digitális. double click the last example – ReactingTrigger(DigitalLED).unity.

That will tons the example. You must now see two cubes in the view window, as well as a new folder called ARDunity under the hierarchy tab on the top left. click on ARDunity as well as you’ll see the inspector tab (far right) modification to include a button that states “Export Sketch”. hit the button as well as it will export the Arduino sketch to a location of

View of scene after opening LED example
your choosing. The .ccp as well as .h data will be produced automatically, together with some other dependencies. I shouldn’t have to tell you to have a look around, however don’t fail to remember to compile as well as publish it after you’ve had your fill.

Just below the Export Sketch button will be the Comm Serial (Script) window. browse for as well as choose the comm port for you Arduino. After you discover your comm port, hit the bit play button on top of the primary scene window. when you do this, you’ll see a “Connect” button appear where the Export Sketch was. Go ahead as well as connect. now click on the Scene tab above the primary checking out window. This will enable you to manipulate the cubes. Go ahead as well as get hold of the white cube as well as run it into the eco-friendly one. If you did whatever right, you’ll see your LED light when the two cubes collide.

The gears in your noggin must be turning ideal about now… if you can toggle IO from within a game engine; there is some seriously great stuff you can do! however we’ve only scratched the surface. Let’s get this working in online Reality!

Enter the Rift

In buy to go into the online world, you requirement a couple of things. One is a character controller as well as the other is something to walk on. hit the play button once again if you haven’t already. This will disconnect whatever as well as enable you to edit the world. go to game Object–>3D Object–>Plane as well as change the airplane so the two cubes are hovering above it. then un-collapse the ARDuino as well as broaden the OVR folder to OVR–>Prefabs. choose the OVRPlayerController.prefab as well as drag it into the primary hierarchy in the upper left. You’ll see the player controller appear in the primary scene window. Drag it away from the cubes, as well as then under the inspector tab on the ideal hand side, de-select the utilize profile data choice in the OVR player Controller (Script) section.

Now, choose ARDuino under the hierarchy tab, press play as well as then connect. If you have an Oculus Rift connected, you must be able to put it on as well as run into the eco-friendly cube as well as light the LED on the Arduino. If you don’t have one, just utilize the arrow secrets to do the same.

Következtetés

So where can you opt for this? The greatest thing that jumps out to us is haptic feedback. envision instead of a cube, you have a wall or table or something of that nature. have the Arduino activate some type of comments when you touch or bump into the object.

Dig into the code as well as let us understand of any type of bugs or improvements. Be sure to comply with some other examples as well, as well as inspect out the video below for a demonstration. If you’ve done anything great with Unity, show us in the comments.

Posted in Uncategorized

Leave a Reply

Your email address will not be published. Required fields are marked *

Extra Text
Cape Town, South Africa