Chaos Corona for 3ds Max > [Max] Corona Goodies - User Contributions
Corona Randomizer
James Vella:
--- Quote from: romullus on 2023-11-17, 15:22:29 ---Thank you James very much!
--- End quote ---
You're welcome.
--- Quote from: romullus on 2023-11-17, 15:22:29 ---this little script looks more valuable to me than entire Corona power tools script set.
--- End quote ---
Maybe ill turn this into a corona toolbox at some point =D
--- Quote from: romullus on 2023-11-17, 15:22:29 ---I don't want to diminish Corona team's effort
--- End quote ---
Yeah they have enough on their plate, its easier to make scripts that integrate with current functionality than integrate scripts back into the core of the software. So while I'm sure they could do this far better and quicker than I can there is lots of hoops to jump through to make it bullet proof and ensure the user experience is in sync with the software as a whole.
Edit:
By the way, in case you were not aware, because the buttons are separate you can actually do this in any order you prefer, which means if you press the triplanar button first, then the randomizer you can swap what the first button does (which is Randomizer -> Triplanar). Effectively meaning Triplanar -> Randomizer. I dont use them so if thats useful for a particular situation you have the option.
Tom:
--- Quote from: James Vella on 2023-11-17, 14:06:58 ---Ok updated to include both Mapping Randomizer and Triplanar. Let me know if you encounter bugs/issues.
Script attached to this post.
--- End quote ---
Thanks James, very much appreciated, it's working perfectly, such a huge time saver 🙏🏻
I had 3ds Max crashing while I was using it though, I remember I was using Corona IR at the same time, not sure if your script is to be blamed or not, 3ds Max is not the most stable software anyhow.
I did some test renders, on a very basic scene of few boxes with a simple wood material on them, just to check if there was any difference when rendering:
1) no Randomizer nor Triplanar map
2) Randomizer map only
3) Triplanar map only
4) Randomizer + Triplanar
Here are the results, respectively:
1) 1mn20s
2) 2mn02s
3) 1mn51s
4) 2mn07s
Meaning an increase of 59% in render time from 1) to 4) which is very strange as the material doesn't really change: only the mapping changes in the end. So there shouldn't be such a difference. Unless Corona is having hard times calculating the resulting shader before actually rendering it?
Interesting to note that:
_ cpu usage is 100% for all 4 renders (we finally got rid of the annoying slow rendering time when using Triplanar map, good)
_ when I move the boxes far away from the camera, the render time drops to 25s, which makes sense.
Happy to hear what Corona dev team think about that.
Thanks again for the script James!
James Vella:
No worries, glad you enjoy it.
Yeah I'm getting more crashes since I updated to 2024.2 so not sure if that's apart of the issue, but nothing in this script does any extra calculations, it just takes input and output and rewires it. The only issue im facing atm is crashing on multiple-undos, which I need to investigate further.
Regarding crashing on IR, could be corona related because its unplugging and replugging things in and out very quickly and not sure if the RT engine is able to keep in sync with the changes or something. Kind of relates to what I said earlier about things being bullet proof before they are integrated into the host software, even simple scripts, when integrated, can negatively impact the overall scaffolding of the software as a whole.
I would say if there is any render time slowdowns its probably due to how the triplanar/randomizer works in corona itself, so I dont know lol.
romullus:
--- Quote from: Tom on 2023-11-18, 11:13:04 ---Meaning an increase of 59% in render time from 1) to 4) which is very strange as the material doesn't really change: only the mapping changes in the end. So there shouldn't be such a difference. Unless Corona is having hard times calculating the resulting shader before actually rendering it?
--- End quote ---
Slowdown is expected, for every ray that hits surface with triplanar and randomizer, Corona needs to perform additional calculations which does not come free. In case of randomizer, make sure to uncheck HQ blending, unless you really need it - this feature makes blending look much better, but has significant performance cost.
James Vella:
--- Quote from: romullus on 2023-11-18, 16:14:24 --- In case of randomizer, make sure to uncheck HQ blending, unless you really need it.
--- End quote ---
Do you want this as a button? =D
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version