OSL Goodness

This site is a good reference for RSL or Renderman scripts which are very similar.
http://www.fundza.com/index.html
Also, check the OSL documentation here:
https://github.com/imageworks/OpenShadingLanguage/blob/master/src/doc/osl-languagespec.pdf

Start learning C/C++ and then read through the OSL specification. It’s definitely not a quick-to-master process.


some interesting noise (angel hair ) proc texture !
someone has seen any type of osl noise generators to make lines like this

would be interesting to also have this in blender as normal proc noise texture

thanks

Maybe you have a link to where such texture was created or seen. My search for angel hair is turning up lots of links about pasta… :slight_smile:
It would be interesting to explore if you had more information.

waves and harmonics?

Mm… maybe someone can use the basics of the liquid flow equation to make it where it looks like a river, and the speed of the water’s waves, or shapes automatically changes as it passes obstacles. I am not diverse enough in shading or programming to know how to program that. From what I am seeing, it’s partially procedural and some people added physics equations.

i got this for a certain stainless steel finish from web
and i did check out some of the old 2.49 texture and mat lib and was unable to find anything like this

there was one base on stucci that is beginning to look like it but not close enough
so just wondering if there are some other algo for proc texture that could make such a texture
or use a combination of proc textures !

and if possible would like to have it as some proc text
no image from fluid sim or other/ any images!

what is this harmonic is it for particules ?

thanks

Wave harmonics is as it sounds, a pulsation of waves. Normally they don’t vary much, and are often used for creating sound (Guitars being plucked). Wave harmonics is truely a series of perfect waves.

problem with waves is that they are continous
and the pattern shown does not have continous waves!
more like discontinous

so is there a way to get discontinous waves in cycles ?

thanks

Technically, a wave will loose energy over time (Light in space is the only true exception to this. It never fades in energy, but it spreads out in a spherical fall off. Which is why the sky is not uniformly lit). Waves as you defined it is in a perfect world, which we are not in. Other wise a wave a child made in the ocean by scraping his hand across the surface could start from china, reach US shores, and travel on the land passing by your home harmlessly and back into the water to restart the cycle (assuming that it had never touched a wall). Hence the term periodic wave.

If you look at the math for a wave it’s a graphical function using Sine or Cosine that actually meets zero.

Now because a periodic wave is not a harmonic, you will see a peak travel and gradually grow smaller till it’s nothing, rather than rising and falling rapidly.

are there any nodes set up for the planet texture
showing some pic of what can be done with this

thanks

I was asked for a Blend file with some test patterns from an old version of pattern_v2.osl script. Voila.

http://www.pasteall.org/blend/19333

Brecht just updated the OSL libs for Win64 to version 1.3.
http://lists.blender.org/pipermail/bf-blender-cvs/2013-February/053510.html

It contains a number of performance improvements so it would be interesting to see some new speed comparisons compared to SVM (because I can see the number of people using OSL really taking off once the performances matches the default shading system).

is it possible to create old cinema effect?
thank you

OSL seems to get better and better - to bad that it does not run on GPUs. But for the textures you could bake it into a highres image.

I think http://xrt.wikidot.com/ supported osl.
could we plug in to renderman shaders.
all this remides me of this http://www-users.cs.umn.edu/~mein/blender/plugins/
and openexr supports a plugin to ps

I received a private message about the shader in post 216 not working.
I upload a sample file to demonstrate one of the several ways to use it.

BOA2 : can you discribe the problem ?

The sample file seems to work fine here…

Someone asked me to fix the shader because it was not working in new blender versions, so I uploaded a blend file for him.

Maybe this is a foolish post:

Many people have asked here about where they can find information, reference, examples about OSL. What about checking Blender OSL node implementations. It is a GNU software and you can see its code :rolleyes:.

I think everybody can learn a lot about OSL, and about Cycles as well.