Coder Social home page Coder Social logo

Basic glTF Export about arsenal HOT 4 CLOSED

katharostech avatar katharostech commented on June 10, 2024
Basic glTF Export

from arsenal.

Comments (4)

zicklag avatar zicklag commented on June 10, 2024 1

You, as a game developer, will not have to deal with the glTF export at all. The glTF export happens automatically before Blender runs your game and the developer doesn't even have to know what happens. All changes to the game scenes will be done through Blender, just like it was with Armory. In other words, glTF for Arsenal is what the .arm format was for Armory.

Can I (using the Blender tools) add a cube (as an example) and if I press save, would that cube automatically be converted into a gltf format?

The conversion will automatically happen when you click "Arsenal Run". So the workflow is:

  1. Edit my scene in Blender
  2. Click "Run"
  3. The Blender scene is automatically exported to glTF in the background
  4. The game runs and loads the glTF game scene.

from arsenal.

Raj2032 avatar Raj2032 commented on June 10, 2024

Why can't we just use the blend file?

from arsenal.

zicklag avatar zicklag commented on June 10, 2024

There are three reasons:

  1. Maintenance: Keeping up with the Blender file format could be time-consuming as it is a moving target. Comparatively, the glTF format is very simple and standardized.
  2. Storage: The blender format contains a lot of metadata that we don't need for a game, such as the Blender UI layout.
  3. Efficiency: If you use the Blender file format, the game would have to decode the .blend file while the game is running. This would involve going through more information than is actually needed in the game and would require more CPU to get the required data. glTF is a very dense format that compactly stores the information we need while also facilitating efficient extraction into a running game.

from arsenal.

Raj2032 avatar Raj2032 commented on June 10, 2024

@zicklag I see and I understand.

What if I am designing a level map and I am just creating random objects to fit in the level. How would that work exactly? Like say I saved a level map as a gltf format, then what if I wanted to add something. Can I (using the Blender tools) add a cube (as an example) and if I press save, would that cube automatically be converted into a gltf format?

from arsenal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.