Thanks for the info! Long story short, basically, Python is just a way to go because it is way more robust do work with then, in my case MEL. Another good thing is that with Python there is always that possibility to directly access Maya API + libraries, modules, etc... all this is not possible with MEL so it often comes…
some more unity lightmapping: Its still pretty slow due to doing millions of raycasts, but I plan to switch most calculations over to the gpu which will make it much faster.
@Froyok got to work on a few bugs, and figure out a method for dealing with out of 0 to 1 uv's than i will release it. even know it is still very slow atm for large selections
actually theres a bunch of stuff i need to workout. bevel on a boolean object is unstable, very crash prone. Also the if objects is somewhat hires bevel is super slow, this is something that autodesk needs to fix on their side.
It's currently done in Mel script, which is very slow for that. One day I will try the C++ API. :) I don't share yet my script because I have still a lot of bugs to resolve unfortunately.
yeah pymel is a wrapper to maya.cmds that makes it less utterly fucking horrendous to write code for. it is slower but if you're really bothered about speed you want to be poking openMaya instead cos the basic python stuff is still slow as shite.
yes stacking many booleans will slow it down for sure. But its mainly the stability of booleans in general. Since it can create non-manifold edges and vertices which bevel doesnt really like. And when the polyBevel fails to compute. It could lead to crashes.
Decided to try my hand at some AI in 3DS Max. Spent like an hr on this. Playback is slow though, Camtasia had a problem for some reason, but its smooth realtime in viewport otherwise. http://www.youtube.com/watch?v=qm39PHVfEAQ&feature=youtu.be
to learn more about octrees, quadtrees, and adaptive sampling: this is a slowed down version, for demonstration... https://www.youtube.com/watch?v=BxSLCHd2fYM References: https://en.wikipedia.org/wiki/Octree https://en.wikipedia.org/wiki/Octant_(solid_geometry) https://www.youtube.com/watch?v=jxbDYxm-pXg…