You may have heard of innovations in virtual reality, augmented reality, and hybrid reality in the technology industry. These media can be broadly defined as extended reality or XR. My first risk to XR development was in 2010, when I was exploring flash development. My application is simple. If the webcam displays a quick response code, the program overlays the 3D model on the marker. In retrospect, this was a life changing moment for me. This is the first experience of manipulating digital 3D objects and the first augmented reality experience accessible on the web. The
As we begin to blend the boundaries between the physical self and the digital self, the concept of the screen will be considered later in the next few years. We will be surrounded by personalized versions of the environment, all of which will be stored in a location in the database as metadata. Everyone has the right to control the meta, which is very important, because WordPress is actually a luminous place, so WordPress will be in this position. WordPress allows you to perform all the difficult tasks of content management with little in-house operational knowledge. There is no need to learn how to build a user system from scratch. Only WordPress is available. The
Content and meta are fixed in our life. I think WordPress will gain a good position in the future through the integration of rest APIs. Now, you can get all the data of HTTP requests through WordPress and make intelligent decisions on this basis. With the development of graphql and other concepts, the structure of this method may change in the next few years, but in general, the requirements of comfortable methods for processing data will remain unchanged. How does MVP word press look in XR? Last year, I just wanted to use the features available in the standard WordPress instance to build the least executable VR WordPress. I use prototypes because unity3d is the lowest barrier to entry (free). The idea of this prototype is easy. Fill the UI elements of the VR world with the post data, and use the 360 degree image recommended by the post as the skybox around the user. The use case I imagined was a simulated travel blog. The
Its performance is as follows: Data flow and requirements: This is not a rough concept. Use the WWW function to call rest through c\. Import the data returned by word press and save it in the variables assigned by unity developers using the simple drag and drop editor tool. Unity imports the defined UI elements and applies the text stored in the variable to the mapped text object. I have provided this project as open source code in the following resource library (Note: This was executed on the hacker ton for two days last year. This is far away from the production preparation code.): https:\/\/github.com\/anthonyburchell\/VR-WordPress\/ The
To analyze JSON, let’s see what happens in c\. It is important that the rest API will return JSON. As the name suggests, JavaScript does not have a powerful default parser for JSON in c\. (of course, unity can use JavaScript. In this project, it is better to use c\ The script for JSON parsing is simplejson. This may seem like a threat, but before we spent two days building the project, we had little c\. What happens when reading the simplejson sample
You will soon know what is happening. Let’s immerse ourselves in it! The
In the following code, select controller word press in the asset folder. Viewing CS script. https:\/\/github.com\/anthonyburchell\/VR-WordPress\/blob\/master\/Assets\/controlerWordPress.cs The following code \
The{
Addtolog (\
Www www= new WWW (URL);
Yield yield WWW;
If (www.error! = null)
The{
Add a log (www.error);
}The
Another
The{
Addtolog (\
}The
Results (www.text);
}Then JSON and save it to the \
Personal iemonator jsonfile (string URL)
The{
Jsonstring = null;
If (continuebody = true)
The{
Yield return startcoroutine (file (URL, filecontents = > jsonstring = filecontents));
Commissioning. Log (jsonstring);
Jsonlogstring = truncatestringforeditor (jsonstring);
Find_feat_image= fact;
Find_comments= facts;
Foundbody= true;
}The
}The \
Male invalid start (){
Startcoroutine (jsonfile (\
Renderer renderer =getcomponent male();
}The update function is checking whether the condition is true to trigger data re rendering. To achieve this, we have better design patterns. I repeat, this is MVP. At this moment in hackton, I am far from the summit of Ballmer, who brought me to the level of things exploration. The
Invalid update ({
If (foundbody = = true)
The{
Var jsondata = json Parse (jsonstring);
Jsonimagefinal=jsondata[0][\
Title_text Text=jsondata[0][\
Body_text Text=striphtml (jsondata[0][\
Postid=jsondata[0][\
Author url=jsondata[0][\
Foundbody= false;
Find_author= fact;
}Although there are some requests, such as gravitar images and author information, in general, this is a high-level view of how my MVP VR word press parses JSON data. With a little tweaking in the last code block, you begin to reach a point that looks familiar with the data objects that work in the php\/js area.