OSL Shader like VRoom - Check it out

Newtek Lightwave 3D (exporter developed by holocube, Integrated Plugin developed by juanjgon)

Moderator: juanjgon

baltort
Licensed Customer
Posts: 72
Joined: Mon Jul 07, 2014 4:00 pm

pxlntwrk wrote:Great ! Thank you very much ! ;)
Moreover in cinema 4d, there is an input slot for the template!
Image
The C4D solution is very elegant, but I can't see a way to carry it over to LW. As far as I can see, there's no way to pass a texture filename as a string into a LW node. You can pass a texture as colour information, but this relies on the UV coordinates of the sample point and delivers a single pixel sample of info rather than the whole texture. The box room idea needs multiple samples for the walls, mid-ground, and curtain layer to make a single output sample.

I shall investigate further to see if it's workable!

J.
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Thanks! Really cool. Yes, in LW we have the limitation related to the fact that there is not a "string" type node. Let me think about it. I suppose that I could add a custom node type to support this kind of parameters.

Thanks,
-Juanjo
KVNOODLES
Licensed Customer
Posts: 85
Joined: Mon May 18, 2015 11:02 am
Location: Paris
Contact:

It could be so great !
User avatar
3dworks
Licensed Customer
Posts: 295
Joined: Fri May 21, 2010 5:08 pm
Location: Berlin
Contact:

juanjgon wrote:Thanks! Really cool. Yes, in LW we have the limitation related to the fact that there is not a "string" type node. Let me think about it. I suppose that I could add a custom node type to support this kind of parameters.

Thanks,
-Juanjo
is this still on the agenda? would be great! :-)
Specs: Apple MacBook Pro M1 max 64GB 2TB, MacOS 12.5 / MacPro 5,1 with NVIDIA GeForce GTX 1080 8G, MacOS 10.13.6 / Mac Pro 5,1 with AMD RX5700 8G, MacOS 12.3.1 / HP Z600 with NVIDIA 3060 RTX 12G, Windows 10 pro + Netstor GPU box, 4 x NVIDIA GTX 980ti 6G.
User avatar
nico_cad
Licensed Customer
Posts: 109
Joined: Fri Aug 22, 2014 2:12 pm
Location: Latina
Contact:

hi guys, we have need your help.
in lw native can use a random image on objetc and obtain this render.
if want similar effect in octane what's the procedure?
I do not understand how to use osl.

thanks for help :D
Attachments
lw native
lw native
User avatar
nico_cad
Licensed Customer
Posts: 109
Joined: Fri Aug 22, 2014 2:12 pm
Location: Latina
Contact:

baltort wrote:Hi all,

I've had a bit of a hack at the code and got it working at my end. I'm hardcoding the texture into the OSL file, so you'll need to correct for your own file location. If you're on windows then make sure you use forward slashes in the path as shown. I've also had to tweak the co-ordinate system and modify the boolean pins to integers. All credit to Julius Ihle for making it in the first place!

Cheers,

James
setup.jpg

james!!!! how can use it? i see only my cube?!?!?!?!?
can share the scene?
:o :o
User avatar
nico_cad
Licensed Customer
Posts: 109
Joined: Fri Aug 22, 2014 2:12 pm
Location: Latina
Contact:

ok works fine!!! now is necessary randomize the image!! :P
Post Reply

Return to “Lightwave 3D”