Announcement

Collapse
No announcement yet.

mr mip_grayball for vray?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • mr mip_grayball for vray?

    hi,

    i would like to integrate working with litshpere materials in vray.
    right now, i have to turn to mental ray to render them using the mip_grayball shader, but i would like to
    stay in vray.

    i guess, mental mill could have been a way to construct the shader, but it's not available anymore.

    any chance to get a map like mip_grayball for vray?


    thanks

  • #2
    What is it supposed to do?

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      Originally posted by vlado View Post
      What is it supposed to do?
      Have a look at this http://www.pixelcg.com/blog/?p=627
      It demonstrates it quite well.
      Dan Brew

      Comment


      • #4
        here is a link to the original paper:
        http://www.cs.utah.edu/npr/papers/LitSphere.pdf

        it is actually the way zbrush, mudbox and sculptris can produce quite nice materials in realtime. not photoreal, but a great tool in the toolbox if you need to capture a certain look.
        the material itself is just a square image of a lit sphere, which can be produced in all kinds of ways (even painted in photoshop).

        i have a little vray scene set up where i can arrange lights and materials and render the sphere image, that i then use in a mip_grayball map, renders lightning fast, and you can easily combine it with displacement and normal maps from
        zbrush.

        zbrush itself has a tool to capture these materials.

        Comment


        • #5
          Originally posted by sukistar View Post
          here is a link to the original paper:
          http://www.cs.utah.edu/npr/papers/LitSphere.pdf
          Thanks, this is quite helpful. Actually a GLSL shader that does that would be something like 5 lines long, so I might at as well try to post one here a bit later, if you can get me some examples (see below).

          the material itself is just a square image of a lit sphere, which can be produced in all kinds of ways (even painted in photoshop).
          Can you post a few examples here along with images of what the output is supposed to look like?

          Best regards,
          Vlado
          I only act like I know everything, Rogers.

          Comment


          • #6
            Nevermind, figured it out. Will post the GLSL shader in a moment.

            Best regards,
            Vlado
            I only act like I know everything, Rogers.

            Comment


            • #7
              So here it is: http://pich.chaosgroup.com/vlado/vra.../litsphere.rar

              Click image for larger version

Name:	render.png
Views:	1
Size:	201.4 KB
ID:	845629

              Best regards,
              Vlado
              I only act like I know everything, Rogers.

              Comment


              • #8
                wow, that was fast!

                work perfect!

                it is quite fast already, how much faster would this be as a plugin?

                Comment


                • #9
                  Originally posted by sukistar View Post
                  it is quite fast already, how much faster would this be as a plugin?
                  I don't know exactly... just faster I guess if it works ok for you for the time being, then all is good.

                  Best regards,
                  Vlado
                  I only act like I know everything, Rogers.

                  Comment


                  • #10
                    it does. thanks alot!

                    Comment


                    • #11
                      I also wish the port to plug-in.

                      want to Mix with VRayBlendMtl or to combine with Opacity or Bump.
                      Or does VRayGLSLMtl support them?

                      OakCorp Japan - Yuji Yamauchi
                      oakcorp.net
                      v-ray.jp

                      Comment


                      • #12
                        Well, you can see the .frag file - you can modify it as you wish to do normal mapping or bump mapping or to support opacity, or I can do that later on if I have the time. It won't currently work inside a VRayBlendMtl material though.

                        In any case I'll make a note to implement a proper plugin material for this.

                        Best regards,
                        Vlado
                        I only act like I know everything, Rogers.

                        Comment


                        • #13
                          just use the VrayGLSLTex (in a standard or vraymaterial) instead of the glsl material, then you can do everything with it.
                          normally you would set the material to fully self-illuminated, but you can also mix real shading and the litsphere baked shading.
                          Attached Files

                          Comment


                          • #14
                            Yes, that would also be a good option

                            Best regards,
                            Vlado
                            I only act like I know everything, Rogers.

                            Comment


                            • #15
                              Hmm...this is actually quite impressive...
                              I see nice ways to simulate env reflections, chrome matérials etc...
                              Woow...and just 5 lines of code master vlado !

                              edit : and put it in a extratex channel, then you can cas a nice env color on your scene...sweet !
                              edit : it won't work with vraysphere. maybe it needs a mesh ?
                              Last edited by muoto; 15-06-2012, 05:38 AM.

                              Comment

                              Working...
                              X