Giter Club home page Giter Club logo

Comments (4)

araistrick avatar araistrick commented on September 13, 2024 3

At the moment, adjusting specific creature parameters requires writing/editing python code, there isnt a convinient commandline option yet. Particularly, on this line, you could add some overrides corrresponding to the keys of this dictionary, eg you could edit the line to say:

ear_fac = parts.head_detail.CatEar({'length_rad1_rad2':  (0.25, 0.1, 0})

This line would fix the length, starting width and ending width to the specified values.

from infinigen.

JiazheZhang avatar JiazheZhang commented on September 13, 2024

I also have this question.

from infinigen.

araistrick avatar araistrick commented on September 13, 2024

Your best bet to produce samples (renders or blendfiles) of any specific asset type is to use our tools/asset_grid.py script. Better tutorials for this are in the works, but you should be able to do the following provided the repo is installed correctly:

cd worldgen
../blender/blender --background -noaudio --python tools/asset_grid.py -- -f CarnivoreFactory -n 10 -r 1024x1024 -s 10

You should be able to swap -f CarnivoreFactory for any subclass of AssetFactory you find in the codebase, including the other creatures defined in the assets/creatures/genomes folder.

If you want to use the code directly from a blender python script, you can do something like the following. This also allows you more control via kwargs over whether you want rigging, animation, fur, materials, etc.

from assets.creatures.genomes.fish import FishFactory
fac = FishFactory(factory_seed=0)
asset = fac.spawn_asset(0)

from infinigen.

JiazheZhang avatar JiazheZhang commented on September 13, 2024

Thank you for your answer.
And I would like to know how to generate a specified creature like a tiger and adjust the size of ears, rather than randomly generating a creature by a seed?

from infinigen.

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.