CN111198680A - File generation system and method based on Arnold renderer - Google Patents

File generation system and method based on Arnold renderer Download PDF

Info

Publication number
CN111198680A
CN111198680A CN201911328273.8A CN201911328273A CN111198680A CN 111198680 A CN111198680 A CN 111198680A CN 201911328273 A CN201911328273 A CN 201911328273A CN 111198680 A CN111198680 A CN 111198680A
Authority
CN
China
Prior art keywords
file
writing
programming interface
arnold
renderer
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
Application number
CN201911328273.8A
Other languages
Chinese (zh)
Other versions
CN111198680B (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 Force Animation Production Ltd By Share Ltd
Original Assignee
Jiangsu Force Animation Production Ltd By Share 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 Force Animation Production Ltd By Share Ltd filed Critical Jiangsu Force Animation Production Ltd By Share Ltd
Priority to CN201911328273.8A priority Critical patent/CN111198680B/en
Publication of CN111198680A publication Critical patent/CN111198680A/en
Application granted granted Critical
Publication of CN111198680B publication Critical patent/CN111198680B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a file generation system based on an Arnold renderer, which comprises a programming interface of the Arnold renderer and a programming interface of a Material X library, and is characterized by comprising an information acquisition module and a file writing-out module, wherein the information acquisition module and the file writing-out module respectively depend on the programming interface of the Arnold renderer and the programming interface of the Material X library to realize data reading and writing; the information acquisition module loads a dynamic library through a programming interface of the Arnold renderer, traverses the loader nodes and parameters thereof contained in the dynamic library, acquires related information and transmits the related information to the file writing-out module; the file writing-out module sorts the content transmitted by the information acquisition module according to the format of the material X, and then writes out the information to the Node Definition file through a corresponding writing-out interface.

Description

File generation system and method based on Arnold renderer
Technical Field
The invention particularly relates to a file generation system and method based on an Arnold renderer.
Background
The material X is a general material format file proposed by an industrial photomechanical company and aims to provide a same interface to realize the transmission of material data between different three-dimensional software and even different renderers. The Node definition file is a special material X file used for providing Node definition information related to a renderer, and due to the fact that the number of general nodes is large, handwriting of the file is obviously unrealistic, and a similar system capable of automatically generating the file does not exist in the market at present.
Disclosure of Invention
The invention aims to provide a file generation system and method based on an Arnold renderer, which solve the problem of automatically generating a node definition file, include a rendering node applied to third-party development, and save the labor cost of manually writing the node definition file.
The invention provides the following technical scheme:
a file generation system based on an Arnold renderer comprises a programming interface of the Arnold renderer and a programming interface of a materialX library;
the system also comprises an information acquisition module and a file writing-out module, wherein the information acquisition module and the file writing-out module respectively depend on a programming interface of the Arnold renderer and a programming interface of the Material X library to realize data reading and writing;
the information acquisition module loads a dynamic library through a programming interface of the Arnold renderer, traverses the shader nodes and parameters thereof contained in the dynamic library, acquires related information and transmits the related information to the file writing-out module; the file writing-out module sorts the content transmitted by the information acquisition module according to the format of the material X, and then writes out the information to the Node Definition file through a corresponding writing-out interface.
Preferably, the programming interface of the Arnold renderer comprises a plurality of functions for interacting with the Arnold renderer, and the functions comprise data query, data generation and option setting.
Preferably, the program interface of the materialX library is used for providing a function of reading and writing files.
A file generation method based on an Arnold renderer comprises the following steps:
s1, acquiring the existing material nodes through an information acquisition module realized through a programming interface based on an Arnold renderer, traversing each node, acquiring the type and default value of each attribute on each node through the programming interface, storing the type and default value into a data structure of the system, and transmitting related information to a file writing-out module;
s2, a file writing-out module carries out data adaptation on the data acquired from the Arnold renderer aiming at the material X file definition;
and S3, writing out data of each part of the system corresponding to the concept in the material X file through a program interface of the material X library and storing the data in a format of the material X to form a node definition file.
Preferably, the adapting in step S2 includes type name correspondence adapting and data precision adjusting.
The invention has the beneficial effects that: the system is manufactured by using a programming interface provided by an Arnold renderer and a mode similar to a DCC software interface; acquiring necessary information by loading a loader dynamic library and traversing material nodes contained in the dynamic library by using an interface, and outputting the information into a format of MaterialX by using a programming interface provided by the MaterialX to form a node definition file; the system has better universality, can be suitable for material nodes developed by any third party, and generates a node definition file format with a uniform format; in addition, by extension, the system can also be used for generating other types of Arnold node information for reference.
Detailed Description
The node definition file generation system comprises a programming interface of an Arnold renderer and a programming interface of a materialX library;
the system also comprises an information acquisition module and a file writing-out module, wherein the information acquisition module and the file writing-out module respectively depend on a programming interface of the Arnold renderer and a programming interface of the Material X library to realize data reading and writing;
the information acquisition module loads a dynamic library through a programming interface of the Arnold renderer, traverses the loader nodes and parameters thereof contained in the dynamic library, acquires related information and transmits the related information to the file writing-out module; the module can be suitable for all the shader nodes, comprises contents developed by some third parties, can even expand projects for acquiring information of other types of nodes, and has good universality and expansibility;
the file writing-out module sorts and classifies the contents transmitted by the information acquisition module according to the format of material X, and then writes out the information to the Node Definition file through a corresponding writing-out interface, the module is only responsible for writing out the file, the corresponding file can be output as long as the information acquisition layer provides the contents in the same format, and the design can be conveniently added with the support of other renderers.
Specifically, the programming interface of the Arnold renderer includes several functions for interacting with the Arnold renderer, and the several functions include data query, data generation, and option setting.
Specifically, the program interface of the MaterialX library is used to provide a function of reading and writing files.
The method for generating the node definition file comprises the following steps:
s1, acquiring the existing material nodes through an information acquisition module realized through a programming interface based on an Arnold renderer, traversing each node, acquiring the type and default value of each attribute on each node through the programming interface, storing the type and default value into a data structure of the system, and transmitting related information to a file writing-out module;
s2, a file writing-out module carries out data adaptation on the data acquired from the Arnold renderer aiming at the material X file definition;
and S3, writing out data of each part of the system corresponding to the concept in the material X file through a program interface of the material X library and storing the data in a format of the material X to form a node definition file.
Specifically, the adaptation of step S2 includes type name correspondence adaptation and data precision adjustment.
The system is manufactured by using a programming interface provided by an Arnold renderer and a mode similar to a DCC software interface; acquiring necessary information by loading a loader dynamic library and traversing material nodes contained in the dynamic library by using an interface, and outputting the information into a format of MaterialX by using a programming interface provided by the MaterialX to form a node definition file; the system has better universality, can be suitable for material nodes developed by any third party, and generates a nodedefinition file format with a uniform format; in addition, by extension, the system can also be used for generating other types of Arnold node information for reference.
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. A file generation system based on an Arnold renderer comprises a programming interface of the Arnold renderer and a programming interface of a Material X library, and is characterized by comprising an information acquisition module and a file writing-out module, wherein the information acquisition module and the file writing-out module respectively depend on the programming interface of the Arnold renderer and the programming interface of the Material X library to realize data reading and writing;
the information acquisition module loads a dynamic library through a programming interface of the Arnold renderer, traverses the shader nodes and parameters thereof contained in the dynamic library, acquires related information and transmits the related information to the file writing-out module; the file writing-out module sorts the content transmitted by the information acquisition module according to the format of the material X, and then writes out the information to the Node Definition file through a corresponding writing-out interface.
2. The Arnold renderer-based file generation system as recited in claim 1, wherein the programming interface of the Arnold renderer comprises a plurality of functions for interacting with the Arnold renderer, and wherein the plurality of functions comprise data query, data generation, and option setting.
3. The Arnold renderer-based file generation system as claimed in claim 1, wherein the program interface of the materialX library is configured to provide a function of reading and writing files.
4. A file generation method based on an Arnold renderer is characterized by comprising the following steps:
s1, acquiring the existing material nodes through an information acquisition module realized through a programming interface based on an Arnold renderer, traversing each node, acquiring the type and default value of each attribute on each node through the programming interface, storing the type and default value into a data structure of the system, and transmitting related information to a file writing-out module;
s2, a file writing-out module carries out data adaptation on the data acquired from the Arnold renderer aiming at the material X file definition;
and S3, writing out data of each part of the system corresponding to the concept in the material X file through a program interface of the material X library and storing the data in a format of the material X to form a node definition file.
5. The Arnold renderer-based file generation method as claimed in claim 4, wherein the adapting of step S2 comprises type name correspondence adapting and data precision adjusting.
CN201911328273.8A 2019-12-20 2019-12-20 File generation system and method based on Arnold renderer Active CN111198680B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911328273.8A CN111198680B (en) 2019-12-20 2019-12-20 File generation system and method based on Arnold renderer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911328273.8A CN111198680B (en) 2019-12-20 2019-12-20 File generation system and method based on Arnold renderer

Publications (2)

Publication Number Publication Date
CN111198680A true CN111198680A (en) 2020-05-26
CN111198680B CN111198680B (en) 2020-12-11

Family

ID=70746329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911328273.8A Active CN111198680B (en) 2019-12-20 2019-12-20 File generation system and method based on Arnold renderer

Country Status (1)

Country Link
CN (1) CN111198680B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6754703B1 (en) * 1999-06-16 2004-06-22 Cisco Technology Inc. Network management using abstract device descriptions
CN108133445A (en) * 2016-12-01 2018-06-08 钦州市晶通科技有限公司 A kind of image encryption method for spreading mapping scramble and being combined with chaos system
CN108287707A (en) * 2017-09-13 2018-07-17 深圳壹账通智能科技有限公司 JSX document generating methods, device, storage medium and computer equipment
US20180315101A1 (en) * 2017-04-29 2018-11-01 Yogesh Ramdas KADAM System and method for optimizing revenue generation process
CN108874373A (en) * 2017-05-12 2018-11-23 腾讯科技(深圳)有限公司 Method and device, display terminal and the storage medium of information are inserted into webpage
CN108876764A (en) * 2018-05-21 2018-11-23 北京旷视科技有限公司 Render image acquiring method, device, system and storage medium
US10199583B1 (en) * 2018-06-22 2019-02-05 Nanjing Tech University Blue luminescent material of platinum complex and organic light-emitting device
CN109343774A (en) * 2018-10-29 2019-02-15 广东明星创意动画有限公司 A kind of rapid file pretreatment rendering system
CN109377543A (en) * 2018-10-29 2019-02-22 广东明星创意动画有限公司 A kind of method of quick creation material connection
CN109710227A (en) * 2018-11-07 2019-05-03 苏州蜗牛数字科技股份有限公司 A kind of method of texture atlas scheduling
CN109725893A (en) * 2018-05-17 2019-05-07 平安普惠企业管理有限公司 Code generating method, unit and computer readable storage medium
CN109885291A (en) * 2019-01-25 2019-06-14 深圳市元征科技股份有限公司 A kind of code automatic generation method and code generator

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6754703B1 (en) * 1999-06-16 2004-06-22 Cisco Technology Inc. Network management using abstract device descriptions
CN108133445A (en) * 2016-12-01 2018-06-08 钦州市晶通科技有限公司 A kind of image encryption method for spreading mapping scramble and being combined with chaos system
US20180315101A1 (en) * 2017-04-29 2018-11-01 Yogesh Ramdas KADAM System and method for optimizing revenue generation process
CN108874373A (en) * 2017-05-12 2018-11-23 腾讯科技(深圳)有限公司 Method and device, display terminal and the storage medium of information are inserted into webpage
CN108287707A (en) * 2017-09-13 2018-07-17 深圳壹账通智能科技有限公司 JSX document generating methods, device, storage medium and computer equipment
CN109725893A (en) * 2018-05-17 2019-05-07 平安普惠企业管理有限公司 Code generating method, unit and computer readable storage medium
CN108876764A (en) * 2018-05-21 2018-11-23 北京旷视科技有限公司 Render image acquiring method, device, system and storage medium
US10199583B1 (en) * 2018-06-22 2019-02-05 Nanjing Tech University Blue luminescent material of platinum complex and organic light-emitting device
CN109343774A (en) * 2018-10-29 2019-02-15 广东明星创意动画有限公司 A kind of rapid file pretreatment rendering system
CN109377543A (en) * 2018-10-29 2019-02-22 广东明星创意动画有限公司 A kind of method of quick creation material connection
CN109710227A (en) * 2018-11-07 2019-05-03 苏州蜗牛数字科技股份有限公司 A kind of method of texture atlas scheduling
CN109885291A (en) * 2019-01-25 2019-06-14 深圳市元征科技股份有限公司 A kind of code automatic generation method and code generator

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
霍鹏旭: "MAYA渲染mantel ray材质球 mia_material_x", 《HTTPS://BLOG.CSDN.NET/CHONGSHANGDIAO/ARTICLE/DETAILS/6263793/》 *

Also Published As

Publication number Publication date
CN111198680B (en) 2020-12-11

Similar Documents

Publication Publication Date Title
CN109117209B (en) Serialization and deserialization method and device
CN104035754A (en) XML (Extensible Markup Language)-based custom code generation method and generator
EP2082330B1 (en) Methods for efficient data version verification
US20020091705A1 (en) Object integrated management system
CN109634682A (en) The configuration file update method and device of application program
CN105446722A (en) Serialization method and device and deserialization method and device
CN111198680B (en) File generation system and method based on Arnold renderer
CN111078213B (en) Code generation method and code generation device
WO2022217889A1 (en) C# language-based gripper configuration system, method and apparatus, and storage medium
CN104281604B (en) Method and system for generating Target Link data dictionary hierarchical tree
CN110069812B (en) Configuration method, system and storage medium for robot path track point attribute
CN106330519B (en) Method and system for communication of messages between network management systems
CN114048352B (en) Method for converting XML file into structure with indefinite length
CN102779036B (en) For the Software tool of automatic technology
CN114968196A (en) Development platform architecture based on CODESYS software
Bauwens et al. Nested pure operation-based CRDTs
CN114895875A (en) Zero-code visual information system metadata production application method and system
CN112148299A (en) Byte code object copying method, device, equipment and storage medium
CN116757169B (en) Method, equipment and medium for generating highway maintenance metering payment report
CN111144084B (en) Method and system for configuring article template and method and system for generating article
CN116661768B (en) Knowledge graph-based page code generation method, system, device and medium
CA2607495A1 (en) System and method for efficient hosting of wireless applications by encoding application component definitions
US7809702B2 (en) Generating from application modifications commands to modify the objects in a repository
US11496549B2 (en) Heterogeneous execution engines in a network centric process control system
CN115438055A (en) Data ownership method for changing product data management system and related equipment

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
CB02 Change of applicant information

Address after: 3-7 / F, building 3, science and technology innovation complex a, Xincheng science and Technology Park, 8 Bailongjiang East Street, Jianye District, Nanjing City, Jiangsu Province 210000

Applicant after: Jiangsu Yuanli Digital Technology Co.,Ltd.

Address before: 210000 No.8, Bailongjiang East Street, Jianye District, Nanjing City, Jiangsu Province

Applicant before: Jiangsu force animation production Limited by Share Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant