Page 7 of 7 FirstFirst ... 567
Results 61 to 67 of 67

Thread: Nanhua's Shader Library with source code

  1. #61
    Join Date
    Dec 2008
    Location
    Chengdu China
    Posts
    44

    Default

    nslib_particle_ptex


    nslib_particle_ptex” (Fig 22-1) is a particle texture shader which provides the per-particle texture mapping (don't confuse it with the per-face texture mapping). Its displayed name in the material browser is “Particle Texture PTex (NSLIB)”.


    The first parameter is “input” which should be connected to a texture shader, nslib_particle_ptex will provide a local coordinate of the particle for texture mapping, so the texture will stick to the particles without the swimming artifact (for more details, see here). For example, you can assign the Noise shader to “input” (Fig 22-2). Turn on the “normalize” parameter will scale the texture coordinate with the particle size, in this way, the texture size will grow with the particle size. When this parameter has been turned on, the size control of the connected texture shader should be set to a constant, for example 1.0 (Fig 22-3).


    The “falloff” parameter controls the attenuation of the texture, the attenuation begins at the center of the particle and fades to zero at the border of it. The default value is 0.5, set it to 0.0 will disable it, increase it will cause rapider fading. If you use nslib_particle_ptex to modify the density of the particles, turning on “falloff” could alleviate the dim border issue of Photon Illumination (see here). But if you use nslib_particle_ptex to modify the scattering color of the particles, the “falloff” should be disabled because it's not necessary in this case.


    When the motion blurring of the particles was turned on (Fig 22-4), we need to sample the input texture multiple times to get a blurred result. The parameter “step” in the “Motion Blurring” rollout determines how many samples will be taken. Generally, if the “normalize” is on, set “step” to 1.0 will be a good start. Increase it for faster preview, decrease it for better quality.


    Again, as a particle texture shader like the nslib_particle_age (here), nslib_particle_ptex needs the cooperation with the particle volume shaders, you should not apply it to any other shaders.


    Fig 16-9, Fig 16-10 (here), Fig 19-3 (here) and Fig 20-1 (here) are rendered with nslib_particle_ptex.


    Fig 22-1:
    Fig 22-1.jpg


    Fig 22-2:
    Fig 22-2.jpg


    Fig 22-3:
    Fig 22-3.jpg


    Fig 22-4:
    Fig 22-4.jpg

  2. #62
    Join Date
    Dec 2008
    Location
    Chengdu China
    Posts
    44

    Default

    A widely known issue of volumetric particle rendering is when we use texture shaders to control the properties of the medium the rendering speed will be very slow especially for self-shadowing. There are two resolutions to this issue, one is Deep Shadow Map, another one is Lookup Table. Besides them, my resolution is the Photon Illumination (see here).


    Moreover, to illuminate smoke from volumetric light sources (for example, flames) is difficult. There is a renderer which employs the Point-Based method to achieve this task. For mental ray, this effect can also be implemented by the Photon Illumination (see Fig 19-3 here).

  3. #63
    Join Date
    Apr 2009
    Posts
    524

    Default

    Hi

    first... great work! I have try the sky_light and your workflow, but i have only black renderings. 3dsmaxdesign 2011. Can you upload Demoscene of your different Shader´s?

    mfg
    hot chip

  4. #64
    Join Date
    Dec 2008
    Location
    Chengdu China
    Posts
    44

    Default

    Hi, thorsten

    There is a necessary step that using the "User-Light Modifier (NSLIB)" to convert the light source (see here).

  5. #65
    Join Date
    Apr 2013
    Posts
    1

    Default

    Heart felt gratitude for this plugin. It has unlocked more creative techniques for me. Much appreciate by myself and the Animation team in Kingston, England.

    Lokken

  6. #66
    Join Date
    Aug 2006
    Location
    Germany
    Posts
    81

    Default

    I was trying to add some functions to the nslib_geo_userlight, but 3ds max always crash after rendering when they want to clean up the scene (with the original shader also). I try to read the code, but this one is very special for me, so I don't find out what is happen.

  7. #67
    Join Date
    Oct 2013
    Posts
    1

    Default

    I tried to download the shaders but when I try to log in, it keeps saying me that I'm not logged or don't have the permission.
    Can you provide us with a link? And do these shaders work with max 2012?
    Thank you.

    [mod: you need to be approved from your first post to have permission, so you should now. How do you use mental ray?]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •