Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Automatic importation

Discussion in 'Pixyz' started by GerardoCB, Aug 14, 2023.

  1. GerardoCB

    GerardoCB

    Joined:
    Oct 14, 2020
    Posts:
    2
    We would like to know if there is a way to automate the import of 3D files that are not ".pxz".

    At the moment, we are working with ".dae" files and we have noticed that there is a tool called "pixyz loader" that seems to do just what we need, but it is limited to ".pxz" files. The interesting thing is that this tool allows runtime import, which is what we need for our application.

    So basically, we want to understand how we could automate the import process, apply rules through code and do it both in the editor and at runtime. Is there an API that could help us in this process? And if the only way is to use the "pixyz scenario processor", could you share the price and if there are any trial versions available?

    Thanks in advance for the help!
     
  2. laurent-milon

    laurent-milon

    Unity Technologies

    Joined:
    Nov 30, 2022
    Posts:
    14
    Hello @GerardoCB thanks for making contact here!
    Runtime import in Unity built application is actually quite a challenge and isn't really available "as is". The recommended workflow would be the following:
    - Initial data transformation and conversion using either Pixyz Studio (manual) or Pixyz Scenario Processor (automated, batch processing)
    - Export as a gltf/glb asset
    - Addition of the gltfast package to your Unity Editor and/or Unity Runtime project
    - Use glTFast loading capability to bring the transformed gltfs/glbs within Unity


    Would that work?

    note: Pixyz Loader is unfortunately a deprecated (sunset) tool. I wouldn't recommend using it.
     
  3. AxelJacquet

    AxelJacquet

    Unity Technologies

    Joined:
    Oct 18, 2021
    Posts:
    13
    laurent-milon likes this.
  4. GerardoCB

    GerardoCB

    Joined:
    Oct 14, 2020
    Posts:
    2
    First of all, I would like to thank you for your willingness, as for my previous comment, I think I did not express myself well.

    Now our priority is to automate the import and optimisation process, even in the editor, as our intention is to instantiate these objects according to the guidelines given by an XML.

    Greetings (=
     
  5. laurent-milon

    laurent-milon

    Unity Technologies

    Joined:
    Nov 30, 2022
    Posts:
    14
    Hello Gerardo, happy to provide some support an answer.
    File ingestion and optimization automation would fall under the same recommended workflow: use of Pixyz Scenario Processor to convert native (DAE) files into Unity-compatible assets, then execute a headless instance of Unity Editor to add any Unity-specific rules, components, ...