A visualization method of rocket tail flame based on OSG
By creating geometric information primitive objects, setting image effects and matrix transformation nodes, and combining callback functions to control the flame size, the problem of the rocket tail flame being obscured was solved, and realistic multi-angle display of the rocket tail flame was achieved, enhancing the display effect of the rocket posture.
Patent Information
- Application Number
- CN202411643058.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2044-11-18
AI Technical Summary
When the existing rocket tail flame device is zoomed in on the model, part of the tail flame is obscured and the particle smoke effect is lacking, resulting in an unclear display of the rocket's posture.
By creating geometric information primitive objects, setting image effects, fusing textures, adding leaf nodes and matrix transformation nodes, and using callback functions to control the change of flame size, the rocket tail flame is visualized in combination with a computer system.
It realizes the multi-angle display and realistic effect of the rocket tail flame, and enhances the display clarity of the rocket attitude.
Smart Images

Figure CN119579836B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of aerospace simulation, and in particular to a visualization method based on OSG rocket tail flame. Background Art
[0002] During a real-time rocket launch, which is usually accompanied by a simulated animation, the existing tail flame is installed on the model. When you zoom in to see the tail flame, part of the tail flame will be covered by the model and there will be no particle smoke effect. Summary of the Invention
[0003] In order to solve the existing problems, the present invention provides a method for visualizing the tail flame of a rocket based on OSG. The specific scheme is as follows:
[0004] A method for visualizing rocket tail flame based on OSG includes the following steps:
[0005] S1, create geometric information primitive object;
[0006] S2, set the picture according to the geometric information primitive object;
[0007] S3, fusion of images;
[0008] S4, creating a leaf node and adding the geometric information primitive object to the leaf node;
[0009] S5, create two matrix transformation nodes and add leaf nodes;
[0010] S6, matrix transformation node one, rotates 60 degrees around the Z axis, matrix transformation node two rotates 120 degrees around the Z axis;
[0011] S7, create a group node, add leaf nodes and matrix transformation nodes, and add a callback function;
[0012] S8, after position and posture transformation, is added to the scene;
[0013] S9, uses the callback function to make the flame grow from small to large.
[0014] Preferably, step S2 specifically includes the following steps:
[0015] S21, creating a vertex array and pushing the vertex array into the geometric information primitive object;
[0016] S22, create a normal array, set the binding mode to all vertices, and set the normal array to the geometry information primitive object;
[0017] S23, creating a two-dimensional array B, and setting the two-dimensional array B into the geometric information primitive object twice, with sequence numbers 0 and 1 respectively;
[0018] S24, creating two-dimensional texture objects C and D, and setting the tail flame color image and the tail flame center brightness image into the texture objects C and D respectively;
[0019] S25, setting the two-dimensional texture objects C and D into the geometric primitives, with serial numbers 0 and 1 respectively.
[0020] The present invention also discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is run, any of the above methods is executed.
[0021] The present invention also discloses a computer system, including a processor and a storage medium, wherein a computer program is stored on the storage medium, and the processor reads and runs the computer program from the storage medium to execute any of the methods described above.
[0022] The beneficial effects of the present invention are:
[0023] The present invention can more clearly display the rocket's posture effect, and the rocket's tail flame effect can be fully displayed in a variety of forms, thereby increasing the realistic effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0025] Figure 1 It is the tail flame color diagram in Example 1;
[0026] Figure 2 This is the tail flame brightness diagram in Example 1;
[0027] Figure 3 This is the effect diagram after the pictures in Example 1 are fused;
[0028] Figure 4 This is a side view of Example 1;
[0029] Figure 5 This is the front effect diagram in Example 1;
[0030] Figure 6 This is the effect picture after adding the scene.
[0031] Figure 7 This is the effect diagram after the flame is changed from small to large through the callback function. DETAILED DESCRIPTION
[0032] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings 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 making creative efforts shall fall within the scope of protection of the present invention.
[0033] Example 1:
[0034] A method for visualizing rocket tail flame based on OSG includes the following steps:
[0035] S1, create geometric information primitive object;
[0036] S2, setting the image according to the geometric information primitive object; specifically comprising the following steps:
[0037] S21, creating a vertex array and pushing the vertex array into the geometric information primitive object;
[0038] S22, create a normal array, set the binding mode to all vertices, and set the normal array to the geometry information primitive object;
[0039] S23, creating a two-dimensional array B, and setting the two-dimensional array B into the geometric information primitive object twice, with sequence numbers 0 and 1 respectively;
[0040] S24, create two-dimensional texture objects C and D, respectively, and transform the tail flame color image into Figure 1 , and the tail flame center brightness image is as follows Figure 2 , set to texture objects C and D;
[0041] S25, setting the two-dimensional texture objects C and D into the geometric primitives, with serial numbers 0 and 1 respectively.
[0042] S3, the image is fused. Figure 3 shown.
[0043] S4, create a leaf node and add the geometric information primitive object to the leaf node.
[0044] S5, create two matrix transformation nodes and add child nodes.
[0045] S6, matrix transformation node one, rotates 60 degrees around the Z axis, and matrix transformation node two rotates 120 degrees around the Z axis.
[0046] S7, create a group node, add leaf nodes and matrix transformation nodes, and add a callback function; the effect is as follows Figure 4 ——Side view, and Figure 5 ——Front view rendering.
[0047] S8, after the position and posture are transformed, is added to the scene; the display effect is as follows Figure 6 .
[0048] S9, through the callback function, the flame is changed from small to large. Figure 7 shown.
[0049] The present invention also discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is run, any of the above methods is executed.
[0050] This invention combines the 3D display effects of textures and animations. By calculating the rocket's position and attitude, the tail plume effect is added to the rocket object, effectively showcasing the effect of a rocket launch. Therefore, any business using 3D simulated tail plume effects should be included within the scope of protection of this invention.
[0051] The present invention also discloses a computer system, including a processor and a storage medium, wherein a computer program is stored on the storage medium, and the processor reads and runs the computer program from the storage medium to execute any of the methods described above.
[0052] Those skilled in the art will further appreciate that the various illustrative logic blocks, modules, circuits, and algorithmic steps described in conjunction with the embodiments disclosed herein can be implemented as electronic hardware, computer software, or a combination of the two. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps are generally described above in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the specific application and the design constraints imposed on the overall system. A skilled person may implement the described functionality in different ways for each specific application, but such implementation decisions should not be interpreted as resulting in a departure from the scope of the present invention.
[0053] The various illustrative logic blocks, modules, and circuits described in conjunction with the embodiments disclosed herein may be implemented or performed using a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
[0054] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read and write information from / to the storage medium. In an alternative, the storage medium may be integrated into the processor. The processor and storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In an alternative, the processor and storage medium may reside in a user terminal as discrete components.
[0055] In one or more exemplary embodiments, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software as a computer program product, the functions may be stored on or transmitted via a computer-readable medium as one or more instructions or codes. Computer-readable media include both computer storage media and communication media, including any media that facilitates the transfer of a computer program from one location to another. A storage medium may be any available medium that can be accessed by a computer. By way of example and not limitation, such computer-readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. Any connection is also properly referred to as a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwaves, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwaves are included in the definition of medium. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks typically reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0056] The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be apparent to those skilled in the art, and the general principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples and designs described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0057] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for visualizing rocket tail flame based on OSG, characterized in that: The following steps are involved: S1, create geometric information primitive object; S2, set the picture according to the geometric information primitive object; S3, fusion of images; S4, creating a leaf node and adding the geometric information primitive object to the leaf node; S5, create two matrix transformation nodes and add leaf nodes; S6, matrix transformation node one, rotates 60 degrees around the Z axis, matrix transformation node two rotates 120 degrees around the Z axis; S7, create a group node, add leaf nodes and matrix transformation nodes, and add a callback function; S8, after position and posture transformation, is added to the scene; S9, the flame is enlarged through the callback function; Step S2 specifically includes the following steps: S21, creating a vertex array and pushing the vertex array into the geometric information primitive object; S22, create a normal array, set the binding mode to all vertices, and set the normal array to the geometry information primitive object; S23, creating a two-dimensional array B, and setting the two-dimensional array B into the geometric information primitive object twice, with sequence numbers 0 and 1 respectively; S24, creating two-dimensional texture objects C and D, and setting the tail flame color image and the tail flame center brightness image into the texture objects C and D respectively; S25, setting the two-dimensional texture objects C and D into the geometric primitives, with serial numbers 0 and 1 respectively.
2. A computer-readable storage medium, characterized in that: The medium stores a computer program, and after the computer program is run, the method as claimed in claim 1 is executed.
3. A computer system, characterized in that: The method comprises a processor and a storage medium, wherein a computer program is stored on the storage medium, and the processor reads and runs the computer program from the storage medium to execute the method as claimed in claim 1.
Citation Information
Patent Citations
OpenSceneGraph-based three dimensional animation manufacturing method
CN105184843A
Visual three-dimensional route planning method based on OsgEarth
CN117029830A