CN108230430A - The processing method and processing device of cloud layer shade figure - Google Patents
The processing method and processing device of cloud layer shade figure Download PDFInfo
- Publication number
- CN108230430A CN108230430A CN201611192668.6A CN201611192668A CN108230430A CN 108230430 A CN108230430 A CN 108230430A CN 201611192668 A CN201611192668 A CN 201611192668A CN 108230430 A CN108230430 A CN 108230430A
- Authority
- CN
- China
- Prior art keywords
- cloud layer
- layer shade
- texture
- shade
- channel
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T13/00—Animation
- G06T13/20—3D [Three Dimensional] animation
- G06T13/60—3D [Three Dimensional] animation of natural phenomena, e.g. rain, snow, water or plants
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/005—General purpose rendering architectures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2210/00—Indexing scheme for image generation or computer graphics
- G06T2210/61—Scene description
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Graphics (AREA)
- Image Generation (AREA)
Abstract
The invention discloses a kind of processing method and processing devices of cloud layer shade figure.Wherein, this method includes:Obtain the cloud layer shade figure to be mapped to sky spherical model;Texture Coordinates conversion process is performed to cloud layer shade figure, obtains the cloud layer shade value in level height.The present invention is solved in the relevant technologies the cloudland of real-time rendering in low-power mobile device can not be parallel to ground motion the technical issues of.
Description
Technical field
The present invention relates to image processing field, in particular to a kind of processing method and processing device of cloud layer shade figure.
Background technology
At present, low-power mobile device is suitble in the relevant technologies, and (it can include but is not limited to:Smart mobile phone and tablet electricity
Brain) mode is typically using a hemispherical solid grid model used by calculated performance, and pass through tinter to one
The sampling of sky texture mapping and real-time rendering that seamless can wrap up the hemispherical solid grid model go out sky cloudland.Fig. 1
Be the suitable low-power mobile device calculated performance according to the relevant technologies a kind of common sky spherical model use design sketch,
As shown in Figure 1, pass through sky texture mapping sampling of the tinter to seamless package hemispherical solid grid model and real-time wash with watercolours
Sky cloudland is dyed, obtains the effect presented in the figure.In addition, changing relative to said program is additionally provided in the relevant technologies
Into scheme.In computer graphics, for threedimensional model, there are two mostly important coordinate systems, one is top
Position (X, Y, Z) coordinate of point, is second texture mapping UV coordinates.In brief, texture mapping UV coordinates are textures shadow
It is mapped to the foundation of model surface.In a general sense, it should be in fact (U, V, W) coordinate (so as to mutually be distinguished with XYZ coordinate), wherein, U
It is respectively coordinate of the texture mapping in display level and vertical direction with V, value is usually 0-1, in other words, can be represented
The U pixel/picture width of horizontal direction, V pixel/picture height of vertical direction;In addition, the direction of coordinate W is hung down
Directly in display surface, commonly used in program textures or specific three dimensional (3D) textures technology, but for game usually not
It can use to W, so referred to as UV coordinates.Fig. 2 is the signal with example according to a kind of sky spherical model of the relevant technologies
Figure, as shown in Fig. 2, usually sky texture mapping can be moved along hemispherical geometric mould texture coordinate u direction, so as to generate
The illusion of cloud layer movement.However, the defects of such scheme, is:User, which is easy to discover, cloud layer motion mode shortage really
Property, i.e., cloudland is rotated again and again around sky ball center.Furthermore it is also possible to along hemispherical geometric mould texture coordinate
Sky texture mapping is moved in v directions, so as to generate the effect of cloud layer translation.Although above-mentioned processing mode can be directly avoided because complete
Complete careful structure be largely overlapped translucent three-dimension object (such as:It is put in ball on high to simulate cloudland a large amount of with half
The dough sheet of transparent cloud texture mapping) caused by excessively draw (Overdraw) problem, so as to prevent frame phenomenon, still
Since cloud layer texture is actually to against the movement of sky ball surface, exist with the cloud layer of the situation of real world-in three dimensions
The certain height movement for being parallel to ground is far apart, therefore, equally lacks authenticity.
In conclusion processing mode provided in the relevant technologies there are cloudland dynamic effect is not true enough, can not show
Cloud layer is in the obvious shortcoming for being parallel to ground certain height movement.
For it is above-mentioned the problem of, currently no effective solution has been proposed.
Invention content
An embodiment of the present invention provides a kind of processing method and processing device of cloud layer shade figure, at least to solve in the relevant technologies
The cloudland of real-time rendering in low-power mobile device can not be parallel to ground motion the technical issues of.
One side according to embodiments of the present invention provides a kind of processing method of cloud layer shade figure, including:
Obtain the cloud layer shade figure to be mapped to sky spherical model;Cloud layer shade figure is performed at Texture Coordinates transformation
Reason, obtains the cloud layer shade value in level height.
Optionally, Texture Coordinates conversion process is performed to cloud layer shade figure, obtains cloud layer shade value and include:Calculate with
The corresponding Texture Coordinates information of cloud layer shade figure;By being carried out at sampling to cloud layer shade figure to Texture Coordinates information
Reason, obtains Pixel Information corresponding with cloud layer shade figure;Cloud layer shade is determined using Texture Coordinates information and Pixel Information
Value.
Optionally, Texture Coordinates information corresponding with cloud layer shade figure is calculated using the following formula:
Wherein, x, y and z represent the x-axis of world space rectangular coordinate system, y-axis and z-axis respectively, and y-axis is directed toward the vertical of earth's surface
Direction, V represent that visual direction amount is by subtracting viewpoint using sky ball model surface Point Coordinates in world's space coordinates
Coordinate is come what is created, and E represents eye coordinates, and height is customized constant parameter, for defining the height value of cloud layer,
Tiling is customized constant parameter, and for defining the multiplicity of cloud layer shade figure, time represents current time, and speed is
Customized variable parameter, for defining the movement speed of cloud layer in the horizontal direction.
Optionally, above-mentioned Pixel Information includes:Red channel, green channel, blue channel and the alpha channel of texture,
Cloud layer shade figure is stored in any one channel in red channel, green channel, blue channel and alpha channel.
Optionally, determine that cloud layer shade value includes using Texture Coordinates information and Pixel Information:It obtains to be used
Graph API;The texture lookups function combination line built in texture sampler provided using graph API
Reason mapping coordinates information is calculated with Pixel Information, obtains cloud layer shade value.
Another aspect according to embodiments of the present invention additionally provides a kind of processing unit of cloud layer shade figure, including:
Acquisition module, for obtaining the cloud layer shade figure to be mapped to sky spherical model;Processing module, for being hidden to cloud layer
Cover figure performs Texture Coordinates conversion process, obtains the cloud layer shade value in level height.
Optionally, processing module includes:Computing unit, for calculating Texture Coordinates letter corresponding with cloud layer shade figure
Breath;Sampling unit, for by carrying out sampling processing to cloud layer shade figure to Texture Coordinates information, obtaining and cloud layer shade
Scheme corresponding Pixel Information;Processing unit, for determining cloud layer shade value using Texture Coordinates information and Pixel Information.
Optionally, computing unit, for calculating Texture Coordinates letter corresponding with cloud layer shade figure using the following formula
Breath:Wherein, x, y and z distinguish
Represent the x-axis of world space rectangular coordinate system, y-axis and z-axis, y-axis is directed toward the vertical direction of earth's surface, and V represents that visual direction amount is to pass through
Eye coordinates are subtracted come what is created using sky ball model surface Point Coordinates in world's space coordinates, and E represents viewpoint
Coordinate, height are customized constant parameter, and for defining the height value of cloud layer, tiling is customized constant parameter,
For defining the multiplicity of cloud layer shade figure, time represents current time, and speed is customized variable parameter, for defining
The movement speed of cloud layer in the horizontal direction.
Optionally, above-mentioned Pixel Information includes:Red channel, green channel, blue channel and the alpha channel of texture,
Cloud layer shade figure is stored in any one channel in red channel, green channel, blue channel and alpha channel.
Optionally, processing unit, for obtaining graph API to be used and utilizing graphics application program
The texture lookups function combination Texture Coordinates information built in texture sampler that interface provides is calculated with Pixel Information,
Obtain cloud layer shade value.
In embodiments of the present invention, by the way of the cloud layer shade figure to be mapped to sky spherical model is obtained, by right
Cloud layer shade figure performs Texture Coordinates conversion process, obtains the cloud layer shade value in level height, has reached real-time rendering
Cloudland be parallel to the purpose of ground motion, it is achieved thereby that reducing computation complexity, promoting processing speed, reduce electricity consumption of equipment
Amount, the technique effect for alleviating processor calorific value, and then solve in the relevant technologies the real-time rendering in low-power mobile device
Cloudland the technical issues of can not being parallel to ground motion.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and forms the part of the application, this hair
Bright illustrative embodiments and their description do not constitute improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 be the suitable low-power mobile device calculated performance according to the relevant technologies a kind of common sky spherical model
With design sketch;
Fig. 2 is the schematic diagram with example according to a kind of sky spherical model of the relevant technologies;
Fig. 3 is the flow chart of the processing method of cloud layer shade figure according to embodiments of the present invention;
Fig. 4 be cloud layer shade figure according to the preferred embodiment of the invention processing method in vertex shader and pixel shader
The data handling procedure schematic diagram of device;
Fig. 5 be cloud layer shade figure according to the preferred embodiment of the invention processing method in light passed through from sky ball surface
Cloud layer mask layer is to observer's schematic diagram;
Fig. 6 is that cloud layer shade figure is rendered in the processing method of cloud layer shade figure according to the preferred embodiment of the invention
Treated design sketch;
Fig. 7 is the structure diagram of the processing unit of cloud layer shade figure according to embodiments of the present invention;
Fig. 8 is the structure diagram of the processing unit of cloud layer shade figure according to the preferred embodiment of the invention.
Specific embodiment
In order to which those skilled in the art is made to more fully understand the present invention program, below in conjunction in the embodiment of the present invention
The technical solution in the embodiment of the present invention is clearly and completely described in attached drawing, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
Member's all other embodiments obtained without making creative work should all belong to the model that the present invention protects
It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, "
Two " etc. be the object for distinguishing similar, and specific sequence or precedence are described without being used for.It should be appreciated that it uses in this way
Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment
Those steps or unit clearly listed, but may include not listing clearly or for these processes, method, product
Or the intrinsic other steps of equipment or unit.
In recent years, low-power mobile device graphics processor (Graphics Processing Unit, referred to as
GPU) continuous improvement of performance and the continuous development of programmability, people gradually by the particular procedure function of graphics pipeline with
And the algorithm of special pattern turns to GPU from central processing unit (Central Processing Unit, referred to as CPU), it is main
It is embodied in, in small-scale real-time graphic image.In order to meet the dynamic sense of reality of this figure, the embodiment of the present invention is provided
Technical solution programmable GPU acceleration techniques are employed during cloudland is simulated.
At present, low-power mobile device GPU graphic hardwares provide flexible programmability in vertex and pixel scale,
The technical solution that the embodiment of the present invention is provided is also that the performance of GPU is farthest excavated from these features.
According to embodiments of the present invention, a kind of embodiment of the processing method of cloud layer shade figure is provided, it should be noted that
Step shown in the flowchart of the accompanying drawings can perform in the computer system of such as a group of computer-executable instructions, and
And although showing logical order in flow charts, in some cases, can institute be performed with the sequence being different from herein
The step of showing or describing.
Fig. 3 is the flow chart of the processing method of cloud layer shade figure according to embodiments of the present invention, as shown in figure 3, this method
Include the following steps:
Step S30 obtains the cloud layer shade figure to be mapped to sky spherical model;
Step S32 performs Texture Coordinates conversion process to cloud layer shade figure, obtains the cloud layer shade in level height
Value.
By above-mentioned steps, by the way of the cloud layer shade figure to be mapped to sky spherical model is obtained, by cloud layer
Shade figure performs Texture Coordinates conversion process, obtains the cloud layer shade value in level height, has reached the cloud of real-time rendering
Scape is parallel to the purpose of ground motion, it is achieved thereby that reduce computation complexity, promoted processing speed, reduce amount of equipment power consumption,
Alleviate the technique effect of processor calorific value, and then solve the cloud of the real-time rendering in low-power mobile device in the relevant technologies
Scape can not be parallel to the technical issues of ground motion.
Optionally, in step s 32, Texture Coordinates conversion process is performed to cloud layer shade figure, obtains cloud layer shade
Value may comprise steps of:
Step S320 calculates Texture Coordinates information corresponding with cloud layer shade figure;
Step S321 by carrying out sampling processing to cloud layer shade figure to Texture Coordinates information, obtains hiding with cloud layer
Cover schemes corresponding Pixel Information;
Step S322 determines cloud layer shade value using Texture Coordinates information and Pixel Information.
Above-mentioned cloud layer shade figure be by fine arts personnel be based on preset fine arts concept (such as:The form of cloud, cloud it is close
Degree etc.) come what is completed, be continue in all directions and be gray-scale map, which represents cloud layer concentration, can be with by cloud layer shade value
Distinguish cloud layer and background layer.Above-mentioned sky spherical model is the patch model with sky textures that fine arts personnel make.
Fig. 4 be cloud layer shade figure according to the preferred embodiment of the invention processing method in vertex shader and pixel shader
The data handling procedure schematic diagram of device, as shown in figure 4, in GPU flow chart of data processing figure, skill that the embodiment of the present invention is provided
Art scheme realizes the effect of real-time dynamic cloudland by being programmed to pixel coloring device, and concrete processing procedure needs basis
The characteristics of GPU performances, may be used Zhang Yun layer shade figure, is mapped on sky spherical model, the advantage of this modeling exists
In:Modeling speed is fast, efficient.Specifically, the texture for calculating sky spherical model by pixel coloring device (shader) first pastes
Figure coordinate UV values;Then cloud layer shade figure is sampled using the UV coordinate values, obtains Pixel Information;Finally in conjunction with texture
Mapping coordinates UV values and Pixel Information obtain the cloud layer shade value in level height.
In a preferred implementation process, above-mentioned Pixel Information can include:The red channel of texture, green channel, blue are logical
Road and alpha channel, cloud layer shade figure can be stored in red channel, green channel, blue channel and alpha channel
Any one channel in (Alpha Channel, i.e. Alpha channels).In view of cloud layer shade figure is for degree figure, so only need
A channel is occupied, is specifically placed on which channel can be determined according to actual use situation, and rest channels can then be put
The other information of cloud layer is put, such as:Normal information etc..Preferably, above-mentioned cloud layer shade figure is stored in Alpha channels.
Fig. 5 be cloud layer shade figure according to the preferred embodiment of the invention processing method in light passed through from sky ball surface
Cloud layer mask layer is to observer's schematic diagram, as shown in figure 5, in world's rectangular coordinate system in space, it is assumed that y-axis is directed toward perpendicular to ground
Apparent bearing in step s 320, may be used the following formula and calculate Texture Coordinates information corresponding with cloud layer shade figure:
Wherein, x, y and z represent the x-axis of world space rectangular coordinate system, y-axis and z-axis respectively, and y-axis is directed toward the vertical of earth's surface
Direction, V represent that visual direction amount is by subtracting viewpoint using sky ball model surface Point Coordinates in world's space coordinates
Coordinate creates, and E represents eye coordinates, specifically, according to linear algebra defines vector a and vector that vector b is subtracted each other
After being expressed as the starting point coincidence of a and b, the vector of the terminal of a is directed toward from the terminal of b.Herein, in world's rectangular space coordinate
The coordinate p of solid surface arbitrary point in systemn(x1, y1, z1) subtracts camera position coordinate E (x2, y2, z2) obtained knot
Fruit is the visual direction amount that solid surface arbitrary point is directed toward from viewpointHeight is customized constant parameter, for defining cloud layer
Height value, tiling is customized constant parameter, for defining the multiplicity of cloud layer shade figure, when time represents current
Between, speed is customized variable parameter, for defining the movement speed of cloud layer in the horizontal direction.
Fig. 6 is that cloud layer shade figure is rendered in the processing method of cloud layer shade figure according to the preferred embodiment of the invention
Treated design sketch, as shown in fig. 6, the height parameter values mentioned in above-mentioned Fig. 5 are set as 20.0, by tiling parameters
When value is set as 0.1, the design sketch of the cloud layer shade value in level height that can be rendered, for Fig. 1, cloud
Layer display feels truer.
Optionally, it in step S322, uses Texture Coordinates information and Pixel Information determines that cloud layer shade value can be with
Include the following steps:
Step S3220 obtains graph API to be used;
Step S3221, the texture lookups function built in texture sampler provided using graph API are combined
Texture Coordinates information is calculated with Pixel Information, obtains cloud layer shade value.
In a preferred embodiment, the texture sampler of the graph APIs such as GLES, DirectX offer is provided
Sampling operation is carried out to cloud layer shade figure, the Pixel Information and Texture Coordinates UV value informations of texture mapping pass through texture sampling
The texture lookups function set in device obtains cloud layer shade value, and then cloud layer can be presented in real time and be parallel to ground after calculating
The visual effect moved in certain height forms more life-like believable spatial impression.
In conclusion pixel coloring device only needs to be parallel to horizontal plane by once calculating that cloud layer shade figure can be rendered into
Certain height on, can also then above-mentioned treated shade figure be used to calculate other more complicated cloudland effects.
It should be noted that in preferred embodiment provided by the invention only by taking cloud layer shade value as an example, to institute of the present invention
The technical solution of offer is described in detail, and in actual use, it can also further be added for cloud layer and background layer
Other effects, such as:Increase effect of shadow, adjustment cloud layer tone, adjustment background color tone etc. for cloud layer.Cloud layer shade value will participate in
Cloud layer and background layer synthesize the calculating of final sky ball texture.
In addition, due to cloud layer shade value-based algorithm only need to carry out in a pixel coloring device it is primary draw can be realized compared with
For true cloud layer panning effect, it is therefore not necessary to perform multiple pretreatment operation and multiple Rendering operations and suitable for arbitrary
The dynamic scene of complexity.
According to embodiments of the present invention, a kind of embodiment of the processing unit of cloud layer shade figure is additionally provided, Fig. 7 is according to this
The structure diagram of the processing unit of the cloud layer shade figure of inventive embodiments, as shown in fig. 7, the device can include:Acquisition module
10, for obtaining the cloud layer shade figure to be mapped to sky spherical model;Processing module 20, for performing texture to cloud layer shade figure
UVW XForm processing, obtains the cloud layer shade value in level height.
Optionally, Fig. 8 is the structure diagram of the processing unit of cloud layer shade figure according to the preferred embodiment of the invention, is such as schemed
Shown in 8, processing module 20 can include:Computing unit 200, for calculating Texture Coordinates letter corresponding with cloud layer shade figure
Breath;Sampling unit 202, for by carrying out sampling processing to cloud layer shade figure to Texture Coordinates information, obtaining and cloud layer
The corresponding Pixel Information of shade figure;Processing unit 204, for determining that cloud layer hides using Texture Coordinates information and Pixel Information
Cover value.
Optionally, computing unit 200, for calculating Texture Coordinates corresponding with cloud layer shade figure using the following formula
Information:Wherein, x, y and z points
Not Biao Shi world space rectangular coordinate system x-axis, y-axis and z-axis, y-axis is directed toward the vertical direction of earth's surface, and V represents that visual direction amount is logical
It crosses and subtracts eye coordinates using sky ball model surface Point Coordinates come what is created in world's space coordinates, E expressions regard
Point coordinates, height are customized constant parameter, and for defining the height value of cloud layer, tiling joins for customized constant
Number, for defining the multiplicity of cloud layer shade figure, time represents current time, and speed is customized variable parameter, for fixed
The movement speed of adopted cloud layer in the horizontal direction.
Optionally, above-mentioned Pixel Information includes:Red channel, green channel, blue channel and the alpha channel of texture,
Cloud layer shade figure is stored in any one channel in red channel, green channel, blue channel and alpha channel.
Optionally, processing unit 204, for obtaining graph API to be used and utilizing figure application
The texture lookups function combination Texture Coordinates information built in texture sampler that routine interface provides is carried out with Pixel Information
It calculates, obtains cloud layer shade value.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
In the above embodiment of the present invention, all emphasize particularly on different fields to the description of each embodiment, do not have in some embodiment
The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei
A kind of division of logic function, can there is an other dividing mode in actual implementation, for example, multiple units or component can combine or
Person is desirably integrated into another system or some features can be ignored or does not perform.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module
It connects, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple
On unit.Some or all of unit therein can be selected according to the actual needs to realize the purpose of this embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is independent product sale or uses
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially
The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products
It embodies, which is stored in a storage medium, is used including some instructions so that a computer
Equipment (can be personal computer, server or network equipment etc.) perform each embodiment the method for the present invention whole or
Part steps.And aforementioned storage medium includes:USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can to store program code
Medium.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of processing method of cloud layer shade figure, which is characterized in that including:
Obtain the cloud layer shade figure to be mapped to sky spherical model;
Texture Coordinates conversion process is performed to the cloud layer shade figure, obtains the cloud layer shade value in level height.
2. according to the method described in claim 1, it is characterized in that, Texture Coordinates transformation is performed to the cloud layer shade figure
Processing, obtains the cloud layer shade value and includes:
Calculate Texture Coordinates information corresponding with the cloud layer shade figure;
By carrying out sampling processing to the cloud layer shade figure to the Texture Coordinates information, obtain and the cloud layer shade
Scheme corresponding Pixel Information;
The cloud layer shade value is determined using the Texture Coordinates information and the Pixel Information.
3. it according to the method described in claim 2, it is characterized in that, is calculated using the following formula corresponding with the cloud layer shade figure
Texture Coordinates information:
Wherein, x, y and z represent the x-axis of world space rectangular coordinate system, y-axis and z-axis respectively, and y-axis is directed toward the Vertical Square of earth's surface
To V represents that visual direction amount is regarded by being subtracted in world's space coordinates using the sky ball model surface Point Coordinates
Point coordinates is come what is created, and E represents the eye coordinates, and height is customized constant parameter, for defining the height of cloud layer
Value, tiling are customized constant parameter, and for defining the multiplicity of the cloud layer shade figure, time represents current time,
Speed is customized variable parameter, for defining the movement speed of the cloud layer in the horizontal direction.
4. according to the method described in claim 2, it is characterized in that, the Pixel Information includes:The red channel of texture, green
Channel, blue channel and alpha channel, the cloud layer shade figure are stored in the red channel, green channel, described
Blue channel and any one channel in the alpha channel.
5. according to the method described in claim 2, it is characterized in that, believed using the Texture Coordinates information and the pixel
Breath determines that the cloud layer shade value includes:
Obtain graph API to be used;
The texture lookups function built in texture sampler provided using the graph API is pasted with reference to the texture
Figure coordinate information is calculated with the Pixel Information, obtains the cloud layer shade value.
6. a kind of processing unit of cloud layer shade figure, which is characterized in that including:
Acquisition module, for obtaining the cloud layer shade figure to be mapped to sky spherical model;
Processing module for performing Texture Coordinates conversion process to the cloud layer shade figure, obtains the cloud in level height
Layer shade value.
7. device according to claim 6, which is characterized in that the processing module includes:
Computing unit, for calculating Texture Coordinates information corresponding with the cloud layer shade figure;
Sampling unit, for by carrying out sampling processing to the cloud layer shade figure to the Texture Coordinates information, obtaining
Pixel Information corresponding with the cloud layer shade figure;
Processing unit, for determining the cloud layer shade value using the Texture Coordinates information and the Pixel Information.
8. device according to claim 7, which is characterized in that the computing unit, for using the following formula calculate with
The corresponding Texture Coordinates information of the cloud layer shade figure:
Wherein, x, y and z represent the x-axis of world space rectangular coordinate system, y-axis and z-axis respectively, and y-axis is directed toward the Vertical Square of earth's surface
To V represents that visual direction amount is regarded by being subtracted in world's space coordinates using the sky ball model surface Point Coordinates
Point coordinates is come what is created, and E represents the eye coordinates, and height is customized constant parameter, for defining the height of cloud layer
Value, tiling are customized constant parameter, and for defining the multiplicity of the cloud layer shade figure, time represents current time,
Speed is customized variable parameter, for defining the movement speed of the cloud layer in the horizontal direction.
9. device according to claim 7, which is characterized in that the Pixel Information includes:The red channel of texture, green
Channel, blue channel and alpha channel, the cloud layer shade figure are stored in the red channel, green channel, described
Blue channel and any one channel in the alpha channel.
10. device according to claim 7, which is characterized in that the processing unit, it should for obtaining figure to be used
It is combined with the texture lookups function built in routine interface and the texture sampler provided using the graph API
The Texture Coordinates information is calculated with the Pixel Information, obtains the cloud layer shade value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611192668.6A CN108230430B (en) | 2016-12-21 | 2016-12-21 | Cloud layer mask image processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611192668.6A CN108230430B (en) | 2016-12-21 | 2016-12-21 | Cloud layer mask image processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108230430A true CN108230430A (en) | 2018-06-29 |
CN108230430B CN108230430B (en) | 2021-12-21 |
Family
ID=62650919
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611192668.6A Active CN108230430B (en) | 2016-12-21 | 2016-12-21 | Cloud layer mask image processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108230430B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109102560A (en) * | 2018-08-09 | 2018-12-28 | 腾讯科技(深圳)有限公司 | Threedimensional model rendering method and device |
CN109698951A (en) * | 2018-12-13 | 2019-04-30 | 潍坊歌尔电子有限公司 | Stereo-picture replay method, device, equipment and storage medium |
CN112755533A (en) * | 2021-02-02 | 2021-05-07 | 腾讯科技(深圳)有限公司 | Virtual carrier coating method, device, equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1816829A (en) * | 2003-07-01 | 2006-08-09 | 皇家飞利浦电子股份有限公司 | Selection of a mipmap level |
CN101271587A (en) * | 2008-02-25 | 2008-09-24 | 北京理工大学 | Illumination and shade drafting method based on transition light label drawing |
CN102184561A (en) * | 2011-05-24 | 2011-09-14 | Tcl集团股份有限公司 | Method for realizing 3D cloud layer simulation |
CN102306391A (en) * | 2011-09-20 | 2012-01-04 | 深圳Tcl新技术有限公司 | OpenGL (open graphics library)-based inverted image display processing device and method |
CN103955959A (en) * | 2013-06-20 | 2014-07-30 | 北京拓维思科技有限公司 | Full-automatic texture mapping method based on vehicle-mounted laser measurement system |
WO2015050922A2 (en) * | 2013-10-02 | 2015-04-09 | Microsoft Corporation | Graphics processing unit |
CN105354355A (en) * | 2015-09-28 | 2016-02-24 | 中国人民解放军辽宁省军区装备部军械修理所 | Three-dimensional motion scene based simulation system design and realization method |
-
2016
- 2016-12-21 CN CN201611192668.6A patent/CN108230430B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1816829A (en) * | 2003-07-01 | 2006-08-09 | 皇家飞利浦电子股份有限公司 | Selection of a mipmap level |
CN101271587A (en) * | 2008-02-25 | 2008-09-24 | 北京理工大学 | Illumination and shade drafting method based on transition light label drawing |
CN102184561A (en) * | 2011-05-24 | 2011-09-14 | Tcl集团股份有限公司 | Method for realizing 3D cloud layer simulation |
CN102306391A (en) * | 2011-09-20 | 2012-01-04 | 深圳Tcl新技术有限公司 | OpenGL (open graphics library)-based inverted image display processing device and method |
CN103955959A (en) * | 2013-06-20 | 2014-07-30 | 北京拓维思科技有限公司 | Full-automatic texture mapping method based on vehicle-mounted laser measurement system |
WO2015050922A2 (en) * | 2013-10-02 | 2015-04-09 | Microsoft Corporation | Graphics processing unit |
CN105354355A (en) * | 2015-09-28 | 2016-02-24 | 中国人民解放军辽宁省军区装备部军械修理所 | Three-dimensional motion scene based simulation system design and realization method |
Non-Patent Citations (3)
Title |
---|
FABRIZIOCUCCU ET AL: "Texture mapping for scientific visualization environments", 《COMPUTERS & GRAPHICS》 * |
林帆: "水波面实时渲染方法的研究与实现", 《中国优秀硕士学位论文全文数据库电子期刊 信息科技辑》 * |
王弟伟: "基于DirectX的三维数字地形真三维显示关键技术的研究", 《中国优秀硕士学位论文全文数据库电子期刊 信息科技辑》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109102560A (en) * | 2018-08-09 | 2018-12-28 | 腾讯科技(深圳)有限公司 | Threedimensional model rendering method and device |
CN109102560B (en) * | 2018-08-09 | 2023-03-28 | 腾讯科技(深圳)有限公司 | Three-dimensional model rendering method and device |
CN109698951A (en) * | 2018-12-13 | 2019-04-30 | 潍坊歌尔电子有限公司 | Stereo-picture replay method, device, equipment and storage medium |
CN109698951B (en) * | 2018-12-13 | 2021-08-24 | 歌尔光学科技有限公司 | Stereoscopic image reproducing method, apparatus, device and storage medium |
CN112755533A (en) * | 2021-02-02 | 2021-05-07 | 腾讯科技(深圳)有限公司 | Virtual carrier coating method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108230430B (en) | 2021-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11024077B2 (en) | Global illumination calculation method and apparatus | |
Lu et al. | Illustrative interactive stipple rendering | |
CN107330964B (en) | Display method and system of complex three-dimensional object | |
CN102768765A (en) | Real-time soft shadow rendering method for point light sources | |
CN104318605B (en) | Parallel lamination rendering method of vector solid line and three-dimensional terrain | |
CN109087369A (en) | Virtual objects display methods, device, electronic device and storage medium | |
CN107038745A (en) | A kind of 3D tourist sights roaming interaction method and device | |
CN110709893B (en) | High-quality layered depth image texture rasterization method | |
CN101477701A (en) | Built-in real tri-dimension rendering process oriented to AutoCAD and 3DS MAX | |
CN103700134A (en) | Three-dimensional vector model real-time shadow deferred shading method based on controllable texture baking | |
CN108230430A (en) | The processing method and processing device of cloud layer shade figure | |
CN103426199A (en) | Low-noise real-time global illumination drawing method for three-dimensional geometric scene | |
Bao et al. | Realistic real-time rendering for large-scale forest scenes | |
CN101521828B (en) | Implanted type true three-dimensional rendering method oriented to ESRI three-dimensional GIS module | |
CN116385619B (en) | Object model rendering method, device, computer equipment and storage medium | |
CN108280870A (en) | A kind of point cloud model texture mapping method and system | |
CN101511034A (en) | Truly three-dimensional stereo display method facing Skyline | |
CN101540056A (en) | Implanted true-three-dimensional stereo rendering method facing to ERDAS Virtual GIS | |
CN115035231A (en) | Shadow baking method, shadow baking device, electronic apparatus, and storage medium | |
Rosen et al. | Nonpinhole approximations for interactive rendering | |
CN115311395A (en) | Three-dimensional scene rendering method, device and equipment | |
Xu et al. | Visualization methods of vector data on a Digital Earth System | |
CN101482978B (en) | ENVI/IDL oriented implantation type true three-dimensional stereo rendering method | |
CN113592999B (en) | Rendering method of virtual luminous body and related equipment | |
CN115423917B (en) | Real-time drawing method and system for global three-dimensional wind field |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |