GithubHelp home page GithubHelp logo

Comments (5)

Code47X avatar Code47X commented on August 22, 2024 4

@TranquilMarmot Whoops - here is a gist of the pipeline script I mentioned: https://gist.github.com/Code47X/ad0bbbf8ff0aefd5536e9431e66d5f0d

I do agree though, an output directory option would be a nice addition.

from gltfjsx.

TranquilMarmot avatar TranquilMarmot commented on August 22, 2024 2

@Code47X looks like that repo is private?

It would be nice to have an --outputDirectory option that could be passed to choose where files are output to.

For example, I have public/scenes that has all of my gltf scenes (i.e. public/scenes/scene1.gltf, public/scenes/scene2.gltf) and want to export them all to src/components/scenes (i.e. src/components/scenes/scene1.tsx, src/components/scenes/scene2.tsx)

from gltfjsx.

drcmda avatar drcmda commented on August 22, 2024

no idea how that would work, a second arg maybe?

from gltfjsx.

 avatar commented on August 22, 2024

@MaxmaxmaximusAWS By default command to write to a new file, if you have admin rights, then it is

echo @react-three/gltfjsx > assets/gltf/scenge.gltf

//to see the contents just cat it or nano

cat target_file.txt

You can create a bash script to do so and chmod it.

You will also need to play around with the paths a bit.

from gltfjsx.

Code47X avatar Code47X commented on August 22, 2024

Going off of what @algorithmhash said. For what it's worth, here is a pipeline script I made that might help you out.... You'll need to modify it a bit to fit your needs, but it's pretty straightforward. It handles draco-compressing, gltf-jsx, and component output directory.

Usage: ./scripts/pipeline.rb model-name.gltf

https://github.com/Code47X/tanman.dev/blob/master/scripts/pipeline.rb

from gltfjsx.

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.