CN117708916A - Image rendering method and device, electronic equipment and storage medium - Google Patents

Image rendering method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117708916A
CN117708916A CN202311757433.7A CN202311757433A CN117708916A CN 117708916 A CN117708916 A CN 117708916A CN 202311757433 A CN202311757433 A CN 202311757433A CN 117708916 A CN117708916 A CN 117708916A
Authority
CN
China
Prior art keywords
room
building model
parallax map
map data
rendering
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
CN202311757433.7A
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.)
Hangzhou Qunhe Information Technology Co Ltd
Original Assignee
Hangzhou Qunhe Information 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 Hangzhou Qunhe Information Technology Co Ltd filed Critical Hangzhou Qunhe Information Technology Co Ltd
Priority to CN202311757433.7A priority Critical patent/CN117708916A/en
Publication of CN117708916A publication Critical patent/CN117708916A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The disclosure provides an image rendering method, an image rendering device, electronic equipment and a storage medium. The present disclosure relates to the field of artificial intelligence, and in particular, to the fields of image processing, computer vision, virtual reality, and the like. The specific scheme is as follows: in response to detecting that the indoor simulation function is started, configuring parallax map data for the building model, wherein the parallax map data is used for enabling a target room of the building model to be provided with home furnishing; and in response to the detection of the rendering request, rendering is performed based on the scheme information of the building model and the parallax map data, and a building effect map of the building model is obtained. According to the scheme, when the building effect map is rendered through modeling software, indoor design and furniture placement are not needed, and the indoor building effect map can be obtained by adopting the parallax mapping technology, so that the effect and efficiency of generating the building effect map are improved.

Description

Image rendering method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of artificial intelligence, and in particular, to the fields of image processing, computer vision, virtual reality, and the like.
Background
In the prior art, when modeling software such as a model bag cloud is used for rendering a building effect graph, the rendering effect is not perfect due to the lack of elements such as indoor furniture and decoration. If a user adds indoor furniture to the building model, and places the furniture or simply designs the interior decoration, the operation is complex and the time consumption is long. Finally, the indoor home decoration effect cannot be expected. Therefore, how to efficiently generate an attractive building effect map is a technical problem to be solved.
Disclosure of Invention
The disclosure provides an image rendering method, an image rendering device, electronic equipment and a storage medium.
According to a first aspect of the present disclosure, there is provided an image rendering method including:
in response to detecting that the indoor simulation function is started, configuring parallax map data for the building model, wherein the parallax map data is used for enabling a target room of the building model to be provided with home furnishing;
and in response to the detection of the rendering request, rendering is performed based on the scheme information of the building model and the parallax map data, so that the building effect of the building model is obtained.
According to a second aspect of the present disclosure, there is provided an image rendering apparatus including:
the configuration module is used for responding to the detection of starting the indoor simulation function, configuring parallax map data for the building model, wherein the parallax map data are used for enabling a target room of the building model to be provided with home furnishing;
and the rendering module is used for responding to the detection of the rendering request, and rendering based on the scheme information of the building model and the parallax map data to obtain a building effect map of the building model.
According to a third aspect of the present disclosure, there is provided an electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the embodiments of the present disclosure.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform a method according to any one of the embodiments of the present disclosure.
According to a fifth aspect of the present disclosure, there is provided a computer program product comprising a computer program stored on a storage medium, which, when executed by a processor, implements a method according to any of the embodiments of the present disclosure.
According to the technical scheme, when the building effect map is rendered through modeling software, indoor design and furniture placement are not needed, and the indoor building effect map can be obtained by adopting the parallax mapping technology, so that the effect and efficiency of the generated building effect map are improved.
The foregoing summary is for the purpose of the specification only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features of the present application will become apparent by reference to the drawings and the following detailed description.
Drawings
In the drawings, the same reference numerals refer to the same or similar parts or elements throughout the several views unless otherwise specified. The figures are not necessarily drawn to scale. It is appreciated that these drawings depict only some embodiments according to the disclosure and are not therefore to be considered limiting of its scope.
FIG. 1 is a flow diagram of an image rendering method according to an embodiment of the present disclosure;
FIG. 2 is a schematic frame diagram of an image rendering method according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a top-level design and an external design of image rendering according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a plug-in interaction architecture according to an embodiment of the present disclosure;
FIG. 5 is a flow diagram of a plug-in lifecycle according to an embodiment of the present disclosure;
FIG. 6 is a second flow chart of an image rendering method according to an embodiment of the disclosure;
FIG. 7 is a schematic application flow diagram of a rendering tool according to an embodiment of the present disclosure;
FIG. 8 is a flow diagram of EXR rendering according to an embodiment of the present disclosure;
FIG. 9 is an EXR disparity map schematic according to an embodiment of the present disclosure;
FIG. 10 is a building effect diagram of a pre-render building model according to an embodiment of the present disclosure;
FIG. 11 is a building effect diagram of a rendered building model according to an embodiment of the disclosure;
fig. 12 is a schematic structural view of an image rendering apparatus 1200 according to an embodiment of the present disclosure;
FIG. 13 is a schematic view of a scene of an image rendering method according to an embodiment of the disclosure;
fig. 14 is a block diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The present disclosure will be described in further detail below with reference to the accompanying drawings. In the drawings, like reference numbers indicate identical or functionally similar elements. Although various aspects of the embodiments are illustrated in the accompanying drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
In addition, numerous specific details are set forth in the following detailed description in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements, circuits, etc. well known to those skilled in the art have not been described in detail in order not to obscure the present disclosure.
The term "and/or" herein means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist together, and B exists alone. The term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, e.g., including at least one of A, B, C, may mean including any one or more elements selected from the group consisting of A, B and C. The terms "first" and "second" herein mean a plurality of similar technical terms and distinguishes them, and does not limit the meaning of the order, or only two, for example, a first feature and a second feature, which means that there are two types/classes of features, the first feature may be one or more, and the second feature may be one or more.
Before the technical scheme of the embodiments of the present disclosure is described, technical terms possibly used in the present disclosure are further described:
(1) Open extended high dynamic range image (OpenEXR, EXR): is a data image file format of high dynamic range image (HighDynamic Range Image, HDRI) standard, commonly used for rendering Virtual Reality (VR) scenes or 3D models in various Three-dimensional (3D) content production software, allowing presentation correction in fixed steps, and one EXR file may contain multiple channels or related images.
(2) Disparity Map (Parallax Map): is one of the technologies for representing surface relief, and the principle is to disguise a true high-modulus by using a height map to shift the UV map (UV Mapping).
In the related art, when modeling software such as a model bag cloud is used for rendering a building effect graph, the rendering effect is not perfect due to the lack of elements such as indoor furniture and decoration. If a user adds indoor furniture to the building model, and places the furniture or simply designs the interior decoration, the operation is complex and the time consumption is long. Finally, the indoor home decoration effect cannot be expected.
In order to at least partially solve one or more of the above problems and other potential problems, the disclosure proposes a graphics rendering method, which renders through modeling software, and can obtain a building effect graph including indoor without indoor design and furniture placement by adopting a parallax mapping technology, so that not only can the generation effect of the building effect graph be improved, but also the generation efficiency of the building effect graph can be improved.
An embodiment of the present disclosure provides an image rendering method, and fig. 1 is a flowchart illustrating an image rendering method according to an embodiment of the present disclosure, which may be applied to an image rendering apparatus. The image rendering device is located in the electronic equipment. The electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a desktop computer, and the like. In some possible implementations, the image rendering method may also be implemented by way of a processor invoking computer readable instructions stored in a memory. As shown in fig. 1, the image rendering method includes:
s101: in response to detecting the opening of the indoor simulation function, configuring parallax map data for the building model, the parallax map data being used to set a target room of the building model to be provided with a home furnishing;
S102: and in response to the detection of the rendering request, rendering is performed based on the scheme information of the building model and the parallax map data, and a building effect map of the building model is obtained.
In the embodiment of the disclosure, the indoor simulation function may refer to indoor design simulation of a building 3D model constructed by electronic equipment. The indoor simulation function may include: the indoor illumination, indoor color, indoor furniture placement position, indoor decoration, indoor functions and the like are simulated.
In the disclosed embodiment, the three-dimensional model is a polygonal representation of an object, typically displayed with a computer or other video device. The displayed object may be a real world entity or an imaginary object. Anything that exists in physical nature can be represented by a three-dimensional model. Three-dimensional models, also known as three-dimensional stereomodels, are those that can be built using three-dimensional software.
In an embodiment of the disclosure, the building model is a model of a building drawn using building software. The building model may be a three-dimensional model of a three-layer cottage, for example; the building model may also be a twenty-story office building; the building model may also be a quadrangle. The above is merely exemplary and is not intended to limit all possible types of architectural models that may be included, but is not intended to be exhaustive.
In the embodiment of the disclosure, the disparity map data may refer to EXR information. Specifically, the EXR information may include high dynamic range image data, color information, luminance information, and the like. The above is merely exemplary and is not intended to limit the total possible content included in the disparity map data, but is not intended to be exhaustive.
In an embodiment of the present disclosure, the target room is a visual room in a building model. The target room may be a three-story villa windowed room, or a twenty-story office building windowed room, or a quadrangle windowed room, for example.
In an embodiment of the present disclosure, the home furnishing may include: furniture, lamps, curtains, carpets, bedding, decorative artware, flowers, paintings, hanging objects and other articles are placed and matched. Household items need to be selected and arranged according to the size, shape, use and personal preference of the room to create a comfortable, attractive and practical living environment.
In embodiments of the present disclosure, the rendering request may include information of rendering objects, rendering parameters, rendering scenes, and the like. The rendering request refers to a request sent to a graphics rendering engine at an electronic device of a user terminal to perform a rendering operation. Rendering operations may include computing illumination, texture mapping, perspective transformation, and the like. The rendering request may be a command from an application or an interaction event from a user interface.
In the embodiment of the disclosure, the solution information may include a location of the building model, a scene of the building model, an area of the building model, a number of floors of the building model, a floor height of the building model, a number of rooms of the building model, types of rooms of the building model, and areas of the respective rooms of the building model. The foregoing is merely exemplary and is not intended to limit the overall possible content of the information included in the embodiments, but is not intended to be exhaustive.
In embodiments of the present disclosure, the architectural effect map may be used to present images of architectural appearance, indoor layout, and indoor decorative effects. Illustratively, if the building model is a two-storey villa, the first storey of the villa is provided with 2 windows, and the second storey is provided with 3 windows, then the building effect diagram displayed can be as follows: the corresponding room of the first layer 1-1 window of the two-layer villa is a kitchen, and cooking equipment, a refrigerator, a pool, tableware and the like are displayed in the kitchen; the room corresponding to the first layer 1-2 window is a laundry room, and a washing machine, a dryer and a clothes hanger are displayed in the laundry room; the room corresponding to the window of the second layer 2-1 of the two-layer villa is a bedroom 1, and the bedroom 1 is displayed with a Nordic simple wind bed, a Nordic simple wind bedside cabinet and a Nordic simple wind wardrobe; the room corresponding to the second layer 2-2 window is a bedroom 2, and the bedroom 2 is provided with a dream wind princess bed, a dream wind dressing table and a dream wind wardrobe; the room corresponding to the second layer 2-3 window is a bathroom, and the bathroom is provided with shower facilities, bathtubs, toilets and mirrors. Here, when the camera is at any angle, the indoor layout and the indoor decoration effect of the building can be seen; and when the cameras are at different angles, the building effect graph shows images of indoor layout and indoor decoration effects at different angles. For example, if the building model is a two-storey villa, the room corresponding to the second storey 2-1 window of the villa is a bedroom 1, and the bedroom 1 is displayed with a northern Europe simple wind bed, a northern Europe simple wind bedside cabinet and a northern Europe simple wind wardrobe; when the camera is at a front view angle, the 2-1 window building effect diagram of the villa is a room of a displayed northern Europe simple wind bed, a northern Europe simple wind bedside cabinet and a northern Europe simple wind wardrobe; when the camera is in a overlook angle, the 2-1 window building effect diagram of the villa is a northern Europe simple wind bed and a northern Europe simple wind bedside cabinet room. Here, when the camera angle is at the front view angle, the northern Europe simple wind wardrobe can be seen, and when the camera angle is at the top view angle, the northern Europe simple wind wardrobe is blocked by the wall body, so that a more real top view effect is presented.
Fig. 2 shows a schematic frame diagram of an image rendering method, and as shown in fig. 2, the image rendering interface of the electronic device may include rendering a left panel, rendering a canvas, rendering a cloud, and rendering an album. Specifically, the indoor effect function is started on the rendering left side panel, a default indoor template is selected, whether the indoor template is replaced or not is judged, if the indoor template is replaced, window glass of a 3D view room of a rendering canvas is replaced with the selected template effect, a single window is selected to replace the indoor effect, rendering is initiated after a viewing angle is selected, cloud rendering calculates and outputs a building effect diagram based on scheme data, camera data and EXR information, and a rendering album receives a rendering result, namely the building effect diagram.
FIG. 3 shows a schematic diagram of the top-level design and the external design of the image rendering, as shown in FIG. 3, with the modular bag cloud back-end connected to a building application in response to the rendering front-end micro-application, the building application connected to an EXR-Kinect audio file plug-in (EXR KinectAudio File, EXR-KAF), and the modular bag cloud back-end using the EXR-KAF plug-in. The back end of the mold bag cloud is connected with an EXR-KAF plug-in, a rendering middle stage, a rendering front end micro-application and EXR management. Specifically, the building application is responsible for loading the EXR plug-in. EXR-KAF plug-in belongs to EXR front end business KAF plug-in, provides EXR related scheme data management (namely data serialization and deserialization operation), expands based on Application (App), loads and displays EXR mapping, and realizes interaction of hover (hold), selection (pick), request (apply) and the like. Rendering front-end micro-applications, responsible for integrally encapsulating rendering function modules, provide a graphical user interface (Graphical User Interface, GUI) in this need to manage EXR related parameters. And the EXR mapping management platform provides the functions of uploading EXR mapping materials, managing the on-off state, binding business information (room type and style), updating, deleting and the like. And the back end of the rendering middle stage is responsible for storing EXR mapping materials and rendering schemes with EXR data. The module bag cloud back end is responsible for providing an EXR query use interface facing the service front end, storing EXR data of scheme application, carrying EXR data rendering and the like.
Indoor simulation is a module with relatively complex interaction and is related to a three-dimensional canvas, so related interaction and development are performed through KAF plugins. Indoor rendering simulates exclusive editing context, and the plug-in maintains own document, does not share front and rear end data management with building application, and avoids cross influence on undo/redo (undo/redo) data stack management of building editing.
The plug-in module can be used as a plug-in micro-application, is independently compiled and constructed, reduces the coupling between the plug-in module and the building application and the rendering module, and can carry out lazy loading of the plug-in when entering the rendering environment, so that the webpage loading speed can not be reduced under the condition of increasing the modules, and the subsequent interactive operation can also be carried out.
Plug-in interaction: related operations include highlighting a river window, highlighting a pick window, generating a mesh application mapping, so that a selection feature (pick feature) can be newly established to perform river and click judgment, a pickable entity (pick Able entity) is generated to perform window selection (pick), and an entity (exREntity) is generated to perform mapping application, and the overall design is shown in fig. 4, wherein the architecture comprises an EXR plugin, an EXR tool and an EXR design; wherein the EXR tool is used for acquiring the characteristics; the EXR is designed to obtain EXR elements and other available elements, etc., based on the EXR network geometry.
Fig. 5 shows a schematic flow diagram of a plug-in lifecycle, as shown in fig. 5, including: loading plug-ins (initializing); acquiring display (room, wall) data and node (window) data to be selected; creating a selectable entity; selecting an entity node; creating an EXR entity, and calculating transformation of the EXR entity; updating the EXR entity mapping attribute, and applying the EXR mapping; storing EXR data; and (5) exiting the rendering.
Here, applying the EXR map may include:
step 1: acquiring a Room (Room) and a Wall (Wall) corresponding to the pick-up entity (PickEntity) according to the injected presentation data;
step 2: traversing Wall in step 1, calculating the actually required mapping range, and creating EXRBox (box) in canvas by using center point, length, width and depth and normal (normal) data;
step 3: a elementary sized merhbox (mesh box) was created and vertex coordinates were set to [ -0.5,1,0.5, -0.5,1,0.5,0.5,1, -0.5,0.5,1], UV coordinates were set to [0,0,1,0,1,1,0,1], normal was set to [0, 1], and the final matrix (matrix) was found from the EXRBox data and merhbox, as follows:
firstly, scaling operation is carried out on the Box, namely length, width and depth;
Then, the Box is rotated, namely normal (normal of Wall);
then, carrying out translation operation on the Box to obtain the center point position of the EXRBox;
step 4: after the user selects the map, updating the EXRBox map address (Url), after the Entity (Entity) responds, the Entity (Entity) can draw (drapable) 3D and execute updating (update), map downloading is carried out according to the texture (texture) Url of the Box, a new room Box material (RoomBox material) is established, the material texture is updated, and finally, a change (notify changes) canvas is notified to update;
for the automatic matching process, the Room is matched with a space type (spactype), and then the default matching and application can be performed by executing steps 2 to 4.
Here, the EXR serialization and deserialization operations include:
serializing: after mapping application, the data needs to be stored in sequence, related data can be directly obtained in an EXR Design (Design), and finally, an Array (Array) < EXRData > is pushed (push) to the back end; it should be noted that, when the matrix transformation is performed, since the building is movable, when the pose transformation of the building is performed, matrix superposition conversion is required;
Anti-serialization: when the indoor effect function is activated, the scheme is in an on state, the last stored EXR data is required to be obtained from the rear end for deserialization, the returned structure of the rear end is Array < EXRData >, the front end is required to analyze a network geometry (meshGeom) structure during deserialization, a corresponding grid (mesh) is generated according to the geometry data, and then the matrix is overlapped.
Fig. 6 shows a second schematic flow chart of the image rendering method, as shown in fig. 6, the flow may include:
s601: entering rendering;
s602: opening indoor simulation, if yes, executing S603; if not, executing S612;
s603: requesting an EXR list, and then performing S604;
s604: judging whether historical EXR data exists, if so, executing S606; if not, execute 505;
s605: calculating default EXR data, and then executing S607;
s606: acquiring scheme EXR data, and then executing S607;
s607: applying the EXR data, and then performing S608;
s608: storing EXR data to the back end;
s609: judging whether to click on the window, if so, executing S610, and if not, executing S612;
s610: screening display styles;
s611: judging whether EXR is selected; if yes, executing S607; if not, executing S612;
S612: initiating rendering;
s613: and (5) ending.
According to the technical scheme, in response to detection of starting of an indoor simulation function, parallax map data are configured for a building model, and the parallax map data are used for enabling a target room of the building model to be provided with home furnishing; and in response to the detection of the rendering request, rendering is performed based on the scheme information of the building model and the parallax map data, and a building effect map of the building model is obtained. Therefore, when the building effect map is rendered through modeling software, indoor design and furniture placement are not needed, and the building effect map containing the indoor space can be obtained by adopting the parallax mapping technology, so that the generation efficiency of the building effect map can be improved; compared with the rendering mode without indoor design and furniture placement or with manual indoor design and furniture placement, the parallax mapping technology is adopted, so that the indoor building effect graph can be obtained, and the effect of the generated building effect graph is improved.
In some embodiments, the configuring disparity map data for a building model includes: determining the type of the room included in the building model based on the solution information of the building model; disparity map data matching the room type is configured for the building model from a disparity map database.
In the embodiment of the disclosure, the disparity map database may be located in the cloud or local of the electronic device. The disparity map database may include: parlor parallax map, bedroom parallax map, study parallax map, hall parallax map, restaurant parallax map, bathroom parallax map, kitchen parallax map, and the like.
In an embodiment of the present disclosure, the room type may include: living room, bedroom, study room, dining room, toilet, kitchen, etc. For example, if the room type is determined to be a living room, configuring a living room parallax map matched with the living room for the building model from a parallax map database; if the room type is determined to be the bedroom, configuring a bedroom parallax map matched with the bedroom for the building model from a parallax map database; if the room type is determined to be a study room, a study room parallax map matched with the study room is configured for the building model from a parallax map database.
In the embodiment of the disclosure, if the building model is a quadrangle, the scheme information of the building model includes a window 1-1, a window 1-2, a window 1-3, a window 1-4, a room A corresponding to the window 1-1, a room B corresponding to the window 1-2, a room C corresponding to the window 1-3, and a room D corresponding to the window 1-4; determining that the type of the room A is a study room, the type of the room B is a bedroom 1, the type of the room C is a bedroom 2 and the type of the room D is a kitchen based on the building model and the scheme information; and configuring the parallax map data matched with the room types for the building model from the parallax map database. Illustratively, the type of room a is study, and disparity map data matching the type of "study" is selected according to the type of room; according to the room type 'study', a parallax map 1 and a parallax map 2 which are matched are obtained; the parallax map 1 is displayed with a modern style desk, a modern style bookcase, a modern style desk lamp, and the parallax map 2 is displayed with a Chinese style desk, a Chinese style bookcase and a Chinese style desk lamp; the disparity map 2 is selected as a room a disparity map effect according to the style of the building model.
According to the technical scheme, the parallax map data matched with the room types can be configured for the building model from the parallax map database according to the scheme information of the building model and the room types included in the building model, and the effect and the accuracy of the generated building effect map can be improved.
In some embodiments, the image rendering method further comprises: and applying the parallax mapping data to the building model, and outputting the parallax mapping effect of the building model.
In the embodiment of the disclosure, the parallax mapping effect refers to a parallax mapping effect which is displayed after parallax mapping operation is performed on a window of a certain room of the building model.
In the embodiment of the disclosure, the type of the room C is a restaurant, and parallax map data matched with the type of the restaurant is selected according to the type of the room; obtaining a matched parallax map 1 and a parallax map 2 according to the room type 'restaurant'; the parallax map 1 is displayed with a modern brief style dining table, a modern brief style dining chair, a modern brief style wine rack and the parallax map 2 is displayed with a Chinese classical style dining table, a Chinese classical style dining chair and a Chinese classical style wine rack; the parallax map 2 is selected according to the style of the building model and is used as the parallax map of the room A, after the parallax map 2 is applied, the user looks from the window glass of the room C, and the room C presents the parallax map effect of a dining table with Chinese classical style, a dining chair with Chinese classical style and a wine rack with Chinese classical style.
According to the technical scheme, parallax mapping data are applied to the building model, and the parallax mapping effect of the building model is output. Therefore, the parallax mapping effect is displayed in time, so that a user can know the parallax mapping effect of each room of the building model conveniently, the fineness of the parallax mapping effect can be improved, and the attractiveness of the building model can be improved.
In some embodiments, the configuring parallax map data for the building model further comprises: in response to detecting a first change operation for the first room, outputting a disparity map available for selection by the first room, the first change operation being for indicating a change of the disparity map of the first room; based on the newly selected disparity map, new disparity map data is determined for the first room, and the disparity map data of the building model employed at the time of rendering includes the new disparity map data for the first room.
In an embodiment of the disclosure, the first room is any room of the building model.
In the embodiment of the disclosure, the first modification operation is a modification operation of the parallax map style of the first room through a preset wake mode. The preset wake-up mode may include: click on the first room, double click on the first room. The above is merely exemplary and is not intended to limit all possible operations included in the first modification operation, but is not intended to be exhaustive.
In an embodiment of the disclosure, the first modifying operation is to modify the disparity map of the first room. Illustratively, the building model is a Chinese style quadrangle, the type of a first room of the Chinese style quadrangle is determined to be a study room, the parallax map of the first room is a parallax map 1, and the parallax map 1 displays a modern style desk, a modern style bookcase and a modern style desk lamp; but the building model is inconsistent with the style of the parallax map of the first room, clicking the window of the first room, and selecting the parallax map again from the parallax map database, wherein the style of the parallax map 1 is a modern style, the style of the parallax map 2 is a Chinese style, and the style of the parallax map 3 is a Nordic conciseness style; the disparity map 2 is selected and new disparity map data is determined for the first room based on the disparity map 2.
According to the technical scheme, in response to detection of a first change operation for a first room, a parallax map which can be selected by the first room is output; based on the newly selected disparity map, new disparity map data is determined for the first room, and the disparity map data of the building model employed at the time of rendering includes the new disparity map data for the first room. Thus, the matching of the building model and the parallax map can be improved, the accuracy of generating the building effect map is improved, and the attractiveness of generating the building effect map is improved. In addition, since a parallax map that the user likes can be selected for each room, personalization of the generated building effect map can be improved.
In some embodiments, the configuring parallax map data for the building model further comprises: outputting first prompt information for inquiring whether other first rooms are replaced by the same mapping style as the first rooms or not under the condition that the mapping style of the first rooms is changed, wherein the other first rooms are the same as the first rooms in room type; in response to detecting the consent to change operation, changing the chartlet style of the other first room to the same chartlet style as the first room; in response to detecting that the replacement operation is not agreed, leaving the mapping style of the other first room unchanged, the disparity mapping data of the building model employed at the time of rendering includes the mapping style data of the other first room.
In the embodiment of the disclosure, the first prompt information is used for inquiring whether other first rooms are replaced with the same mapping style as the first rooms, and the other first rooms are the same as the first rooms in room type. If the unchanged mapping style of the first room only changes the parallax mapping, the first prompt information is not output. For example, the first hint information may be "whether the disparity map of the other room type being the study needs to be replaced with the disparity map of the first room".
In an embodiment of the present disclosure, the mapping style may include: conciseness style, modern style, european style classical style, new Chinese style, mediterranean style, garden style, etc. The above is merely exemplary and is not intended to limit all possible types of styles included in a map, but is not intended to be exhaustive.
In the embodiment of the disclosure, the same map style may include parallax maps of multiple styles. For example, the mapping style is classified into a new chinese style and an european style. For the new chinese style, the disparity map for the first room 001, whose room type is bedroom, includes six disparity maps of M1, M2, M3, M4, M5, M6. For European classics, the disparity map of the first room 001, whose room type is bedroom, includes five disparity maps W1, W2, W3, W4, and W5. The user selects a W1 disparity map for the first room 001; if the user chooses not to change the first room 001 map style, only the first room 001 parallax map is changed, namely, one of the parallax maps of W2, W3, W4 and W5 is changed, and the first prompt information is not displayed. If the user selects to change the mapping style, namely changing the W1 parallax mapping to any one of M1, M2, M3, M4, M5 and M6, outputting first prompt information; if the user clicks the replacement operation for agreeing to the first prompt message prompt, the mapping style of the parallax maps of the first room 002 and the first room 003 with the room type of "bedroom" is also replaced with the European classical mapping style.
According to the technical scheme, under the condition that the mapping style of the first room is changed, first prompt information is output; in response to detecting the consent to change operation, changing the chartlet style of the other first room to the same chartlet style as the first room; in response to detecting that the replacement operation is not agreed, leaving the mapping style of the other first room unchanged, the disparity mapping data of the building model employed at the time of rendering includes the mapping style data of the other first room. Therefore, the style of the building effect graph of the building model can be unified, and the aesthetic property of the building effect graph can be improved.
In some embodiments, the configuring parallax map data for the building model further comprises: outputting second prompt information for inquiring whether to replace other windows of the first room with the same mapping style as the first window when the first room comprises a plurality of windows and the mapping style of the first window of the first room is changed; in response to detecting the consent to the replacement operation, replacing the chartlet style of the other windows of the first room with the same chartlet style as the first room; in response to detecting that the replacement operation is not agreed, leaving the mapping style of the other windows of the first room unchanged, the disparity mapping data of the building model employed at the rendering time includes mapping style data of the other windows of the first room.
In the embodiment of the disclosure, the same map style may include parallax maps of multiple styles. For example, the mapping style is classified into a field style and a Mediterranean style. For the rural style, the disparity map for the first room 001, whose room type is bedroom, includes six disparity maps A1, A2, A3, A4, A5, A6. For the Mediterranean style, the disparity map of the first room 001, whose room type is bedroom, includes five disparity maps of C1, C2, C3, C4, and C5. The user selects an A1 disparity map for the first room 001; if the user selects to change the first room 001 mapping style, only changing the first room 001 parallax mapping, namely changing to any one parallax mapping of C2, C3, C4 and C5, and displaying second prompt information; if the user clicks the replacement operation for agreeing with the second prompt information prompt, the mapping style of other window parallax mapping belonging to the same room is replaced by the Mediterranean style.
According to the technical scheme, the second prompt information can be output under the condition that the first room comprises a plurality of windows and the mapping style of the first window of the first room is changed; in response to detecting the consent to the replacement operation, replacing the chartlet style of the other windows of the first room with the same chartlet style as the first room; in response to detecting that the replacement operation is not agreed, leaving the mapping style of the other windows of the first room unchanged, the disparity mapping data of the building model employed at the rendering time includes mapping style data of the other windows of the first room. Thus, the parallax mapping effect style of the building model can be unified, and the beauty of the parallax mapping effect can be improved.
In some embodiments, the configuring disparity map data for a building model includes: in response to detecting a second change operation for the second room, outputting a room type available for selection by the second room, the second change operation indicating a room type for replacing the second room; and configuring new parallax map data for the second room based on the newly selected room type, wherein the parallax map data of the building model adopted in rendering comprises the new parallax map data of the second room.
In an embodiment of the disclosure, the second room is any room of the building model.
In the embodiment of the disclosure, the second modification operation is a modification operation of the type of the second room through a preset wake mode. The preset wake-up mode may include: click on the second room, double click on the second room. The above is merely exemplary and is not intended to limit all possible operations included in the second modification operation, but is not intended to be exhaustive.
In an embodiment of the present disclosure, the second changing operation is to change a room type of the second room. Illustratively, the building model is a Chinese style quadrangle; if the room type of the second room 001 of the quadrangle of the Chinese style is "study room", the parallax map of the second room is parallax map 1, and the parallax map 1 displays modern style desks, modern style bookcases and modern style desk lamps; if the room type of the second room 002 of the quadrangle of the chinese style is "bedroom", the parallax map of the second room is the parallax map 2, and the parallax map 2 displays the modern style bed, the modern style bedside table, and the modern style wardrobe; in response to detecting that the second change operation is performed on the second room 001, the room type of the second room 001 is changed to "bedroom", and then the parallax map of the second room 001 is changed to the parallax map 2.
In response to detecting a second change operation for a second room, outputting a room type available for selection by the second room; and configuring new parallax map data for the second room based on the newly selected room type, wherein the parallax map data of the building model adopted in rendering comprises the new parallax map data of the second room. In this way, the matching of the room type of the building model and the parallax map is facilitated to be improved, and the aesthetic property of the building effect map of the building model is facilitated to be improved.
In some embodiments, the configuring disparity map data for a building model includes: in response to detecting a third change operation for a third room, turning off a parallax map display effect of the third room; the disparity map data configured for the third room is replaced with non-disparity map data, and the disparity map data of the building model used in rendering includes the non-disparity map data of the third room.
In an embodiment of the disclosure, the third room is any room of the building model.
In the embodiment of the present disclosure, the third modification operation is a modification operation of the type of the third room through a preset wake mode. The preset wake-up mode may include: click on the third room, double click on the third room. The above is merely exemplary and is not intended to limit all possible operations included in the third modification operation, but is not intended to be exhaustive.
In an embodiment of the disclosure, the third modifying operation is to modify whether the third room is tiled with disparity maps. Illustratively, the building model is a five-story office building; if 6 windows of 3 rooms are provided in each floor of the 5-floor office building and a third modification operation for the third room 001 is detected, the parallax map data allocated for the third room 001 is replaced with non-parallax map data. That is, when the office building is rendered, the parallax map is not arranged for the third room 001.
According to the technical scheme, in response to detection of a third changing operation for a third room, a parallax map display effect of the third room is closed; the disparity map data configured for the third room is replaced with non-disparity map data, and the disparity map data of the building model used in rendering includes the non-disparity map data of the third room. Thus, the parallax map can be flexibly configured for the building model, which contributes to the improvement of the intelligence of generating the building effect map.
In some embodiments, the rendering of the solution information and the parallax map data based on the building model to obtain a building effect map of the building model includes: generating a target parallax map for each room in the building model based on the scheme information and the parallax map data, the target parallax map being a parallax map for window glass of each room; and applying the target parallax map corresponding to each room on the corresponding window glass to obtain the building effect map of the building model.
In the embodiment of the disclosure, based on scheme information and parallax map data, generating target parallax maps for three rooms in a new Chinese quadrangle of a building model, namely, a room A of the quadrangle is a parallax map 001, a room B of the quadrangle is a parallax map 002, and a room C of the quadrangle is a parallax map 003; and applying the target parallax map corresponding to each room on the corresponding window glass to obtain the building effect map of the novel Chinese quadrangle.
According to the technical scheme, based on scheme information and parallax map data, a target parallax map is generated for each room in a building model, and the target parallax map corresponding to each room is applied to corresponding window glass, so that a building effect map of the building model is obtained. Therefore, each room of the building model can be enabled to apply the target parallax map, the effect that furniture is arranged in each room is achieved, and the intelligence and the plasticity of building effect map generation are improved.
In some embodiments, the image rendering method further comprises: acquiring shooting angle data of a building model; wherein, render based on scheme information and parallax map data of building model, obtain building effect diagram of building model, include: rendering is carried out based on shooting angle data, scheme information and parallax map data of the building model, and a building effect map of the building model is obtained.
In an embodiment of the disclosure, the shooting angle data may include a shooting height, a shooting direction, and a shooting distance. Specifically, the photographing height may include a panning, a tilting, and the like; the photographing direction may include a front angle, a side angle, an oblique side angle, a back angle, etc.; the shooting distance can be set according to requirements.
According to the technical scheme, the building effect map of the building model is obtained by rendering based on shooting angle data, scheme information and parallax map data of the building model. Thus, a plurality of building effect graphs of the building model under different shooting angles can be obtained, and the effect and efficiency of generating the building effect graphs can be improved.
In some embodiments, the configuring parallax map data for the building model further comprises: based on the scheme information, respectively configuring parallax map data under different space view angles for each room included in the building model, wherein the different space view angles at least comprise a front view angle, a left view angle, a back view angle and a right view angle; rendering is performed based on shooting angle data, scheme information and parallax map data of a building model to obtain a building effect map of the building model, and the method comprises the following steps: selecting, for each room, parallax map data under one spatial view angle from the parallax map data under different spatial view angles based on shooting angle data of the building model and a position of each room in the building model and generating a target parallax map; and applying the target parallax map corresponding to each room on the window glass of the target parallax map to obtain a building effect map of the building model.
FIG. 7 shows a schematic application flow diagram of a rendering tool, as shown in FIG. 7, used by a user to perform style list query, schema EXR parameter access, initiate rendering, EXR map list. The style list is used for inquiring the style list; the scheme EXR parameter access is used for inquiring and modifying the scheme EXR parameter; after the initiation of the parameters, the EXR parameters of the scheme can be queried; the EXR parameters of the query scheme are stored to the modular bag cloud based on the query list, the query and the modification scheme EXR parameters. Carrying EXR mapping parameters to initiate rendering to a rendering middle station; the EXR map list is used for inquiring EXR map data of the rendering middle station to the rendering middle station.
The rendering implementation of EXR, for the backend, is wholly divided into several modules: rendering business logic within the tool; the EXR mapping data of the scheme is stored and queried in a lasting mode; the rendering link supports EXR mapping.
Wherein, business logic in the rendering tool comprises:
the old user enters a rendering pop-up EXR function description (the back end provides a judging new and old user interface);
the user uses the EXR function for the first time, and provides dynamic effects of building rendering (the back end provides an interface for judging whether the user uses the EXR);
query default EXR map (configured using Oracle application developer tool (Tool for Oracle Application Developers, TOAD)) for the first time;
An EXR map list (room identity identifiers (Identity document, IDs) is maintained by the front end) from the room query.
The EXR mapping data storage and query of the scheme comprise the following steps:
the EXR data is stored in the back end every time the EXR mapping is changed, and when the EXR function is opened when the rendering tool is accessed, all EXR data of the scheme is queried from the back end.
For EXR data expression, we agree that all the mesh is distinguished by a fixed structure, by matrix Transform scaling translation rotation. The structure of the mesh is directly written and dead, and is not needed to be used in the front-end and back-end interactive links, and only needs to be transmitted to a rendering center when rendering is initiated.
The update logic of the EXR data in the determination scheme comprises the following cases:
the scheme is that EXR is started for the first time, the front end automatically generates EXR for all walls with windows, and the EXR is stored in batches to the rear end;
the front end adds, modifies and deletes EXR on one wall;
when the building changes and loads the EXR again, the front end judges the EXR which is invalid and calls the interface to delete.
Currently, considering that EXR data of the whole scheme is stored in json format, preliminary evaluation is performed on the data:
Single line data size: according to each scheme, 5 windows are averaged, the maximum number is 100, and the current single window data size is about 0.4 KB;
annual data volume: the estimated single month rendering scheme 2w+ and the annual rendering scheme 30w+ are used for roughly estimating the data volume of the EXR scheme to be 10w+;
read-write settings/options (quater-page-margin, qpm): the rough estimate opens the rendering tool interface call to a uniform order of magnitude.
Wherein rendering the link supports EXR mapping, comprising:
and adding a switch for opening the EXR mapping in the rendering parameters, if so, inquiring EXR data in a database in a rendering link, and converting the EXR data into EXR parameters of a rendering center after calculation. The matrix of EXR data needs to be changed from relative to building coordinates to relative to scene coordinates, i.e. to be multiplied by the matrix of the building model.
FIG. 8 shows a flow diagram of EXR rendering, as shown in FIG. 8, with a user opening an EXR or modifying an EXR map, saving EXR data. The user initiates rendering, judges whether to open EXR, if yes, inquires EXR data, carries out EXR matrix conversion, locally obtains grid constants with data, increases EXR parameters, and initiates rendering; if not, initiating rendering.
To better enhance the parallax map effect, the indoor template background support creates an "EXR room effect template". Specifically, the EXR room effect template includes: a. a template name; b. a template effect thumbnail; exr disparity map (for background rendering); d. each template comprises four angles of front, back, left and right. A default tab default angle may be added to be used to select a default load use of the EXR. Fig. 9 shows an EXR disparity map, which is a living room disparity map, as shown in fig. 9, divided into a front channel, a top channel, a ground channel, a left wall channel, a right wall channel, and 4 middle view channels. As can be seen from fig. 9, the content presented by the different channels is different. Therefore, when the building model is at different shooting angles, parallax maps under corresponding view angles can be displayed, and the reality and accuracy of image rendering are enhanced.
Fig. 10 shows a building effect diagram of a building model before rendering, and fig. 11 shows a building effect diagram of a building model after rendering. As can be seen by comparison, before rendering, no furniture display is placed in each room in the building model, the rendering effect is single, and no characteristics are provided; after rendering, through the form of the map, each room of the building model looks like placing furniture for display, the rendering effect can be set according to the user demand, the rendering quality is improved, and the rendering diversity is also enhanced.
According to the technical scheme, when the building effect map is rendered through modeling software, indoor design and furniture placement are not needed, and the indoor building effect map can be obtained only by adopting the parallax mapping technology, so that the effect and efficiency of generating the building effect map are improved.
It should be understood that the schematic diagrams shown in fig. 2-11 are merely exemplary and not limiting, and that they are scalable, and that various obvious changes and/or substitutions may be made by one skilled in the art based on the examples of fig. 2-11, and the resulting technical solutions still fall within the scope of the disclosure of the embodiments of the present disclosure.
An embodiment of the present disclosure provides an image rendering apparatus 1200, as shown in fig. 12, including:
A configuration module 1210, configured to configure, for the building model, parallax map data for setting a target room of the building model to be provided with a home furnishing in response to detecting that the indoor simulation function is turned on;
and the rendering module 1220 is configured to render, in response to detecting the rendering request, based on the scheme information of the building model and the parallax map data, to obtain a building effect map of the building model.
In some embodiments, the configuration module 1210 includes: a first determining sub-module for determining a room type included in the building model based on the plan information of the building model; and the first configuration submodule is used for configuring the parallax map data matched with the room type for the building model from the parallax map database.
In some embodiments, the image rendering apparatus further comprises: an output module (not shown in fig. 12) for applying the parallax map data on the building model and outputting the parallax map effect of the building model.
In some embodiments, the configuration module 1210 further comprises: a first output sub-module for outputting a disparity map for selection by the first room in response to detecting a first modification operation for the first room, the first modification operation being for indicating a replacement of the disparity map of the first room; and the second determining sub-module is used for determining new parallax map data for the first room based on the newly selected parallax map, and the parallax map data of the building model adopted in rendering comprises the new parallax map data of the first room.
In some embodiments, the configuration module 1210 further comprises: the second output sub-module is used for outputting first prompt information when the mapping style of the first room changes, and the first prompt information is used for inquiring whether other first rooms are replaced by the same mapping style as the first room, and the types of the other first rooms are the same as the first room; a first replacement sub-module for replacing, in response to detecting agreement to the replacement operation, the mapping style of the other first rooms with the same mapping style as the first rooms; and the first maintaining sub-module is used for responding to the detection of the disagreement of the replacement operation, maintaining the mapping style of other first rooms unchanged, and the parallax mapping data of the building model adopted in the rendering process comprises the mapping style data of other first rooms.
In some embodiments, the configuration module 1210 further comprises: the third output sub-module is used for outputting second prompt information when the first room comprises a plurality of windows and the mapping style of the first window of the first room is changed, and the second prompt information is used for inquiring whether other windows of the first room are replaced by the same mapping style as the first window; a second replacement sub-module for replacing, in response to detecting agreement to the replacement operation, the chartlet style of the other windows of the first room with the same chartlet style as the first room; and the second maintaining sub-module is used for responding to the detection of the disagreement of the replacement operation, maintaining the mapping style of other windows of the first room unchanged, and the parallax mapping data of the building model adopted in the rendering comprises the mapping style data of the other windows of the first room.
In some embodiments, the configuration module 1210 includes: a fourth output sub-module that outputs a room type available for selection by the second room in response to detecting a second change operation for the second room, the second change operation indicating a room type for changing the second room; and the second configuration submodule is used for configuring new parallax map data for the second room based on the newly selected room type, and the parallax map data of the building model adopted in rendering comprises the new parallax map data of the second room.
In some embodiments, the configuration module 1210 includes: a closing sub-module for closing a parallax map display effect of a third room in response to detecting a third modification operation for the third room; and the third replacing sub-module is used for replacing the parallax map data configured for the third room with the non-parallax map data, and the parallax map data of the building model adopted in rendering comprises the non-parallax map data of the third room.
In some embodiments, the rendering module 1220 includes: the generating sub-module is used for generating a target parallax map for each room in the building model based on the scheme information and the parallax map data, wherein the target parallax map is the parallax map of window glass of each room; and the acquisition sub-module is used for applying the target parallax map corresponding to each room to the corresponding window glass to obtain the building effect map of the building model.
In some embodiments, the image rendering apparatus further comprises: an acquisition module (not shown in fig. 12) for acquiring shooting angle data of the building model; wherein, rendering module 1220 comprises: and the rendering sub-module is used for rendering based on shooting angle data, scheme information and parallax map data of the building model to obtain a building effect map of the building model.
In some embodiments, the configuration module 1210 further comprises: the third configuration submodule is used for respectively configuring parallax map data under different space view angles for each room included in the building model based on the scheme information, wherein the different space view angles at least comprise a front view angle, a left view angle, a back view angle and a right view angle; wherein, render submodule is used for: selecting, for each room, parallax map data under one spatial view angle from the parallax map data under different spatial view angles based on shooting angle data of the building model and a position of each room in the building model and generating a target parallax map; and applying the target parallax map corresponding to each room on the window glass of the target parallax map to obtain a building effect map of the building model.
It should be understood by those skilled in the art that the functions of the processing modules in the image rendering apparatus according to the embodiments of the present disclosure may be understood with reference to the foregoing description of the image rendering method, and the processing modules in the image rendering apparatus according to the embodiments of the present disclosure may be implemented by an analog circuit that implements the functions described in the embodiments of the present disclosure, or may be implemented by running software that implements the functions described in the embodiments of the present disclosure on an electronic device.
According to the image rendering device disclosed by the embodiment of the disclosure, when the modeling software is used for rendering, indoor designs and furniture placement are not needed, and the indoor building effect graph can be obtained by adopting the parallax mapping technology, so that the effect and the efficiency of generating the building effect graph are improved.
The embodiment of the disclosure provides a scene schematic diagram of an image rendering method, as shown in fig. 13. As described above, the image rendering method provided by the embodiment of the present disclosure is applied to an electronic device. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile apparatuses, such as personal digital assistants, cellular telephones, smartphones, wearable devices, and other similar computing apparatuses.
In particular, the electronic device may specifically perform the following operations:
in response to detecting that the indoor simulation function is started, configuring parallax map data for the building model, wherein the parallax map data is used for enabling a target room of the building model to be provided with home furnishing;
And in response to the detection of the rendering request, rendering is performed based on the scheme information of the building model and the parallax map data, so that the building effect of the building model is obtained.
Wherein the disparity map data may be obtained from a data source. The data sources may be various forms of data storage devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The data sources may also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smartphones, wearable devices, and other similar computing devices. Furthermore, the data source and the user terminal may be the same device.
It should be understood that the scene graph shown in fig. 13 is merely illustrative and not limiting, and that various obvious changes and/or substitutions may be made by one skilled in the art based on the example of fig. 13, and the resulting technical solution still falls within the scope of the disclosure of the embodiments of the present disclosure.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the related target object personal information all conform to the regulations of related laws and regulations, and the public sequence is not violated.
Fig. 14 is a block diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 14, the electronic device includes: a memory 1410 and a processor 1420, the memory 1410 storing a computer program executable on the processor 1420. The number of memories 1410 and processors 1420 may be one or more. The memory 1410 may store one or more computer programs that, when executed by the electronic device, cause the electronic device to perform the methods provided by the method embodiments described above. The electronic device may further include: and the communication interface 1430 is used for communicating with external equipment for data interactive transmission.
If the memory 1410, the processor 1420, and the communication interface 1430 are implemented independently, the memory 1410, the processor 1420, and the communication interface 1430 may be connected to each other and communicate with each other through buses. The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in fig. 14, but not only one bus or one type of bus.
Alternatively, in a specific implementation, if the memory 1410, the processor 1420, and the communication interface 1430 are integrated on a single chip, the memory 1410, the processor 1420, and the communication interface 1430 may communicate with each other through internal interfaces.
It should be appreciated that the processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or any conventional processor or the like. It is noted that the processor may be a processor supporting an advanced reduced instruction set machine (Advanced RISC Machines, ARM) architecture.
Further, optionally, the memory may include a read-only memory and a random access memory, and may further include a nonvolatile random access memory. The memory may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), programmable ROM (PROM), erasable Programmable ROM (EPROM), electrically Erasable EPROM (EEPROM), or flash Memory, among others. Volatile memory can include random access memory (Random Access Memory, RAM), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic RAM (Dynamic Random Access Memory, DRAM), synchronous DRAM (SDRAM), double Data rate Synchronous DRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous DRAM (SLDRAM), and Direct RAMBUS RAM (DR RAM).
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present disclosure are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, fiber optic, data subscriber line (Digital Subscriber Line, DSL)), or wireless (e.g., infrared, bluetooth, microwave, etc.) means from one website, computer, server, or data center. Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc., that contain an integration of one or more of the available media. Usable media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital versatile discs (Digital Versatile Disc, DVDs)), or semiconductor media (e.g., solid State Disks (SSDs)), etc. It is noted that the computer readable storage medium mentioned in the present disclosure may be a non-volatile storage medium, in other words, may be a non-transitory storage medium.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or may be implemented by a program to instruct related hardware, and the program may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
In the description of embodiments of the present disclosure, a description of reference to the terms "one embodiment," "some embodiments," "examples," "particular examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
In the description of the embodiments of the present disclosure, unless otherwise indicated, "/" means or, for example, a/B may represent a or B. "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone.
In the description of the embodiments of the present disclosure, the terms "first," "second," and "second" are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the embodiments of the present disclosure, unless otherwise indicated, the meaning of "a plurality" is two or more.
The foregoing is illustrative of the present disclosure and is not to be construed as limiting thereof, but rather as various modifications, equivalent arrangements, improvements, etc., which are within the spirit and principles of the present disclosure.

Claims (15)

1. An image rendering method, the method comprising:
in response to detecting that an indoor simulation function is started, configuring parallax map data for a building model, wherein the parallax map data is used for enabling a target room of the building model to be provided with home furnishing;
and in response to the detection of the rendering request, rendering is performed based on the scheme information of the building model and the parallax map data, and a building effect map of the building model is obtained.
2. The method of claim 1, wherein configuring the disparity map data for the building model comprises:
determining a room type included in the building model based on the solution information of the building model;
and configuring the parallax map data matched with the room type for the building model from a parallax map database.
3. The method according to claim 1, wherein the method further comprises:
and applying the parallax map data to the building model, and outputting the parallax map effect of the building model.
4. A method according to claim 3, wherein said configuring the building model with disparity map data further comprises:
in response to detecting a first change operation for a first room, outputting a disparity map available for selection by the first room, the first change operation being for indicating a replacement of the disparity map for the first room;
and determining new parallax map data for the first room based on the newly selected parallax map, wherein the parallax map data of the building model adopted in rendering comprises the new parallax map data of the first room.
5. The method of claim 4, wherein configuring the disparity map data for the building model further comprises:
Outputting first prompt information under the condition that the mapping style of the first room is changed, wherein the first prompt information is used for inquiring whether other first rooms are replaced by the same mapping style as the first room, and the types of the other first rooms are the same as the first room;
in response to detecting the consent to change operation, changing the mapping style of the other first room to the same mapping style as the first room;
in response to detecting that the replacement operation is not agreed, leaving the mapping style of the other first room unchanged, the disparity mapping data of the building model employed at the rendering time comprising the mapping style data of the other first room.
6. The method of claim 4, wherein configuring the disparity map data for the building model further comprises:
outputting second prompt information for inquiring whether to replace other windows of the first room with the same mapping style as the first window when the first room comprises a plurality of windows and the mapping style of the first window of the first room is changed;
in response to detecting a consent to change operation, changing a charting style of the other windows of the first room to a same charting style as the first room;
In response to detecting a disagreement to change operation, leaving the mapping style of the other windows of the first room unchanged, the disparity mapping data of the building model employed at the time of rendering includes mapping style data of the other windows of the first room.
7. A method according to claim 3, wherein said configuring disparity map data for a building model comprises:
in response to detecting a second change operation for a second room, outputting a room type available for selection by the second room, the second change operation being for indicating a room type for replacing the second room;
and configuring new parallax map data for the second room based on the newly selected room type, wherein the parallax map data of the building model adopted in rendering comprises the new parallax map data of the second room.
8. The method of claim 1, wherein configuring the disparity map data for the building model comprises:
in response to detecting a third change operation for a third room, turning off a parallax map display effect for the third room;
and replacing the parallax map data configured for the third room with non-parallax map data, wherein the parallax map data of the building model adopted in rendering comprises the non-parallax map data of the third room.
9. The method according to claim 1, wherein the rendering based on the solution information of the building model and the parallax map data to obtain a building effect map of the building model includes:
generating a target parallax map for each room in the building model based on the solution information and the parallax map data, the target parallax map being a parallax map for window glass of each room;
and applying the target parallax map corresponding to each room on the corresponding window glass to obtain the building effect map of the building model.
10. The method according to claim 1, wherein the method further comprises:
acquiring shooting angle data of the building model;
the rendering is performed on the scheme information based on the building model and the parallax map data to obtain a building effect map of the building model, and the method comprises the following steps:
rendering is carried out based on the shooting angle data, the scheme information and the parallax map data of the building model, and a building effect map of the building model is obtained.
11. The method of claim 10, wherein configuring the disparity map data for the building model further comprises:
Based on the scheme information, respectively configuring parallax map data under different space view angles for each room included in the building model, wherein the different space view angles at least comprise a front view angle, a left view angle, a back view angle and a right view angle;
the rendering is performed based on the shooting angle data, the scheme information and the parallax map data of the building model to obtain a building effect map of the building model, and the method comprises the following steps:
selecting, for each room, parallax map data at one spatial view angle from the parallax map data at the different spatial view angles based on the shooting angle data of the building model and the position of each room in the building model, and generating a target parallax map;
and applying the target parallax map corresponding to each room on window glass of the building model to obtain the building effect map of the building model.
12. An image rendering apparatus, comprising:
the configuration module is used for responding to the detection of starting the indoor simulation function and configuring parallax map data for the building model, wherein the parallax map data is used for enabling a target room of the building model to be provided with home furnishing;
And the rendering module is used for responding to the detection of the rendering request, and rendering based on the scheme information of the building model and the parallax map data to obtain a building effect map of the building model.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor;
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-11.
14. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-11.
15. A computer program product comprising a computer program stored on a storage medium, characterized in that the computer program, when executed by a processor, implements the method according to any of claims 1-11.
CN202311757433.7A 2023-12-19 2023-12-19 Image rendering method and device, electronic equipment and storage medium Pending CN117708916A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311757433.7A CN117708916A (en) 2023-12-19 2023-12-19 Image rendering method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311757433.7A CN117708916A (en) 2023-12-19 2023-12-19 Image rendering method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117708916A true CN117708916A (en) 2024-03-15

Family

ID=90144105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311757433.7A Pending CN117708916A (en) 2023-12-19 2023-12-19 Image rendering method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117708916A (en)

Similar Documents

Publication Publication Date Title
US8751950B2 (en) Capturing a user&#39;s intent in design software
CN108986233B (en) Method and system for rapidly drawing indoor preview
US10712923B1 (en) System and method for designing interior space
JP7121811B2 (en) Method, apparatus, and storage medium for displaying three-dimensional spatial views
US20190114699A1 (en) System and method for product design, simulation and ordering
CN111369424A (en) Method, device, equipment and storage medium for generating three-dimensional space of target house
CN106485784B (en) Indoor design imaging processing method based on multi-terminal equipment data synchronization
US10535170B2 (en) System and method for generating product visualizations
US8392150B2 (en) Smart content and placement in a computer-aided design application
CN109191592B (en) Method and device for changing decoration in virtual three-dimensional space
US20110082701A1 (en) method and system with inbuilt intelligence for finalizing and delivering the architecture
CN111369664A (en) Method, device, equipment and storage medium for displaying house type scene
US20100262405A1 (en) Methods and apparatus for creating customisable cad image files
US9165409B2 (en) System and method for creating a database for generating product visualizations
WO2006018740A2 (en) Capturing a user&#39;s intent in design software
CN117708916A (en) Image rendering method and device, electronic equipment and storage medium
WO2020259694A1 (en) Method and apparatus for displaying item information in current space, and medium
CN110992459B (en) Indoor scene rendering and optimizing method based on partitions
CN108009333A (en) Interior decoration level sets system, method, equipment and computer program product
US20230195292A1 (en) Development, representation and display
CN115439625B (en) Building sketch auxiliary drawing method and device, storage medium and drawing equipment
CN108256149A (en) A kind of BIM keel batch tensioning systems and method based on SketchUp exploitations
US12002181B2 (en) System and method of providing a customizable virtual environment
US20230058236A1 (en) System and method of providing a customizable virtual environment
CN115146360A (en) Home decoration scheme generation method and device and storage medium

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