Information processing device, program, and drawing method
The information processing device addresses distortion in string-like object drawings by calculating and aligning the drawing orientations of control points with the tangent direction, ensuring natural movement representation.
Patent Information
- Application Number
- JP2021211889
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-12-27
- Publication Date
- 2025-11-19
- Estimated Expiration
- 2041-12-27
AI Technical Summary
Conventional information processing devices distort the drawing of string-like objects during vigorous movement due to variations in posture.
An information processing device that calculates and determines the positions and attitudes of multiple control points on a string-like object, using one end as a reference to align drawing orientations with the tangent direction, preventing distortion.
Prevents the drawing of moving string-like objects from becoming distorted, maintaining a natural appearance even during vigorous movement.
Smart Images

Figure 0007773367000001 
Figure 0007773367000002 
Figure 0007773367000003
Abstract
Description
[Technical Field]
[0001] The present disclosure relates to an information processing device, a program, and a drawing method. [Background technology]
[0002] BACKGROUND ART Conventionally, there are known techniques for reducing the sense of incongruity of the movement of elongated objects such as hair in a virtual space (see, for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent Publication No. 2021-157601 Summary of the Invention [Problem to be solved by the invention]
[0004] For example, in a simulation that reproduces the movement of a string-like object such as a string or hair, multiple control points are placed on the string-like object and these control points are moved independently according to an equation of motion. In addition, in some simulations that reproduce the movement of string-like objects, the posture that represents the orientation of the string-like object is moved according to an equation of motion in order to reproduce movement that is closer to reality.
[0005] An information processing device that renders the movement of a string-like object based on the results of such a simulation renders the movement of the string-like object by moving the positions of the vertices of the polygons of the model according to the positions of the control points and the posture of the string-like object.
[0006] However, in conventional information processing devices that draw the movement of string-like objects based on the results of simulations, there is a problem that when the string-like object moves vigorously, the posture of the string-like object varies, causing the drawing of the string-like object to become distorted. Patent Document 1 does not solve this problem.
[0007] An object of the present disclosure is to prevent the drawing of a moving string-like object from becoming distorted. [Means for solving the problem]
[0008] According to the present disclosure, there is provided an information processing device that draws the movement of a string-like object, the information processing device having: a calculation unit configured to calculate the positions and attitudes of multiple control points of the string-like object; a determination unit configured to determine the drawing attitudes of the multiple control points sequentially from the control point at one end to the control point at the other end based on the attitude of a control point at one end that serves as a reference among the calculated attitudes of the multiple control points; and a drawing unit configured to draw the movement of the string-like object based on the calculated positions of the multiple control points and the determined drawing attitudes of the multiple control points. [Effects of the Invention]
[0009] According to the present disclosure, it is possible to prevent the drawing of a moving string-like object from becoming distorted. [Brief explanation of the drawings]
[0010] [Figure 1] 1 is a configuration diagram of an example of an information processing system according to an embodiment of the present invention. [Figure 2] FIG. 1 is a diagram illustrating an example of a hardware configuration of an information processing device according to an embodiment of the present invention. [Figure 3] FIG. 2 is a diagram illustrating an example of a functional configuration of an information processing device according to the present embodiment. [Figure 4] FIG. 10 is a diagram illustrating an example of a plurality of control points arranged on a string-like object. [Figure 5] 10A and 10B are diagrams illustrating an example of a posture representing the orientation of a string-like object. [Figure 6] FIG. 10 is a diagram illustrating an example of drawing a string-like object. [Figure 7] FIG. 10 is a diagram illustrating an example of drawing a string-like object. [Figure 8] 10A and 10B are diagrams illustrating an example of a process for determining an orientation for drawing control points; [Figure 9] 10A and 10B are diagrams illustrating an example of a process for determining an orientation for drawing control points; [Figure 10] 10A and 10B are diagrams illustrating an example of a process for determining an orientation for drawing control points; [Figure 11] 10 is a flowchart illustrating an example of processing of the information processing system according to the present embodiment. [Figure 12] 10 is a flowchart illustrating an example of a process for determining an orientation for drawing control points. DETAILED DESCRIPTION OF THE INVENTION
[0011] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. Note that the string-like object in this embodiment is an object whose length is sufficiently large compared to the width or thickness of a string, hair, or the like placed in a virtual space.
[0012] [System Configuration] First, an example of an information processing system for rendering the movement of a string-like object according to an embodiment will be described. The information processing system according to an embodiment is used in, for example, a simulation or a game.
[0013] Fig. 1 is a configuration diagram of an example of an information processing system according to this embodiment. The information processing system according to this embodiment is configured as shown in Fig. 1(A) or Fig. 1(B). The information processing system shown in Fig. 1(A) has an information processing device 10. The information processing device 10 is a computer operated by a user. The information processing device 10 in Fig. 1(A) accepts operations from a user via a touch panel, a controller, a mouse, a keyboard, or the like, executes information processing according to the operation, and displays the execution results.
[0014] 1(B) is configured such that an information processing device 10 and a server device 14 are communicably connected via a network 18. The information processing device 10 in FIG. 1(B) is a computer similar to that in FIG. 1(A). The server device 14 in FIG. 1(B) can also be realized by a computer similar to that in FIG. 1(A).
[0015] The server device 14 transmits and receives data to and from the information processing device 10, thereby executing information processing in accordance with the user's operation accepted by the information processing device 10, and provides the execution result to the information processing device 10. The information processing device 10 displays the execution result provided by the server device 14.
[0016] The server device 14 may be realized by a cloud computer. The number of server devices 14 shown in FIG. 1(B) is not limited to one, and two or more may be used for distributed processing. The server device 14 may be used for downloading programs (applications) to the information processing device 10, for user login processing, or for managing various databases. The system configuration in FIG. 1 is an example.
[0017] [Hardware configuration] The information processing device 10 according to this embodiment is configured, for example, as shown in Fig. 2. The configuration of the server device 14 is the same as that of the information processing device 10, and therefore a description thereof will be omitted. Fig. 2 is a diagram showing an example of the hardware configuration of the information processing device according to this embodiment.
[0018] 2 includes, for example, a CPU (Central Processing Unit) 100, a storage device 102, a communication device 104, an input device 106, and an output device 108. The CPU 100 controls the information processing device 10 in accordance with a program. The storage device 102 is, for example, a memory such as a ROM (Read Only Memory) or a RAM (Random Access Memory), or a storage such as a HDD (Hard Disk Drive) or an SSD (Solid State Drive). The storage device 102 stores programs and data to be executed by the CPU 100.
[0019] The communication device 104 is a communication device such as a network circuit that controls communication. The input device 106 is an input device such as a touchpad, a controller, a mouse, a keyboard, a camera, or a microphone. The output device 108 is an output device such as a display or a speaker. A touch panel is realized by combining a touchpad, which is an example of the input device 106, with a display, which is an example of the output device 108. The hardware configuration in FIG. 2 is an example.
[0020] [Function Block] The following description will be given taking the configuration of Fig. 1(A) as an example. Note that the functional configuration shown in Fig. 3 is just an example, and for example, at least a part of the functional configuration shown in Fig. 3 may be provided in the server device 14, and the information processing device 10 and the server device 14 may perform processing in cooperation with each other.
[0021] 3 is a diagram showing an example of the functional configuration of an information processing device according to this embodiment. The information processing device 10 in FIG. 3 includes a control unit 200, an operation receiving unit 202, an output control unit 204, a communication unit 206, and a storage unit 210.
[0022] The storage unit 210 stores a program 212, an object information DB 214, a simulation result DB 216, a drawing attitude information DB 218, and a polygon information DB 220. The storage unit 210 may be realized by the storage device 102, or may be realized by a storage device connected via the network 18 or the like.
[0023] The program 212 is an example of a program executed by the CPU 100. The object information DB 214 stores information about string-like objects placed in virtual space. The simulation result DB 216 stores simulation results of the movement of string-like objects. The drawing posture information DB 218 stores drawing posture information used to draw string-like objects. The polygon information DB 220 stores information about the polygons of models used to draw string-like objects.
[0024] In this embodiment, the movement of a string-like object in a virtual space is simulated, and an image of the string-like object as seen from a predetermined viewpoint (virtual camera) in the virtual space is drawn. The virtual space is a space in which the string-like object exists on a two-dimensional or three-dimensional coordinate system. The string-like object is placed in the virtual space using two-dimensional or three-dimensional computer graphics.
[0025] The control unit 200 performs overall control of the information processing device 10. The overall control of the information processing device 10 includes control of receiving an operation from a user to draw the movement of a string-like object, and drawing and displaying the movement of the string-like object in accordance with the operation.
[0026] The control unit 200 is realized by the CPU 100 executing the processing described in the program 212. The control unit 200 in Fig. 3 has a calculation unit 230, a determination unit 232, and a drawing unit 234. The calculation unit 230 has a control point position calculation unit 240 and an orientation calculation unit 242.
[0027] The calculation unit 230 performs processing to calculate the positions and orientations of multiple control points arranged on the string-like object. The control point position calculation unit 240 included in the calculation unit 230 moves the multiple control points independently according to an equation of motion and calculates the positions of the multiple control points. The control point position calculation unit 240 also calculates the positions of the multiple control points so as to maintain constraint conditions such as the length of the string-like object and the distance between control points, as well as constraint conditions that the control points exist in the tangent direction of the orientation (stretch / distortion constraint conditions). Details of the processing by the control point position calculation unit 240 will be described later.
[0028] The orientation calculation unit 242 moves the orientation representing the orientation of the string-like object held between control points of the string-like object according to an equation of motion, and calculates the orientation between the control points. The orientation calculation unit 242 uses the calculated orientation between the control points as the orientation of the control points. The orientation calculation unit 242 also calculates the orientations of the multiple control points so as to maintain constraint conditions (bending and twisting constraint conditions) that move the orientations so as to return them to the twisting state of the initial orientations. Details of the processing by the orientation calculation unit 242 will be described later.
[0029] The determination unit 232 determines the drawing orientations of the plurality of control points from the positions and orientations of the plurality of control points calculated by the calculation unit 230. The determination unit 230 determines the drawing orientations of the plurality of control points based on the orientation of a control point at one end that serves as a reference, among the orientations of the plurality of control points calculated by the calculation unit 230. The determination unit 232 determines the drawing orientations in order from the control point at one end that serves as a reference to the control point at the other end. Details of the processing by the determination unit 232 will be described later.
[0030] The drawing unit 234 draws and displays a moving string-like object based on the positions of the plurality of control points calculated by the calculation unit 230 and the drawing orientations of the plurality of control points determined by the determination unit 232.
[0031] The operation reception unit 202 receives various operations from the user on the input device 106. The output control unit 204 displays various screens on the output device 108 under the control of the control unit 200. The operation reception unit 202 is realized by the CPU 100 controlling the input device 106 in accordance with a program. The output control unit 204 is realized by the CPU 100 controlling the output device 108 in accordance with a program. Various operations from the user on the input device 106 refer to operations by the user operating the operation reception unit 202 to cause the CPU 100 to execute processing. The output control unit 204 displays various screens and outputs sounds under the control of the control unit 200.
[0032] The communication unit 206 communicates via the network 18 etc. The communication unit 206 is realized by the CPU 100 executing a program and controlling the communication device 104 in accordance with the program.
[0033] [Multiple control points placed on a string-like object] 4A and 4B are diagrams illustrating an example of a plurality of control points arranged on a string-like object. As shown in Fig. 4A and Fig. 4B, a plurality of control points 1000 are arranged on the string-like object.
[0034] For example, in a simulation that reproduces the movement of the string-like object in Figure 4(A), an integration process is performed in which the control point 1000 is moved independently according to the equation of motion, and a constraint process is performed in which the control point 1000 is moved so as to maintain the length of the string, etc.
[0035] The string-like object in Figure 4(B) is an example of a string-like object that sways while maintaining its initial shape, like the spiral shape of a spring. The movement of the string-like object in Figure 4(B) cannot be reproduced even if an integration process that moves the control point 1000 independently according to the equation of motion and a constraint process that moves the control point 1000 so as to maintain the length of the string after movement are performed. Note that there is a method of applying a restoring force to maintain the initial shape of the string-like object in Figure 4(B), but this often results in unnatural swaying.
[0036] [Posture representing the orientation of the string-like object] Figure 5 is a diagram illustrating an example of the attitude that represents the direction of a string-like object. For example, in a simulation that reproduces the movement of a string-like object that maintains its initial shape, such as the spiral shape of a spring or the curl of hair, an attitude 1002 that represents the direction of the string-like object is placed between control points 1000 and 1000. The attitude 1002 moves according to an equation of motion.
[0037] The relationship between the degree of twist between the initial front and rear postures 1002 (for example, the relationship 1002-1 shown in FIG. 5(A)) is stored, and the posture 1002 is moved to return to that relationship 1002-1, thereby reproducing the movement of the string-like object while maintaining its initial shape. By taking into account the degree of twist between the front and rear postures 1002, it is possible to reproduce the movement of a string-like object that sways naturally while maintaining its initial shape, even for a spiral-shaped string-like object such as that shown in FIG. 5(B). A simulation that reproduces the movement of a string-like object by taking into account the degree of twist between the front and rear postures 1002 can be widely used for all string-like objects for which it is important to maintain the initial shape.
[0038] [Drawing string objects] Fig. 6 is a diagram illustrating an example of drawing a string-like object. Fig. 6(A) shows control points 1000 of the string-like object and an attitude 1002 indicating the orientation of the string object between the control points 1000. Fig. 6(B) shows the attitude 1002 used for drawing the control points 1000. Also, in Fig. 6, dotted lines displayed between the control points 1000 to connect the control points 1000 indicate the contact directions of the string-like object.
[0039] For example, in drawing to reproduce the movement of the string-like object in Figure 6, the movement of the string-like object was drawn by moving the position of the vertex of polygon 1004 of the model according to the position of control point 1000 and the orientation 1002 of control point 1000 shown in Figure 6(B).
[0040] However, when drawing the string-like object shown in Fig. 6, problems such as those shown in Fig. 7 may occur. Fig. 7 is a diagram illustrating an example of drawing a string-like object. For example, Fig. 7(A) shows an example in which the orientation 1002 set between control points 1000 deviates from the tangent direction of the string-like object due to factors such as rapid movement of the ribs and a small number of iterations of the constraint process.
[0041] If the orientation 1002 between the control points 1000 deviates from the tangent direction of the string-like object as shown in Figure 7(A), the orientation 1002 for drawing the control points 1000 will deviate from the tangent direction of the string-like object as shown in Figure 7(B).
[0042] Therefore, when rendering the movement of the string-like object in Figure 7, the position of the vertex of polygon 1004 held by the model is moved according to the position of control point 1000 and the orientation 1002 of control point 1000 shown in Figure 7(B) to render the movement of the string-like object, which results in the rendering of polygon 1004 being distorted and not looking correct.
[0043] Therefore, in this embodiment, the drawing of a moving string-like object is prevented from being distorted by pseudo-determining a drawing orientation 1002 of a control point 1000 as shown in Figures 8 to 10. Figures 8 to 10 are explanatory diagrams of an example of a process for determining a drawing orientation of a control point.
[0044] 8(A) shows multiple control points 1000a-1000g of a string-like object and attitudes 1002a-1002f assigned to the control points 1000a-1000g. The control point 1000a is an example of a control point at one end (a root control point) that serves as a reference. The control point 1000g is an example of a control point at the other end (a tip control point).
[0045] In FIG. 8(A), the orientations 1002a to 1002f assigned to the control points 1000a to 1000g are shifted from the tangent direction of the string-like object, so if the orientations 1002a to 1002f are used as the orientations for drawing the control points 1000a to 1000g, the drawing of the string-like object will be distorted.
[0046] Therefore, in this embodiment, as shown in Fig. 8(B), an orientation 1002a between a reference control point 1000a at one end and a next control point 1000b is used to determine the orientation 1002 for drawing the control points 1000a to 1000g. In this embodiment, the orientation 1002 for drawing the control points 1000a to 1000g is determined based on the orientation 1002a between the reference control point 1000a at one end and a next control point 1000b. Fig. 9(A) shows the orientation 1002a for drawing the orientation 1002a of the control point 1000a in Fig. 8(B) aligned with the tangent direction of the string-like object at the control point 1000a.
[0047] Next, the processing target for determining the drawing attitude 1002 is changed from control point 1000a to control point 1000b, and the processing continues. Fig. 9(B) shows how the drawing attitude 1002a of the control point 1000a in Fig. 9(A) is used as the attitude 1002b of the control point 1000b next to control point 1000a. Fig. 10(A) shows the drawing attitude 1002b of the control point 1000b in Fig. 9(B) aligned with the tangent direction of the string-like object at control point 1000b.
[0048] Thereafter, control points 1000c to 1000g are processed in order, and the rendering orientation 1002 of the control point 1000 to be processed is determined as shown in Fig. 10(B), for example, by aligning the rendering orientation 1002 of the control point 1000 immediately before the processing object with the tangent direction at the processing object control point 1000. For example, in Fig. 10(B), the rendering orientations 1002a to 1002g of control points 1000a to 1000g are oriented in the tangent directions of the control points 1000a to 1000g, respectively, so the rendering of the polygon 1004 is not distorted and looks correct.
[0049] [process] The following describes an example of simulation processing in which the information processing system according to this embodiment accepts an operation from a user to draw the movement of a string-like object, draws the movement of the string-like object according to the operation, and displays (outputs) it on the output device 108. Fig. 11 is a flowchart of an example of processing by the information processing system according to this embodiment.
[0050] In step S100, the information processing device 10 receives an operation to start a simulation from the user. The control unit 200 of the information processing device 10 starts the simulation process in accordance with the operation received from the user.
[0051] In step S102, the control point position calculation unit 240 of the calculation unit 230 calculates the positions of the multiple control points 1000a to 1000g of the string-like object using an equation of motion, as shown in Fig. 8(A). The control point position calculation unit 240 simulates the movements of the control points 1000a to 1000g of the string-like object in the virtual space based on the laws of physics.
[0052] In step S104, the orientation calculation unit 242 of the calculation unit 230 calculates orientations 1002a to 1002f assigned to the control points 1000a to 1000g using an equation of motion, as shown in Fig. 8(A). In step S106, the control point position calculation unit 240 and the orientation calculation unit 242 of the calculation unit 230 perform constraint processing as necessary after the movement. For example, the frequency of the constraint processing may be adjusted to reduce the processing load.
[0053] Steps S102 to S106 are processes for simulating the positions of a plurality of control points 1000a to 1000g of the string-like object and the orientations 1002a to 1002f that are set between the control points 1000a to 1000g.
[0054] In step S108, the determination unit 232 of the control unit 200 performs processing to determine a drawing orientation 1002 of a control point 1000, for example, as shown in Fig. 12. Fig. 12 is a flowchart of an example of processing to determine a drawing orientation of a control point.
[0055] In step S200, the determination unit 232 acquires, as shown in FIG. 8B, for example, an orientation 1002a between a control point 1000a at one end (root) serving as a reference and a next control point 1000b as the orientation 1002a of the control point 1000a.
[0056] In step S202, the determination unit 232 determines a drawing orientation 1002a of the control point 1000a by aligning the orientation 1002a of the control point 1000a with the tangent direction of the string-like object at the control point 1000a, as shown in Fig. 9(A), for example. Note that hereinafter, the tangent direction of the string-like object at the control point 1000 may be simply referred to as the tangent direction of the control point 1000.
[0057] In step S204, the determination unit 232 selects the next control point 1000 to be processed for determining the drawing attitude 1002. For example, as shown in Fig. 9B, the determination unit 232 changes the processing target from control point 1000a to control point 1000b.
[0058] In step S206, the determination unit 232 acquires the drawing attitude 1002 of the control point 1000 immediately preceding the control point 1000 being processed. For example, as shown in Fig. 9(B), the determination unit 232 acquires the drawing attitude 1002a of the control point 1000a immediately preceding the control point 1000b being processed.
[0059] In step S208, the determination unit 232 determines the drawing orientation 1002 of the control point 1000 to be processed by aligning the drawing orientation 1002 of the immediately preceding control point 1000 with the tangent direction of the control point 1000 to be processed. For example, as shown in Fig. 10(A), the determination unit 232 determines the drawing orientation 1002b of the control point 1000b to be processed by aligning the drawing orientation 1002a of the immediately preceding control point 1000a with the tangent direction of the control point 1000b to be processed.
[0060] In step S210, the determination unit 232 determines whether or not there is a next control point 1000 to be processed. If there is a next control point 1000 to be processed, the determination unit 232 returns to the processing of step S204 and performs the processing of steps S204 to S210. By repeating the processing of steps S204 to S210, the determination unit 232 determines drawing orientations 1002c to 1002g of the respective control points 1000c to 1000g, as shown in FIG. 10(B), for example.
[0061] In step S210, if the determination unit 232 determines that there is no next control point 1000 to be processed, it ends the processing of the flowchart in Fig. 12. By the processing of the flowchart in Fig. 12, the determination unit 232 can determine the drawing attitude 1002 for each control point 1000.
[0062] Returning to step S110 in Fig. 11, the drawing unit 234 of the control unit 200 performs drawing processing based on the positions of the control points 1000 calculated by the calculation unit 230 and the drawing orientation 1002 of the control points 1000 determined by the determination unit 232. For example, in the example of Fig. 10(B), the drawing unit 234 draws and displays a moving string-like object based on the positions of the control points 1000a to 1000g and the drawing orientations 1002a to 1002g of the control points 1000a to 1000g.
[0063] In step S112, the control unit 200 determines whether or not to end the simulation process, and repeats the processes of steps S102 to S112 until it determines that the simulation has ended. If it determines that the simulation has ended, the control unit 200 ends the process of the flowchart in FIG.
[0064] This embodiment can be applied to drawing the hair of a game character, for example, and also to drawing the hair of an avatar or non-player character (NPC) used by a user in a social network service.
[0065] According to this embodiment, in an information processing device 10 that draws and displays a string-like object viewed from a predetermined viewpoint in a virtual space, it is possible to prevent the drawing of a moving string-like object from becoming distorted. For example, even if the string-like object moves vigorously and the number of times that constraint conditions are applied is small, it is possible to prevent the drawing of the string-like object from becoming distorted.
[0066] The information processing device of the disclosed embodiment should be considered as an example and not a limitation. The above embodiment can be modified and improved in various ways without departing from the scope and spirit of the appended claims. Furthermore, the matters described in the above-mentioned embodiments can be configured in other ways as long as they are not inconsistent, and can be combined as long as they are not inconsistent. [Explanation of symbols]
[0067] 10. Information processing equipment 14 Server equipment 18 Network 200 control section 202 Operation reception section 204 Output control section 206 Communications Department 210 Storage section 212 Programs 214 Object Information DB 216 Simulation Results DB 218 Drawing posture information DB 220 Polygon Information DB 230 Calculation Unit 232 Decision Section 234 Drawing section 240 Control point position calculation unit 242 Posture calculation section 1000 control points 1002 Posture 1004 polygons
Claims
1. An information processing device that renders the movement of a string-like object, a calculation unit configured to calculate positions and orientations of a plurality of control points of the string-like object; a determination unit configured to determine drawing orientations of the plurality of control points sequentially from the control point at one end to the control point at the other end based on the orientation of a control point at one end that serves as a reference among the calculated orientations of the plurality of control points; a drawing unit configured to draw the movement of a string-like object based on the calculated positions of the plurality of control points and the determined drawing orientations of the plurality of control points; and The determination unit is configured to determine the drawing orientation of the one end control point by aligning the calculated orientation of the one end control point with a tangent direction connecting the calculated position of the one end control point and the position of a control point subsequent to the one end control point, and to process the control points from the subsequent control point to the other end control point in order by aligning the drawing orientation of the control point immediately preceding the control point to be processed with a tangent direction connecting the calculated position of the control point to be processed and the position of a control point subsequent to the control point to be processed, thereby determining the drawing orientation of the control point to be processed. Information processing device.
2. An information processing device that renders the movement of a string-like object, a calculation unit configured to calculate positions and orientations of a plurality of control points of the string-like object; a determination unit configured to determine drawing orientations of the plurality of control points sequentially from the control point at one end to the control point at the other end based on the orientation of a control point at one end that serves as a reference among the calculated orientations of the plurality of control points; a drawing unit configured to draw the movement of a string-like object based on the calculated positions of the plurality of control points and the determined drawing orientations of the plurality of control points; and The calculation unit is configured to calculate the positions and orientations of the plurality of control points of the string-like object that retains the initial shape by simulation, and in the simulation, set orientation information that indicates the orientation of the string-like object between adjacent control points, store the relationship of the degree of twist between the adjacent orientation information in the initial shape, and move the orientation information that has been moved according to an equation of motion so as to return to the relationship of the degree of twist, thereby calculating the orientation of the control points of the string-like object that retains the initial shape. Information processing device.
3. The drawing unit is configured to determine vertices of polygons of the string-like object based on the calculated positions of the plurality of control points and the determined drawing orientations of the plurality of control points.
3. The information processing device according to claim 1 or 2.
4. The string-like object is an object that reproduces the movement of a string or hair. The information processing device according to claim 1 .
5. An information processing device that draws the movement of a string-like object, a step of calculating the positions and orientations of a plurality of control points of the string-like object; determining, based on the attitude of a control point at one end serving as a reference among the attitudes of the plurality of control points thus calculated, attitudes for drawing of the plurality of control points in sequence from the control point at one end to the control point at the other end; a step of drawing the movement of the string-like object based on the calculated positions of the plurality of control points and the determined drawing orientations of the plurality of control points; Execute The determining procedure involves determining the orientation for drawing of the control point at one end by aligning the calculated orientation of the control point at one end with a tangent direction connecting the calculated position of the control point at one end and the position of the control point next to the control point at one end, and determining the orientation for drawing of the control point at the control point to be processed by sequentially processing the control points from the next control point to the control point at the other end. Program for.
6. An information processing device that draws the movement of a string-like object, a step of calculating the positions and orientations of a plurality of control points of the string-like object; determining, based on the attitude of a control point at one end serving as a reference among the attitudes of the plurality of control points thus calculated, attitudes for drawing of the plurality of control points in sequence from the control point at one end to the control point at the other end; a step of drawing the movement of the string-like object based on the calculated positions of the plurality of control points and the determined drawing orientations of the plurality of control points; Execute The calculation procedure involves calculating the positions and orientations of the plurality of control points of the string-like object that retains its initial shape through simulation, and in this simulation, setting orientation information that indicates the orientation of the string-like object between adjacent control points, storing the relationship of the degree of twist between the adjacent orientation information in the initial shape, and moving the orientation information that has been moved according to an equation of motion so as to return it to the relationship of the degree of twist, thereby calculating the orientation of the control points of the string-like object that retains its initial shape. Program for.
7. A drawing method for an information processing device that draws the movement of a string-like object, comprising: The information processing device includes: Calculating the positions and orientations of a plurality of control points of the string-like object; determining, based on the attitude of a control point at one end serving as a reference among the attitudes of the plurality of control points thus calculated, attitudes for drawing of the plurality of control points in sequence from the control point at one end to the control point at the other end; drawing the movement of the string-like object based on the calculated positions of the plurality of control points and the determined drawing orientations of the plurality of control points; When determining the orientation of the control point at one end, the orientation for drawing the control point at one end is determined by aligning the calculated orientation of the control point at one end with a tangent direction connecting the calculated position of the control point at one end and the position of the control point next to the control point at one end, and the orientation for drawing the control point at one end is determined by aligning the drawing orientation of the control point immediately preceding the control point to be processed with a tangent direction connecting the calculated position of the control point to be processed and the position of the control point next to the control point to be processed, with the control points from the next control point to the other end being processed in order. How to draw.
8. A drawing method for an information processing device that draws the movement of a string-like object, comprising: The information processing device includes: Calculating the positions and orientations of a plurality of control points of the string-like object; determining, based on the attitude of a control point at one end serving as a reference among the attitudes of the plurality of control points thus calculated, attitudes for drawing of the plurality of control points in sequence from the control point at one end to the control point at the other end; drawing the movement of the string-like object based on the calculated positions of the plurality of control points and the determined drawing orientations of the plurality of control points; When performing the calculation, the positions and orientations of the plurality of control points of the string-like object that maintains the initial shape are calculated by simulation, and in the simulation, orientation information that indicates the orientation of the string-like object is set between adjacent control points, the relationship of the degree of twist between the adjacent orientation information in the initial shape is stored, and the orientation information that has been moved according to an equation of motion is moved so as to return to the relationship of the degree of twist, thereby calculating the orientation of the control points of the string-like object that maintains the initial shape. How to draw.
Citation Information
Patent Citations
Game system and information storage medium
JP2002085826A
Simulation device, method and program
JP2004206329A
Program, information processing device and method
JP2021157601A