摘要 |
The present invention relates to a method for providing information on a 3D indoor space in a user viewpoint considering a wall collision which when a virtual camera moving in the inside is predicted to collide with a wall, automatically sets a moving path of the virtual camera according to a direction of the wall within the indoor space, such that the virtual camera does not escape from the indoor space while stably providing information on a 3D indoor space from a user viewpoint corresponding to a view direction of the virtual camera. The method for providing information on a 3D indoor space from a user viewpoint considering a wall collision, according to the present invention, comprises: a first step which places a virtual camera on a location of a 3D indoor space and displays information on 3D indoor space from a user viewpoint; a second step which judges whether a wall collision point occurs on a moving path of the virtual camera corresponding to a moving command of a user; a third step which sets a moving direction having a smaller angle formed between a view direction of the virtual camera and a wall on the wall collision point as a wall moving direction; a fourth step which sets a location before the virtual camera arrives the wall collision point judged by the second step as an interpolation location, wherein a location is at a predetermined interpolation distance away from the wall collision point; and a fifth step which when the virtual camera is placed on the interpolation location set by the fourth step, sets a moving direction of the virtual camera towards the wall moving direction set by the third step and moves the virtual camera by corresponding to a moving command of the user while maintaining the preset interpolation distance and performing movements of the virtual camera. |