POV-Ray : Newsgroups : povray.binaries.images : The brick size in normals. : The brick size in normals. Server Time
6 May 2024 21:57:57 EDT (-0400)
  The brick size in normals.  
From: LanuHum
Date: 8 May 2016 02:10:01
Message: <web.572ed7046734ae347a3e03fe0@news.povray.org>
Problem.
If I use custom brick_size I have the incorrect image.

#version 3.7;

#include "functions.inc"
global_settings {
    assumed_gamma 1.000000
    max_trace_level 3
    charset utf8
}
sky_sphere {
    pigment {rgb<0.050, 0.050, 0.050>}
}

#declare Default_texture = texture{pigment {rgb 0.8}}

#declare Material = texture{
    pigment{color srgbft <0.8000,0.8000,0.8000,0.0000,0.0000>}
    normal{ brick 0.9000
        brick_size <0.2500,0.0525,0.1250> mortar 0.0100
        warp {planar z 1}
        translate <0.0000,0.0000,0.0000>
        rotate <0.0000,0.0000,0.0000>
        scale <1.0000,1.0000,1.0000>
        }
    finish{
        diffuse 0.8000
        brilliance 1.8000
        crand 0.0000
        emission 0.0000
        ambient <0.0000,0.0000,0.0000>
          }
}
#declare data_Plane_dec =
mesh2 {
    vertex_vectors {
    4
    <-1.000000,-1.000000,0.000000>
    <1.000000,-1.000000,0.000000>
    <-1.000000,1.000000,0.000000>
    <1.000000,1.000000,0.000000>
    }
    normal_vectors {
    2
    <-0.000000,0.000000,1.000000>
    <0.000000,0.000000,1.000000>
    }
    uv_vectors {
    4
    <0.000100, 0.000100>
    <0.000100, 0.999900>
    <0.999900, 0.000100>
    <0.999900, 0.999900>
    }
    texture_list {
    1
    texture {Material}
    }
    face_indices {
    2
    <1,3,2>,0,0,0
    <0,1,2>,0,0,0
    }
    normal_indices {
    2
    <0,0,0>
    <1,1,1>
    }
    uv_indices {
    2
    <2,3,1>
    <0,2,1>
}
}

object {data_Plane_dec
    matrix <3.003955, 0.000000, 0.000000,  0.000000, -0.000000, -3.003955,
0.000000, 3.003955, -0.000000,  0.000000, 0.000000, 0.000000>
}

light_source {
    <5.07,5.58,4.28>
    color rgb<1, 1, 1>
    fade_distance 25.0000000000
    fade_power 1
}
camera {
    perspective
    location  <0,0,0>
    look_at  <0,0,-1>
    right <-1.7777777777777777, 0, 0>
    up <0, 1, 0>
    angle  49.134343
    rotate  <-27.098163, 46.688390, -0.903519>
    translate <7.481132, 5.343666, 6.507640>
}


Post a reply to this message


Attachments:
Download 'custom_brick_size.jpg' (102 KB)

Preview of image 'custom_brick_size.jpg'
custom_brick_size.jpg


 

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