CN111383319B - 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 PDF

Info

Publication number
CN111383319B
CN111383319B CN202010481950.6A CN202010481950A CN111383319B CN 111383319 B CN111383319 B CN 111383319B CN 202010481950 A CN202010481950 A CN 202010481950A CN 111383319 B CN111383319 B CN 111383319B
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.)
Active
Application number
CN202010481950.6A
Other languages
Chinese (zh)
Other versions
CN111383319A (en
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.)
Jiangsu Yuanli Digital Technology Co ltd
Original Assignee
Jiangsu Yuanli Digital 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 Jiangsu Yuanli Digital Technology Co ltd filed Critical Jiangsu Yuanli Digital Technology Co ltd
Priority to CN202010481950.6A priority Critical patent/CN111383319B/en
Publication of CN111383319A publication Critical patent/CN111383319A/en
Application granted granted Critical
Publication of CN111383319B publication Critical patent/CN111383319B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/50Lighting effects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/203D [Three Dimensional] animation

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

Automatic conversion method and device for Maya light and USD light
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 (3)

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 content into a corresponding directional light node in a Maya file, and setting corresponding parameter values, wherein the parameter values depend on the parameter values written in the USD file or attribute values of directional light in the Maya file, and the attribute values comprise the position of a light source in space, the angle of the light source, the color of the light source, the intensity of the light source, the exposure degree 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 option of the light source;
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 parsing is to invoke different converters for different types of data.
3. An automatic conversion device for 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 content into a corresponding directional light node in a Maya file, setting a corresponding parameter value, the automatic converter generates a corresponding parameter set by the Maya directional light node in the Maya after reading a USD high beam element, and the specific value of the parameter depends on the parameter value written in the USD file or the attribute value of the directional light in the Maya.
CN202010481950.6A 2020-06-01 2020-06-01 Automatic conversion method and device for Maya light and USD light Active CN111383319B (en)

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 CN111383319A (en) 2020-07-07
CN111383319B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111815746B (en) * 2020-09-10 2020-12-11 江苏原力数字科技股份有限公司 Method for generating hair data based on USD system
CN111833419B (en) * 2020-09-14 2020-12-11 江苏原力数字科技股份有限公司 Automatic conversion method for Maya instance and USD point instance

Citations (2)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
USD相关的格式转换与比较;张杰;《知乎》;20200110;全文 *
原力动画放大招!自主研发三项全新技术正式亮相!;wuhu动画人空间;《看点快报》;20191202;全文 *

Also Published As

Publication number Publication date
CN111383319A (en) 2020-07-07

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
CN104346146B (en) A kind of method of cross-platform transformation applications code and device
CN109491658A (en) The generation method and device of computer-executable code data
JP2007026312A (en) Texture encoder, texture decoder, method and program
JP2006252558A (en) System and method for extensive content build pipeline
CN105005495A (en) Game engine
CN110188153B (en) WebGIS publishing method based on IFC extended data
US20100207944A1 (en) Modular shader architecture and method for computerized image rendering
US8416238B2 (en) Modular shader architecture and method for computerized image rendering
CN111815746B (en) Method for generating hair data based on USD system
CN112750189A (en) Illumination coloring method and device, electronic equipment and computer readable storage medium
CN115564903B (en) Three-dimensional scene asset data processing method and device, electronic equipment and storage medium
CN112347534A (en) Water conservancy and hydropower engineering BIM model conversion method based on IFC extension
US20220215641A1 (en) Model generation apparatus, model generation system, model generation method
CN116068955A (en) Soft PLC control method, device, equipment and storage medium
CN109298952A (en) The call method and its device of application programming interface
CN114943795A (en) Model rendering method and device, electronic equipment and storage medium
CN115454438A (en) Method for converting HLSL shader source code into GLSL shader source code based on comparison table
CN113362477A (en) 3D data acquisition and monitoring control system and scene editing method thereof
CN111833419B (en) Automatic conversion method for Maya instance and USD point instance
CN109119099A (en) The optical information stored digital method of image-type concurrent reading and concurrent writing
CN113660172B (en) Flow control method and device
CN112258614B (en) Scene data conversion method from Autodesk 3ds Max to D5 renderer
CN115658068A (en) C language code file automatic generation system based on imaging

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