Skip to content
Snippets Groups Projects

Extended examples

Merged Aaron Grabowy requested to merge feature/improved-examples into develop
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
206 216 gv::view(pos, gv::mapping(vdata).linear(tg::color3::black, tg::color3::red, 0.1f, 0.3f), "vertex data");
207 217
208 218 // map face data to red (small) to green (big) from 0.05 .. 0.5 (data outside this range is clamped)
209 gv::view(pos, gv::mapping(fdata).linear(tg::color3::red, tg::color3::green, 0.05f, 0.5f).clamped(), "face data");
219 gv::view(pos, gv::mapping(fdata).linear(tg::color3::red, tg::color3::green, 0.00001f, 0.001f).clamped(), "face data");
  • why are these values changed? it also doesn't match the comment anymore

  • The values in fdata are roughly in the region between 0.00001 and 0.001, so that the original line displayed a completely red model and the new line shows suzanne with red ears, eyes and mouth and green skull, with gradients in between as intendet. That's at least the case on my machine, is that different for you?

    I didn't notice the comment, that should of course be changed accordingly.

  • Please register or sign in to reply
  • Please register or sign in to reply
    Loading