Giter Club home page Giter Club logo

Comments (1)

sinclairzx81 avatar sinclairzx81 commented on August 28, 2024

Hi, if you're referring to the ./scene/source/desk.blend blender file, there is no export functionality other than a small script that exports the camera animation.

For this demo, I just manually exported each object in the scene as a wavefront (.obj) file, as well as the textures that are baked for each object in the scene (or more accurately, for each object with an associated render texture in its material). As for the script, if you run the script inside the desk.blend blender file, it will write the camera animations based on the 'camera' and 'target' (the output file is `./scene/animation.json')

Its a rather manual process and could use automating, but its not something i bothered to do for this demo and only really focused on exporting the animation (as it would have been a pain to manually create that animation.json file by hand). Also, I'm not really a blender scripting expert.

In saying this, it is possible to create your own scenes in blender if you're fine with manually exporting your own geometry and textures....check the ./src/loader.ts file for how things are loaded in...

The requirements for the geometry are:

  1. Exported geometry should be triangulated
  2. The geometry should have vertex data for (position, normal, uv)
  3. Saved as .obj (one object per .obj)
  4. Each .obj should have a corresponding .jpg (as per loader.ts)

Or alternatively, look at FBX, GLTF formats, and just implement your own stuff from there.

That's all really, hope that helps :)
S

from zero.

Related Issues (8)

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.