Announcement

Collapse
No announcement yet.

Interior mapping shader

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

  • Interior mapping shader

    I wonder if it's possible with OSL to code a complex shader that can build interiors of buildings at render time ?

    This is a technique that's been used for years now in video games and movies to quickly generate interiors for scenes with lots of buildings.
    The idea is simple : the shader is assigned to glass surfaces (windows) it then extrudes these polygons and assigns textures to the new faces depending if they are ceiling or walls.

    I first discovered this technique through a Lightwave plugin, VRoom, that sadly was never ported to any other 3d package.

    More info here :
    http://interiormapping.oogst3d.net/
    http://www.euriskostudios.com/es/plugin_pages/vRoom.php

    mekene

  • #2
    Yes, I've seen it done in OSL, however all the links seem to be dead now, search for 'interior mapping osl blender'.
    Rens Heeren
    Generalist
    WEBSITE - IMDB - LINKEDIN - OSL SHADERS

    Comment


    • #3
      i had an idea like this years ago.. if you remember those awful RPC people.. a plane that would load a different view of a person depending on the viewing angle.

      i wanted something similar for windows. . a plane you put behind the window, and a library of pre-rendered (or photographed) interiors, captured from multiple angles (think qtvr) mapped onto the planes, so the perspective would be correct wherever you looked at the building from, but the rendertimes would be minimal.

      probably still an idea with legs, but back then with hardly any processing power or ram, it would have been a godsend.

      Comment


      • #4
        Originally posted by Rens View Post
        Yes, I've seen it done in OSL, however all the links seem to be dead now, search for 'interior mapping osl blender'.
        Yes, I seen references to this in many places but the original post vanished.

        edit : found this : https://github.com/sambler/osl-shade...or_mapping.osl
        It loads fine but does nothing when I render
        Last edited by theedge; 24-02-2015, 08:19 AM.

        mekene

        Comment


        • #5
          yeah it would be awesome. VrayPattern appears to do this but it's more of a hybrid solution.

          If you click here

          Then go to gallery, there are a number of images (images 16-22) showing the plugin doing exactly what you describe. I haven't tried it myself...
          James Burrell www.objektiv-j.com
          Visit my Patreon patreon.com/JamesBurrell

          Comment


          • #6
            Yes, I know that plugin. I would have bought it if it was not made by R&D Group I bought Splineland a few years ago from them and was very dissatisfied. The plugin doesn't seem to be given any attention apart from making it compatible with new versions of max. Also their licensing system is awful.
            Last edited by theedge; 24-02-2015, 08:40 AM.

            mekene

            Comment


            • #7
              I think the OSL needs some inputs, I remember seeing some blender setup screenshots showing the node graph and the required inputs.
              Rens Heeren
              Generalist
              WEBSITE - IMDB - LINKEDIN - OSL SHADERS

              Comment


              • #8
                Originally posted by theedge View Post
                Yes, I know that plugin. I would have bought it if it was not made by R&D Group I bought Splineland a few years ago from them and was very dissatisfied. The plugin doesn't seem to be given any attention apart from making it compatible with new versions of max. Also their licensing system is awful.
                Seems to be the story with all their products.
                James Burrell www.objektiv-j.com
                Visit my Patreon patreon.com/JamesBurrell

                Comment


                • #9
                  The internet archive may come to the rescue again. : )
                  https://web.archive.org/web/20121118...terior-shader/
                  https://dl.dropbox.com/u/64799016/Bl..._shader.tar.gz

                  There's a blend file in there that might give some clues.
                  Rens Heeren
                  Generalist
                  WEBSITE - IMDB - LINKEDIN - OSL SHADERS

                  Comment


                  • #10
                    Thank you Rens, will have a look at this.

                    mekene

                    Comment


                    • #11
                      Hi.

                      I adjusted a OSL file for Vray.
                      I can render it but a result is something wrong.

                      I do not yet understand all of a OSL source.
                      I hope to cooperate, if possible.

                      interior_shader.zipClick image for larger version

Name:	interior_shader.jpg
Views:	1
Size:	263.2 KB
ID:	856305

                      Comment


                      • #12
                        Thank you !
                        How do you use those 3 osl ? I tried loading each of them successefully but none gives any result.

                        mekene

                        Comment


                        • #13
                          I'd love something like V-Room.
                          Maxscript made easy....
                          davewortley.wordpress.com
                          Follow me here:
                          facebook.com/MaxMadeEasy

                          If you don't MaxScript, then have a look at my blog and learn how easy and powerful it can be.

                          Comment


                          • #14
                            V-Room generates geometry at render time to create the rooms. Is this something possible with an OSL shader ?

                            mekene

                            Comment


                            • #15
                              This looks nice, I didn't even know that was possible... If the chaosgroup guys could do a proper implementation of that in one of the next servicepacks that'd be cool ALthough this might not be very high on the priority list.
                              Software:
                              Windows 7 Ultimate x64 SP1
                              3ds Max 2016 SP4
                              V-Ray Adv 3.60.04


                              Hardware:
                              Intel Core i7-4930K @ 3.40 GHz
                              NVIDIA GeForce GTX 780 (4096MB RAM)
                              64GB RAM


                              DxDiag

                              Comment

                              Working...
                              X