CN117078900A - Attribute modification method, device, computer equipment and storage medium for AR content - Google Patents
Attribute modification method, device, computer equipment and storage medium for AR content Download PDFInfo
- Publication number
- CN117078900A CN117078900A CN202310800024.4A CN202310800024A CN117078900A CN 117078900 A CN117078900 A CN 117078900A CN 202310800024 A CN202310800024 A CN 202310800024A CN 117078900 A CN117078900 A CN 117078900A
- Authority
- CN
- China
- Prior art keywords
- attribute
- content
- modification
- scaling
- vector
- 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
Links
- 238000002715 modification method Methods 0.000 title claims abstract description 22
- 230000004048 modification Effects 0.000 claims abstract description 39
- 238000012986 modification Methods 0.000 claims abstract description 39
- 238000011161 development Methods 0.000 claims abstract description 13
- 238000013507 mapping Methods 0.000 claims abstract description 11
- 239000000463 material Substances 0.000 claims description 17
- 230000000051 modifying effect Effects 0.000 claims description 16
- 238000000034 method Methods 0.000 claims description 13
- 230000000007 visual effect Effects 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 9
- 238000006073 displacement reaction Methods 0.000 claims description 3
- 230000008859 change Effects 0.000 claims description 2
- 238000004519 manufacturing process Methods 0.000 abstract description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000008676 import Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/20—Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/006—Mixed reality
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Graphics (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Architecture (AREA)
- Human Computer Interaction (AREA)
- Processing Or Creating Images (AREA)
Abstract
The application discloses an attribute modification method, a device, computer equipment and a storage medium of AR content, which relate to the technical field of AR and comprise the following steps: s1, acquiring an AR object; s2, selecting an attribute to be modified according to actual requirements; s3, according to the actually selected attribute to be modified, using a corresponding API or tool to modify; and S4, after the attribute modification is completed, storing the modification into an AR object, presenting the AR object in a scene, and acquiring the AR object needing to be modified through the attribute of an interface or a component provided by an engine, wherein the attribute to be modified comprises position, rotation, scaling and texture mapping. Aiming at the attribute adjustment in the AR development and manufacturing process, the application provides the attribute modification method of the AR content, which helps developers to quickly edit and adjust various attributes of the AR content, quickly iterate and optimize the AR application, improves the development efficiency of the AR application, and saves the development time and cost.
Description
Technical Field
The application relates to the technical field of AR, in particular to an attribute modification method, an attribute modification device, computer equipment and a storage medium of AR content.
Background
AR, also called augmented reality, is a technology of calculating the position and angle of a camera image in real time and adding a corresponding image, and by applying various technical means, superimposing a virtual object generated by a computer or non-geometric information about the real object onto a scene of the real world, thereby realizing enhancement of the real world, in AR application, generally, superimposing an image on a foreground video, wherein the foreground video is directly obtained by a camera, video signals are collected by a video board card or contents generated by other software are generated or rendered by an AR application program, the AR application program is called an AR player, the superimposed image is called an AR content, the existing AR player is mainly divided into two types, and one type is the AR content embedded in the AR player; the other type is that the AR player can load external AR content, the functions of the AR player are relatively simple, and the AR player is only suitable for various hardware configuration parameters, and in the development and the production of AR, the attribute modification of the AR content is inevitably involved.
The following problems exist in the prior art: when the attribute modification of the AR content is adjusted and optimized, the relation among a plurality of elements needs to be considered, meanwhile, the performance and stability of the AR application are guaranteed, certain difficulty exists for unskilled developers and designers, and the problem that the running efficiency and the presentation effect of the AR application deviate from expected values to a certain extent due to resource limitation in the actual operation process is solved.
Disclosure of Invention
The present application is directed to a method, an apparatus, a computer device and a storage medium for modifying attributes of AR content, so as to solve the problems set forth in the background art.
In order to solve the technical problems, the application adopts the following technical scheme:
an attribute modification method of AR content, comprising the steps of:
s1, acquiring an AR object;
s2, selecting an attribute to be modified according to actual requirements;
s3, according to the actually selected attribute to be modified, using a corresponding API or tool to modify;
and S4, after finishing attribute modification, saving the modification into the AR object, and presenting in the scene.
The technical scheme of the application is further improved as follows: the S1 further comprises obtaining an AR object needing to be modified according to the attribute of the interface or the component provided by the engine, and the attribute to be modified in S2 comprises position, rotation, scaling and texture mapping.
The technical scheme of the application is further improved as follows: the modification of the location attribute specifically includes,
acquiring the current position of the AR object by calling the attribute of an interface or a component provided by the AR engine;
calculating a vector of the variation using a vector operation, presenting a displacement of the AR object in three-dimensional space;
the new position vector is obtained by adding the current position vector and the variation vector, the vector is assigned to the position component attribute of the AR object, and the position attribute of the AR object is updated.
The technical scheme of the application is further improved as follows: the modification of the rotation attribute specifically includes,
acquiring rotation information of the AR object through the attribute of an interface or a component provided by the engine;
calculating a difference value between rotations by using quaternion operation and obtaining a quaternion of a variation;
the new rotation attribute is obtained by multiplying the current rotation attribute by the quaternion of the variation, the value is assigned to the rotation component attribute of the AR object, and the rotation attribute of the AR object is updated.
The technical scheme of the application is further improved as follows: the modification of the scaling attribute may in particular comprise,
obtaining scaling information of the AR object through the attribute of an interface or a component provided by the engine;
calculating a vector of the variation using a vector operation, presenting scaling of the AR object in three axes;
the new scaling attribute is obtained by multiplying the current scaling attribute by the vector of the change amount, assigning the value to the scaling component attribute of the AR object, and updating the scaling attribute of the AR object.
The technical scheme of the application is further improved as follows: the modification of the texture map attribute specifically includes,
acquiring the material information of the AR object through the interface or the attribute of the component provided by the engine, and adding a part of material if the AR object has no material;
loading the mapping attribute to be modified by using a method provided by an engine or a third party picture library;
acquiring the ID or name of the currently used map attribute;
the new map is applied to the material using methods provided by the engine or by directly setting the map properties of the material.
The AR content attribute modification device comprises an editor unit, a modeling software unit, a script unit and a visual programming tool unit;
the editor unit is used for manually editing the attribute of the AR object, presenting the AR scene in a visual form, and enabling a user to directly drag the AR object to modify the attribute of the AR object or manually modifying the numerical value of the attribute through an attribute panel;
the modeling software unit is used for modeling and modifying the AR object to generate new AR content, and the modeling software can import the model of the AR object to modify and optimize the model and export the model into the AR engine for use;
the script unit is used for writing logic of the AR application program, including dynamically modifying the attribute of the AR object and realizing interaction behavior, and the script is usually written by using programming languages, such as C#, python;
the visual programming tool unit is used for quickly constructing logic of the AR application by dragging the spliced image blocks, the programming logic is usually presented in a visual form, a user can select a required image block from the image block library, drag the required image block to an editing area, and complete programming by setting parameters and connecting input and output ports.
The computer equipment is provided with an attribute modifying device of the AR content, and is used for realizing an attribute modifying method of the AR content, and comprises a display, a memory, a processor, a display card, a camera, an AR content development environment and AR content design software, wherein the memory is stored with a computer program required for realizing the attribute of the AR content, and the processor and the display card are used for realizing the modification of the attribute of the AR content in cooperation with the computer program.
A storage medium for storing a computer program implementing AR content attribute modification.
By adopting the technical scheme, compared with the prior art, the application has the following technical progress:
1. the application provides an attribute modification method, a device, computer equipment and a storage medium of AR content, which are used for aiming at attribute adjustment in the AR development and manufacturing process, help a developer to quickly edit and adjust various attributes of the AR content, quickly iterate and optimize AR application, improve the development efficiency of the AR application, and save the development time and cost.
2. The application provides an attribute modification method, an attribute modification device, computer equipment and a storage medium of AR content, which are used for helping designers to adjust various elements of the AR content and realizing better visual effect and interaction experience, thereby improving the satisfaction degree and participation degree of users.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments described in the present application, and other drawings may be obtained according to these drawings for a person having ordinary skill in the art.
FIG. 1 is a flow chart of an attribute modification method of AR content of the present application;
FIG. 2 is a flow chart of the modification of the location attribute of the AR content attribute modification method of the present application;
FIG. 3 is a flow chart of the modification of the rotational attribute of the AR content modification method of the present application;
FIG. 4 is a flow chart of the modification of the scaling attribute of the AR content modification method of the present application;
FIG. 5 is a flowchart illustrating the modification of texture map attributes according to the AR content attribute modification method of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Embodiment 1 as shown in fig. 1-5, the present application provides an attribute modification method of AR content, comprising the steps of:
s1, acquiring an AR object, wherein the AR object needing to be modified is acquired through the attribute of an interface or a component provided by an engine, such as an AR mark and a 3D model;
s2, selecting an attribute to be modified according to actual requirements, wherein the attribute to be modified comprises position, rotation, scaling and texture mapping;
s3, according to the actually selected attribute to be modified, using a corresponding API or tool to modify;
and S4, after finishing attribute modification, saving the modification into an AR object, presenting in a scene, saving an attribute value into a variable, or saving the attribute value into a file system or a database through a Persistant dataPath method provided by an engine.
Embodiment 2 as shown in fig. 1-5, on the basis of embodiment 1, the present application provides a technical scheme: preferably, the modification of the location attribute comprises in particular,
acquiring the current position of the AR object by calling the attribute of an interface or a component provided by the AR engine;
calculating a vector of the variation using a vector operation, presenting a displacement of the AR object in three-dimensional space;
obtaining a new position vector by adding the current position vector and the variable vector, assigning the vector to the position component attribute of the AR object, and updating the position attribute of the AR object;
further, the position of the object is adjusted by modifying the position attribute in the transform attribute of the object;
the modification of the rotation properties is specifically included,
acquiring rotation information of the AR object through the attribute of an interface or a component provided by the engine;
calculating a difference value between rotations by using quaternion operation and obtaining a quaternion of a variation;
obtaining a new rotation attribute by multiplying the current rotation attribute by the quaternion of the variation, assigning the value to the rotation component attribute of the AR object, and updating the rotation attribute of the AR object;
further, the rotation angle of the object is adjusted by modifying the rotation attribute in the transform attribute of the object;
the modification of the scaling attribute is specifically included,
obtaining scaling information of the AR object through the attribute of an interface or a component provided by the engine;
calculating a vector of the variation using a vector operation, presenting scaling of the AR object in three axes;
obtaining new scaling attributes by multiplying the current scaling attributes by the vector of the variation, assigning the value to scaling component attributes of the AR object, and updating the scaling attributes of the AR object;
further, the size of the object is adjusted by modifying the scale attribute in the transform attribute of the object, when the scaling is set to 0, the object will completely disappear, and when the scaling exceeds a certain value, distortion may occur;
the modification of the texture map attribute specifically includes,
acquiring the material information of the AR object through the interface or the attribute of the component provided by the engine, and adding a part of material if the AR object has no material;
the method provided by the engine or the third party picture library is used for loading the mapping attribute needing to be modified, for example, a PNG format mapping can be loaded from a Resources folder by using the Resources () method of the Unity engine;
obtaining the ID or name of the currently used map attribute, wherein the material generally comprises a plurality of map attributes, such as diffuse reflection map, normal map and highlight map;
applying the new map to the material using a method provided by the engine or directly setting a map attribute of the material;
further, the texture mapping is modified by modifying the Material attribute in the render component of the virtual object, and when a new mapping is applied, a proper filtering mode, UV coordinates and mapping size parameters need to be selected according to the actual situation.
Embodiment 3, as shown in fig. 1-5, on the basis of embodiments 1-2, the present application provides an attribute modification apparatus for AR content, including an editor unit, a modeling software unit, a script unit, and a visual programming tool unit;
the editor unit is used for manually editing the attribute of the AR object, presenting the AR scene in a visual form, and enabling a user to directly drag the AR object to modify the attribute of the AR object or manually modifying the numerical value of the attribute through the attribute panel;
the modeling software unit is used for modeling and modifying the AR object to generate new AR content, and the modeling software can import the model of the AR object to modify and optimize the model and export the model into the AR engine for use;
the script unit is used to write logic of the AR application, including dynamically modifying properties of AR objects and implementing interaction behavior, and the script is typically written using a programming language, such as c#, python;
the visual programming tool unit is used for quickly building logic of the AR application by dragging the spliced blocks, the programming logic is usually presented in a visual form, a user can select a required block from a block library, drag the block to an editing area, and complete programming by setting parameters and connecting input and output ports.
1-5, on the basis of embodiments 1-3, the present application provides a computer device, which is loaded with an attribute modification device of AR content, and is used for implementing an attribute modification method of AR content, including a display, a memory, a processor, a display card, a camera, an AR content development environment, and AR content design software, where the memory stores a computer program required for implementing the AR content attribute, and the processor and the display card are used to implement the modification of the AR content attribute in cooperation with the computer program;
the display is used for presenting AR content;
the processor and the display card are used for providing sufficient computing power, processing and rendering the AR content, and increasing the performance of the processor and the display card, so that the fluency of the operation effect of the AR content can be ensured;
the camera is used for acquiring scene information to provide AR content, so as to realize image capturing and processing;
the AR content development environment ensures necessary environments required for developing AR applications, such as Unity engine, androidtstudio, i.e., installing corresponding development tools and libraries on a computer;
AR content design software means that designing AR content requires installation on a computer using specialized design software, such as Blender, maya.
Embodiment 5 as shown in fig. 1-5, the present application provides a storage medium for storing a computer program for implementing AR content attribute modification on the basis of embodiments 1-4.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (9)
- An attribute modification method of ar content, characterized in that: the method comprises the following steps:s1, acquiring an AR object;s2, selecting an attribute to be modified according to actual requirements;s3, according to the actually selected attribute to be modified, using a corresponding API or tool to modify;and S4, after finishing attribute modification, saving the modification into the AR object, and presenting in the scene.
- 2. The attribute modification method of AR content according to claim 1, wherein: the S1 further comprises obtaining an AR object needing to be modified according to the attribute of the interface or the component provided by the engine, and the attribute to be modified in S2 comprises position, rotation, scaling and texture mapping.
- 3. The attribute modification method of AR content according to claim 2, wherein: the modification of the location attribute specifically includes,acquiring the current position of the AR object by calling the attribute of an interface or a component provided by the AR engine;calculating a vector of the variation using a vector operation, presenting a displacement of the AR object in three-dimensional space;the new position vector is obtained by adding the current position vector and the variation vector, the vector is assigned to the position component attribute of the AR object, and the position attribute of the AR object is updated.
- 4. The attribute modification method of AR content according to claim 2, wherein: the modification of the rotation attribute specifically includes,acquiring rotation information of the AR object through the attribute of an interface or a component provided by the engine;calculating a difference value between rotations by using quaternion operation and obtaining a quaternion of a variation;the new rotation attribute is obtained by multiplying the current rotation attribute by the quaternion of the variation, the value is assigned to the rotation component attribute of the AR object, and the rotation attribute of the AR object is updated.
- 5. The attribute modification method of AR content according to claim 2, wherein: the modification of the scaling attribute may in particular comprise,obtaining scaling information of the AR object through the attribute of an interface or a component provided by the engine;calculating a vector of the variation using a vector operation, presenting scaling of the AR object in three axes;the new scaling attribute is obtained by multiplying the current scaling attribute by the vector of the change amount, assigning the value to the scaling component attribute of the AR object, and updating the scaling attribute of the AR object.
- 6. The attribute modification method of AR content according to claim 2, wherein: the modification of the texture map attribute specifically includes,acquiring the material information of the AR object through the interface or the attribute of the component provided by the engine, and adding a part of material if the AR object has no material;loading the mapping attribute to be modified by using a method provided by an engine or a third party picture library;acquiring the ID or name of the currently used map attribute;the new map is applied to the material using methods provided by the engine or by directly setting the map properties of the material.
- 7. The method for modifying the attribute of AR content according to any one of claims 1 to 6, wherein an apparatus for modifying the attribute of AR content is provided, characterized in that: the visual programming system comprises an editor unit, a modeling software unit, a script unit and a visual programming tool unit;the editor unit is used for manually editing the attribute of the AR object and presenting the AR scene in a visual form;the modeling software unit is used for modeling and modifying the AR object to generate new AR content;the script unit is used for writing logic of the AR application program;the visual programming tool unit is used for quickly building logic of the AR application in a mode of dragging the spliced blocks.
- 8. The AR content attribute modification apparatus according to claim 7, wherein a computer device is provided with the AR content attribute modification apparatus for implementing the AR content attribute modification method according to any one of claims 1 to 6, characterized in that: the AR content development system comprises a display, a memory, a processor, a display card, a camera, an AR content development environment and AR content design software, wherein a computer program required for realizing the AR content attribute is stored in the memory, and the processor and the display card are used for realizing the modification of the AR content attribute in cooperation with the computer program.
- 9. A computer device according to claim 8, a storage medium being provided, characterized in that: the storage medium is for storing a computer program implementing AR content attribute modification.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310800024.4A CN117078900A (en) | 2023-07-03 | 2023-07-03 | Attribute modification method, device, computer equipment and storage medium for AR content |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310800024.4A CN117078900A (en) | 2023-07-03 | 2023-07-03 | Attribute modification method, device, computer equipment and storage medium for AR content |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117078900A true CN117078900A (en) | 2023-11-17 |
Family
ID=88714171
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310800024.4A Pending CN117078900A (en) | 2023-07-03 | 2023-07-03 | Attribute modification method, device, computer equipment and storage medium for AR content |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117078900A (en) |
-
2023
- 2023-07-03 CN CN202310800024.4A patent/CN117078900A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107832108B (en) | Rendering method and device of 3D canvas webpage elements and electronic equipment | |
CN107393013B (en) | Virtual roaming file generation and display method, device, medium, equipment and system | |
CN105447898A (en) | Method and device for displaying 2D application interface in virtual real device | |
US10930080B2 (en) | System and method for creating virtual and augmented reality environment | |
WO2019228013A1 (en) | Method, apparatus and device for displaying rich text on 3d model | |
CN111324837B (en) | Three-dimensional chart visualization method and device based on GIS system at web front end | |
CN110969685A (en) | Customizable rendering pipeline using rendering maps | |
US20150178977A1 (en) | Rendering Vector Maps in a Geographic Information System | |
CN111583379B (en) | Virtual model rendering method and device, storage medium and electronic equipment | |
CN112337091B (en) | Man-machine interaction method and device and electronic equipment | |
US8522201B2 (en) | Methods and apparatus for sub-asset modification | |
CN111429553B (en) | Animation preview method, device, computer equipment and storage medium | |
US20150015574A1 (en) | System, method, and computer program product for optimizing a three-dimensional texture workflow | |
CN113724331B (en) | Video processing method, video processing apparatus, and non-transitory storage medium | |
WO2024060949A1 (en) | Method and apparatus for augmented reality, device, and storage medium | |
US20210241539A1 (en) | Broker For Instancing | |
CN112700519A (en) | Animation display method and device, electronic equipment and computer readable storage medium | |
US10726621B2 (en) | Traversal selection of components for a geometric model | |
CN113838180A (en) | Rendering instruction processing method and related equipment thereof | |
CN115311397A (en) | Method, apparatus, device and storage medium for image rendering | |
CN117078900A (en) | Attribute modification method, device, computer equipment and storage medium for AR content | |
CN114119831A (en) | Snow accumulation model rendering method and device, electronic equipment and readable medium | |
CN115167940A (en) | 3D file loading method and device | |
CN114913277A (en) | Method, device, equipment and medium for three-dimensional interactive display of object | |
CN115174993B (en) | Method, apparatus, device and storage medium for video production |
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 |