foone / 7gen Goto Github PK
View Code? Open in Web Editor NEW7gen is a collection of utilities for generating v3dmm expansions
License: GNU General Public License v2.0
7gen is a collection of utilities for generating v3dmm expansions
License: GNU General Public License v2.0
This shouldn't be too hard to add. Enumerate which expansions are installed and show them in the list.
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?
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:
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.