| CPC H04N 13/111 (2018.05) [G06T 7/13 (2017.01); G06T 7/593 (2017.01); G06V 10/764 (2022.01); G06V 20/20 (2022.01); H04N 13/366 (2018.05)] | 5 Claims |

|
1. An apparatus for creating a virtual world, comprising:
a processor; and
a memory connected to the processor,
wherein the memory stores program instructions executed by the processor to receive an image of a real space through a device having a stereo camera,
collect mesh data for the real space and an object existing in the real space through the image,
determine coordinates for first edges of the real space from the mesh data for the real space,
select one of a plurality of second edges based on an area of a virtual space defined by each of the plurality of second edges facing a predetermined direction, when there are more first edges of the real space than edges of a polygon preset for the real space, and
output a virtual space defined by some of the first edges and the selected one second edge and a virtual object corresponding to the object existing in the real space,
wherein the apparatus is a head-mounted display, and
the program instructions determine coordinates for the first edges by tracking a position of the head-mounted display in the real space through at least two tracking devices disposed in the real space,
wherein in the program instructions, 3D initial coordinates of the head-mounted display are set as an origin point at the center in the real space, and a y-coordinate in the 3D initial coordinates is preset by a user,
wherein a boundary of the real space is defined by x and z coordinates of at least some of the first edges of the real space based on the 3D initial coordinates,
wherein each edge of the preset polygon is disposed in one of quadrants divided into x-axis and y-axis, and the x-axis and z-axis, and
the program instructions calculate an area of a virtual space defined by each of the plurality of second edges positioned within a predetermined angular range on the same axis or the same quadrant, and select one second edge having the largest calculated area.
|