CN111383319A - Automatic conversion method and device for Maya light and USD light - Google Patents
Automatic conversion method and device for Maya light and USD light Download PDFInfo
- Publication number
- CN111383319A CN111383319A CN202010481950.6A CN202010481950A CN111383319A CN 111383319 A CN111383319 A CN 111383319A CN 202010481950 A CN202010481950 A CN 202010481950A CN 111383319 A CN111383319 A CN 111383319A
- Authority
- CN
- China
- Prior art keywords
- usd
- light
- maya
- file
- light source
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/50—Lighting effects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T13/00—Animation
- G06T13/20—3D [Three Dimensional] animation
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Graphics (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The invention provides an automatic conversion method and device of Maya light and USD light, which comprises the following steps: importing a USD file into a data converter, analyzing the USD file, converting corresponding USD file contents into corresponding directional optical nodes in a Maya file, and setting corresponding parameter values; when reading USD in Maya, copying the USD to the parameters of light in the Maya direction according to the parameter data in the USD file to finish conversion; when writing out the USD file, creating a USD high beam element, copying the parameter value of the light in the Maya direction to the parameter data of the USD high beam element, writing the USD high beam element into the USD file, and finishing conversion. The invention satisfies the light element conversion between the 3D software and the USD library.
Description
Technical Field
The invention belongs to the technical field of animation production, and particularly relates to an automatic conversion method and device of Maya light and USD light.
Background
USD (Universal Scene description) is an open source file format proposed by Pixar as a tool. USD addresses the need for efficient delineation, assembly, exchange, and modification of highly complex virtual scenes between content authoring tools used by computer animation companies and game developers. It provides a series of tools to convert scene elements in 3D software such as Maya into corresponding USD elements, but in this tool, no converter is provided to convert USD distance light into corresponding Maya directional light, resulting in that light elements cannot be effectively converted at the time of animation production, affecting animation production effect.
Disclosure of Invention
The invention aims to provide an automatic conversion method and device of Maya light and USD light, which meet the light element conversion between 3D software and a USD library;
the invention provides the following technical scheme:
an automatic conversion method of Maya light and USD light comprises the following steps:
importing a USD file into a data converter, analyzing the USD file, converting corresponding USD file contents into corresponding directional optical nodes in a Maya file, and setting corresponding parameter values;
when reading USD in Maya, copying the USD to the parameters of light in the Maya direction according to the parameter data in the USD file to finish conversion; when writing out the USD file, creating a USD high beam element, copying the parameter value of light in the Maya direction to the parameter data of the USD high beam element, writing the USD high beam element into the USD file, and finishing conversion;
preferably, the parameter values depend on the parameter values written in the USD file or the attribute values of the directional light in Maya, including the light source position in space, light source angle, light source color, light source intensity, light source exposure, light source diffuse intensity, source reflected intensity, light source orthogonalization and light source color temperature options;
preferably, the analyzing is to call different converters for analyzing different types of data;
an automatic conversion device for Maya light and USD light comprises an automatic converter, wherein the automatic converter is used for analyzing a USD file, converting corresponding USD file contents into corresponding directional light nodes in a Maya file, and setting corresponding parameter values;
preferably, the automatic converter generates a corresponding parameter set by a Maya directional light node in Maya after reading the USD high beam element, and the specific value of the parameter depends on the value of the parameter written in the USD file or the attribute value of the directional light in Maya;
the invention has the beneficial effects that: the defects of the existing USD tool are overcome, and light elements are converted between 3D software such as Maya and the USD library.
Detailed Description
An automatic conversion method of Maya light and USD light comprises the following steps:
importing a USD file into a data converter, analyzing the USD file, converting corresponding USD file contents into corresponding directional optical nodes in a Maya file, and setting corresponding parameter values;
when reading USD in Maya, copying the USD to the parameters of light in the Maya direction according to the parameter data in the USD file to finish conversion; when writing out the USD file, creating a USD high beam element, copying the parameter value of light in the Maya direction to the parameter data of the USD high beam element, writing the USD high beam element into the USD file, and finishing conversion;
an automatic conversion device for Maya light and USD light comprises an automatic converter, wherein the automatic converter is used for analyzing a USD file, converting corresponding USD file contents into corresponding directional light nodes in a Maya file, and setting corresponding parameter values;
specifically, when the converter reads the USD distance light, a Maya directional light is generated in Maya, and a corresponding parameter is set, where the specific value of the parameter completely depends on the value of the parameter written in the USD file or the attribute value of the directional light in Maya. If the USD is read in, copying the parameter data in the USD file to the parameter of the Maya directional light, if the USD file is written out, creating a USD distance light, copying the parameter value of the Maya directional light to the parameter data of the USD distance light, and writing the USD distance light to the USD file;
the list of supported properties includes:
the object directive light is m _ pointWorld, the position of the light source in the space;
the object directional light is m _ light Angle;
object directional light, m _ color, light source color;
object directional light, m _ intensity, light source intensity;
m _ exposure, light source exposure;
object directional light, m _ diffusion, light source diffusion intensity;
m _ specific, light source reflection intensity;
m _ normal light, orthogonalizing the light source;
the object directive light comprises m _ enable ColorTemperation, a light source color temperature option;
the invention provides conversion of light source elements and parameter values on the basis of the original tool;
although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (5)
1. An automatic conversion method of Maya light and USD light is characterized by comprising the following steps:
importing a USD file into a data converter, analyzing the USD file, converting corresponding USD file contents into corresponding directional optical nodes in a Maya file, and setting corresponding parameter values;
when reading USD in Maya, copying the USD to the parameters of light in the Maya direction according to the parameter data in the USD file to finish conversion; when writing out the USD file, creating a USD high beam element, copying the parameter value of the light in the Maya direction to the parameter data of the USD high beam element, writing the USD high beam element into the USD file, and finishing conversion.
2. The method of claim 1, wherein the parameter values are determined by the parameter values written in the USD file or the attribute values of the directional light in Maya, and the attribute values comprise the position of the light source in space, the angle of the light source, the color of the light source, the intensity of the light source, the exposure of the light source, the diffusion intensity of the light source, the reflection intensity of the light source, the orthogonalization of the light source and the color temperature of the light source.
3. The method of claim 1, wherein the parsing is to invoke different converters for different types of data.
4. The automatic conversion device of Maya light and USD light is characterized by comprising an automatic converter, wherein the automatic converter is used for analyzing a USD file, converting corresponding USD file contents into corresponding directional optical nodes in a Maya file, and setting corresponding parameter values.
5. An automatic Maya light and USD light conversion device according to claim 4, wherein the automatic converter generates a corresponding parameter set by the Maya directional light node in the Maya after reading the USD high beam element, and the specific value of the parameter depends on the value of the parameter written in the USD file or the attribute value of the directional light in Maya.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010481950.6A CN111383319B (en) | 2020-06-01 | 2020-06-01 | Automatic conversion method and device for Maya light and USD light |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010481950.6A CN111383319B (en) | 2020-06-01 | 2020-06-01 | Automatic conversion method and device for Maya light and USD light |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111383319A true CN111383319A (en) | 2020-07-07 |
CN111383319B CN111383319B (en) | 2020-08-25 |
Family
ID=71220435
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010481950.6A Active CN111383319B (en) | 2020-06-01 | 2020-06-01 | Automatic conversion method and device for Maya light and USD light |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111383319B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111815746A (en) * | 2020-09-10 | 2020-10-23 | 江苏原力数字科技股份有限公司 | Method for generating hair data based on USD system |
CN111833419A (en) * | 2020-09-14 | 2020-10-27 | 江苏原力数字科技股份有限公司 | Automatic conversion method for Maya instance and USD point instance |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102682769A (en) * | 2011-03-07 | 2012-09-19 | 埃森哲环球服务有限公司 | Natural language-based control of digital network |
US20140149920A1 (en) * | 2012-11-29 | 2014-05-29 | Samsung Electronics Co., Ltd. | Method and electronic device for switching application programs |
-
2020
- 2020-06-01 CN CN202010481950.6A patent/CN111383319B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102682769A (en) * | 2011-03-07 | 2012-09-19 | 埃森哲环球服务有限公司 | Natural language-based control of digital network |
US20140149920A1 (en) * | 2012-11-29 | 2014-05-29 | Samsung Electronics Co., Ltd. | Method and electronic device for switching application programs |
Non-Patent Citations (2)
Title |
---|
WUHU动画人空间: "原力动画放大招!自主研发三项全新技术正式亮相!", 《看点快报》 * |
张杰: "USD相关的格式转换与比较", 《知乎》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111815746A (en) * | 2020-09-10 | 2020-10-23 | 江苏原力数字科技股份有限公司 | Method for generating hair data based on USD system |
CN111815746B (en) * | 2020-09-10 | 2020-12-11 | 江苏原力数字科技股份有限公司 | Method for generating hair data based on USD system |
CN111833419A (en) * | 2020-09-14 | 2020-10-27 | 江苏原力数字科技股份有限公司 | Automatic conversion method for Maya instance and USD point instance |
CN111833419B (en) * | 2020-09-14 | 2020-12-11 | 江苏原力数字科技股份有限公司 | Automatic conversion method for Maya instance and USD point instance |
Also Published As
Publication number | Publication date |
---|---|
CN111383319B (en) | 2020-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111383319B (en) | Automatic conversion method and device for Maya light and USD light | |
CA2795739C (en) | File format for representing a scene | |
CN101208690B (en) | Translating expressions in computing environment | |
US12014470B2 (en) | Model generation apparatus, model generation system, model generation method | |
CN110147226A (en) | A kind of system according to Function Block Diagram automatically generating program, method and device | |
US8379024B2 (en) | Modular shader architecture and method for computerized image rendering | |
CN115564903B (en) | Three-dimensional scene asset data processing method and device, electronic equipment and storage medium | |
CN113362477B (en) | 3D data acquisition and monitoring control system and scene editing method thereof | |
CN111815746B (en) | Method for generating hair data based on USD system | |
CN109978994A (en) | Later period based on BIM technology roams rendering method | |
CN116974550B (en) | Universal three-dimensional earth visualization method | |
CN112750189A (en) | Illumination coloring method and device, electronic equipment and computer readable storage medium | |
CN114610893B (en) | Automatic generation method and system for scenario-to-storyboard sequence based on deep learning | |
CN116068955A (en) | Soft PLC control method, device, equipment and storage medium | |
CN109298952A (en) | The call method and its device of application programming interface | |
CN109119099A (en) | The optical information stored digital method of image-type concurrent reading and concurrent writing | |
CN114943795A (en) | Model rendering method and device, electronic equipment and storage medium | |
CN101221794A (en) | Anti-fake disc production method | |
JP2010521737A (en) | Method and system for accessibility and control of parameters in a scene graph | |
CN117556519B (en) | Conversion method and equipment for digital twin-oriented Revit model data | |
CN111833419B (en) | Automatic conversion method for Maya instance and USD point instance | |
Kull | Compatibility issues with BIM | |
CN113660172B (en) | Flow control method and device | |
CN115658068A (en) | C language code file automatic generation system based on imaging | |
CN112258614B (en) | Scene data conversion method from Autodesk 3ds Max to D5 renderer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |