Giter Club home page Giter Club logo

7gen's People

Contributors

foone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

davidrenne

7gen's Issues

Can't do more than 8 skins

Well, I have a friend, and he's complaining that If he gave to his 3DMM "Actors" more than 8 skins, 7gen would put the double-digits above the single digits and he'd have to completely rearrange them, which wouldn't worth it at all. And If 7gen didn't do that, he would totally add more than 8 skins. Could you find a way to fix this?

Help with Quantizing in bin/background2vxp.py

I wrote a little script to take a JPEG and convert to a BMP in the sizes you specified in background2vxp.py:

from PIL import Image
fname = 'forest-g7aa59715e_1920'
name='Cartoon Forest'
shortname=name.lower().replace(" ", "_") # out file will be shortname with a 'vxp' extension
img = Image.open("images/" + fname + ".jpeg")
img = img.resize((544, 306), Image.ANTIALIAS)
bgFname = "images/" + fname + ".bmp"
img.save(bgFname)

bgFnamePreview = "images/" + fname + "-preview.bmp"
img = img.resize((128, 72), Image.ANTIALIAS)
img.save(bgFnamePreview)

It output these two files during the resize and conversion to be used in background2vxp.py:

Forest

Forest Preview

Original File Used To Convert To BMP

But I tried this two times on two different files from thsi pixabay site and in both cases I got this stacktrace:

Traceback (most recent call last):
  File "bin/background2vxp.py", line 239, in <module>
    CreateBackgroundFromImages(name,author,outfile,shortname,background,depth,preview,dither,uniqueid,NullProgress)
  File "bin/background2vxp.py", line 196, in CreateBackgroundFromImages
    minisurf=GetTexture(preview)
  File "bin/background2vxp.py", line 174, in GetTexture
    raise SaveError('Quantizing image failed!')
error.SaveError: 'Quantizing image failed!'

Can you help me understand how to prepare JPEGs to BMPs that will allow it to Quantize?

Thanks @foone and thanks again for open sourcing 3DMM with Microsoft.

Theres only 49 scenes on 3dmm.com and I want to expand these massively so I need to know how to properly convert JPEGS to 3dmm backgrounds.

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.