Cryenginev How to write XML files with flow graphs

Source: Internet
Author: User

Recently in the test CE scene editing good trackview, the path of the scene data is exported in XML, loading into the new CPP project reading scene animation data so that the current camera in the CPP scene can be run according to the original CEV editor animation to ensure that the correct.
Here's what I did by learning official video using Flowgraph to write XML by reading the camera's roaming point and direction into the XML. Screenshot below

First tool under Edit Graph Tokens ... Define two variables to store pos with dir Two, and initialize as shown in the following figure:

The next start is to write XML to create a Document object to write a file header declaration. Screenshot below

Down is to update the data and save it to two variables, as shown in the following figure:

Finally, all the data is written to the XML file and saved, as shown in the following figure:

Well, the flow graph is done now is how to trigger the scene animation to write roaming data, the following is in the FG flow diagram to connect the following node

Then click the Run button to write to the file, as to how to do the process animation in my blog has a screen inside the detailed process can be viewed.
Here is a screenshot of the XML file as follows:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.