OSL Shader like VRoom - Check it out

Forums: OSL Shader like VRoom - Check it out
Newtek Lightwave 3D (exporter developed by holocube, Integrated Plugin developed by juanjgon)

Moderator: juanjgon

Re: OSL Shader like VRoom - Check it out

Postby baltort » Thu Apr 26, 2018 7:59 pm

baltort Thu Apr 26, 2018 7:59 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.
baltort
Licensed Customer
Licensed Customer
 
Posts: 72
Joined: Mon Jul 07, 2014 4:00 pm

Re: OSL Shader like VRoom - Check it out

Postby juanjgon » Thu Apr 26, 2018 11:37 pm

juanjgon Thu Apr 26, 2018 11:37 pm
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
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: OSL Shader like VRoom - Check it out

Postby KVNOODLES » Sat Apr 28, 2018 2:42 pm

KVNOODLES Sat Apr 28, 2018 2:42 pm
It could be so great !
KVNOODLES
Licensed Customer
Licensed Customer
 
Posts: 85
Joined: Mon May 18, 2015 11:02 am
Location: Paris

Re: OSL Shader like VRoom - Check it out

Postby 3dworks » Sat Aug 25, 2018 9:04 am

3dworks Sat Aug 25, 2018 9:04 am
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
3dworks
Licensed Customer
Licensed Customer
 
Posts: 294
Joined: Fri May 21, 2010 5:08 pm
Location: Berlin

Re: OSL Shader like VRoom - Check it out

Postby nico_cad » Wed Nov 21, 2018 2:54 pm

nico_cad Wed Nov 21, 2018 2:54 pm
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
random.JPG
lw native
User avatar
nico_cad
Licensed Customer
Licensed Customer
 
Posts: 108
Joined: Fri Aug 22, 2014 2:12 pm
Location: Latina

Re: OSL Shader like VRoom - Check it out

Postby nico_cad » Wed Nov 21, 2018 5:45 pm

nico_cad Wed Nov 21, 2018 5:45 pm
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
Licensed Customer
 
Posts: 108
Joined: Fri Aug 22, 2014 2:12 pm
Location: Latina

Re: OSL Shader like VRoom - Check it out

Postby nico_cad » Thu Nov 22, 2018 9:15 am

nico_cad Thu Nov 22, 2018 9:15 am
ok works fine!!! now is necessary randomize the image!! :P
User avatar
nico_cad
Licensed Customer
Licensed Customer
 
Posts: 108
Joined: Fri Aug 22, 2014 2:12 pm
Location: Latina
Previous

Return to Lightwave 3D


Who is online

Users browsing this forum: No registered users and 5 guests

Thu Apr 18, 2024 8:27 am [ UTC ]