dhdm
dhdm copied to clipboard
empty (gray) png results
Hi, for some reason my results are all 0 weighted (rgb values of 127.5)
any idea what this could be related to?
my script:
#!/bin/sh
DAZ_PATH="/home/daz/Documents/My DAZ 3D Library"
EXP="$DAZ_PATH/data/DAZ 3D/Genesis 8/Female/Morphs/DAZ 3D/Angharad 8"
./dhdm morphs-to-displacement \
displacement \
"$DAZ_PATH/data/DAZ 3D/Genesis 8/Female/Genesis8Female.dsf" \
"$DAZ_PATH/data/DAZ 3D/Genesis 8/Female/UV Sets/DAZ 3D/Base/Base Female.dsf" \
"$EXP/FHMAngharad8.dsf" \
"$EXP/FBMAngharad8.dsf"
output:
Read /home/daz/Documents/My DAZ 3D Library/data/DAZ 3D/Genesis 8/Female/Genesis8Female.dsf: 16556 vertices, 16368 faces, 18332 UVs
Applying morph '/home/daz/Documents/My DAZ 3D Library/data/DAZ 3D/Genesis 8/Female/Morphs/DAZ 3D/Angharad 8/FHMAngharad8.dsf'...
Applying morph '/home/daz/Documents/My DAZ 3D Library/data/DAZ 3D/Genesis 8/Female/Morphs/DAZ 3D/Angharad 8/FBMAngharad8.dsf'...
Subdividing to level 1...
Subdividing to level 1...
Triangulating...
Maximum displacement: 550947.2523814116
Most positive pixel component value: 140491676.85725996
Most negative pixel component value: -140091114.34485516
Rendering tile 0...
Rendering tile 1...
Rendering tile 2...
Rendering tile 3...
Rendering tile 4...
Rendering tile 5...
Rendering tile 6...
Waiting...
Writing 'displacement-0.png'...
Writing 'displacement-1.png'...
Writing 'displacement-3.png'...
Writing 'displacement-2.png'...
Writing 'displacement-4.png'...
Writing 'displacement-5.png'...
Writing 'displacement-6.png'...
on a sidenote, my compiler was complaining about the two abs() calls returning int values in diff.cc which was solved by replacing abs() with std::abs() https://github.com/edolstra/dhdm/blob/f56c3c9f7daf7f472dc288fbd47108955bc2ac44/src/diff.cc#L100 https://github.com/edolstra/dhdm/blob/f56c3c9f7daf7f472dc288fbd47108955bc2ac44/src/diff.cc#L141