POV-Ray : Newsgroups : povray.binaries.images : Tile on a floor Server Time
8 Jul 2024 06:59:55 EDT (-0400)
  Tile on a floor (Message 1 to 3 of 3)  
From: LanuHum
Subject: Tile on a floor
Date: 1 Mar 2014 05:10:16
Message: <web.5311b0c84ca8017c7a3e03fe0@news.povray.org>
Hi!
Sorry!
I can't find a source of shift of a tile:

#version 3.7;

global_settings {
    assumed_gamma 1.0
    max_trace_level 3
}

background {rgbt<0.7, 0.3, 0.5, 0>}

#declare Tile_01 = pigment{ uv_mapping
    agate
    agate_turb 2
    color_map {
        [0 color rgbf<0.5,0.5,0,0>]
        [1 color rgbf<1,1,1,0>]
    }
    frequency 2
    scale -1
}

#declare Tile_02 = pigment{ uv_mapping
    agate
    agate_turb 2
    color_map {
        [0 color rgbf<0.5,0.5,0,0>]
        [1 color rgbf<1,1,1,0>]
    }
    frequency 2
}

#declare All_tiles = pigment{ uv_mapping
    checker
    pigment{Tile_01}
    pigment{Tile_02}
    scale <0.1,0.1,0.1>
}

#declare Pigmap = pigment{ uv_mapping
    checker
    pigment{color rgb 0}
    pigment{color rgb 1}
    scale <0.1,1,1>
}

#declare Mortar_01 = pigment{ uv_mapping
    brick
    pigment{color rgb 0}
    pigment{color rgbt 1}
    rotate <90,90,0>
    brick_size <0.1, 0.1, 0.1> mortar 0.005
}

#declare Mortar_02 = pigment{ uv_mapping
    brick
    pigment{color rgb 0}
    pigment{color rgbt 1}
    rotate <0,90,90>
    brick_size <0.1, 0.1, 0.1> mortar 0.005
}

#declare All_mortars =   pigment { uv_mapping
    pigment_pattern {Pigmap}
  pigment_map {
    [ 0, Mortar_02]
    [ 1, Mortar_01]
    }}


#declare Floor_tex =
texture {pigment {All_tiles}}
texture {All_mortars}

#declare Plane_ob =
mesh {
triangle {<-2.745,1.2e-07,2.745>,<2.745,1.2e-07,2.745>,<-2.745,-1.2e-07,-2.745>
uv_vectors <0.0001001,9.998e-05>,<0.9999,0.0001>,<9.998e-05,0.9999>}
triangle {<2.745,1.2e-07,2.745>,<2.745,-1.2e-07,-2.745>,<-2.745,-1.2e-07,-2.745>
uv_vectors <0.9999,0.0001>,<0.9999,0.9999>,<9.998e-05,0.9999>}
inside_vector <1,1,1>
}
object {Plane_ob
    texture{Floor_tex}
}


light_source {
    <4.08,5.9,-1.01>
    color rgb<1, 1, 1>
}
camera {
    location  <0, 0, 0>
    look_at  <0, 0, -1>
    right <-1.6077777759896383, 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 'povwip.png' (177 KB)

Preview of image 'povwip.png'
povwip.png


 

From: LanuHum
Subject: Re: Tile on a floor
Date: 1 Mar 2014 13:35:00
Message: <web.53122820745dbc337a3e03fe0@news.povray.org>
"LanuHum" <Lan### [at] yandexru> wrote:
> Hi!
> Sorry!
> I can't find a source of shift of a tile:
>

I found the simple solution: python + cairo easily creates a grid of the
necessary size


Post a reply to this message


Attachments:
Download 'grid.png' (6 KB)

Preview of image 'grid.png'
grid.png


 

From: LanuHum
Subject: Re: Tile on a floor
Date: 1 Mar 2014 13:55:01
Message: <web.53122c62745dbc337a3e03fe0@news.povray.org>
#version 3.7;

global_settings {
    assumed_gamma 1.0
    max_trace_level 3
}

background {rgbt<0.7, 0.3, 0.5, 0>}

#declare Tile_01 = pigment{ uv_mapping
    agate
    agate_turb 2
    color_map {
        [0 color rgbf<0.5,0.5,0,0>]
        [1 color rgbf<1,1,1,0>]
    }
    frequency 2
    scale -0.5
    rotate <0,90,0>
    translate <100,0,0>
}

#declare Tile_02 = pigment{ uv_mapping
    agate
    agate_turb 2
    color_map {
        [0 color rgbf<0.5,0.5,0,0>]
        [1 color rgbf<1,1,1,0>]
    }
    frequency 2
    scale 0.5
}

#declare All_tiles = pigment{ uv_mapping
    checker
    pigment{Tile_01}
    pigment{Tile_02}
    scale <0.1,0.1,0.1>
}

#declare Mortars = texture{pigment { uv_mapping
    image_map {"/home/leonid/grid.png" map_type 0 interpolate 2}}
}

#declare Floor_tex =
texture {pigment {All_tiles}}
texture {Mortars}

#declare Plane_ob =
mesh {
triangle {<-2.745,1.2e-07,2.745>,<2.745,1.2e-07,2.745>,<-2.745,-1.2e-07,-2.745>
uv_vectors <0.0001001,9.998e-05>,<0.9999,0.0001>,<9.998e-05,0.9999>}
triangle {<2.745,1.2e-07,2.745>,<2.745,-1.2e-07,-2.745>,<-2.745,-1.2e-07,-2.745>
uv_vectors <0.9999,0.0001>,<0.9999,0.9999>,<9.998e-05,0.9999>}
inside_vector <1,1,1>
}
object {Plane_ob
    texture{Floor_tex}
}


light_source {
    <4.08,5.9,-1.01>
    color rgb<1, 1, 1>
}
camera {
    location  <0, 0, 0>
    look_at  <0, 0, -1>
    right <-1.6077777759896383, 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 'povwip.png' (237 KB)

Preview of image 'povwip.png'
povwip.png


 

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