CN108961380A - Method for rendering graph and device - Google Patents

Method for rendering graph and device Download PDF

Info

Publication number
CN108961380A
CN108961380A CN201710384724.4A CN201710384724A CN108961380A CN 108961380 A CN108961380 A CN 108961380A CN 201710384724 A CN201710384724 A CN 201710384724A CN 108961380 A CN108961380 A CN 108961380A
Authority
CN
China
Prior art keywords
scene graph
configuration information
user equipment
operating index
render
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.)
Granted
Application number
CN201710384724.4A
Other languages
Chinese (zh)
Other versions
CN108961380B (en
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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710384724.4A priority Critical patent/CN108961380B/en
Publication of CN108961380A publication Critical patent/CN108961380A/en
Application granted granted Critical
Publication of CN108961380B publication Critical patent/CN108961380B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/10Geometric effects
    • G06T15/20Perspective computation
    • G06T15/205Image-based rendering

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Geometry (AREA)
  • Computer Graphics (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

A kind of method for rendering graph and device, with to avoid because of system crash phenomenon caused by render scenes figure.Wherein, method includes: to obtain the configuration information of user equipment before user equipment render scenes figure;The configuration information is determined whether in predetermined blacklist, the configuration information of the equipment of scene graph rendering function is not supported in the blacklist instruction;If the configuration information not in the blacklist, detect the operating index of the user equipment and determine the operating index whether meet can render scenes figure setting condition;If the operating index is unsatisfactory for the setting condition, refusal renders the scene graph and renders the scene graph if the operating index meets the setting condition.

Description

Method for rendering graph and device
Technical field
This application involves graph processing technique field more particularly to a kind of method for rendering graph and device.
Background technique
Currently, being continuously increased with application (Application, APP) type, is equipped with the user equipment of types of applications The figure of required rendering is also more and more.In some application pages, generally requires to render and all kinds of presented under special scenes Scene graph (such as: the motion graphics of 3D or 2D), to reach the experience of augmented reality (Augmented Reality, AR).One As, user equipment needs to realize the rendering of AR figure using the image rendering library (such as: OpenGL) of bottom.However, due to The configuration of each user equipment is different, and not all user equipment can support the rendering function of all kinds of scene graphs, for For certain equipment, system crash may be led to because above-mentioned scene graph is rendered.
Summary of the invention
In view of this, the application provides a kind of method for rendering graph and device.
To achieve the above object, it is as follows to provide technical solution by the application:
According to a first aspect of the present application, a kind of method for rendering graph is proposed, comprising:
Before user equipment render scenes figure, the configuration information of user equipment is obtained;
The configuration information is determined whether in predetermined blacklist, scene graph is not supported in the blacklist instruction Render the configuration information of the equipment of function;
If the configuration information not in the blacklist, detects the operating index of the user equipment and determines the fortune Row index whether meet can render scenes figure setting condition;
If the operating index meets the setting condition, the scene graph is rendered, if the operating index is unsatisfactory for The setting condition, refusal render the scene graph.
According to a second aspect of the present application, a kind of method for rendering graph is proposed, comprising:
Before user equipment render scenes figure, the configuration information of user equipment is obtained;
The configuration information is determined whether in predetermined white list, scene graph wash with watercolours is supported in the white list instruction Contaminate the configuration information of the equipment of function;
If the configuration information in the white list, detects the operating index of the user equipment and determines the operation Index whether meet can render scenes figure setting condition;
If the operating index meets the setting condition, the scene graph is rendered, if the operating index is unsatisfactory for The setting condition, refusal render the scene graph.
According to the third aspect of the application, a kind of graphics rendering device is proposed, comprising: configuration information acquiring unit, One determination unit, the second determination unit and rendering unit;
For the configuration information acquiring unit before user equipment render scenes figure, obtain user equipment matches confidence Breath;
First determination unit determines the configuration information whether in predetermined blacklist, and the blacklist refers to Show the configuration information for not supporting the equipment of scene graph rendering function;
Second determination unit detects the fortune of the user equipment when the configuration information is not in the blacklist Row index and determine the operating index whether meet can render scenes figure setting condition;
The rendering unit renders the scene graph when the operating index meets the setting condition.
According to the fourth aspect of the application, a kind of graphics rendering device is proposed, comprising: configuration information acquiring unit, One determination unit, the second determination unit and rendering unit;
For the configuration information acquiring unit before user equipment render scenes figure, obtain user equipment matches confidence Breath;
First determination unit determines the configuration information whether in predetermined white list, and the white list refers to Show the configuration information for supporting the equipment of scene graph rendering function;
Second determination unit detects the operation of the user equipment when the configuration information is in the white list Index and determine the operating index whether meet can render scenes figure setting condition;
The rendering unit renders the scene graph when the operating index meets the setting condition.
Through the above technical solution as it can be seen that by predefining blacklist or white list, and in user equipment render scenes Before figure, the configuration information of user equipment is determined whether in blacklist or white list, if not in blacklist or in white list In, then show that equipment supports scene graph rendering function.Hereafter, it is also necessary to detect the operating index of the user equipment and determination The operating index whether meet can render scenes figure setting condition, if the operating index meet impose a condition, Rendering renders the scene graph, if the operating index is unsatisfactory for the setting condition, refusal renders the scene graph. By the above process, it can accurately detect that current user equipment if appropriate for the rendering for carrying out scene graph, effectively avoids Because of system crash phenomenon caused by render scenes figure.
Detailed description of the invention
Fig. 1 is a kind of flow chart for method for rendering graph that one exemplary embodiment of the application provides;
Fig. 2 is the flow chart for another method for rendering graph that one exemplary embodiment of the application provides;
Fig. 3 is the flow chart for another method for rendering graph that one exemplary embodiment of the application provides;
Fig. 4 is the structural schematic diagram for a kind of electronic equipment that one exemplary embodiment of the application provides;
Fig. 5 is a kind of block diagram for graphics rendering device that one exemplary embodiment of the application provides;
Fig. 6 is the block diagram for another graphics rendering device that one exemplary embodiment of the application provides.
Specific embodiment
Currently, rendering some special scene figures using being frequently necessary to during showing certain specific webpages on APP Shape (such as: the motion graphics of 3D or 2D) is simultaneously shown in specific webpage, to enhance the page presentation effect of APP.For example, In a kind of scene, user need using certain APP installed on user equipment (such as smart phone) come in recognition target image (such as As obtained by user equipment shooting) it whether include specific character (such as: Chinese character " good fortune "), it include above-mentioned when recognizing in target image When specific character, the animation (i.e. above-mentioned scene graph) of one section of 2D form can be rendered, at random to bring celebrating sense to user.? Another scene, user can provide AR (Augmented Reality, augmented reality) outdoor scene red packet by certain application, In the scene, in general, robbing red packet after red packet promoter initiates an AR outdoor scene red packet based on geographical location and certain objects User need to go to above-mentioned geographical location and certain objects scanned according to clue figure, can just get above-mentioned AR outdoor scene red packet.When After object suggested by the object and clue figure of scanning input matches, then the scene figure of a kind of " 3D red packet person of low position " can be rendered Shape simultaneously shows, should " 3D red packet person of low position " can bow and scrape or shake the hand to user greetings, when to touch the sliding 3D red for user's finger Bao Hou, 3D red packet can be rotated.Other application scenarios further include: day cat double 11 catches the 3D cat being related in cat cat activity Rendering, is not construed as limiting herein.
Generally, user equipment needs to realize the rendering of AR figure using the image rendering library (such as: OpenGL) of bottom. However, the configuration due to each user equipment is different, not all user equipment can support the rendering of all kinds of scene graphs Function may lead to system crash because above-mentioned scene graph is rendered, to bring to user for certain equipment Bad usage experience.Set forth herein following technical schemes thus to solve the above problems.
Fig. 1 is a kind of flow chart for method for rendering graph that one exemplary embodiment of the application provides.The embodiment of the present application In, each step in following method can be executed by installing the user equipment of APP, alternatively, each step can by application server Lai It executes, alternatively, certain steps in this method are executed by user equipment, other steps are executed by application server, are closed In the executing subject of step, herein and with no restriction.As shown in Figure 1, this method includes the following steps 101~107, in which:
In a step 101, before user equipment render scenes figure, the configuration information of user equipment is obtained.
For the APP installed on user equipment, render scenes figure and the opportunity being shown on a user device It is preset.For example, in AR outdoor scene red packet scene, when user equipment scans to subject image and for hiding AR red packet Target object image it is consistent, it is determined that need render scenes figure;In the scene for sweeping good fortune word, when user equipment sweeps to certain figure When including good fortune word as in, it is determined that need render scenes figure;In other scenes, when user equipment is sent to application server When request to obtain the specific APP page, determine that user equipment needs render scenes figure, etc..In order to determine that user sets The standby rendering for whether supporting scene graph after user equipment determination needs render scenes figure and is not starting to rendering figure Before shape, itself available configuration information.
In one embodiment, the configuration information of the user equipment may include following at least one: the factory of equipment Quotient, equipment brand, device model, device operating system version information etc..The user equipment includes but is not limited to that hand is mechanical, electrical The terminal devices such as brain, PAD.
In a step 102, the configuration information is determined whether in predetermined blacklist, and the blacklist instruction is not Support the configuration information of the equipment of scene graph rendering function.Wherein, however, it is determined that the configuration information not in the blacklist, Then enter step 103;If it is determined that the configuration information then enters step 104 in the blacklist.
Before step 102, it may be predetermined that the blacklist of scene graph rendering function is not supported, it can in the blacklist Not support the corresponding configuration information of equipment of this function comprising one or more.In one embodiment of the application, above-mentioned black name List can by APP it is online before, developer obtains the test of various types of user equipmenies.Alternatively, after APP is online, It is determined by monitoring all types of user equipment in the failure rate of rendering special scenes figure.For example, certain can be preset Kind failure rate threshold value (such as 20%), if monitoring the equipment render scenes figure of certain type in a certain special time period Failure rate is more than 20%, it is determined that the type is the type for not supporting scene graph rendering function, and its configuration information is put into In blacklist, conversely, not being put into black and white list then.Certainly, the object for including in above-mentioned blacklist can be with the development of business Constantly adjustment.
In step 103, if the configuration information detects the operating index of the user equipment not in the blacklist And determine the operating index whether meet can render scenes figure setting condition.
Wherein, however, it is determined that the operating index be unsatisfactory for can render scenes figure setting condition, then enter step 104; If it is determined that the operating index meet can render scenes figure setting condition, then enter step 105.
Although the application is by predetermined blacklist, to determine whether user equipment supports the rendering of scene graph Function.But find in actual use, it is not that the configuration information of certain user equipment is certain suitable not in blacklist Close the rendering for carrying out scene graph.Its reason includes: first, due to being less likely to can be carried out the rendering of all user equipmenies Test, not all type configuration information for not supporting this function is all in blacklist;Second, for not in blacklist User equipment for, it is also possible to because other reasons (such as low memory) cause its be not suitable for rendering functional graphic.As it can be seen that The real-time operating index of user is also a key factor for considering it if appropriate for render scenes figure, and above-mentioned operation refers to Mark can be the hardware performance index of user equipment in the process of running.
In one embodiment, the operating index can be the free memory of user equipment.Correspondingly, above-mentioned steps 103 can With specifically:
If the configuration information not in the blacklist, detects the free memory of the user equipment, and described in determination Free memory whether be greater than can render scenes figure default memory threshold.
Wherein, for different scene graphs, due to its feature size, clarity, whether the factors such as dynamic are different, required The minimum memory wanted is also different.For this purpose, can according to required each scene graph of rendering, be set separately one it is matching Default memory threshold (such as: 100M).
Correspondingly, if free memory is less than default memory threshold, show its cannot render scenes figure, then enter step 104;If free memory is greater than default memory threshold, show that it can then enter step 105 with render scenes figure.
In another embodiment, the operating index can decompress needed for the preceding N frame picture of picture frame sequence for user equipment Duration.Wherein, N >=1.Wherein, above-mentioned N is usually set to lesser value, the reason is that needing quickly to determine the user equipment If appropriate for the rendering for carrying out scene graph.For this purpose, in certain embodiments, N=1, the operating index is user equipment solution Duration needed for pressing the first frame picture of picture frame sequence.
Correspondingly, above-mentioned steps 103 can be with specifically:
Whether duration needed for detecting the preceding N frame picture of the user equipment decompression picture frame sequence simultaneously determines the duration Less than preset duration threshold value.
Wherein, it for certain rendering processes containing a large amount of 2D picture frame sequences, before rendering, needs in advance to scheme 2D Piece frame sequence is decoded.For different types, due to the difference of its hardware performance, above-mentioned picture frame sequence is decoded Time-consuming is also not quite similar.Wherein, under normal circumstances, if the 2D picture frame decoding duration of certain type is too long, it may cause 2D Animation frame plays Caton, and then certainly will will cause that follow-up rendering process is slower, this is flagrant for a user.For this purpose, Need to preset a preset duration threshold value.
Correspondingly, if duration needed for the preceding N frame picture of user equipment decompression picture frame sequence is greater than preset duration Threshold value (such as: 0.01 second) shows that it is not suitable for render scenes figure, then enters step 104;If the user equipment decompresses picture Duration needed for the preceding N frame picture of frame sequence is less than preset duration threshold value (such as: 0.01 second), shows that it can be with render scenes figure Shape then enters step 105.
In general, can be come true according to memory, picture format and the configuration information of user equipment etc. of the preceding N frame picture Duration needed for determining the preceding N frame picture of user equipment decompression picture frame sequence.
In certain embodiments, when operating index include it is multiple when, can one by one detection device each operating index simultaneously It determines if to meet and impose a condition, and after each operating index meets corresponding impose a condition, just enter step 105;Conversely, being unsatisfactory for imposing a condition if any any one operating index, then 104 are entered step.
In an optional embodiment, in addition to establishing blacklist, it can also establish comprising supporting scene graph rendering function The white list of the device configuration information of energy, wherein the process for obtaining white list can refer to above to the mistake for how obtaining blacklist The description of journey.In the case where possessing blacklist and white list at the same time, above-mentioned steps 103 can be specifically included:
In step 10, if whether the configuration information determines the configuration information not in predetermined blacklist In predetermined white list, if the configuration information enters step 20 in predetermined white list.
In step 20, the operating index of the user equipment is detected, and determining whether the operating index meets can wash with watercolours Contaminate the setting condition of scene graph.
In one embodiment, however, it is determined that the configuration information is not also predefining not in predetermined white list Blacklist in, then can enter step 103;Alternatively, being directly entered step 104.
At step 104, refusal renders the scene graph.
In step 105, the scene graph is rendered.
In one embodiment of the application, the underlying graphics library that user equipment render scenes figure is utilized includes but is not limited to: OpenGL (Open Graphics Library), WebGL (Web Graphics Library) etc..
After step 105, the method also includes following steps 106 and steps 107.
In step 106, detect in render process whether exception occur, if detecting exception, enter step 107.It is described Exception includes but is not limited to: creation context in data in render process decoding failure, render process is unsuccessfully etc..
In step 107, stop rendering the scene graph, cause showing for system crash to avoid because there is exception As, also, stopping rendering in time can be with effectively save system resource, raising equipment runnability.
Through the above technical solution as it can be seen that by predefining blacklist or white list, and in user equipment render scenes Before figure, the configuration information of user equipment is determined whether in blacklist or white list, if not in blacklist or in white list In, then show that equipment supports scene graph rendering function.Hereafter, it is also necessary to detect the operating index of the user equipment and determination The operating index whether meet can render scenes figure setting condition, if the operating index meet impose a condition, Rendering renders the scene graph, if the operating index is unsatisfactory for the setting condition, refusal renders the scene graph. By the above process, it can accurately detect that current user equipment if appropriate for the rendering for carrying out scene graph, effectively avoids Because of system crash phenomenon caused by render scenes figure.
Fig. 2 is the flow chart for another method for rendering graph that one exemplary embodiment of the application provides.The application is implemented In example, each step in following method can be executed by installing the user equipment of APP, alternatively, each step can be by application server It executes, alternatively, certain steps in this method are executed by user equipment, other steps are executed by application server, About the executing subject of step, herein and with no restriction.As shown in Fig. 2, optionally, on the basis of above-mentioned Fig. 1, this method is also Include:
Step 108: detecting whether the user equipment is configured with gyroscope and/or accelerometer.Wherein, which can Can also be not construed as limiting between step 102 and step 103 to this after step 103.When detecting that the user sets When for being configured with gyroscope and/or accelerometer, 105 are entered step;Otherwise, 104 are entered step.
By taking day cat double 11 catches and is related to the render scenes of 3D cat in cat cat activity as an example, since 3D cat needs according to mobile phone The numerical value of gyroscope and/or accelerometer is drawn, and developer is using gyroscope and accelerometer as whether supporting what 3D cat rendered Evaluation index just supports the android type (performance is up to standard) for having gyroscope and/or accelerometer the rendering of 3D cat, otherwise It executes degradation schemes (not rendering 3D cat).
It should be mentioned that determining user equipment if appropriate for the rendering scene graph for different scene graphs Judgment step can change.For example, required judgment step includes: 1. to judge remaining for user equipment for 3D cat Whether remaining memory is more than default memory threshold, it is time-consuming whether more than preset duration 2. to judge user equipment decoding, and 3. detect Whether user equipment is configured with gyroscope and/or accelerometer.For AR red packet, required judgment step be it is above-mentioned 1. and 2..As it can be seen that APP developer can close so that the scene graph of pre-set required rendering is corresponding with above-mentioned judgment step System, thus while guaranteeing equipment operating efficiency, it is ensured that user equipment will not be collapsed because of the failure of rendering figure.It is above-mentioned to sentence Disconnected step can be not limited to mentioned several, can be needed to add new decision logic according to business.
Fig. 3 is the flow chart for another method for rendering graph that one exemplary embodiment of the application provides.As shown in figure 3, In the embodiment of the present application, each step in following method can be executed by installing the user equipment of APP, alternatively, each step can be by Application server executes, alternatively, certain steps in this method are executed by user equipment, other steps are by application service Device executes, about the executing subject of step, herein and with no restriction.As shown in figure 3, the method includes the following steps 301 ~307, in which:
In step 301, before user equipment render scenes figure, the configuration information of user equipment is obtained.
In step 302, the configuration information is determined whether in predetermined white list, and the white list indicates branch Hold the configuration information of the equipment of scene graph rendering function.Wherein, however, it is determined that the configuration information in the white list, then into Enter step 303;If it is determined that the configuration information then enters step 304 not in the white list.
In step 303, detect the operating index of the user equipment and determine whether the operating index meets can wash with watercolours Contaminate the setting condition of scene graph.Wherein, however, it is determined that the operating index be unsatisfactory for can render scenes figure setting condition, then Enter step 304;If it is determined that the operating index meet can render scenes figure setting condition, then enter step 305.
In step 304, refusal renders the scene graph.
In step 305, the scene graph is rendered.
Within step 306, detect in render process whether exception occur.If detecting exception, 307 are entered step.
In step 307, stop rendering the scene graph.
Be in place of embodiment shown in Fig. 3 and the main distinction of embodiment shown in FIG. 1: the present embodiment pre-establishes white List, and determine whether user equipment supports scene graph rendering function using the white list.
Through the above technical solution as it can be seen that by predefining white list, and before user equipment render scenes figure, The configuration information of user equipment is determined whether in white list, such as in white list, then shows that equipment supports scene graph rendering Function.Hereafter, it is also necessary to which field can be rendered by detecting the operating index of the user equipment and determining whether the operating index meets The setting condition of scape figure imposes a condition if the operating index meets, and the rendering scene graph is rendered, if described Operating index is unsatisfactory for the setting condition, and refusal renders the scene graph.By the above process, it can accurately detect Current user equipment is if appropriate for the rendering for carrying out scene graph, system crash caused by effectively avoiding because of render scenes figure Phenomenon.
Fig. 4 is the structural schematic diagram for a kind of electronic equipment that one exemplary embodiment of the application provides.As shown in figure 4, should Electronic equipment can be client device or server, the electronic equipment may include processor, internal bus, network interface, Memory and nonvolatile memory are also possible that hardware required for other business certainly.Processor is deposited from non-volatile Corresponding computer program is read in reservoir then to run into memory, and graphics rendering device is formed on logic level.Certainly, Other than software realization mode, the application is not precluded other implementations, such as logical device or software and hardware combining Mode etc., that is to say, that the executing subject of following process flow is not limited to each logic unit, be also possible to hardware or Logical device.
As shown in figure 5, in one embodiment, a kind of graphics rendering device 400 includes: configuration information acquiring unit 401, One determination unit 402, the second determination unit 403 and rendering unit 404.Specifically:
The configuration information acquiring unit 401 obtains the configuration of user equipment before user equipment render scenes figure Information;
Whether the determining configuration information of first determination unit 402 is in predetermined blacklist, the black name The configuration information of the equipment of scene graph rendering function is not supported in single instruction;
Second determination unit 403 detects the user equipment when the configuration information is not in the blacklist Operating index and determine the operating index whether meet can render scenes figure setting condition;
The rendering unit 404 renders the scene graph when the operating index meets the setting condition.
In one embodiment of the application, second determination unit 403 when the configuration information is not in the blacklist, Detect the free memory of the user equipment and determine the free memory whether be greater than can render scenes figure default memory Threshold value;
Correspondingly, the rendering unit 404 is when the operating index is greater than the default memory threshold, described in rendering Scene graph.
In one embodiment of the application, second determination unit 403 detects the user equipment decompression picture frame sequence Duration needed for preceding N frame picture simultaneously determines whether the duration is less than preset duration threshold value, wherein N >=1;
Correspondingly, the rendering unit 404 renders the scene graph when the duration is less than preset duration threshold value.
In an optional embodiment, the graphics rendering device 400 can also include a detection unit, the detection unit Can be between the first determination unit 402 and the second determination unit 403, or it is located at the second determination unit 403 and rendering list Between member 404.The detection unit detects whether the user equipment matches when the configuration information is not in the blacklist It is equipped with gyroscope and/or accelerometer.
Correspondingly, the rendering unit 404 renders institute when the user device configuration has gyroscope and/or accelerometer State scene graph.
In one embodiment of the application, second determination unit 403 includes:
First determines subelement, when the configuration information is not in predetermined blacklist, determines described with confidence Whether in predetermined white list, the equipment of the white list instruction support scene graph rendering function matches confidence to breath Breath;
Second determines that subelement detects the user equipment when the configuration information is in predetermined white list Operating index and determine the operating index whether meet can render scenes figure setting condition.
As shown in fig. 6, in one embodiment, on the basis of Fig. 5, the graphics rendering device 400 may also include that exception Detection unit 406, abnormality detecting unit 406.Specifically:
Abnormality detecting unit 406, during rendering the scene graph, whether detection render process there is exception. Wherein, the exception includes but is not limited to: the creation context in data decoding failure, render process in render process loses It loses.
Stop rendering unit 407, when an exception is detected, stops render scenes figure.
In one embodiment of the application, the scene graph includes: the scene graph shown in the AR outdoor scene red packet page; Or, recognizing in image in the user equipment comprising shown scene graph after target character.
In another embodiment, the configuration information acquiring unit 401 obtains before user equipment render scenes figure The configuration information of user equipment;
Whether the determining configuration information of first determination unit 402 is in predetermined white list, the white name The configuration information of the equipment of scene graph rendering function is supported in single instruction;
Second determination unit 403 detects the user equipment when the configuration information is in the white list Operating index and determine the operating index whether meet can render scenes figure setting condition;
The rendering unit 404 renders the scene graph when the operating index meets the setting condition.
In an optional embodiment, second determination unit 403 when the configuration information is in the white list, Detect the free memory of the user equipment and determine the free memory whether be greater than can render scenes figure default memory Threshold value.Correspondingly, the rendering unit 404 renders the field when the free memory is greater than the default memory threshold Scape figure.
In an optional embodiment, second determination unit 5403 is in the configuration information in the white list When, duration needed for detecting the preceding N frame picture of the user equipment decompression picture frame sequence simultaneously determines whether the duration is less than Preset duration threshold value, wherein N >=1.Correspondingly, the rendering unit 504 is when the duration is less than preset duration threshold value, wash with watercolours Contaminate the scene graph.
In one embodiment of the application, a kind of computer equipment is also provided, comprising:
Processor;
Memory for storage processor executable instruction;
The processor is configured to:
Before user equipment render scenes figure, the configuration information of user equipment is obtained;
The configuration information is determined whether in predetermined blacklist, scene graph is not supported in the blacklist instruction Render the configuration information of the equipment of function;
If the configuration information not in the blacklist, detects the operating index of the user equipment and determines the fortune Row index whether meet can render scenes figure setting condition;
If the operating index meets the setting condition, the scene graph is rendered, if the operating index is unsatisfactory for The setting condition, refusal render the scene graph.
In another embodiment of the application, a kind of computer equipment is also provided, comprising:
Processor;
Memory for storage processor executable instruction;
The processor is configured to:
Before user equipment render scenes figure, the configuration information of user equipment is obtained;
The configuration information is determined whether in predetermined white list, scene graph wash with watercolours is supported in the white list instruction Contaminate the configuration information of the equipment of function;
If the configuration information in the white list, detects the operating index of the user equipment and determines the operation Index whether meet can render scenes figure setting condition;
If the operating index meets the setting condition, the scene graph is rendered, if the operating index is unsatisfactory for The setting condition, refusal render the scene graph.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for computer For device embodiment, since it is substantially similar to the method embodiment, so being described relatively simple, related place ginseng See the part explanation of embodiment of the method.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment The combination of any several equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit can be realized in the same or multiple software and or hardware when application.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The application can describe in the general context of computer-executable instructions executed by a computer, such as program Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, group Part, data structure etc..The application can also be practiced in a distributed computing environment, in these distributed computing environments, by Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with In the local and remote computer storage media including storage equipment.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal Replacement, improvement etc., should be included within the scope of the claims of this application.

Claims (27)

1. a kind of method for rendering graph, comprising:
Before user equipment render scenes figure, the configuration information of user equipment is obtained;
The configuration information is determined whether in predetermined blacklist, the blacklist instruction does not support scene graph to render The configuration information of the equipment of function;
If the configuration information not in the blacklist, detects the operating index of the user equipment and determines that the operation refers to Mark whether meet can render scenes figure setting condition;
If the operating index meets the setting condition, render the scene graph, if the operating index be unsatisfactory for it is described It imposes a condition, refusal renders the scene graph.
2. according to the method described in claim 1, the operating index of the detection user equipment and determining that the operation refers to Mark whether meet can render scenes figure setting condition, comprising:
Detect the free memory of the user equipment and determine the free memory whether be greater than can render scenes figure it is default Memory threshold;
If the operating index meets the setting condition, the scene graph is rendered, if the operating index is unsatisfactory for The setting condition, refusal render the scene graph, comprising:
If the free memory of the user equipment is less than the default memory threshold, refusal renders the scene graph, if institute The free memory for stating user equipment is greater than the default memory threshold, renders the scene graph.
3. according to the method described in claim 1, the operating index of the detection user equipment and determining that the operation refers to Mark whether meet can render scenes figure setting condition, comprising:
Duration needed for detecting the preceding N frame picture of the user equipment decompression picture frame sequence simultaneously determines whether the duration is less than Preset duration threshold value, wherein N >=1;
If the operating index is unsatisfactory for the setting condition, refusal renders the scene graph, if the operating index Meet the setting condition, render the scene graph, comprising:
If the duration is greater than preset duration threshold value, refusal renders the scene graph, if the duration is less than preset duration threshold Value, renders the scene graph.
4. according to the method described in claim 1, after determining the configuration information whether in predetermined blacklist, The method also includes:
If the configuration information detects whether the user equipment is configured with gyroscope and/or acceleration not in the blacklist Meter;
If the user equipment is not configured with gyroscope and/or accelerometer, refusal renders the scene graph.
5. according to the method described in claim 1, the method also includes:
If the configuration information, in the blacklist, refusal renders the scene graph.
6. if according to the method described in claim 1, the configuration information detects the user not in the blacklist The operating index of equipment and determine the operating index whether meet can render scenes figure setting condition, comprising:
If whether the configuration information not in predetermined blacklist, determines the configuration information in predetermined white name The configuration information of the equipment of scene graph rendering function is supported in Dan Zhong, the white list instruction;
If the configuration information in predetermined white list, detects the operating index of the user equipment and determines the fortune Row index whether meet can render scenes figure setting condition.
7. according to the method described in claim 6, the method also includes:
If the configuration information, not in predetermined white list, refusal renders the scene graph.
8. according to the method described in claim 1, the method also includes:
During rendering the scene graph, whether detection render process there is exception;
If detecting exception, stop render scenes figure.
9. according to the method described in claim 1, the scene graph includes:
The scene graph shown in the AR outdoor scene red packet page;Or,
It recognizes in image in the user equipment comprising shown scene graph after target character.
10. a kind of method for rendering graph, comprising:
Before user equipment render scenes figure, the configuration information of user equipment is obtained;
The configuration information is determined whether in predetermined white list, the white list instruction supports scene graph to render function The configuration information of the equipment of energy;
If the configuration information in the white list, detects the operating index of the user equipment and determines the operating index Whether satisfaction can render scenes figure setting condition;
If the operating index meets the setting condition, render the scene graph, if the operating index be unsatisfactory for it is described It imposes a condition, refusal renders the scene graph.
11. according to the method described in claim 10, operating index and the determining operation of the detection user equipment Index whether meet can the setting condition of render scenes figure include:
Detect the free memory of the user equipment and determine the free memory whether be greater than can render scenes figure it is default Memory threshold;
If the operating index meets the setting condition, the scene graph is rendered, if the operating index is unsatisfactory for The setting condition, refusal render the scene graph, comprising:
If the free memory of the user equipment is less than the default memory threshold, refusal renders the scene graph, if institute The free memory for stating user equipment is greater than the default memory threshold, renders the scene graph.
12. according to the method described in claim 10, operating index and the determining operation of the detection user equipment Index whether meet can render scenes figure setting condition, comprising:
Duration needed for detecting the preceding N frame picture of the user equipment decompression picture frame sequence simultaneously determines whether the duration is less than Preset duration threshold value, wherein N >=1;
If the operating index is unsatisfactory for the setting condition, refusal renders the scene graph, if the operating index Meet the setting condition, render the scene graph, comprising:
If the duration is greater than preset duration threshold value, refusal renders the scene graph, if the duration is less than preset duration threshold Value, renders the scene graph.
13. according to the method described in claim 10, determine the configuration information whether in predetermined white list it Afterwards, the method also includes:
If the configuration information in the white list, detects whether the user equipment is configured with gyroscope and/or accelerometer;
If the user equipment is not configured with gyroscope and/or accelerometer, refusal renders the scene graph.
14. according to the method described in claim 10, the method also includes:
If the configuration information, not in predetermined white list, refusal renders the scene graph.
15. according to the method described in claim 10, the method also includes:
During rendering the scene graph, whether detection render process there is exception;
If detecting exception, stop render scenes figure.
16. according to the method described in claim 10, the scene graph includes:
The scene graph shown in the AR outdoor scene red packet page;Or,
It recognizes in image in the user equipment comprising shown scene graph after target character.
17. a kind of graphics rendering device, comprising: configuration information acquiring unit, the first determination unit, the second determination unit and rendering Unit;
The configuration information acquiring unit obtains the configuration information of user equipment before user equipment render scenes figure;
First determination unit determines the configuration information whether in predetermined blacklist, and the blacklist instruction is not Support the configuration information of the equipment of scene graph rendering function;
When the configuration information is not in the blacklist, the operation for detecting the user equipment refers to second determination unit Mark and determine the operating index whether meet can render scenes figure setting condition;
The rendering unit renders the scene graph when the operating index meets the setting condition.
18. device according to claim 17, second determination unit is in the configuration information not in the blacklist When middle, detect the free memory of the user equipment and determine the free memory whether be greater than can render scenes figure it is default Memory threshold;
The rendering unit renders the scene graph when the operating index is greater than the default memory threshold.
19. device according to claim 17, second determination unit detects the user equipment and decompresses picture frame sequence Duration needed for the preceding N frame picture of column simultaneously determines whether the duration is less than preset duration threshold value, wherein N >=1;
The rendering unit renders the scene graph when the duration is less than preset duration threshold value.
20. device according to claim 17, second determination unit include:
First determines that subelement determines that the configuration information is when the configuration information is not in predetermined blacklist It is no in predetermined white list, the configuration information of the equipment of scene graph rendering function is supported in white list instruction;
Second determines that subelement detects the fortune of the user equipment when the configuration information is in predetermined white list Row index and determine the operating index whether meet can render scenes figure setting condition.
21. device according to claim 17, the scene graph include:
The scene graph shown in the AR outdoor scene red packet page;Or,
It recognizes in image in the user equipment comprising shown scene graph after target character.
22. a kind of graphics rendering device, comprising: configuration information acquiring unit, the first determination unit, the second determination unit and rendering Unit;
The configuration information acquiring unit obtains the configuration information of user equipment before user equipment render scenes figure;
First determination unit determines the configuration information whether in predetermined white list, and the white list indicates branch Hold the configuration information of the equipment of scene graph rendering function;
Second determination unit detects the operating index of the user equipment when the configuration information is in the white list And determine the operating index whether meet can render scenes figure setting condition;
The rendering unit renders the scene graph when the operating index meets the setting condition.
23. device according to claim 22, second determination unit is in the configuration information in the white list When, detect the free memory of the user equipment and determine the free memory whether be greater than can render scenes figure it is default in Deposit threshold value;
The rendering unit renders the scene graph when the free memory is greater than the default memory threshold.
24. device according to claim 22, second determination unit detects the user equipment and decompresses picture frame sequence Duration needed for the preceding N frame picture of column simultaneously determines whether the duration is less than preset duration threshold value, wherein N >=1;
The rendering unit renders the scene graph when the duration is less than preset duration threshold value.
25. device according to claim 22, the scene graph include:
The scene graph shown in the AR outdoor scene red packet page;Or,
It recognizes in image in the user equipment comprising shown scene graph after target character.
26. a kind of computer equipment, comprising:
Processor;
Memory for storage processor executable instruction;
The processor is configured to:
Before user equipment render scenes figure, the configuration information of user equipment is obtained;
The configuration information is determined whether in predetermined blacklist, the blacklist instruction does not support scene graph to render The configuration information of the equipment of function;
If the configuration information not in the blacklist, detects the operating index of the user equipment and determines that the operation refers to Mark whether meet can render scenes figure setting condition;
If the operating index meets the setting condition, render the scene graph, if the operating index be unsatisfactory for it is described It imposes a condition, refusal renders the scene graph.
27. a kind of computer equipment, comprising:
Processor;
Memory for storage processor executable instruction;
The processor is configured to:
Before user equipment render scenes figure, the configuration information of user equipment is obtained;
The configuration information is determined whether in predetermined white list, the white list instruction supports scene graph to render function The configuration information of the equipment of energy;
If the configuration information in the white list, detects the operating index of the user equipment and determines the operating index Whether satisfaction can render scenes figure setting condition;
If the operating index meets the setting condition, render the scene graph, if the operating index be unsatisfactory for it is described It imposes a condition, refusal renders the scene graph.
CN201710384724.4A 2017-05-26 2017-05-26 Graph rendering method and device Active CN108961380B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710384724.4A CN108961380B (en) 2017-05-26 2017-05-26 Graph rendering method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710384724.4A CN108961380B (en) 2017-05-26 2017-05-26 Graph rendering method and device

Publications (2)

Publication Number Publication Date
CN108961380A true CN108961380A (en) 2018-12-07
CN108961380B CN108961380B (en) 2022-06-14

Family

ID=64494610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710384724.4A Active CN108961380B (en) 2017-05-26 2017-05-26 Graph rendering method and device

Country Status (1)

Country Link
CN (1) CN108961380B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114860358A (en) * 2022-03-31 2022-08-05 北京达佳互联信息技术有限公司 Object processing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150145858A1 (en) * 2013-11-25 2015-05-28 Samsung Electronics Co., Ltd. Method and apparatus to process current command using previous command information
CN104952096A (en) * 2014-03-31 2015-09-30 中国电信股份有限公司 CPU and GPU hybrid cloud rendering method, device and system
CN106254792A (en) * 2016-07-29 2016-12-21 暴风集团股份有限公司 The method and system of panoramic view data are play based on Stage3D
CN106375789A (en) * 2016-09-05 2017-02-01 腾讯科技(深圳)有限公司 Media live broadcast method and device
CN106547845A (en) * 2016-10-17 2017-03-29 搜游网络科技(北京)有限公司 For simulating the method and its equipment of canvas interfaces

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150145858A1 (en) * 2013-11-25 2015-05-28 Samsung Electronics Co., Ltd. Method and apparatus to process current command using previous command information
CN104952096A (en) * 2014-03-31 2015-09-30 中国电信股份有限公司 CPU and GPU hybrid cloud rendering method, device and system
CN106254792A (en) * 2016-07-29 2016-12-21 暴风集团股份有限公司 The method and system of panoramic view data are play based on Stage3D
CN106375789A (en) * 2016-09-05 2017-02-01 腾讯科技(深圳)有限公司 Media live broadcast method and device
CN106547845A (en) * 2016-10-17 2017-03-29 搜游网络科技(北京)有限公司 For simulating the method and its equipment of canvas interfaces

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
(美)达尼莱·塔尔: "《SketchUp照片级巅峰渲染传奇 建筑、景观、室内设计建模》", 31 March 2015, 北京:中国青年出版社 *
新世纪电脑工作室: "《电脑ok 有声有色》", 31 October 2001 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114860358A (en) * 2022-03-31 2022-08-05 北京达佳互联信息技术有限公司 Object processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108961380B (en) 2022-06-14

Similar Documents

Publication Publication Date Title
CN103455396B (en) The method of testing of electronic equipment hardware performance and device
KR102655540B1 (en) Efficient parallel optical flow algorithm and gpu implementation
CN104268047B (en) Electronic equipment performance testing method and device
US10834391B2 (en) Hologram streaming machine
CN112947969B (en) Page off-screen rendering method, device, equipment and readable medium
US8867789B2 (en) Systems and methods for tracking an object in a video
CN110717536A (en) Method and device for generating training sample
CN110727825A (en) Animation playing control method, device, server and storage medium
CN112449230A (en) Character string display processing method, device, terminal and storage medium
CN109302523B (en) Mobile phone performance evaluation method for mobile phone side and server side
CN113835948A (en) Temperature detection method, temperature detection device and electronic equipment
CN108961380A (en) Method for rendering graph and device
US20130152049A1 (en) Warning of register and storage area assignment errors
CN107872671B (en) Picture coding method and terminal
CN113268221A (en) File matching method and device, storage medium and computer equipment
CN109213534A (en) A kind of method and device of extension live streaming software function
CN110968377B (en) Interface display processing method and device
CN109542775B (en) Test script generation and execution method and device
CN110719493A (en) Barrage display method and device, electronic equipment and readable storage medium
CN115878115A (en) Page rendering method, device, medium and electronic equipment
US11330338B2 (en) Method and system of displaying video comments, computing device, and readable storage medium
CN110262856B (en) Application program data acquisition method, device, terminal and storage medium
CN114513686A (en) Method and device for determining video information and storage medium
CN115904563A (en) Data processing method and device in application program starting and storage medium
CN106802856A (en) The performance test methods of game application, server and game application client

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40001240

Country of ref document: HK

TA01 Transfer of patent application right

Effective date of registration: 20200921

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200921

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant