In the study of generating human behavior in a virtual space, we have developed a method to memorize branches and landmarks that are located around the branches as a cognitive map by using visual information. As the result of the simulation that generates walking behavior based on the created cognitive map, we have reproduced the same walking behavior as the original one, and confirmed that the memory is generated correctly.