POV-Ray : Newsgroups : povray.binaries.images : Sci-Fi Scene Assets : Re: Sci-Fi Scene Assets Server Time
13 Jun 2024 10:09:52 EDT (-0400)
  Re: Sci-Fi Scene Assets  
From: Robert McGregor
Date: 4 Mar 2021 17:15:00
Message: <web.60415b10a906d8e387570eab0@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> Well - damn.  You prettied that sucker up very nicely  :)

Thank you :)

> Are the greebles a layered texture (looks kinda like cells as the base), or a
> texture with a normal for the "outlines" of the rectangles...?

It's a couple of macros that build layered textures using a grayscale image map
pigment function as an image pattern to give variable reflection based on map
color. This serves as the bump map and underlying pigment layer too, but with
other grungy stuff averaged on top, something like:

#macro T_Ship1(vecScale, useUV)
   function { fn_P_Hull(x,y,z).gray }
   texture_map {
      [0
         #if (useUV) uv_mapping #end
         pigment {
            average
            pigment_map {
                [2 rgb 1]
                [2 P_Metal01]
                [2 P_Metal02]
                [4 P_Hull]
            }
         }
         normal { N_Hull }
         finish { diffuse 0.65 }
         scale vecScale
      ]
      [1
         #if (useUV) uv_mapping #end
         pigment{
            average
            pigment_map{
                [2 rgb 1]
                [2 P_Metal01]
                [2 P_Metal02]
                [4 P_Hull]
            }
         }
         normal { N_Hull }
         finish {
            diffuse 0.85
            reflection { 0.1, 0.5 fresnel on }
            conserve_energy
         }
         scale vecScale
      ]
   }
#end

object { shipPart texture { T_Ship1(15, true) } interior { ior 2 } }


The main greebles image map is just a bunch of random rectangles of different
size, scales, and shades of gray from almost white through almost black.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.