1337ad / sketchrip Goto Github PK
View Code? Open in Web Editor NEWRipper and Conversion for Sketchfab Models
Ripper and Conversion for Sketchfab Models
Hi, there is no download button, tried both in chrome and firefox
window.drawhook is fixed rather easily.
The function is called once with obj=undefined.
Changing line 236 if(obj._faked != true) {
to if(obj!==undefined &&obj._faked != true ) {
fixes that problem.
The real thing is, that the obj is not what it used to be 😆.
It now looks like this:
Object { _stateClearColor: {…}, _stateClearDepth: {…}, _stateDepthMask: {…}, _stateViewport: {…}, _stateColorMask: {…}, _stateScissor: {…}, _stateDepth: {…}, _stateCullFace: {…}, _stateBlendFunc: {…}, _faked: true }
_faked: true
_stateBlendFunc: Object { buffer: {…}, state: {…}, changed: true }
_stateClearColor: Object { buffer: {…}, state: {…}, changed: false }
_stateClearDepth: Object { buffer: {…}, state: {…}, changed: false }
_stateColorMask: Object { buffer: {…}, state: {…}, changed: false }
_stateCullFace: Object { buffer: {…}, state: {…}, changed: false }
_stateDepth: Object { buffer: {…}, state: {…}, changed: true }
_stateDepthMask: Object { state: {…}, buffer: {…}, changed: false }
_stateScissor: Object { buffer: {…}, state: {…}, changed: true }
_stateViewport: Object { buffer: {…}, state: {…}, changed: true }
And thus the download function does not work anymore.
Sry but I do not know how to handle this. GL.
In order to use the merge of multiple obj files into a single gltf on linux, you can use the following script:
#!/bin/bash
merge_files() {
echo "Merging OBJ files into GLTF..."
obj_files=(*.obj)
if [ ${#obj_files[@]} -eq 0 ]; then
echo "No OBJ files found in the current directory."
exit 1
fi
merged_file="merged.gltf"
obj2gltf -i "${obj_files[@]}" -o "$merged_file"
if [ $? -eq 0 ]; then
echo "Merging successful. Merged file: $merged_file"
else
echo "Error occurred while merging OBJ files."
exit 1
fi
}
optimize_file() {
echo "Optimizing the merged GLTF file..."
optimized_file="optimized.gltf"
gltf-pipeline -i merged.gltf -o "$optimized_file"
if [ $? -eq 0 ]; then
echo "Optimization successful. Optimized file: $optimized_file"
else
echo "Error occurred while optimizing the GLTF file."
exit 1
fi
}
merge_files
optimize_file
But first install:
sudo npm install -g obj2gltf
sudo npm install -g gltf-pipeline
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.