CN117132719A - Method, device, equipment, storage medium and program product for constructing block model - Google Patents

Method, device, equipment, storage medium and program product for constructing block model Download PDF

Info

Publication number
CN117132719A
CN117132719A CN202311008467.6A CN202311008467A CN117132719A CN 117132719 A CN117132719 A CN 117132719A CN 202311008467 A CN202311008467 A CN 202311008467A CN 117132719 A CN117132719 A CN 117132719A
Authority
CN
China
Prior art keywords
block
road
contour line
road contour
model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311008467.6A
Other languages
Chinese (zh)
Inventor
薛俊强
关旭
邱蓬勃
左琪
曹瑞
张匡世
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Autonavi Yunmap Technology Co ltd
Original Assignee
Beijing Autonavi Yunmap Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Autonavi Yunmap Technology Co ltd filed Critical Beijing Autonavi Yunmap Technology Co ltd
Priority to CN202311008467.6A priority Critical patent/CN117132719A/en
Publication of CN117132719A publication Critical patent/CN117132719A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures

Abstract

The embodiment of the disclosure discloses a method, a device, equipment, a storage medium and a program product for constructing a block model, wherein the method for constructing the block model comprises the following steps: extracting a road contour line of a road related to a block to be modeled; scanning and modeling along the road contour line with a preset cross-sectional shape to obtain a block model of the road contour line, wherein the block model comprises a series of block cross sections with the cross-sectional shape; setting a normal direction of a target vertex of the block section, which does not include an intersection of the block section and the road contour, to a direction perpendicular to a horizontal plane. The block model constructed by the technical scheme can ensure that the visual electronic map rendered based on the block model can truly and aesthetically express the relationship between the road and the area higher than the road.

Description

Method, device, equipment, storage medium and program product for constructing block model
Technical Field
The disclosure relates to the technical field of block model construction, and in particular relates to a block model construction method, a block model construction device, a block model construction equipment, a storage medium and a program product.
Background
As application software for providing services based on visual electronic maps becomes wider and mature, users increasingly expect that the digital world expressed by the visual electronic maps and the real world where the users are located tend to coincide. In the real world, taking a road as an example, some areas higher than the road surface of the road exist on two sides of the road, the inventor of the present disclosure finds that the visual electronic map is rendered based on map data, but the map data of the areas are not usually generated in the map data, so how to construct a data model of the areas, so as to ensure that the visual electronic map rendered based on the data model can truly and aesthetically express the relationship between the road and the areas higher than the road, which is a problem to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the disclosure provides a method, a device, equipment, a storage medium and a program product for constructing a block model.
In a first aspect, an embodiment of the present disclosure provides a method for constructing a block model.
Specifically, the method for constructing the block model comprises the following steps:
extracting a road contour line of a road related to a block to be modeled;
scanning and modeling along the road contour line with a preset cross-sectional shape to obtain a block model of the road contour line, wherein the block model comprises a series of block cross sections with the cross-sectional shape;
setting a normal direction of a target vertex of the block section, which does not include an intersection of the block section and the road contour, to a direction perpendicular to a horizontal plane.
In a second aspect, a rendering method is provided in an embodiment of the present disclosure.
Specifically, the rendering method includes:
obtaining block rendering data;
and rendering a three-dimensional block by using the block rendering data based on a block model and a road contour line associated with the block model, wherein the block model is obtained by scanning modeling along the road contour line in a preset cross-sectional shape, the block model comprises a series of block sections with the cross-sectional shape, the normal direction of a target vertex of the block section is a direction vertical to a horizontal plane, and the target vertex does not comprise an intersection point of the block section and the road contour line.
In a third aspect, an embodiment of the present disclosure provides a device for building a block model.
Specifically, the construction device of the block model includes:
the extraction module is configured to extract a road contour line of a road related to a block to be modeled;
the modeling module is configured to scan and model along the road contour line in a preset cross-sectional shape to obtain a block model of the road contour line, wherein the block model comprises a series of block cross sections with the cross-sectional shape;
and a setting module configured to set a normal direction of a target vertex of the block section, which does not include an intersection of the block section and the road contour, to a direction perpendicular to a horizontal plane.
In a fourth aspect, in an embodiment of the present disclosure, a rendering apparatus is provided.
Specifically, the rendering device includes:
the acquisition module is configured to acquire block rendering data;
the rendering module is configured to render a three-dimensional block by using the block rendering data based on a block model and a road contour line associated with the block model, wherein the block model is obtained by scanning modeling along the road contour line in a preset cross-sectional shape, the block model comprises a series of block sections with the cross-sectional shape, the normal direction of a target vertex of the block section is a direction vertical to a horizontal plane, and the target vertex does not comprise an intersection point of the block section and the road contour line.
In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including a memory and at least one processor, wherein the memory is configured to store one or more computer instructions, wherein the one or more computer instructions are executed by the at least one processor to implement the above-described method.
In a sixth aspect, embodiments of the present disclosure provide a computer readable storage medium having stored thereon computer instructions, wherein the computer instructions, when executed by a processor, implement the above-described method.
In a seventh aspect, embodiments of the present disclosure provide a computer program product comprising a computer program/instruction, wherein the computer program/instruction, when executed by a processor, implements the above-described method.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
according to the technical scheme, when the block model with the height difference with the road surface is constructed, scanning modeling is conducted along the road contour line of the road related to the block to be modeled according to the preset section shape, so that the block model is obtained, and in order to enable the block model to be consistent with the illumination direction of the block, the normal direction of the top point of part of the block section included in the block model is set to be perpendicular to the horizontal plane. The block model constructed by the technical scheme can ensure that the visual electronic map rendered based on the block model can truly and aesthetically express the relationship between the road and the area higher than the road.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
Other features, objects and advantages of the present disclosure will become more apparent from the following detailed description of non-limiting embodiments, taken in conjunction with the accompanying drawings. In the drawings:
FIG. 1 illustrates a flow chart of a method of building a block model according to an embodiment of the present disclosure;
2A-2C illustrate schematic diagrams of cross-sectional shapes according to an embodiment of the present disclosure;
2D-2N illustrate an overall flowchart of a method of building/rendering a neighborhood model according to an embodiment of the present disclosure;
FIG. 3 illustrates a flow chart of a rendering method according to an embodiment of the present disclosure;
FIG. 4 shows a block diagram of a construction apparatus of a block model according to an embodiment of the present disclosure;
FIG. 5 shows a block diagram of a rendering device according to an embodiment of the present disclosure;
FIG. 6 shows a block diagram of an electronic device according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a computer system suitable for use in implementing a method of building/rendering a block model according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, portions irrelevant to description of the exemplary embodiments are omitted in the drawings.
In this disclosure, it should be understood that terms such as "comprises" or "comprising," etc., are intended to indicate the presence of features, numbers, steps, acts, components, portions, or combinations thereof disclosed in this specification, and are not intended to exclude the possibility that one or more other features, numbers, steps, acts, components, portions, or combinations thereof are present or added.
In addition, it should be noted that, without conflict, the embodiments of the present disclosure and features of the embodiments may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
The user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of related data is required to comply with the relevant laws and regulations and standards of the relevant country and region, and is provided with corresponding operation entries for the user to select authorization or rejection.
According to the technical scheme provided by the embodiment of the disclosure, when the block model with the height difference with the road surface is constructed, scanning modeling is performed along the road contour line of the road related to the block to be modeled according to the preset cross-sectional shape, so that the block model is obtained, and in order to enable the block model to be consistent with the illumination direction of the block, the normal direction of part of the vertexes of the block cross section included in the block model is set to be the direction vertical to the horizontal plane. The block model constructed by the technical scheme can ensure that the visual electronic map rendered based on the block model can truly and aesthetically express the relationship between the road and the area higher than the road.
Fig. 1 shows a flowchart of a method for constructing a block model according to an embodiment of the present disclosure, as shown in fig. 1, the method for constructing a block model includes the following steps S101 to S103:
in step S101, extracting a road contour of a road related to a block to be modeled;
in step S102, scanning modeling is performed along the road contour line with a preset cross-sectional shape, so as to obtain a block model of the road contour line, where the block model includes a series of block cross sections with the cross-sectional shape;
in step S103, a normal direction of a target vertex of the block section, which does not include an intersection of the block section and the road contour line, is set to a direction perpendicular to a horizontal plane.
As mentioned above, as application software for providing services based on a visual electronic map is becoming more widespread and mature, users increasingly expect that the digital world expressed by the visual electronic map and the real world where the users are located tend to coincide. In the real world, taking a road as an example, some areas higher than the road surface of the road exist on two sides of the road, the inventor of the present disclosure finds that the visual electronic map is rendered based on map data, but the map data of the areas are not usually generated in the map data, so how to construct a data model of the areas, so as to ensure that the visual electronic map rendered based on the data model can truly and aesthetically express the relationship between the road and the areas higher than the road, which is a problem to be solved by those skilled in the art.
In view of the above-described drawbacks, in this embodiment, there is provided a construction method of a block model, which performs scan modeling along a road contour line of a block-related road to be modeled in a preset cross-sectional shape when constructing a block model having a height difference from a road surface, to obtain the block model, and sets a normal direction of a part of vertices of a block section included in the block model to be a direction perpendicular to a horizontal plane in order to make the block model coincide with an illumination direction of the block. The block model constructed by the technical scheme can ensure that the visual electronic map rendered based on the block model can truly and aesthetically express the relationship between the road and the area higher than the road.
In an embodiment of the present disclosure, the method for constructing a block model may be applied to a computer, a computing device, an electronic device, etc. for constructing a block model.
In an embodiment of the present disclosure, the block to be modeled refers to a block portion having a height difference from an adjacent road area, where the block is an area surrounded or divided by some artificial or natural geographic element, for example, in a city, the block is generally an area surrounded or divided by a road. In an embodiment of the present disclosure, considering that a block is generally large in area, for calculation convenience, partial block modeling may be performed based on a junction between the block and a road area adjacent thereto, that is, in this embodiment, the block to be modeled refers to a block portion where a level difference exists with the adjacent road area, which is joined with the adjacent road area, for example, a peripheral area of a certain road in a direction where a level difference exists therewith.
In an embodiment of the disclosure, the road related to the block to be built refers to a road adjacent to the block to be built and having a height difference from the block to be built.
In one embodiment of the present disclosure, the road contour refers to an outer boundary line of the road, which is a boundary line between the road and another geographic element.
In an embodiment of the present disclosure, the cross-sectional shape refers to a preset shape for modeling the block model. The cross-sectional shape may be, for example, a right triangle, as shown in fig. 2A; rectangular, as shown in fig. 2B; right trapezoid, as shown in fig. 2C; or other graphics having at least one right angle. Whichever cross-sectional shape is, the corresponding cross-sectional shape may be expressed using coordinate points, such as right triangles, may be represented by three vertex coordinates of the triangle, the rectangle may be represented by four vertex coordinates, and so on, during modeling.
In modeling along a road contour line using the shape represented by the vertex coordinates, it is necessary to designate an anchor point in the vertices, and taking the right triangle as an example of a cross-sectional shape shown in fig. 2A, if the right vertex is designated as the anchor point, scan modeling is performed to obtain that the right vertex of the block cross-section coincides with the road contour line.
In one embodiment of the present disclosure, the scan modeling refers to a technique for implementing model building by means of a scan operation, which belongs to the prior art, and the present disclosure does not specifically describe the technique. In this embodiment, a block model corresponding to the road contour line and including a series of block sections having the cross-sectional shape is obtained by performing scan modeling along the road contour line with a predetermined cross-sectional shape.
In the above embodiment, first, the road contour of the road related to the block to be modeled is extracted; then acquiring a preset cross-sectional shape, and performing scanning modeling along the road contour line based on the preset cross-sectional shape to obtain a block model corresponding to the road contour line, wherein the block model comprises a series of block cross sections with the cross-sectional shape; in order to make the illumination directions of the block model and the block consistent, the situation that chromatic aberration exists between the block model and the block is avoided, shadows of joint parts of the block model and the block are eliminated, the normal direction of a target vertex of a block section is set to be perpendicular to the horizontal plane, wherein the target vertex does not comprise an intersection point (namely the anchor point) of the block section and the road contour line, and when the block section adopts a right triangle section shape, the intersection point of the block section and the road contour line refers to a right angle vertex of the right triangle, namely, a vertex except for the right angle vertex of the right angle triangle, and the normal direction of the vertex is set to be perpendicular to the horizontal plane. Therefore, the block model constructed according to the technical scheme can ensure that the visual electronic map rendered based on the block model can truly and aesthetically express the relationship between the road and the area higher than the road.
In one embodiment of the present disclosure, the road contour includes a series of shape points. Specifically, in this embodiment, when scan modeling is performed along the road contour with a preset cross-sectional shape, scan modeling may be performed along a series of shape points included in the road contour based on the preset cross-sectional shape. The block model corresponding to the road contour thus obtained includes a series of block sections of the cross-sectional shape corresponding to a series of points included in the road contour, that is, each block section of the block model corresponds to a point of the road contour, and the block sections are perpendicular to the tangential direction of the corresponding point on the road.
The number of the shape points included in the road contour line can be set according to the actual application requirement, but the disclosure does not limit the number of the shape points and the setting of the positions of the shape points need to embody the trend of the road contour line, for example, shape points need to be set in different shape parts such as a straight line part and a curve part of the road contour line, and in order to improve the accuracy of representing the shape points on the road contour line, the density of the shape points of the curve part of the road contour line is greater than that of the straight line part of the road contour line.
Fig. 3 shows a flowchart of a rendering method according to an embodiment of the present disclosure, which includes the following steps S301 to S302, as shown in fig. 3:
in step S301, block rendering data is acquired;
in step S302, a three-dimensional block is rendered by using the block rendering data based on a block model and a road contour line associated with the block model, wherein the block model is obtained by performing scan modeling along the road contour line in a preset cross-sectional shape, the block model includes a series of block sections having the cross-sectional shape, a normal direction of a target vertex of the block section is a direction perpendicular to a horizontal plane, and the target vertex does not include an intersection point of the block section and the road contour line.
As mentioned above, as application software for providing services based on a visual electronic map is becoming more widespread and mature, users increasingly expect that the digital world expressed by the visual electronic map and the real world where the users are located tend to coincide. In the real world, taking a road as an example, some areas higher than the road surface of the road exist on two sides of the road, the inventor of the present disclosure finds that the visual electronic map is rendered based on map data, but the map data of the areas are not usually generated, so how to render the areas so as to ensure that the visual electronic map obtained by rendering can truly and aesthetically express the relationship between the road and the areas higher than the road is a problem to be solved by those skilled in the art.
In view of the above-described drawbacks, in this embodiment, there is provided a rendering method using a block model obtained by scan modeling along a road contour line of a road to which a block is to be modeled, and a road contour line associated with the block model, the normal direction of a part of vertices of a block cross section included in the block model being set to be perpendicular to a horizontal plane in order to make the block model coincide with the illumination direction of the block. According to the rendering method of the technical scheme, the relationship between the road and the area higher than the road can be expressed truly and beautifully by the visual electronic map obtained through rendering.
In an embodiment of the present disclosure, the rendering method may be applied to a computer, a computing device, an electronic device, etc. that performs electronic map rendering.
In one embodiment of the present disclosure, the block model refers to a model obtained by modeling a block portion that is connected to a road area and has a level difference from an adjacent road area. In this embodiment, in order to ensure that the rendering effect of the part of the block corresponding to the block model is consistent with that of the other part of the block, the rendering data for rendering the block model may use the rendering data of the block corresponding to the other part of the block.
In an embodiment of the present disclosure, the road contour associated with the block model refers to a road contour on which the block model is built.
In the above embodiment, first, block rendering data is acquired; and then, based on the block model established above and the road contour line associated with the block model, rendering the block model and the corresponding block by using the block rendering data, thereby obtaining the three-dimensional block.
The above-mentioned block model is obtained by performing scan modeling along the road contour line with a preset cross-sectional shape, the block model includes a series of block sections with shapes that are the cross-sectional shapes, the normal direction of the target vertex of the block section is a direction perpendicular to the horizontal plane, and the target vertex does not include an intersection point of the block section and the road contour line.
In one embodiment of the present disclosure, the road contour includes a series of shape points, and the block section corresponds to one shape point, and is perpendicular to a tangential direction of the corresponding shape point.
The technical terms and technical features related to the embodiment shown in fig. 3 and related to the embodiment shown in fig. 1-2 are the same as or similar to those mentioned in the embodiment shown in fig. 1-2, and the explanation and explanation of the technical terms and technical features related to the embodiment shown in fig. 3 and related to the embodiment will be referred to the explanation of the explanation shown in fig. 1-2 and related to the embodiment, and will not be repeated here.
The construction and rendering method of the block model are explained and described below with a specific example. For the roads adjacent to the block to be modeled and having a height difference as shown in fig. 2D, the road contour line is extracted first, as shown in fig. 2E; setting a plurality of shape points on the road contour line, selecting a right triangle shown in fig. 2A as the cross-sectional shape of the block model, overlapping the right vertex of the right triangle with the shape point of the road contour line, and carrying out scanning modeling along the road contour line to obtain the block model which corresponds to the road contour line and comprises a series of block cross sections with the right triangle shape, as shown in fig. 2F; then, setting the normal direction of the block section of the block model excluding the vertex of the intersection of the block section and the road contour line to be perpendicular to the horizontal plane, for example, if the normal direction of the vertex of the block section of the block model excluding the intersection of the block section and the road contour line is as shown in fig. 2G, and the normal direction of the block plane is as shown in fig. 2H, when the same incident angle is required, the reflection direction of the block section on the upper surface of the block model with respect to the incident light is as shown in fig. 2I, and the reflection direction of the block plane on the incident light is as shown in fig. 2J, and when the normal directions of the two planes are different, the reflection light directions are also different for the incident light with the same incident angle, so that the reflection effects of the two planes on the light are different, and then shadows of different degrees are generated at the junction of the two planes, as shown in the area indicated by the arrows in fig. 2K, so that the reflection effects of the block section of the block model with respect to the intersection of the block section excluding the contour line are as shown in fig. 2J, and the reflection effects of the two planes on the road are as shown in the vertical plane are set up, and the reflection directions of the two planes are as shown in the same plane, and the plane is as shown in the road plane graph is the plane; finally, based on the block model and the road contour line associated with the block model, the block model and the corresponding blocks can be rendered by using block rendering data, so that a three-dimensional block can be obtained, as shown in fig. 2N, and the rendering effect of sinking or lifting a road can be realized when a certain section of real road has a height difference from a block adjacent to the certain section of real road, so that the relationship between map elements such as the road and the block can be truly expressed.
The following are device embodiments of the present disclosure that may be used to perform method embodiments of the present disclosure.
Fig. 4 shows a block diagram of a construction apparatus of a block model, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both, according to an embodiment of the present disclosure. As shown in fig. 4, the construction device of the block model includes:
an extraction module 401 configured to extract a road contour of a road related to a block to be modeled;
a modeling module 402 configured to scan and model along the road contour with a preset cross-sectional shape, to obtain a block model of the road contour, where the block model includes a series of block sections with the cross-sectional shape;
a setting module 403 configured to set a normal direction of a target vertex of the block section, which does not include an intersection of the block section and the road contour, to a direction perpendicular to a horizontal plane.
As mentioned above, as application software for providing services based on a visual electronic map is becoming more widespread and mature, users increasingly expect that the digital world expressed by the visual electronic map and the real world where the users are located tend to coincide. In the real world, taking a road as an example, some areas higher than the road surface of the road exist on two sides of the road, the inventor of the present disclosure finds that the visual electronic map is rendered based on map data, but the map data of the areas are not usually generated in the map data, so how to construct a data model of the areas, so as to ensure that the visual electronic map rendered based on the data model can truly and aesthetically express the relationship between the road and the areas higher than the road, which is a problem to be solved by those skilled in the art.
In view of the above-described drawbacks, in this embodiment, there is provided a construction apparatus of a block model, which performs scan modeling along a road contour line of a block-related road to be modeled in a preset cross-sectional shape when constructing a block model having a height difference from a road surface, to obtain the block model, and sets a normal direction of a part of vertices of a block section included in the block model to be a direction perpendicular to a horizontal plane in order to make the block model coincide with an illumination direction of the block. The block model constructed by the technical scheme can ensure that the visual electronic map rendered based on the block model can truly and aesthetically express the relationship between the road and the area higher than the road.
In an embodiment of the present disclosure, the apparatus for constructing a block model may be implemented as a computer, a computing device, an electronic device, or the like that performs the construction of the block model.
In an embodiment of the present disclosure, the block to be modeled refers to a block portion having a height difference from an adjacent road area, where the block is an area surrounded or divided by some artificial or natural geographic element, for example, in a city, the block is generally an area surrounded or divided by a road. In an embodiment of the present disclosure, considering that a block is generally large in area, for calculation convenience, partial block modeling may be performed based on a junction between the block and a road area adjacent thereto, that is, in this embodiment, the block to be modeled refers to a block portion where a level difference exists with the adjacent road area, which is joined with the adjacent road area, for example, a peripheral area of a certain road in a direction where a level difference exists therewith.
In an embodiment of the disclosure, the road related to the block to be built refers to a road adjacent to the block to be built and having a height difference from the block to be built.
In one embodiment of the present disclosure, the road contour refers to an outer boundary line of the road, which is a boundary line between the road and another geographic element.
In an embodiment of the present disclosure, the cross-sectional shape refers to a preset shape for modeling the block model. The cross-sectional shape may be, for example, a right triangle, as shown in fig. 2A; rectangular, as shown in fig. 2B; right trapezoid, as shown in fig. 2C; or other graphics having at least one right angle. Whichever cross-sectional shape is, the corresponding cross-sectional shape may be expressed using coordinate points, such as right triangles, may be represented by three vertex coordinates of the triangle, the rectangle may be represented by four vertex coordinates, and so on, during modeling.
In modeling along a road contour line using the shape represented by the vertex coordinates, it is necessary to designate an anchor point in the vertices, and taking the right triangle as an example of a cross-sectional shape shown in fig. 2A, if the right vertex is designated as the anchor point, scan modeling is performed to obtain that the right vertex of the block cross-section coincides with the road contour line.
In one embodiment of the present disclosure, the scan modeling refers to a technique for implementing model building by means of a scan operation, which belongs to the prior art, and the present disclosure does not specifically describe the technique. In this embodiment, a block model corresponding to the road contour line and including a series of block sections having the cross-sectional shape is obtained by performing scan modeling along the road contour line with a predetermined cross-sectional shape.
In the above embodiment, first, the road contour of the road related to the block to be modeled is extracted; then acquiring a preset cross-sectional shape, and performing scanning modeling along the road contour line based on the preset cross-sectional shape to obtain a block model corresponding to the road contour line, wherein the block model comprises a series of block cross sections with the cross-sectional shape; in order to make the illumination directions of the block model and the block consistent, the situation that chromatic aberration exists between the block model and the block is avoided, shadows of joint parts of the block model and the block are eliminated, the normal direction of a target vertex of a block section is set to be perpendicular to the horizontal plane, wherein the target vertex does not comprise an intersection point (namely the anchor point) of the block section and the road contour line, and when the block section adopts a right triangle section shape, the intersection point of the block section and the road contour line refers to a right angle vertex of the right triangle, namely, a vertex except for the right angle vertex of the right angle triangle, and the normal direction of the vertex is set to be perpendicular to the horizontal plane. Therefore, the block model constructed according to the technical scheme can ensure that the visual electronic map rendered based on the block model can truly and aesthetically express the relationship between the road and the area higher than the road.
In one embodiment of the present disclosure, the road contour includes a series of shape points. Specifically, in this embodiment, when scan modeling is performed along the road contour with a preset cross-sectional shape, scan modeling may be performed along a series of shape points included in the road contour based on the preset cross-sectional shape. The block model corresponding to the road contour thus obtained includes a series of block sections of the cross-sectional shape corresponding to a series of points included in the road contour, that is, each block section of the block model corresponds to a point of the road contour, and the block sections are perpendicular to the tangential direction of the corresponding point on the road.
The number of the shape points included in the road contour line can be set according to the actual application requirement, but the disclosure does not limit the number of the shape points and the setting of the positions of the shape points need to embody the trend of the road contour line, for example, shape points need to be set in different shape parts such as a straight line part and a curve part of the road contour line, and in order to improve the accuracy of representing the shape points on the road contour line, the density of the shape points of the curve part of the road contour line is greater than that of the straight line part of the road contour line.
Fig. 5 shows a block diagram of a rendering apparatus according to an embodiment of the present disclosure, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in fig. 5, the rendering apparatus includes:
an acquisition module 501 configured to acquire neighborhood rendering data;
the rendering module 502 is configured to render a three-dimensional block by using the block rendering data based on a block model and a road contour line associated with the block model, wherein the block model is obtained by performing scan modeling along the road contour line in a preset cross-sectional shape, the block model includes a series of block sections with the cross-sectional shape, a normal direction of a target vertex of the block section is a direction perpendicular to a horizontal plane, and the target vertex does not include an intersection point of the block section and the road contour line.
As mentioned above, as application software for providing services based on a visual electronic map is becoming more widespread and mature, users increasingly expect that the digital world expressed by the visual electronic map and the real world where the users are located tend to coincide. In the real world, taking a road as an example, some areas higher than the road surface of the road exist on two sides of the road, the inventor of the present disclosure finds that the visual electronic map is rendered based on map data, but the map data of the areas are not usually generated, so how to render the areas so as to ensure that the visual electronic map obtained by rendering can truly and aesthetically express the relationship between the road and the areas higher than the road is a problem to be solved by those skilled in the art.
In view of the above-described drawbacks, in this embodiment, there is provided a rendering apparatus that performs rendering using a block model obtained by scan modeling along a road contour line of a road to which a block is to be modeled, and a road contour line associated with the block model, in order to make the block model coincide with an illumination direction of a block, a normal direction of a partial vertex of a block cross section included in the block model is also set to be a direction perpendicular to a horizontal plane. According to the rendering method of the technical scheme, the relationship between the road and the area higher than the road can be expressed truly and beautifully by the visual electronic map obtained through rendering.
In an embodiment of the disclosure, the rendering apparatus may be implemented as a computer, a computing device, an electronic device, or the like that performs electronic map rendering.
In one embodiment of the present disclosure, the block model refers to a model obtained by modeling a block portion that is connected to a road area and has a level difference from an adjacent road area. In this embodiment, in order to ensure that the rendering effect of the part of the block corresponding to the block model is consistent with that of the other part of the block, the rendering data for rendering the block model may use the rendering data of the block corresponding to the other part of the block.
In an embodiment of the present disclosure, the road contour associated with the block model refers to a road contour on which the block model is built.
In the above embodiment, first, block rendering data is acquired; and then, based on the block model established above and the road contour line associated with the block model, rendering the block model and the corresponding block by using the block rendering data, thereby obtaining the three-dimensional block.
The above-mentioned block model is obtained by performing scan modeling along the road contour line with a preset cross-sectional shape, the block model includes a series of block sections with shapes that are the cross-sectional shapes, the normal direction of the target vertex of the block section is a direction perpendicular to the horizontal plane, and the target vertex does not include an intersection point of the block section and the road contour line.
In one embodiment of the present disclosure, the road contour includes a series of shape points, and the block section corresponds to one shape point, and is perpendicular to a tangential direction of the corresponding shape point.
The technical terms and features of the embodiment shown in fig. 5 and related thereto are the same as or similar to those mentioned in the embodiment shown in fig. 4 and related thereto, and the explanation and description of the technical terms and features of the embodiment shown in fig. 5 and related thereto will be referred to the above explanation of the embodiment shown in fig. 4 and related thereto, and will not be repeated here.
The present disclosure also discloses an electronic device, fig. 6 shows a block diagram of the electronic device according to an embodiment of the present disclosure, and as shown in fig. 6, the electronic device 600 includes a memory 601 and a processor 602; wherein,
the memory 601 is used to store one or more computer instructions that are executed by the processor 602 to implement the method steps described above.
Fig. 7 is a schematic diagram of a computer system suitable for use in implementing a method of building/rendering a block model according to an embodiment of the present disclosure.
As shown in fig. 7, the computer system 700 includes a processing unit 701 that can execute various processes in the above-described embodiments in accordance with a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data required for the operation of the computer system 700 are also stored. The processing unit 701, the ROM702, and the RAM703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, and the like; an output portion 707 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 708 including a hard disk or the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. The drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read therefrom is mounted into the storage section 708 as necessary. The processing unit 701 may be implemented as a processing unit such as CPU, GPU, TPU, FPGA, NPU.
In particular, according to embodiments of the present disclosure, the methods described above may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a medium readable thereby, the computer program comprising program code for performing the method. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 709, and/or installed from the removable medium 711.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present disclosure may be implemented by software, or may be implemented by hardware. The units or modules described may also be provided in a processor, the names of which in some cases do not constitute a limitation of the unit or module itself.
As another aspect, the present disclosure also provides a computer-readable storage medium, which may be a computer-readable storage medium included in the apparatus described in the above embodiment; or may be a computer-readable storage medium, alone, that is not assembled into a device. The computer-readable storage medium stores one or more programs for use by one or more processors in performing the methods described in the present disclosure.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the application referred to in this disclosure is not limited to the specific combination of features described above, but encompasses other embodiments in which any combination of features described above or their equivalents is contemplated without departing from the inventive concepts described. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).

Claims (10)

1. A method of building a block model, the method comprising:
extracting a road contour line of a road related to a block to be modeled;
scanning and modeling along the road contour line with a preset cross-sectional shape to obtain a block model of the road contour line, wherein the block model comprises a series of block cross sections with the cross-sectional shape;
setting a normal direction of a target vertex of the block section, which does not include an intersection of the block section and the road contour, to a direction perpendicular to a horizontal plane.
2. The method of claim 1, wherein the road contour comprises a series of shape points, the one block section corresponding to one shape point, the block section being perpendicular to a tangential direction of the corresponding shape point.
3. The method of claim 2, wherein the density of the road contour curve portion forming points is greater than the density of the road contour straight portion forming points.
4. A method of rendering, the method comprising:
obtaining block rendering data;
and rendering a three-dimensional block by using the block rendering data based on a block model and a road contour line associated with the block model, wherein the block model is obtained by scanning modeling along the road contour line in a preset cross-sectional shape, the block model comprises a series of block sections with the cross-sectional shape, the normal direction of a target vertex of the block section is a direction vertical to a horizontal plane, and the target vertex does not comprise an intersection point of the block section and the road contour line.
5. The method of claim 4, wherein the road contour comprises a series of shape points, the one block section corresponding to one shape point, the block section being perpendicular to a tangential direction of the corresponding shape point.
6. A device for building a block model, the device comprising:
the extraction module is configured to extract a road contour line of a road related to a block to be modeled;
the modeling module is configured to scan and model along the road contour line in a preset cross-sectional shape to obtain a block model of the road contour line, wherein the block model comprises a series of block cross sections with the cross-sectional shape;
and a setting module configured to set a normal direction of a target vertex of the block section, which does not include an intersection of the block section and the road contour, to a direction perpendicular to a horizontal plane.
7. A rendering device, the device comprising:
the acquisition module is configured to acquire block rendering data;
the rendering module is configured to render a three-dimensional block by using the block rendering data based on a block model and a road contour line associated with the block model, wherein the block model is obtained by scanning modeling along the road contour line in a preset cross-sectional shape, the block model comprises a series of block sections with the cross-sectional shape, the normal direction of a target vertex of the block section is a direction vertical to a horizontal plane, and the target vertex does not comprise an intersection point of the block section and the road contour line.
8. An electronic device comprising a memory and at least one processor; wherein the memory is for storing one or more computer instructions, wherein the one or more computer instructions are executable by the at least one processor to implement the method of any of claims 1-5.
9. A computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the method steps of any of claims 1-5.
10. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the method of any of claims 1-5.
CN202311008467.6A 2023-08-10 2023-08-10 Method, device, equipment, storage medium and program product for constructing block model Pending CN117132719A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311008467.6A CN117132719A (en) 2023-08-10 2023-08-10 Method, device, equipment, storage medium and program product for constructing block model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311008467.6A CN117132719A (en) 2023-08-10 2023-08-10 Method, device, equipment, storage medium and program product for constructing block model

Publications (1)

Publication Number Publication Date
CN117132719A true CN117132719A (en) 2023-11-28

Family

ID=88859208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311008467.6A Pending CN117132719A (en) 2023-08-10 2023-08-10 Method, device, equipment, storage medium and program product for constructing block model

Country Status (1)

Country Link
CN (1) CN117132719A (en)

Similar Documents

Publication Publication Date Title
CN111008422B (en) Building live-action map making method and system
US9189862B2 (en) Outline approximation for point cloud of building
Heo et al. Productive high-complexity 3D city modeling with point clouds collected from terrestrial LiDAR
CN109285177B (en) Digital city skyline extraction method
KR101465479B1 (en) Bim data processing system for displaying data of building based on bim
KR101465487B1 (en) Bim data processing system for extracting surface object of building
US20230074265A1 (en) Virtual scenario generation method and apparatus, computer device and storage medium
JP2009545032A (en) Geospatial modeling system and associated method providing building roof type identification function
CN112102489B (en) Navigation interface display method and device, computing equipment and storage medium
CN115641415B (en) Method, device, equipment and medium for generating three-dimensional scene based on satellite image
CN115861527A (en) Method and device for constructing live-action three-dimensional model, electronic equipment and storage medium
CN111915726A (en) Construction method of three-dimensional scene of overhead transmission line
CN113724279A (en) System, method, equipment and storage medium for automatically dividing traffic cells into road networks
KR20070099298A (en) Method and apparatus for three-dimensional form generation for mobile navigation
KR101079475B1 (en) A system for generating 3-dimensional urban spatial information using point cloud filtering
CN113963113A (en) Three-dimensional visualization method for urban building
CN115841558B (en) Urban road modeling method, device, electronic equipment and storage medium
CN117132719A (en) Method, device, equipment, storage medium and program product for constructing block model
CN114092663B (en) Three-dimensional reconstruction method, device, equipment and medium for urban information model building
CN113989680B (en) Automatic building three-dimensional scene construction method and system
CN114238528A (en) Map loading method and device, electronic equipment and storage medium
CN114490907A (en) Method and device for constructing famous city management database and storage medium
Habib et al. Integration of lidar and airborne imagery for realistic visualization of 3d urban environments
WO2020133517A1 (en) System and method for rendering object
CN113112603B (en) Method and device for optimizing three-dimensional model

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