Based on Socket IO + Unity Building the Metaverse of Dream of the Red Chamber

The Metaverse of Dream of the Red Chamber has a natural fit with Unity + Socket.IO, both in virtual space and functional design. Using Unity, you can generate and build the foundation of the Metaverse of Dream of the Red Chamber: virtual reality, including real-time dynamic internal generation and external loading of virtual characters, scenes, and various other elements, and can achieve various controls over these elements without delay. The Meta-verse space built by Unity has full immersion and diversity; Socket.IO realizes Internet connection, Unity C# script creates Socket.IO client, Unity + Sock-et.IO connection realizes interpersonal communication, thus jointly realizing digital identity management in the Metaverse of Dream of the Red Chamber. Including virtual identity registration, Unity to achieve login authentication, digital avatar unique distribution; jointly create a network social space including games, business transactions, friends and entertainment, and provide corresponding safety information management for it, which is enough to reflect the special code of conduct and civilization ecology in the Metaverse. In short, Unity + Socket.IO can build a complete system of the Metaverse of Dream of the Red Chamber from the digital technology level.

Its connotation is only rich, naturally forming a vast and colorful universe of Paul's universe, but people's understanding and perception of it are very limited.
There may be many reasons, but the main reason is that traditional reading methods require high literacy from readers, which means that for people with shallow life experience and low literary literacy, they may not understand or appear boring (Figure 1).So, using modern and innovative means of expression, this great work is presented, allowing everyone to easily enter, experience, quickly perceive, and communicate with the characters described in the book at zero distance, or even transform into a certain character, experiencing the story described in the book, which is the Metaverse of Dream of the Red Chamber.The corresponding changes that are clearly foreseeable after the Metaverse transformation are also a powerful driving force for the birth of the Metaverse of Dream of the Red Chamber (Figure 2) [1].

The Functional Design of the Metaverse of Dream of the Red Cham ber
As a vast and complex system, the Metaverse must possess corresponding complex functions.Roblox is the first company to incorporate the functional requirements of the Metaverse into its prospectus.Roblox proposed eight key features of   presenting the fundamental characteristics of the true Metaverse [2] (Figure 3).

The Spatial Composition of the Metaverse of Dream of the Red Cham ber
The space of the Metaverse of Dream of the Red Chamber consists of two main Z. Q. Rong DOI: 10.4236/iim.2023.156020429 Intelligent Information Management parts: the scenes described in the original works and the Redology (academic field devoted the study of Dream of the Red Chamber) Society Forum (a virtual academic forum for the study of Dream of the Red Chamber).There are many opinions in the academic and folk circles regarding the layout of the former, which is the scene depicted in the Dream of the Red Chamber.In addition, the description of the scene in the original works is limited to textual descriptions, which inherently leaves a lot of room for imagination.The research results of Redology that are most in line with the description of the original works Dream of the Red Chamber (Cheng Gao Edition) are adopted here (Figure 4).The lat- ter is a virtual experience space constructed by developers based on the Metaverse ray of Dream of the Red Chamber (Figure 5), but there is actually no fixed sample [3].

The Workflow of the Metaverse of Dream of the Red Chamber
The Metaverse of Dream of the Red Chamber itself is in working condition at all times, and there are no frequent and complicated processes.What this refers to is the client's entry into the Metaverse of Dream of the Red Chamber and the various tasks that are usually carried out after entry, and they need to strictly Z. Q. Rong Intelligent Information Management follow the prescribed procedures.Otherwise, either you will not be able to enter the Metaverse, or after entering the Metaverse, you will not be able to obtain full physical enjoyment and effective social interaction.Of course, you will not be able to obtain ideal economic benefits in the Metaverse (Figure 6) [4].

The Foundation of Building the Metaverse of Dream of the Red Chamber: Virtual Reality
The foundation of the Metaverse is virtual and augmented reality technology, which allows users to interact with the digital environment.Virtual reality provides a complete digital experience, while augmented reality overlays digital content in the real world.More often than not, the Metaverse is reflected at the level of virtual reality.
Although Dream of the Red Chamber belongs to literary works, depicting people and objects that do not exist in reality, it can also be virtual and make the experience feel real, and can form a complete world.However, virtual reality is different from simulation, it is not just a restoration of the original existence in reality.It can be an artistic creation, and the basic elements that make up this works of art are very rich, and the types are also diverse.Unity3D mainly constructs virtual reality in the Metaverse of Dream of the Red Chamber through the following methods (Figure 7) [5].

Dynamically Generating Virtual Characters
The exclusive virtual characters depicted in the book Dream of the Red Chamber in the Metaverse of Dream of the Red Chamber are limited, which inevitably leads to situations where people entering the Metaverse of Dream of the Red Chamber need to temporarily generate virtual avatars when choosing them, and

Dynamically Loading External Materials
The ecology of the Metaverse of Dream of the Red Chamber is constantly changing, but these changing elements cannot be imported in advance, which requires dynamically loading from external sources.Unity3D provides corresponding methods (functions) for different element types (Table 1).

Integrating External Virtual Reality Elements in Unity3D
The virtual reality elements of the Metaverse of Dream of the Red Chamber still rely more on the Unity3D environment and are imported from outside through interactive operations.After importing, it is usually necessary to perform secondary editing on these elements.For example, redefining image accuracy, defining animation clips, and so on.Orderly place the imported elements into the scene, configure the lighting, and define the corresponding parameters of lighting/environment.In this way, the most basic work of virtual reality in the Metaverse of Dream of the Red Chamber is basically completed.In Unity, there are multiple methods to achieve different types of character perspective control.These methods can be selected based on the activity needs in the Metaverse of Dream of the Red Chamber (Table 2).

Control of Non-Character-Type Elements
In the Metaverse of Dream of the Red Chamber, the non-character elements include all the elements outside the characters, such as the visible sceneries, props, equipment and devices that satisfy various somatic external connections, and the

Character Perspective Type Method Characteristics
First Person Perspective This is achieved by controlling the position and rotation of the camera.
Third Person Perspective Game characters can be seen, but not through the character's eyes.

Free Perspective
Freely switch and adjust the perspective, switching between first and third person.

Fixed Perspective
Fixed camera position and rotation.
Mouse-controlled Perspective Control the direction of the viewing angle by moving the mouse.Intelligent Information Management various digital media (text, images, animation, video, audio) that are integrated into the Metaverse.The control of these elements is quite complex and flexible.
Along with the iterative updating of related hardware and software technologies, the corresponding specific control methods will also be upgraded and improved (Table 3).

Satisfaction in Immersion and Diversity
The Metaverse of Dream of the Red Chamber is based on the content of literary works, with an artistic foundation that transcends reality, and therefore has an infinite space for imagination.However, this is not enough, there should also be a lot of freedom and diversity beyond reality.For example, spatial transfer, changes in perspective, diversity in the presentation style of interactive objects, and infinite related expansion of content [8].
The immersion of the Metaverse of Dream of the Red Chamber includes two aspects: immersion and immersive experience.Starting from entering the Metaverse of Dream of the Red Chamber, everyone views the world from a subjective perspective (first person perspective), and is able to fully control their body and engage in various behaviors they want, just like being in the real world.This is the sense of substitution.In the real world, everyone is in a certain environment no matter when or where they are.Entering the Metaverse of Dream of the Red

The Management of Identity Registration and Login for Digital Virtual Characters
The process of using the Unity + Socket.IO method to realize the Metaverse identity registration is: Unity completes the identity registration, and then Unity Strict control of digital identity registration and login, such as avoiding duplication of registration information, input of illegal characters, etc., is a key technical guarantee and work link to ensure the uniqueness of digital identity.

The Management of Digital Identity Information in the Metaverse
The Metaverse of Dream of the Red Chamber realizes the management of virtual character identity information, including the addition, deletion, retrieval, summary, output and other aspects of related information.The addition of virtual identity is actually completed when the virtual identity is registered, and it is only listed and read in the information management UI, so other operations are

Management and Maintenance of the Ecological Information of the Metaverse Civilization
Dream of the Red Chamber is an encyclopedia.The Metaverse constructed on this basis is an all-encompassing virtual world.Therefore, the management and

Figure 1 .
Figure 1.The negative and positive factors in the original works of Dream of the Red Chamber jointly promote its meta-universalization transformation.

Figure 2 .
Figure 2. The evolution of the negative factors brought about by the meta-universalization formation in the original works of Dream of the Red Chamber, which is the driving force behind the promotion of the Metaverse of Dream of the Red Chamber.

Figure 3 .
Figure 3. Functional framework chart of the Metaverse of Dream of the Red Chamber.

Figure 4 .
Figure 4. Layout plan of the Metaverse space of Dream of the Red Chamber: content scenes in the original works.

Figure 5 .
Figure 5.The Metaverse space layout of Dream of the Red Chamber-scenarios of Redology research content.

Figure 6 .
Figure 6.The Metaverse workflow of Dream of the Red Chamber.

Figure 7 .
Figure 7. Process schematic diagram of the virtual reality Metaverse of Dream of the Red Chamber.

2. 3 . 1 .
Control of CharactersIncluding the behavior of characters in the Metaverse of Dream of the Red Chamber, such as walking, running, speaking, etc., there are two main control methods used by Unity3D: One is to continuously change the position and angle of the character; the other way is to activate the animation attached to the character.There are generally two methods for implementing control: manual in-Z.Q. Rong DOI: 10.4236/iim.2023.156020433 Intelligent Information Management tervention and intelligent (AI) computing.The exact method used depends on the specific situation.For example, during the fair seasons in the Metaverse of Dream of the Red Chamber, it is very natural to use AI in social activities to find a target partner among the crowd.Usually, changes in subjective perspective are achieved through manual intervention [7].
sends a request to save relevant information to the server-side Socket.IO.Socket.IO immediately saves the registration information in the corresponding data text (such as Json) on the server side after responding to the request.The purpose of login authentication in the Metaverse of Dream of the Red Chamber is to ensure the legality of the identity of the person entering.Only those who are legal can enter the Metaverse, which can provide relevant benefits and assign corresponding digital incarnations accordingly.Following the above description on the implementation of the virtual identity registration function of the Metaverse.The client login operation is implemented by Unity.When the client operation is completed, a login information comparison request is sent to the server-side Socket.IO.After Socket.IO responds to the request; it immediately reads the registration information data text on the server side and compares the data.If the comparison is successful, the client enters the Metaverse; otherwise, a login error is displayed, and then the login UI is entered again (Figure10).

Figure 10 .
Figure 10.Login UI of the Metaverse of Dream of the Red Chamber.

Table 1 .
List of methods used for Unity3D dynamically loading of external elements.

Table 2 .
Unity3D's method of controlling the character's perspective in virtual reality.

Table 3 .
List of Unity3D's control for the non-character-type elements in the Metaverse of Dream of the Red Chamber.words, although the virtual identity code in the Metaverse is unique and is generally fixed for the life entering the Metaverse, the image corresponding to this identity may be different from the last time someone entered the Metaverse.It is different, and the image (digital person) may have been used by someone else before.This is different from the one-to-one correspondence between each person's identity code (ID card) and physical body in the real world.However, this does not prevent each digital person appearing in the Metaverse of Dream of the Red Chamber from maintaining unique characteristics.Although the difference sometimes seems small, there is actually a difference.Digital avatars (digital people) are the basis for creating a sense of life and a humanistic atmosphere in the Metaverse, and are therefore the first step in building a complete ecology of the Metaverse.