CN114299208A - Method and device for presenting lightning special effect in game, electronic equipment and storage medium - Google Patents

Method and device for presenting lightning special effect in game, electronic equipment and storage medium Download PDF

Info

Publication number
CN114299208A
CN114299208A CN202111629687.1A CN202111629687A CN114299208A CN 114299208 A CN114299208 A CN 114299208A CN 202111629687 A CN202111629687 A CN 202111629687A CN 114299208 A CN114299208 A CN 114299208A
Authority
CN
China
Prior art keywords
lightning
rendering
image
video frame
special effect
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111629687.1A
Other languages
Chinese (zh)
Inventor
陈天成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202111629687.1A priority Critical patent/CN114299208A/en
Publication of CN114299208A publication Critical patent/CN114299208A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The application provides a method and a device for presenting a lightning special effect in a game, electronic equipment and a storage medium, wherein the method comprises the following steps: in response to the fact that a trigger condition of a lightning rendering special effect is met, the brightness value of the target lightning on the video frame corresponding to each sampling time is input into a stainer, so that the stainer outputs a plurality of lightning rendering images respectively based on the brightness value on each video frame and a basic lightning morphological image; and rendering the lightning animation in the game scene according to each lightning rendering image in sequence based on the playing sequence of the plurality of lightning rendering images determined according to the sampling time. In this application, with the luminance value input to the stainer on the video frame that the target lightning corresponds at each sampling time, the stainer is according to the luminance value adjustment basis lightning form luminance of image, through the lightning rendering image of stainer output, presents the lightning animation, has reduced the handling capacity of lightning rendering in-process data, has promoted the efficiency that the special effect of flashing was rendered.

Description

Method and device for presenting lightning special effect in game, electronic equipment and storage medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a method and an apparatus for presenting a special lightning effect in a game, an electronic device, and a storage medium.
Background
In order to more realistically present weather changes in a game scene or special game operations executed by a target virtual character in a three-dimensional game scene, various special effects need to be presented in the game scene, and a lightning effect is one of the effects, and is indispensable to rendering the lightning effect in a weather environment simulation process.
At present, for the presentation of the special lightning effect, in order to accurately present the lightning effect, a time trigonometric function (sin (time)) is usually used to simulate the brightness change of lightning, and if a simple trigonometric function is used in the process, the effect is single, and the rule is repeated and the difference between real lightning is far away, and a complex trigonometric function is used to simulate the change of lightning, so that the data processing amount of a terminal can be increased, the rendering efficiency of the special lightning effect is reduced, how to promote the rendering efficiency of the special lightning effect, and the problem to be solved urgently is solved.
Disclosure of Invention
In view of this, an object of the present application is to provide a method, an apparatus, an electronic device, and a storage medium for presenting a special lightning effect in a game, in which a determined luminance value of a target lightning on a video frame corresponding to each sampling time is input to a stainer, the stainer adjusts the luminance of a basic lightning morphological image according to a relationship between the video frame and the luminance value, and a lightning animation is presented by rendering an image through a lightning output by the stainer.
In a first aspect, an embodiment of the present application provides a method for presenting a special lightning effect in a game, which is applied to a terminal on which a graphical user interface is displayed, where at least part of a game scene is displayed on the graphical user interface, and the method includes:
in response to the fact that a trigger condition for rendering the lightning special effect is met, inputting the brightness value of the target lightning on the video frame corresponding to each sampling time into a stainer for rendering the lightning special effect, so that the stainer outputs a plurality of lightning rendering images respectively based on the brightness value of each video frame and a basic lightning morphological image, and determining the playing sequence of the lightning rendering images according to the sampling time;
and rendering the lightning animation with the lightning special effect in the game scene according to each lightning rendering image in sequence based on the playing sequence of each lightning rendering image.
In one possible embodiment, in response to a trigger condition for rendering a lightning special effect being met, the method comprises:
responding to the game operation triggered by the target virtual character in the game scene with a lightning special effect; or;
in response to the presence of a lightning weather environment in the game scene.
In one possible embodiment, the luminance values on the video frame are determined by:
aiming at each video frame, determining a lightning area in the video frame and the brightness value of each pixel point in the lightning related area;
and determining the brightness value of each video frame according to the brightness value of each pixel point.
In one possible implementation, the presentation method further includes:
generating a lightning brightness numerical value image according to the brightness value of the target lightning on the video frame corresponding to each sampling time; a plurality of pixels are displayed in the lightning brightness numerical value image, and the plurality of pixels correspond to the plurality of video frames one by one; the brightness value of each pixel is used for representing the brightness value of the video frame corresponding to the pixel;
inputting the brightness value of the lightning of the target on the video frame corresponding to each sampling time into a stainer for rendering the lightning special effect, wherein the method comprises the following steps:
and inputting the lightning brightness numerical value image into a stainer for rendering the lightning special effect.
In one possible embodiment, inputting the brightness value of the lightning target on the video frame corresponding to each sampling time into a stainer for rendering the lightning special effect, so that the stainer outputs a plurality of lightning rendering images based on the brightness value on each video frame and the base lightning morphological image respectively, includes:
inputting the brightness value of the target lightning on the video frame corresponding to each sampling time into a stainer for rendering the lightning special effect, and determining the brightness value on each video frame;
for each video frame, determining an adjustment coefficient for adjusting the brightness of the base lightning morphology image based on a ratio between a brightness value on the video frame and an image brightness value of the base lightning morphology image;
for each video frame, adjusting an image brightness of the base lightning morphology image to a target brightness value based on the adjustment coefficient to determine the lightning rendered image.
In one possible embodiment, the order of playing the lightning rendered images is determined by:
aiming at each lightning rendering image, determining the playing sequence of the lightning rendering image according to the size sequence of the target video frame in the sampling time of all video frames; the flash rendering image is generated according to the brightness value of the target video frame.
In one possible embodiment, the rendering the lightning animation of the lightning special effect in the game scene according to each lightning rendering image in sequence based on the playing sequence of each lightning rendering image includes:
determining the preset presentation time of the lightning special effect in the game scene;
detecting whether the presentation time of the lightning special effect is longer than the playing time of all lightning rendered images after playing;
if the total playing time of the lightning animations is longer than the playing time, the lightning animations of the lightning special effects are rendered in the game scene according to the playing sequence of each lightning rendering image, and the lightning animations are rendered repeatedly until the total playing time of the rendered lightning animations reaches the rendering time.
In one possible embodiment, the base lightning morphology image is a lightning image with a fixed shape pre-stored in the stainer; or;
the basic lightning morphological image is generated according to the rendering morphological requirement of the lightning special effect when the target lightning is rendered each time.
In a second aspect, an embodiment of the present application further provides a rendering apparatus for lightning special effects in a game, which is applied to a terminal on which a graphical user interface is displayed, where at least a part of a game scene is displayed on the graphical user interface, and the rendering apparatus includes:
the rendering image determining module is used for responding to a trigger condition of rendering the lightning special effect, inputting the brightness value of the target lightning on the video frame corresponding to each sampling time into a stainer rendering the lightning special effect, so that the stainer outputs a plurality of lightning rendering images respectively based on the brightness value of each video frame and a basic lightning morphological image, and determining the playing sequence of the lightning rendering images according to the sampling time;
and the lightning rendering module is used for rendering the lightning animation of the lightning special effect in a game scene according to each lightning rendering image in sequence based on the playing sequence of each lightning rendering image.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the rendering method of lightning special effects in a game according to any one of the first aspect.
In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the rendering method for special effects of lightning in a game according to any one of the first aspect.
According to the method, the device, the electronic equipment and the storage medium for presenting the lightning special effect in the game, in response to the fact that the triggering condition of the lightning special effect is met, the brightness value of the target lightning for presenting the lightning special effect on the video frame corresponding to each sampling time is input into the stainer for presenting the lightning special effect, the stainer outputs a plurality of lightning rendering images respectively based on the brightness value on each video frame and the basic lightning morphological images in the stainer in advance, the playing sequence of the lightning rendering images is determined through the sampling time, and the lightning animation of the lightning special effect is sequentially presented in the game scene according to the playing sequence of each lightning rendering image. In the embodiment of the application, the determined brightness values of the target lightning on the video frames corresponding to the sampling times are input into the stainer, the stainer adjusts the brightness of the basic lightning morphological image through the relation between the video frames and the brightness values, the lightning output by the stainer renders the image, lightning animation is presented, and due to the fact that the target lightning brightness values are re-engraved and processed, the processing amount of data in the lightning rendering process is reduced, and the efficiency of flash special effect rendering is improved.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a flowchart of a method for presenting a special lightning effect in a game according to an embodiment of the present application;
FIG. 2 is a flowchart of another method for presenting special effects of lightning in a game according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a rendering apparatus for special lightning effects in a game according to an embodiment of the present application;
fig. 4 is a second schematic structural diagram of a rendering apparatus for special lightning effects in games according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. Every other embodiment that can be obtained by a person skilled in the art without making creative efforts based on the embodiments of the present application falls within the protection scope of the present application.
First, an application scenario to which the present application is applicable will be described. The method and the device can be applied to the technical field of image processing.
In order to more realistically present weather changes in a game scene or special game operations executed by a target virtual character in a three-dimensional game scene, various special effects need to be presented in the game scene, and a lightning effect is one of the effects, and is indispensable to rendering the lightning effect in a weather environment simulation process.
At present, the presentation of the lightning special effect in the three-dimensional game scene generally comprises the following modes: in a game engine stainer, a complex trigonometric function is used for simulating and restoring the lightning brightness change, and a lightning curve which is completely the same as a lightning video is manufactured by using a large number of trigonometric functions and an inverse trigonometric function; an animation system is adopted, and the brightness of each frame of lightning change in a lightning video is correspondingly set to the material by adjusting the brightness of the material; a particle effect system using scripts to control a game engine. The particle system is used for making special effects of single lightning, and then scripts are used for calling and triggering the special effects of the lightning at specific time intervals or random time intervals.
Research shows that the above methods all have certain disadvantages, specifically:
the complex trigonometric function is used for simulating and restoring the lightning brightness change, and because the real-time platform of the technical scheme is a mobile end platform, a large amount of trigonometric functions and inverse trigonometric functions are used in the stainer, so that a large amount of computational power consumption is generated in hardware. (if only a single lightning plot is restored, then the overhead is not high). Overall, the cost is that the machine performance overhead is large and the fabricator needs a strong mathematical and signaling background to fabricate exactly the same lightning curve.
With the particle animation system, whether ue4, Unity or Messiah, the particle system using the game engine typically takes a lot of time to frame, and each frame of the lightning change in the video is correspondingly restored to the game engine. Overall, the cost is time consuming and requires a significant amount of time to perform the alignment sanding.
The particle special effect system using script control game engine has the disadvantage that the special customized plug-in script control must be used for controlling the generation or playing of the special effects, and the special effects must be bound to use. The second disadvantage is that lightning changes in the video of the replicated target take a very long time. It is good to use this solution to make a lightning system simulating lightning, but it is very time consuming to make the same lightning changes as in the target video, since it takes much time to perform the comparison polishing as with the particle animation system.
Based on this, the embodiment of the application provides a method for presenting a special lightning effect in a game, so that the processing amount of data in a lightning rendering process is reduced, and the rendering efficiency of the special lightning effect is improved.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for presenting a special lightning effect in a game according to an embodiment of the present application. As shown in fig. 1, a method for presenting a special lightning effect in a game provided by an embodiment of the present application includes:
s101, responding to a trigger condition meeting a lightning special effect, inputting the brightness value of the target lightning on a video frame corresponding to each sampling time into a stainer rendering the lightning special effect, so that the stainer outputs a plurality of lightning rendering images respectively based on the brightness value of each video frame and a basic lightning morphological image, and determining the playing sequence of the lightning rendering images according to the sampling time.
And S102, rendering the lightning animation of the lightning special effect in a game scene according to each lightning rendering image in sequence based on the playing sequence of each lightning rendering image.
The embodiment of the application provides a method for presenting a special lightning effect in a game, the brightness value of determined target lightning on a video frame corresponding to each sampling time is input into a stainer, the stainer adjusts the brightness of a basic lightning form image through the relation between the video frame and the brightness value, an image is rendered through the lightning output by the stainer, a lightning animation is presented, due to the fact that only the target lightning brightness value is re-engraved and processed, the processing amount of data in the lightning rendering process is reduced, and the efficiency of rendering the special lightning effect is improved.
The following describes exemplary steps in an embodiment of the present application:
s101, responding to a trigger condition meeting a lightning special effect, inputting the brightness value of the target lightning on a video frame corresponding to each sampling time into a stainer rendering the lightning special effect, so that the stainer outputs a plurality of lightning rendering images respectively based on the brightness value of each video frame and a basic lightning morphological image, and determining the playing sequence of the lightning rendering images according to the sampling time.
In the embodiment of the application, in response to the rendering requirement of the lightning special effect in a game scene, the brightness values of the video frames corresponding to the target lightning at each sampling time are input into a stainer for rendering the lightning special effect, a plurality of lightning rendering images are output through the stainer according to each brightness value and a basic lightning form image, and the playing sequence of the lightning rendering images is determined according to the sampling time.
In a possible embodiment, the special lightning effect is a special lightning effect with specific change, specifically, the special lightning effect in the embodiment of the present application is a special lightning effect with brightness changing along with time change, and generally, the form of the special lightning effect in the embodiment of the present application is basically kept unchanged.
In a possible implementation manner, the lightning special effect may be a lightning special effect in a weather environment, and may also be a lightning special effect carried by a target virtual character in a game scene in an execution operation and a corresponding execution operation.
In one possible embodiment, in response to a trigger condition for rendering a lightning special effect being met, the method comprises:
responding to the game operation triggered by the target virtual character in the game scene with a lightning special effect; or;
in response to the presence of a lightning weather environment in the game scene.
Specifically, for a situation that a target virtual character triggers a game operation with a special lightning effect, when it is determined that the target virtual character executes the game operation with the special lightning effect, a condition that a special lightning effect is triggered is determined, and for the judgment that the target virtual character executes the game operation with the special lightning effect, it may be that a touch operation of a player on a control corresponding to the game operation is received; if the game operation with the special lightning effect executed by the target virtual character is periodic, whether the game operation with the special lightning effect is sent by the target virtual character can be determined according to the time node corresponding to the period.
Specifically, the condition that a lightning weather environment appears in a game scene can be animation presenting the weather environment, and when a certain frame of the weather environment animation carries lightning, the lightning weather environment appearing in the weather scene is determined; or the determination may be made according to the interaction of the player, when the player plays the game, the weather environment of the game scene may be set, and when the player sets the corresponding weather (rainy day, etc.), the weather environment also belongs to the lightning weather environment in the game scene.
It should be noted that the solution of the embodiment of the present application is not only directed to the special lightning effect, but also to all special effects (special light effect, etc.) with brightness change.
In a possible implementation manner, the lightning special effect rendered in the embodiment of the present application is a duplicate of a target lightning in a pre-acquired video, and the pre-acquired video may be derived from videos with target lightning in other game scenes, and may also be a real lightning video.
Specifically, the number of transmission frames per unit time (per second) of a previously acquired target video picture with a target lightning is generally 30FPS, and 60FPS is more preferable.
In one possible implementation, the luminance values on a video frame are determined by:
a 1: and aiming at each video frame, determining the brightness values of all pixel points in a lightning area and a lightning related area in the video frame.
In the embodiment of the application, the target video with the target lightning is processed by sampling according to a preset time interval to determine a plurality of video frame images, and the target video can be processed frame by directly utilizing the video frame importing function of the existing software (such as photoshop and the like).
Illustratively, sampling the target video at preset time intervals may be performed by a python script.
In a possible implementation manner, for each video frame image, range clipping needs to be performed on the video frame image, a lightning area included in each video frame image and a lightning association area associated with a target lightning are determined, a plurality of pixel points are determined at fixed sampling positions of each video frame image, and brightness values of the plurality of pixel points included in each fixed sampling position are determined.
In one possible embodiment, the fixed sampling position may be determined according to the distribution of pixel points (sparsity, pixel point color, etc.) in the lightning region and the lightning related region.
It should be noted that after the fixed sampling position is determined, for the determined video frame images, the determined brightness value is determined according to the pixel point at the fixed sampling position.
a 2: and determining the brightness value of each video frame according to the brightness value of each pixel point.
In the embodiment of the application, for each video frame, the brightness value of the video frame is determined according to the determined brightness value of each pixel point.
Specifically, the pixels may be cumulatively added according to RGB channels to determine a total number, and the total number may be determined as a brightness value on the video frame.
For example, by calculating the value of 76 on the R channel, 254 on the G channel, and 100 on the B channel, the brightness value of 430(76+254+100) on the video frame is determined.
In a possible embodiment, after the brightness values of the lightning of the target at the video frames corresponding to each sampling time are acquired, the corresponding relationship between the video frames and the brightness values may be directly stored together (for example, stored in a table), and the video frames and the brightness values are directly input to a stainer to set the animation of the lightning special effect according to the corresponding relationship between the video frames and the brightness values.
In one possible implementation, the presentation method further includes:
b 1: and generating a lightning brightness numerical value image according to the brightness value of the target lightning on the video frame corresponding to each sampling time.
It is worth noting that, in order to save the storage space of the terminal and improve the processing efficiency of the terminal, in the rendering process of the lightning special effect in the embodiment of the application, only the lightning brightness value image which represents the brightness value relation of the target lightning on the video frame corresponding to each sampling time is stored in the terminal.
In the embodiment of the present application, luminance values on each video frame need to be written into the lightning luminance value image as pixel points, and therefore normalization processing needs to be performed on each luminance value, and the luminance values are uniformly adjusted to the color interval [0, 255 ].
In one possible embodiment, a plurality of pixels are displayed in the lightning brightness numerical value image, and the plurality of pixels correspond to a plurality of video frames in a one-to-one mode; the brightness value of each pixel is used for representing the brightness value of the video frame corresponding to the pixel.
Specifically, for the lightning brightness value image, each pixel point in the image has its own setting position, and the brightness value corresponding to each video frame is written into the lightning brightness value image by the correspondence between the pixel point position and the video frame.
For example, the lightning luminance value image may be a TGA (default) image with a height of 1 and a width of n to the power of 2, and the luminance value corresponding to the first frame of video frame is written into the pixel point with coordinates of (1,1) in the lightning luminance value image, and so on until the luminance values corresponding to all the video frames are written into the lightning luminance value image.
Specifically, the lightning brightness value image may be an image with a height N and a width N, and the brightness value corresponding to the first frame of video frame is written into the pixel point with the coordinate of (1,1) in the lightning brightness value image, the brightness value corresponding to the N +1 th frame of video frame is written into the pixel point with the coordinate of (2,1) in the lightning brightness value image, and so on until the brightness values corresponding to all the video frames are written into the lightning brightness value image.
In this embodiment of the present application, in a manner that luminance values on video frames corresponding to respective sampling times are written into a lightning luminance numerical image, the step "inputting the luminance values of the lightning of the object on the video frames corresponding to the respective sampling times into a stainer that renders the lightning" includes:
c 1: inputting the lightning brightness numerical value image into a stainer rendering the lightning.
In the embodiment of the application, after the lightning brightness value image indicating the brightness value on the video frame corresponding to each sampling time is determined, the lightning brightness value image is directly input into the stainer, and the lightning brightness value image is read through the stainer according to the time node to perform brightness rendering on the lightning image.
In one possible embodiment, the step of inputting the brightness value of the lightning target on the video frame corresponding to each sampling time into a stainer for rendering the lightning so that the stainer outputs a plurality of lightning rendering images based on the brightness value on each video frame and the base lightning morphology image respectively comprises:
d 1: and inputting the brightness value of the lightning of the target on the video frame corresponding to each sampling time into a stainer for rendering the lightning special effect, and determining the brightness value on each video frame.
In the embodiment of the application, the brightness values of the determined target lightning on the video frames corresponding to the sampling time are input into a stainer for rendering the lightning special effect, and the brightness value on each video frame is determined according to the corresponding relation between the video frames and the brightness values.
d 2: for each video frame, determining an adjustment coefficient for adjusting the brightness of the base lightning morphology image based on a ratio between a brightness value on the video frame and an image brightness value of the base lightning morphology image.
In the embodiment of the present application, it is necessary to adjust the image brightness value of the base lightning shape image to be consistent with the brightness value of the corresponding video frame, so that a difference between the brightness value of the video frame and the image brightness value of the base lightning shape image may be determined first, and an adjustment coefficient that needs to perform brightness adjustment on the base lightning shape image may be determined according to the difference.
In one possible implementation, the adjustment coefficient may be a luminance value on the video frame.
In an embodiment of the application, the base lightning modality image is a lightning image with a fixed shape pre-stored in the stainer; or; the base lightning morphology image is generated according to the rendering morphology requirements of the lightning object each time the lightning object is rendered.
In particular, since in the embodiment of the present application, a characteristic that a lightning special effect changes with time is mainly focused, it is possible to realize that a base lightning image of a fixed shape is stored in a stainer, and it is sufficient to directly adjust the brightness of the base lightning image according to the brightness value when the lightning animation is generated.
In a possible embodiment, the fixed shape of the lightning in the base lightning image may be a lightning shape of a process in the presentation of historical lightning, or a fixed shape of the lightning shape determined from the lightning object in the video frame.
In another possible implementation, the base lightning morphology image is generated according to a rendering morphology requirement of the lightning special effect each time the lightning special effect is rendered, and the lightning morphology in the base lightning image needs to be determined according to the rendering requirement (lightning morphology requirement) each time the lightning special effect needs to be rendered.
Specifically, the rendering form requirement of the target lightning may be a lightning special effect form corresponding to a game operation performed by the target virtual character (the corresponding relationship between the lightning special effect form and the game operation is preset), and since the game operation performed by each target virtual character may be different, rendering may be performed according to the rendering requirement of the lightning special effect each time the lightning special effect is rendered.
d 3: for each video frame, adjusting an image brightness of the base lightning morphology image to a target brightness value based on the adjustment coefficient to determine the lightning rendered image.
In the embodiment of the application, the image brightness of the basic lightning form image is adjusted to the target brightness value according to the determined adjustment coefficient, and the basic lightning form image after the brightness is adjusted is determined to be a lightning rendering image.
In a possible embodiment, the luminance value corresponding to the video frame may be directly used as an adjustment coefficient to adjust the RGB channel value of each pixel in the base lightning shape image, where the specific adjustment manner may be determined according to an adjustment requirement, and the most direct adjustment manner is to directly multiply the luminance value to the RGB channel value of each pixel to adjust the luminance value of the base lightning shape image.
The corresponding relation between the RGB channel value and the brightness is as follows: the larger each value of the RGB channel is, the higher the brightness of the image is; conversely, the lower the brightness value of the image.
In a possible implementation mode, other parameters of the image can be adjusted according to the presentation requirement, for example, the transparency of the lightning rendering image needs to be set, and the transparency of the lightning rendering image can be adjusted by adjusting the adjustment coefficient on an alpha channel.
In the embodiment of the application, after a plurality of lightning rendering images with different brightness are determined, the sequence of the plurality of lightning rendering images needs to be determined according to the sequence of sampling time, so that the animation for rendering the lightning special effect is generated.
Specifically, the playing sequence of the lightning rendered image is determined by the following steps:
e 1: aiming at each lightning rendering image, determining the playing sequence of the lightning rendering image according to the size sequence of the target video frame in the sampling time of all video frames; the flash rendering image is generated according to the brightness value of the target video frame.
In the embodiment of the application, for each lightning rendering image, the playing sequence of the lightning rendering image generated according to the brightness value of the target video frame is determined according to the sequence of the sampling time of the target video frame in all the video frames.
For example, the target video frame is the third frame in the sampling process, and the playing sequence of the lightning rendered images generated according to the brightness values of the target video frame is also the third position, which is noteworthy that this way is for the case that multiple lightning rendered images are not played in a loop.
In a possible embodiment, in the case that multiple lightning rendered images are played in a loop, the playing order of the lightning rendered images can be determined by the following formula:
S=N+M×(R-1);
s is the playing sequence of the lightning rendering images corresponding to the target video frame; n is the size sequence of the target video frame in the sampling time of the partial video frame; m is the number of all video frames; r is the cycle number.
It should be noted that, for the scheme that the determination of the playing sequence of each lightning rendering image is directly determined for a plurality of lightning rendering images at the same time, the lightning rendering images can also be rendered in real time in the stainer according to the playing sequence of the video frames according to the advancing time in the game, in this way, the lightning brightness numerical value image representing the brightness value of the lightning of the target on the video frame corresponding to each sampling time is directly put into a stainer, the incremental time (deltatime) of a time node is used as a u channel of a basic lightning form image, 0 is used as a value of a v channel, the vector is connected to an image node of a lightning brightness numerical value image as UV, and an R channel (or a channel storing numerical values of other channels) of the image node is read and multiplied as a change numerical value to a basic color (base color) or a self-luminous color (emissive color) selected for the basic lightning form image in a stainer to obtain a lightning rendering image.
And S102, rendering the lightning animation of the lightning special effect in a game scene according to each lightning rendering image in sequence based on the playing sequence of each lightning rendering image.
In the embodiment of the application, after the playing sequence of each lightning rendering image is determined, a lightning animation may be rendered in a game scene according to the playing sequence of each lightning rendering image, however, the brightness value of the target lightning on the video frame corresponding to each sampling time is intercepted from the target video, because the duration of the target video is limited, the number of the brightness values on the corresponding video frames determined according to the target video is also limited, and further, the playing time of the generated lightning rendering image is also limited, because the rendering times for the lightning special effects in different game scenes are different, the playing sequence and the playing times for a plurality of lightning rendering images need to be determined according to the playing times of the plurality of lightning rendering images and the rendering times of the lightning special effects.
Specifically, referring to fig. 2, fig. 2 is a flowchart of another method for presenting a special lightning effect in a game according to an embodiment of the present application. As shown in fig. 2, the step "sequentially rendering the lightning animation of the lightning special effect in the game scene according to each lightning rendering image based on the playing sequence of each lightning rendering image" includes:
s201, determining the preset presentation time of the lightning special effect in the game scene.
In the embodiment of the application, the presentation time of the lightning special effect can be determined according to different game scenes or different lightning special effect presentation modes.
For example, the presentation time of the lightning special effect in the weather environment is generally longer than that of the target virtual character in the game scene when the corresponding game operation is executed, and the presentation time of the specific lightning special effect can be specifically set according to the game configuration.
S202, detecting whether the presentation time of the lightning special effect is longer than the playing time of all lightning rendered images after the lightning rendered images are played.
In the embodiment of the present application, the playing time for playing the complete lightning rendered image may be determined according to the preset number of frames per second of the pictures.
For example, if the number of frames per second for transmission of a screen set in a game is 30FPS, if the determined lightning rendering images total 60, the time for playing all the lightning rendering images is 2 seconds.
And S203, if the sum is larger than the preset value, rendering the lightning animation of the lightning special effect in a game scene according to the playing sequence of each lightning rendering image in sequence, and rendering the lightning animation repeatedly until the total playing time of the rendered lightning animation reaches the presentation time.
In the embodiment of the application, if the fact that the time of the special lightning effect which needs to be presented in the scene of the game is longer than the playing time of the plurality of lightning rendering images which are all played is determined, the plurality of lightning rendering images need to be played circularly.
In a possible implementation manner, the multiple lightning rendering images can be played circularly according to the playing sequence of each lightning rendering image, after all the lightning rendering images are played, each lightning rendering image is played circularly from the beginning again until the total playing time of the lightning animations rendered reaches the rendering time of the lightning special effect in the game scene.
In another possible embodiment, the multiple lightning rendered images can be played circularly from a preset position (such as the position of a third lightning rendered image) according to the playing sequence of each lightning rendered image, the image nodes for each circulation can be different, specifically, circulation is performed from which lightning rendered image, which is related to the presentation effect of the lightning special effect, and specific setting can be performed according to the rendering requirement for the lightning special effect in the game scene.
In another possible implementation mode, under the condition that the lightning special effects cannot be completely presented in the game scene after the lightning rendering images are completely played, the lightning rendering images can be selected not to be played in a circulating mode, a preset scene rendering image can be filled directly after the last lightning rendering image to finish the presentation of the lightning special effects, the presentation form of the specific scene rendering image is related to the rendering requirements in the game scene, and the number of the lightning rendering images can be determined by the number of the images required for the presentation of the lightning special effects and the number of all the lightning rendering images.
For example, 2 seconds of lightning special effects need to be presented in a game scene, and according to game settings, if the frame rate in the game scene is 30FPS, 60 images are needed for presenting the 2 seconds of lightning special effects, and the number of lightning rendering images is 50, and if the other scene rendering images are used for filling the gaps of the lightning rendering images, the number of scene rendering images needed is at least 10.
In a possible embodiment, if the presentation time of the lightning special effect is not longer than the playing time of playing the complete lightning rendered image, the presentation mode for the plurality of lightning rendered images may be: determining at least one target rendering image with the same number of images corresponding to the presentation time from the plurality of lightning rendering images based on the playing sequence of each lightning rendering image; and rendering the lightning animation in the game scene according to each target rendering image in sequence based on the playing sequence of each target rendering image.
The method for presenting the lightning special effect in the game responds to the condition that the triggering condition of the lightning special effect is met, the brightness value of target lightning for presenting the lightning special effect on a video frame corresponding to each sampling time is input into a stainer for presenting the lightning special effect, the stainer outputs a plurality of lightning rendering images respectively based on the brightness value of each video frame and a basic lightning morphological image in the stainer in advance, the playing sequence of the lightning rendering images is determined according to the sampling time, and the lightning animation of the lightning special effect is presented in a game scene according to the playing sequence of each lightning rendering image. In the embodiment of the application, the determined brightness values of the target lightning on the video frames corresponding to the sampling times are input into the stainer, the stainer adjusts the brightness of the basic lightning morphological image through the relation between the video frames and the brightness values, the lightning output by the stainer renders the image, lightning animation is presented, and due to the fact that the target lightning brightness values are re-engraved and processed, the processing amount of data in the lightning rendering process is reduced, and the efficiency of flash special effect rendering is improved.
Based on the same inventive concept, the embodiment of the present application further provides a rendering apparatus for a special lightning effect in a game corresponding to the rendering method for a special lightning effect in a game, and as the principle of the apparatus in the embodiment of the present application for solving the problem is similar to the rendering method for a special lightning effect in a game described above in the embodiment of the present application, the implementation of the apparatus may refer to the implementation of the method, and repeated parts are not described again.
Referring to fig. 3 and 4, fig. 3 is a first schematic structural diagram of a rendering apparatus for special effects of lightning in games according to an embodiment of the present application, and fig. 4 is a second schematic structural diagram of the rendering apparatus for special effects of lightning in games according to the embodiment of the present application. As shown in fig. 3, the presentation apparatus 300 includes:
a rendering image determining module 310, configured to, in response to a trigger condition for rendering a lightning special effect being met, input a brightness value of the target lightning on a video frame corresponding to each sampling time into a stainer for rendering the lightning special effect, so that the stainer outputs a plurality of lightning rendering images based on the brightness value on each video frame and a basic lightning morphological image, respectively, and determines a playing order of the lightning rendering images according to the sampling time;
and the lightning rendering module 320 is configured to render the lightning animation of the lightning special effect in the game scene according to each lightning rendering image in sequence based on the playing sequence of each lightning rendering image.
In a possible implementation, as shown in fig. 4, the presentation apparatus 300 further includes a brightness value determining module 330, where the brightness value determining module 330 is configured to:
aiming at each video frame, determining a lightning area in the video frame and the brightness value of each pixel point in the lightning related area;
and determining the brightness value of each video frame according to the brightness value of each pixel point.
In a possible implementation manner, as shown in fig. 4, the presentation apparatus 300 further includes a luminance image generation module 340, where the luminance image generation module 340 is configured to:
generating a lightning brightness numerical value image according to the brightness value of the target lightning on the video frame corresponding to each sampling time; a plurality of pixels are displayed in the lightning brightness numerical value image, and the plurality of pixels correspond to the plurality of video frames one by one; the brightness value of each pixel is used for representing the brightness value of the video frame corresponding to the pixel.
When the rendered image determination module 310 is configured to input the brightness value of the lightning target on the video frame corresponding to each sampling time into a stainer for rendering the lightning special effect, the rendered image determination module 310 is configured to:
and inputting the lightning brightness numerical value image into a stainer for rendering the lightning special effect.
In one possible implementation, when the rendered image determination module 310 is configured to respond to a trigger condition for rendering a lightning special effect being met, the rendered image determination module 310 is configured to:
responding to the game operation triggered by the target virtual character in the game scene with a lightning special effect; or;
in response to the presence of a lightning weather environment in the game scene.
In a possible implementation, when the rendered image determination module 310 is configured to input the brightness value of the lightning target at the video frame corresponding to each sampling time into a stainer for rendering the lightning special effect, so that the stainer outputs a plurality of lightning rendered images based on the brightness value of the lightning target at each video frame and the base lightning morphological image, respectively, the rendered image determination module 310 is configured to:
inputting the brightness value of the target lightning on the video frame corresponding to each sampling time into a stainer for rendering the lightning special effect, and determining the brightness value on each video frame;
for each video frame, determining an adjustment coefficient for adjusting the brightness of the base lightning morphology image based on a ratio between a brightness value on the video frame and an image brightness value of the base lightning morphology image;
for each video frame, adjusting an image brightness of the base lightning morphology image to a target brightness value based on the adjustment coefficient to determine the lightning rendered image.
In one possible embodiment, the rendered image determination module 310 is configured to determine the playing order of the lightning rendered images by:
aiming at each lightning rendering image, determining the playing sequence of the lightning rendering image according to the size sequence of the target video frame in the sampling time of all video frames; the flash rendering image is generated according to the brightness value of the target video frame.
In one possible embodiment, when the lightning rendering module 320 is configured to render the lightning animation of the lightning special effect in the game scene according to each lightning rendering image in turn based on the playing sequence of each lightning rendering image, the lightning rendering module 320 is configured to:
determining the preset presentation time of the lightning special effect in the game scene;
detecting whether the presentation time of the lightning special effect is longer than the playing time of all lightning rendered images after playing;
if the total playing time of the lightning animation is longer than the total playing time, based on the playing sequence of each lightning rendering image, sequentially rendering the lightning animation of the lightning special effect in a game scene according to each lightning rendering image, and repeatedly rendering the lightning animation until the total playing time of the rendered lightning animation reaches the rendering time.
In one possible embodiment, the base lightning morphology image is a lightning image with a fixed shape pre-stored in the stainer; or;
the basic lightning morphological image is generated according to the rendering morphological requirement of the lightning special effect when the target lightning is rendered each time.
The device for presenting the lightning special effect in the game responds to the condition that the triggering condition of the lightning special effect is met, the brightness value of target lightning for presenting the lightning special effect on a video frame corresponding to each sampling time is input into a stainer for presenting the lightning special effect, the stainer outputs a plurality of lightning rendering images respectively based on the brightness value of each video frame and a basic lightning morphological image in the stainer in advance, the playing sequence of the lightning rendering images is determined through the sampling time, and the lightning animation of the lightning special effect is presented in a game scene according to the playing sequence of each lightning rendering image. In the embodiment of the application, the determined brightness values of the target lightning on the video frames corresponding to the sampling times are input into the stainer, the stainer adjusts the brightness of the basic lightning morphological image through the relation between the video frames and the brightness values, the lightning output by the stainer renders the image, lightning animation is presented, and due to the fact that the target lightning brightness values are re-engraved and processed, the processing amount of data in the lightning rendering process is reduced, and the efficiency of flash special effect rendering is improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 5, the electronic device 500 includes a processor 510, a memory 520, and a bus 530.
The memory 520 stores machine-readable instructions executable by the processor 510, when the electronic device 500 runs, the processor 510 communicates with the memory 520 through the bus 530, and when the machine-readable instructions are executed by the processor 510, the steps of the method for presenting a special lightning effect in a game in the embodiment of the method shown in fig. 1 and fig. 2 may be executed.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for presenting a special lightning effect in a game in the method embodiments shown in fig. 1 and fig. 2 may be executed.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A method for presenting a lightning special effect in a game is characterized by comprising the following steps:
in response to the fact that a trigger condition for rendering the lightning special effect is met, inputting the brightness value of the target lightning on the video frame corresponding to each sampling time into a stainer for rendering the lightning special effect, so that the stainer outputs a plurality of lightning rendering images respectively based on the brightness value of each video frame and a basic lightning morphological image, and determining the playing sequence of the lightning rendering images according to the sampling time;
and rendering the lightning animation of the lightning special effect in a game scene according to each lightning rendering image in sequence based on the playing sequence of each lightning rendering image.
2. The presentation method of claim 1, wherein in response to a trigger condition for rendering a lightning special effect being met, comprises:
responding to the game operation triggered by the target virtual character in the game scene with a lightning special effect; or;
in response to the presence of a lightning weather environment in the game scene.
3. A rendering method as claimed in claim 1, characterized in that the luminance values on the video frames are determined by:
aiming at each video frame, determining a lightning area in the video frame and the brightness value of each pixel point in the lightning related area;
and determining the brightness value of each video frame according to the brightness value of each pixel point.
4. The presentation method according to claim 1, wherein the presentation method further comprises:
generating a lightning brightness numerical value image according to the brightness value of the target lightning on the video frame corresponding to each sampling time; a plurality of pixels are displayed in the lightning brightness numerical value image, and the plurality of pixels correspond to the plurality of video frames one by one; the brightness value of each pixel is used for representing the brightness value of the video frame corresponding to the pixel;
inputting the brightness value of the lightning of the target on the video frame corresponding to each sampling time into a stainer for rendering the lightning special effect, wherein the method comprises the following steps:
and inputting the lightning brightness numerical value image into a stainer for rendering the lightning special effect.
5. The rendering method of claim 1, wherein inputting brightness values of the lightning object on video frames corresponding to each sampling time into a stainer rendering the lightning special effects, so that the stainer outputs a plurality of lightning rendering images based on the brightness values on each video frame and a base lightning morphological image, respectively, comprises:
inputting the brightness value of the target lightning on the video frame corresponding to each sampling time into a stainer for rendering the lightning special effect, and determining the brightness value on each video frame;
for each video frame, determining an adjustment coefficient for adjusting the brightness of the base lightning morphology image based on a ratio between a brightness value on the video frame and an image brightness value of the base lightning morphology image;
for each video frame, adjusting an image brightness of the base lightning morphology image to a target brightness value based on the adjustment coefficient to determine the lightning rendered image.
6. A rendering method as claimed in claim 1, characterized in that the order of playing the lightning rendered images is determined by:
aiming at each lightning rendering image, determining the playing sequence of the lightning rendering image according to the size sequence of the target video frame in the sampling time of all video frames; the flash rendering image is generated according to the brightness value of the target video frame.
7. The rendering method according to claim 1, wherein rendering the lightning animation of the lightning special effect in the game scene according to each lightning rendering image in turn based on the playing sequence of each lightning rendering image comprises:
determining the preset presentation time of the lightning special effect in the game scene;
detecting whether the presentation time of the lightning special effect is longer than the playing time of all lightning rendered images after playing;
if the total playing time of the lightning animation is longer than the total playing time, based on the playing sequence of each lightning rendering image, sequentially rendering the lightning animation of the lightning special effect in a game scene according to each lightning rendering image, and repeatedly rendering the lightning animation until the total playing time of the rendered lightning animation reaches the rendering time.
8. A rendering method according to claim 1, characterized in that the base lightning morphology image is a lightning image with a fixed shape pre-stored in the stainer; or;
the basic lightning morphological image is generated according to the rendering morphological requirement of the lightning special effect when the target lightning is rendered each time.
9. A rendering apparatus for lightning special effects in a game, the rendering apparatus comprising:
the rendering image determining module is used for responding to a trigger condition of rendering the lightning special effect, inputting the brightness value of the target lightning on the video frame corresponding to each sampling time into a stainer rendering the lightning special effect, so that the stainer outputs a plurality of lightning rendering images respectively based on the brightness value of each video frame and a basic lightning morphological image, and determining the playing sequence of the lightning rendering images according to the sampling time;
and the lightning rendering module is used for rendering the lightning animation of the lightning special effect in a game scene according to each lightning rendering image in sequence based on the playing sequence of each lightning rendering image.
10. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the in-game lightning special effects presentation method according to any one of claims 1 to 9.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for rendering lightning effects in a game as claimed in any one of the claims 1 to 9.
CN202111629687.1A 2021-12-28 2021-12-28 Method and device for presenting lightning special effect in game, electronic equipment and storage medium Pending CN114299208A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111629687.1A CN114299208A (en) 2021-12-28 2021-12-28 Method and device for presenting lightning special effect in game, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111629687.1A CN114299208A (en) 2021-12-28 2021-12-28 Method and device for presenting lightning special effect in game, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114299208A true CN114299208A (en) 2022-04-08

Family

ID=80971841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111629687.1A Pending CN114299208A (en) 2021-12-28 2021-12-28 Method and device for presenting lightning special effect in game, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114299208A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116761018A (en) * 2023-08-18 2023-09-15 湖南马栏山视频先进技术研究院有限公司 Real-time rendering system based on cloud platform

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116761018A (en) * 2023-08-18 2023-09-15 湖南马栏山视频先进技术研究院有限公司 Real-time rendering system based on cloud platform
CN116761018B (en) * 2023-08-18 2023-10-17 湖南马栏山视频先进技术研究院有限公司 Real-time rendering system based on cloud platform

Similar Documents

Publication Publication Date Title
CN108619720B (en) Animation playing method and device, storage medium and electronic device
CN108236783B (en) Method and device for simulating illumination in game scene, terminal equipment and storage medium
CN109685909B (en) Image display method, image display device, storage medium and electronic device
CN109377546B (en) Virtual reality model rendering method and device
US20180374261A1 (en) Rendering glasses shadows
CN109671147B (en) Texture map generation method and device based on three-dimensional model
CN108043027B (en) Storage medium, electronic device, game screen display method and device
CN110570500B (en) Character drawing method, device, equipment and computer readable storage medium
CN112184873A (en) Fractal graph creating method and device, electronic equipment and storage medium
CN114066714A (en) Batch rendering method, device, equipment and storage medium
CN114071223A (en) Optical flow-based video interpolation frame generation method, storage medium and terminal equipment
CN111939567A (en) Game virtual scene transformation method and device and electronic terminal
CN114299208A (en) Method and device for presenting lightning special effect in game, electronic equipment and storage medium
CN110930484B (en) Animation configuration method and device, storage medium and electronic device
US10636223B2 (en) Method and apparatus for placing media file, storage medium, and virtual reality apparatus
JP6980913B2 (en) Learning device, image generator, learning method, image generation method and program
US20150189126A1 (en) Controlling content frame rate based on refresh rate of a display
KR102108244B1 (en) Image processing method and device
CN112150602A (en) Model image rendering method and device, storage medium and electronic equipment
CN109847360B (en) 3D effect processing method and device of game props, electronic equipment and medium
KR20230022153A (en) Single-image 3D photo with soft layering and depth-aware restoration
CN109729285B (en) Fuse grid special effect generation method and device, electronic equipment and storage medium
CN116173496A (en) Image frame rendering method and related device
CN107038737B (en) Three-dimensional chess and card drawing method and device
CN111514586A (en) Motion blur realization method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination