add key chromakey deletion
Forum rules
NOTE: The software in this forum is not %100 reliable, they are development builds and are meant for testing by experienced octane users. If you are a new octane user, we recommend to use the current stable release from the 'Commercial Product News & Releases' forum.
NOTE: The software in this forum is not %100 reliable, they are development builds and are meant for testing by experienced octane users. If you are a new octane user, we recommend to use the current stable release from the 'Commercial Product News & Releases' forum.
- Elvissuperstar007
- Posts: 2516
- Joined: Thu May 20, 2010 8:20 am
- Location: Ukraine
- Contact:
add key chromakey deletion
Win11/msi x79a-gd45 (8d)/ Intel Xeon e5 2690v0/ 64gb DDR3 1866/ Nvidia 4090 Asus TUF/ be quiet! Straight Power 11 1000W 80 Plus Platinum
Page octane render " В Контакте " http://vkontakte.ru/club17913093
Page octane render " В Контакте " http://vkontakte.ru/club17913093
We could build an OSL script for this, and maybe later bake it into the core if enough want this built in.
Done - will ship as a built in node.Elvissuperstar007 wrote:add key chromakey deletion
- Attachments
-
- colorkey.orbx
- (5.03 KiB) Downloaded 169 times
- Elvissuperstar007
- Posts: 2516
- Joined: Thu May 20, 2010 8:20 am
- Location: Ukraine
- Contact:
thanks, it is necessary to integrate into the octane
Win11/msi x79a-gd45 (8d)/ Intel Xeon e5 2690v0/ 64gb DDR3 1866/ Nvidia 4090 Asus TUF/ be quiet! Straight Power 11 1000W 80 Plus Platinum
Page octane render " В Контакте " http://vkontakte.ru/club17913093
Page octane render " В Контакте " http://vkontakte.ru/club17913093
- Elvissuperstar007
- Posts: 2516
- Joined: Thu May 20, 2010 8:20 am
- Location: Ukraine
- Contact:
Win11/msi x79a-gd45 (8d)/ Intel Xeon e5 2690v0/ 64gb DDR3 1866/ Nvidia 4090 Asus TUF/ be quiet! Straight Power 11 1000W 80 Plus Platinum
Page octane render " В Контакте " http://vkontakte.ru/club17913093
Page octane render " В Контакте " http://vkontakte.ru/club17913093
How to make opacity with this OSL?Goldorak wrote:Done - will ship as a built in node.Elvissuperstar007 wrote:add key chromakey deletion
I had a quick look at this. The original script was for 3ds max and has 2 outputs (1 color and the other float)
https://github.com/ADN-DevTech/3dsMax-O ... lorKey.osl
In Octane, we can only have 1 output per OSL node, and it only supports a "color" output.
You would need to use 2 OSL nodes. eg make 2 copies of the script and modify 1 to use the "Col" color output, and the other to use the "Key" float (converted to color).
EDIT: Here is a sample orbx with 2 OSL scripts. I don't know how this is meant to work, but here is a screenshot of 2 planes. You can see through the top one which uses the key as opacity
https://github.com/ADN-DevTech/3dsMax-O ... lorKey.osl
In Octane, we can only have 1 output per OSL node, and it only supports a "color" output.
You would need to use 2 OSL nodes. eg make 2 copies of the script and modify 1 to use the "Col" color output, and the other to use the "Key" float (converted to color).
EDIT: Here is a sample orbx with 2 OSL scripts. I don't know how this is meant to work, but here is a screenshot of 2 planes. You can see through the top one which uses the key as opacity
- Attachments
-
- colorkey_002.orbx
- (298.58 KiB) Downloaded 166 times
Win10 Pro / Ryzen 5950X / 128GB / RTX 4090 / MODO
"I am the resurrection, and the life: he that believeth in me, though he were dead, yet shall he live" - Jesus Christ
"I am the resurrection, and the life: he that believeth in me, though he were dead, yet shall he live" - Jesus Christ
It would be nice if Octane OSL could be updated in the future to allow multiple outputs (as well as different output types like float/int etc)
It would make nodes like this much easier to create (no need for multiple edited copies)
It would make nodes like this much easier to create (no need for multiple edited copies)
Win10 Pro / Ryzen 5950X / 128GB / RTX 4090 / MODO
"I am the resurrection, and the life: he that believeth in me, though he were dead, yet shall he live" - Jesus Christ
"I am the resurrection, and the life: he that believeth in me, though he were dead, yet shall he live" - Jesus Christ