Comments (5)
Hi Zevbo,
This seems like a very good suggestion! Would you mind trying to compile DracoPy like that and see if it fixes it for you?
from dracopy.
Sounds reasonable. I've cloned DracoPy to my machine and have the reference to the correct draco. How can I now recompile DracoPy?
from dracopy.
Shouldn't be too difficult hopefully! Make sure you have cmake installed and just do python setup.py develop
if you are on windows or linux. If you are on a Mac, especially an M1 or M2, edit ./build-macos-arm.sh
to work with your existing virutalenv and then run it. It will generate fat binaries that work on x86 and arm64.
from dracopy.
Wasn't too dificult, but alas it didn't fix my issue. This raises the concern that this is a different bug, though one I don't know the source of. Just to recount what I've seen:
- I can encode a PCD using DracoPy than decode it with the 1.5.2 draco_decoder binary from draco, and colors are correct
- If I decode it using three.js, also pointed to the 1.5.2 decoder, the colors are treated as if they are on a 0-1 scale, when they are really on 0-255, meaning all colors are either on or off
- With the point cloud I am currently trying to encode, the 25th byte in the drc file is 1. Using the draco_encoder binary, it is a 0. This is the only difference, and when I switch it back, colors are decoded correctly.
Wondering if somehow DracoPy accidentally encodes in that bit that it is a 0-1 scale?
from dracopy.
Hi Zevbo,
Good detective work! Hopefully I can look into this more in a bit, but check out this PR in the meantime. It might have a clue.
from dracopy.
Related Issues (20)
- DracoPy issue HOT 1
- Python 3.8 Binaries HOT 1
- Python 3.9 Binaries HOT 3
- Windows Binaries HOT 4
- Decoding error for hemibrain meshes introduced between 0.0.15 and 0.0.18 release HOT 3
- Encoding does not return resulting faces and points count HOT 2
- Custom metadata support HOT 2
- How to compress a obj file? HOT 5
- Attributes compression support? HOT 1
- Error in reshape HOT 3
- How to build wheel on apple silicon? HOT 3
- color & custom attributes encoding / decoding
- encoding and decoding intensity values in point cloud HOT 3
- Changes needed in setup.py in order to work with Python 3.11 on MacOS HOT 2
- std::vector larger than max_size HOT 2
- 1.2.1 with Python3.11 to PYPI HOT 5
- Removal of DracoPy.cpp from this repository HOT 2
- Pointcloud support HOT 14
- Encode .obj HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dracopy.