Closed Mixaill closed 8 years ago
Also in /amd_tressfx/src/TressFX.cpp:
211 //
212 // TressFX_Resize
213 //
Line 212 should be TressFX_Release
232 //--------------------------------------------------------------------------------------
233 //
234 // TressFX_Resize
235 //
236 // Releases any memory allocated by the library
237 //
238 //--------------------------------------------------------------------------------------
This comment is an exact copy of the one before and doesn't match the function TressFX_GenerateTransforms
Why don't you make a pull request ?
I don't know, what would be the correct comment in the second case, so I leave both changes up to someone, who actually knows, how to document the TressFX_GenerateTransforms function. @Mixaill s changes seem to be correct though and they could be a pull request, that could still be dismissed, if they are wrong.
Note that we (the AMD employees working on TressFX) are not currently working directly in GitHub. We may be eventually, but for now, for these types of small, isolated changes, it is easier for me to manually incorporate the suggested fixes in our internal code, and then they will be part of the next release we push out to the public GitHub repo.
Thanks for the feedback. It is very useful.
Regarding my previous comment, "but for now, for these types of small, isolated changes, it is easier for me to manually incorporate the suggested fixes in our internal code", never mind. We now welcome pull requests. See the contribution guidelines in CONTRIBUTING.md.
Regarding the question from @Mixaill about AddSlider, that was not a bug, per se. But the way we were initializing the sliders was kind of strange and confusing. I cleaned that up in 475ed37ab459af91ac3f04670319ce7c978ec542.
The "should be Ex2 instead of Ex1" issue was a bug. I fixed it in 526af449cd117124167505d3edc5c51c77bb4ade.
Thanks, @Mixaill.
And I did a quick cleanup pass on the function header comments in TressFX.cpp to fix the copy-paste errors @MonokelPinguin found. See 09753d54f40b72492ae5d057fa536fe5983197dc.
1) /amd_tressfx_viewer/src/TFXFileIO.cpp
Line 272 : should be Ex2 instead of Ex1 ?
2) /amd_tressfx_viewer/src/main.cpp
Line 403: should be (int)(100 * (g_hairAlpha.max - g_hairAlpha.min) / (g_hairAlpha.max - g_hairAlpha.min) ?