- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I am try to implement displacement map in our engine and get stucked with getting object uv coords in displacement callback functions.
In the callback functions, the input is "RTCDisplacementFunctionNArguments args", and we can modify the position args->p_x, args->p_y, args-p_z with displacement values.
With displacement map, we have to query the the displacement value with corresponding uv coordinate. So, I am wondering how get this value? I assume, with primID we know which triangle we are processing, we also need the barycentrics coord to know exactly which point we are dealing with?
(Looks like the args->u and args->v are differnet from what we are talking here?)
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page