Comments (7)
The -D parameter was ignored using instead the output parameter... sorry, I fixed it in the latest commit.
relight-cli -D test.jpg -L 1:0.5:0.5 rtifolder/info.json
This should workd ("/info.json" is optional).
Notice how x, y and z are supposed to be a directions, (a normalized unit vector), if it's not it get normalized, for example your parameter 1:0.5:1 becames actually 0.666:0.333:0.666 (indeed middle right a bit upper direction).
from relight.
Thanks! It no longer crashes, but it still doesn't seem to be working properly. So, if I've understood correctly an xyz vector of 0:0:1 would be a light source pointing down from directly above and 1:0:0 would be raking from the right? No matter what vector I give, I only get a black image.
Also, I notice that you cannot save to JPEG - only PNG seems to work.
from relight.
Strange, I made a test using the linux portable version and it works properly (and can save both jpg and png) on a sample dataset (HSH).
Could you share dataset (with exact command line)? It could be a dataset problem, but it might also be a library problem (libjpeg and in general QT dependencies).
from relight.
Ah, it looks like an issue with the type of basis function used to create the RTI. I just tried with HSH and it works as it should. RBF, however, doesn't work.
Try this example, which I created using RBF: relight-cli -b rbf -p 9 -q 50
and generated the reconstruction using
relight-cli -D raking.png -L 0:0:1 ./info.json
from within the folder.
There's also possibly a QT issue somewhere. I tried on another machine running Ubuntu 22.04 (the first machine was Ubuntu 20.04) and this time was also able to export as JPEG.
from relight.
I left a stupid debug value in the code. Should work now.
About QT: it migh have something to do with libjpeg version installed with QT and system or, maybe more likely, just some path missing: QT looks for a specific plugin folder where its libjpeg is supposed to be found.
I am working in 20.04.
from relight.
Thanks, it now works for RBF!
Can you confirm exactly how the -L parameter works? If I've understood correctly, the vector is the direction towards the light source, right? So 0:0:1 is a light from directly above? 1:0:1 would be a light at 45deg elevation from the middle? And 0:1:0.2 would be a low raking light from the top of the object? Is that correct?
I also tested with PTM format (relight converted from an old PTM file), but I'm getting color casting, so there's maybe another debug value somewhere there too!
from relight.
from relight.
Related Issues (20)
- [MacOS] Small glitch in normals output filename HOT 1
- [MacOS] Relight GUI crashes after 2 or 3 RTI.
- [Request] RBF mask sampling
- Sphere selection handling
- Build failure (missing history calls) HOT 1
- User feedback about light directions or dome in use.
- Default dome config in preferences.
- Make include guards unique
- Improve exception safety with smart pointers
- Icons barely visible HOT 1
- RTI export in red HOT 2
- Compiling from sources mac hardware (M1 / M2)
- Diffuse rendering in OpenLime viewer HOT 1
- Merge data is twice the size of regular RTI HOT 1
- Relight crashes when trying to build RTI result on Windows 10 HOT 4
- Using TIFF Stacks as a Self-Contained Single File Relight Output Format HOT 2
- Demo link broken HOT 2
- What is relight-merge for? HOT 17
- Latest relight-cli experiences core dumps on Ubuntu 22.04 HOT 2
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 relight.