Three-dimensional model movement control method based on real-time position and angle information
By constructing position monitoring and controller in a three-dimensional real-life simulation system, acquiring real-time sensor data and performing timing control, the problem of transition animation discontinuity or overlap caused by uncertainty in sensor data acquisition is solved, and real-time movement control of the three-dimensional model is realized and Data synchronization.
Patent Information
- Application Number
- CN202411124742.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-12-17
AI Technical Summary
In a three-dimensional real-life simulation system, due to the uncertainty in the acquisition of sensor data and communication delay, the keyframe acquisition time of the model moving is unpredictable, resulting in the problem that transition animations may be discontinuous or overlapping.
Using a three-dimensional model movement control method based on real-time position and angle information, real-time movement control is realized by constructing position monitoring and controller, obtaining sensor data, calculating model position and angle transition animation, and controlling step size and coordinate sequence dilution through timing control, real-time movement control is realized .
Real-time position monitoring and movement control of the three-dimensional model is realized, coordinate sequence is simplified, the continuity and synchronization of transition animation are improved, and the uncertainty of data request time is adapted.
Smart Images

Figure CN119152087A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of position simulation, and in particular to a three-dimensional model movement control method based on real-time position and angle information. Background Art
[0002] The position of the model in the three-dimensional scene is simulated. At the same time, in order to ensure the continuity of the model's movement during the transformation, the program is generally required to generate a three-dimensional transition animation of the model's position change based on information such as the two model's positions and angles.
[0003] Different from the 3D transition animation with known key frames, in the 3D real scene simulation system, because the position information comes from sensor data, this will bring two problems:
[0004] The key frames of model movement are derived from the acquisition of sensor data, which makes the next movement of the model often unpredictable by the system and needs to be determined based on the information obtained by the sensor in real time;
[0005] There is a communication delay in the data transmission between the system and the sensor, and this communication delay is uncertain due to the communication equipment and communication environment.
[0006] These two problems make the acquisition time of the next key frame of model movement unknown. If we only preset a data acquisition buffer time, if this time is set too long, the transition animation will be discontinuous. If the time is set too short, the transition animation will overlap. For this reason, we propose a three-dimensional model movement control method based on real-time position and angle information. Summary of the invention
[0007] 1. Technical issues to be solved
[0008] In view of the deficiencies in the prior art, the present invention provides a three-dimensional model movement control method based on real-time position and angle information to solve the above-mentioned problems.
[0009] (II) Technical solution
[0010] To achieve the above-mentioned purpose, the present invention provides the following technical solution: a three-dimensional model movement control method based on real-time position and angle information, comprising the following steps:
[0011] Step 1: The system constructs a position monitor and controller, which includes a position and angle monitor component, a coordinate sequence, and a timing control component;
[0012] Step 2: The user customizes a request cycle M, and obtains the position and angle information monitored by the position sensor and angle sensor through the position monitoring and controller;
[0013] Step 3: User-defined timing control step length N, start the timing control of the controller;
[0014] Step 4: Store the position and angle transmitted from the scene into the coordinate sequence of the position monitor and controller;
[0015] Step 5: Get the first coordinate of the current coordinate sequence, and based on the position and angle information of the current model, calculate the position transition animation and angle transition animation of the model moving to that position and angle;
[0016] Step 6: Set the model's transition animation time to be consistent with the timing control step length, which is N, start the position and angle transition animation, and then remove the first coordinate from the coordinate sequence;
[0017] Step 7: The system thins out the coordinate sequence according to the preset upper limit threshold of the number of coordinates.
[0018] Preferably, the second step of obtaining the position and angle information monitored by the position sensor and the angle sensor has the following specific contents:
[0019] Start the position and angle monitoring component, connect with the field sensor middleware through network communication, and obtain the position and angle information monitored by the position sensor and angle sensor.
[0020] Preferably, the value of N is determined by the average consumption of location monitoring period + data request delay.
[0021] Preferably, the format of the stored coordinate string in the fourth step is (x, y, z, angle).
[0022] Preferably, the specific content of the seventh step is as follows:
[0023] S1: For adjacent and overlapping coordinate pairs, only one is retained;
[0024] S2: Delete all coordinates indexed as odd numbers until the number of coordinates is less than a threshold.
[0025] (III) Beneficial effects
[0026] Compared with the prior art, the present invention provides a three-dimensional model movement control method based on real-time position and angle information, which has the following beneficial effects:
[0027] 1. The three-dimensional model movement control method based on real-time position and angle information realizes real-time position monitoring and movement control of the three-dimensional model by constructing a position and angle controller.
[0028] 2. This three-dimensional model movement control method based on real-time position and angle information simplifies the coordinate sequence in the position and angle controller through thinning operations. In the case of coordinate backlog, it accelerates the three-dimensional movement and achieves synchronization with the real scene. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is a schematic diagram of the position monitoring and controller of the present invention;
[0030] Figure 2 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0032] See also Figure 1-2 , a three-dimensional model movement control method based on real-time position and angle information, including the following contents:
[0033] The system constructs a position monitor and controller, stores the position and angle information transmitted by the on-site position and angle sensors, forms a coordinate sequence, and realizes the movement control of the model through timed tasks, including position and angle transition animation. The specific implementation steps are as follows:
[0034] Step 1: The system constructs a position monitor and controller, which contains a position and angle monitor component, a coordinate sequence, and a timing control component;
[0035] Step 2: The user customizes a request cycle M, such as 2000 milliseconds, and then starts the position and angle monitoring components, connects with the field sensor middleware through network communication (HTTP, WebSocket, etc.), and obtains the position and angle information monitored by the position sensor and angle sensor;
[0036] Step 3: The timing control step length N of the user-defined control, the value of N is the average consumption of the location monitoring cycle + data request delay, such as running once every 3000 milliseconds (location request cycle 2000 milliseconds + data request time consumption average 1000 milliseconds), this step length should, then start the timing control of the controller, and gradually proceed to Step 4-Step 7;
[0037] Step 4: Store the position and angle transmitted from the scene into the coordinate sequence of the position monitor and controller, and save the coordinate string in the format of (x, y, z, angle);
[0038] Step 5: Get the first coordinate of the current coordinate sequence, and based on the position and angle information of the current model, calculate the position transition animation and angle transition animation of the model moving to that position and angle;
[0039] Step 6: Set the model's transition animation time to be consistent with the timing control step length, which is N, start the position and angle transition animation, and then remove the first coordinate from the coordinate sequence;
[0040] Step 7: As the system runs, the coordinate sequence may accumulate due to the uncertainty of data request time. At this time, the system thins the coordinate sequence according to the preset upper limit threshold of the number of coordinates, such as 10, including: ① For adjacent coordinate pairs with overlapping coordinates, only one is retained (because the overlapping coordinates indicate that the model does not move and no transition animation calculation is required), ② delete all coordinates indexed as odd numbers, such as the first, third, etc., until the number of coordinates is less than the threshold.
[0041] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A three-dimensional model movement control method based on real-time position and angle information, It is characterized in that The following steps are involved: Step 1: The system constructs a position monitor and controller, which includes a position and angle monitor component, a coordinate sequence, and a timing control component; Step 2: The user customizes a request cycle M, and obtains the position and angle information monitored by the position sensor and angle sensor through the position monitoring and controller; Step 3: User-defined timing control step length N, start the timing control of the controller; Step 4: Store the position and angle transmitted from the scene into the coordinate sequence of the position monitor and controller; Step 5: Get the first coordinate of the current coordinate sequence, and based on the position and angle information of the current model, calculate the position transition animation and angle transition animation of the model moving to that position and angle; Step 6: Set the model's transition animation time to be consistent with the timing control step length, which is N, start the position and angle transition animation, and then remove the first coordinate from the coordinate sequence; Step 7: The system thins out the coordinate sequence according to the preset upper limit threshold of the number of coordinates.
2. A three-dimensional model movement control method based on real-time position and angle information according to claim 1, Features: The specific contents of the second step of obtaining the position and angle information monitored by the position sensor and the angle sensor are as follows: Start the position and angle monitoring component, connect with the field sensor middleware through network communication, and obtain the position and angle information monitored by the position sensor and angle sensor.
3. A three-dimensional model movement control method based on real-time position and angle information according to claim 1, Features: The value of N is determined by the average consumption of the location monitoring period + data request delay.
4. A three-dimensional model movement control method based on real-time position and angle information according to claim 1, Features: The format of the stored coordinate string in the fourth step is (x, y, z, angle).
5. A three-dimensional model movement control method based on real-time position and angle information according to claim 1, Features: The specific content of the seventh step is as follows: S1: For adjacent and overlapping coordinate pairs, only one is retained; S2: Delete all coordinates indexed as odd numbers until the number of coordinates is less than a threshold.
