Cage opened this issue on Feb 24, 2010 · 592 posts
Cage posted Mon, 22 March 2010 at 2:26 PM
Quote - Ok, I have a guess about the "bug" you think is happening with the CorrelateByIndex functions...
CorrelateByIndexTo(
mesh, tripolylist, shrinkvertindexlist [, opt_shrinknorms [, opt_backface_cull = 1] ] ) ...see that (optional) opt_shrinknorms param? The SIZE of that list needs to be the same size (same number of entries) as the number of vertices in the mesh - NOT a truncated list, the size of the (screening) 'shrinkvertindexlist' being passed in.
You think that's the problem? Is there any problem when you don't pass in an optional normals list?
No, it's not the optional normals. I tested that first by removing it when I called the function. The normals I'm sending also work well with the shrinkwrap and no poke scripts, but those just use the "correlate to" functions, and not the "correlate by lists". The function is basically working, as you can see from the images I've posted. It looks like it's just returning corrupt weights once it finds the correct tripolys. This could be the weighting code I adapted from the 2007 TDMT, or it could be corrupt information from the correlation function. I didn't get to test all of it last night. Had to get some sleep. :lol:
If you really want to see what's happening with the code, check the TDMT_pyd2b.py, on the Additional Scripts page mentioned above. The compute_weighting_pyd() function is on line 270 and the correlation is on line 221. Apologies in advance for the code, which strikes me as ugly, reading it now. :lol:
I really, really, have to finish these tutorials, though, before I go too deeply into anything else involving the old process. Once I'm done with the tutorials, I can focus on that. :thumbupboth: And don't put too much of your time into any of this. I'll bet you're busy with more important and more pressing matters than I am. :lol:
===========================sigline======================================================
Cage can be an opinionated jerk who posts without thinking. He apologizes for this. He's honestly not trying to be a turkeyhead.
Cage had some freebies, compatible with Poser 11 and below. His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.