POV-Ray : Newsgroups : povray.newusers : Mesh projection doesn't work with mesh2 Server Time
22 Dec 2024 06:48:41 EST (-0500)
  Mesh projection doesn't work with mesh2 (Message 1 to 3 of 3)  
From: LanuHum
Subject: Mesh projection doesn't work with mesh2
Date: 25 May 2013 08:30:01
Message: <web.51a0ad8846c192367a3e03fe0@news.povray.org>
Hello!
Help me please!
I again faced a problem:


//----------------------------------------------
//--Exported with POV-Ray exporter for Blender--
//----------------------------------------------

#version 3.7;
#include "functions.inc"

//--CUSTOM CODE--


//--Global settings and background--

global_settings {
    assumed_gamma 1.0
    max_trace_level 5
    ambient_light rgb<0, 0, 0>
}

background {rgbt<0.0509, 0.0509, 0.0509, 0>}

//--Cameras--




//--Material Definitions--

#declare T_Map_Plane = pigment {color rgb<0,0,0>}
#declare Texture_2_Plane = pigment {color rgb<0,0,0>}
#declare shader_Material = finish {  //translation of spec and mir levels for
when no map influences them
    brilliance 2
    specular 50
    roughness 0.05
    diffuse 0.8 0
    ambient 1
    emission 0
    conserve_energy
}

#declare Texture_1_Plane = texture {pigment {color rgbf<0.8,0.8,0.8,0>} finish
{shader_Material}}
#declare T_Mix_1_Plane = Texture_1_Plane
#declare T_Mix_2_Plane = Texture_2_Plane

//--Mesh objects--

#declare DATAPlane =
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 {
        1,
        <0.000000, 0.000000, 1.000000>
    }
    texture_list{1, texture { pigment_pattern { T_Map_Plane }
            texture_map {
                [0.0 T_Mix_1_Plane]
                [1.0 T_Mix_2_Plane]
    }}}
    face_indices {
        2,
        <1,0,2>, 0,0,0,
        <3,1,2>, 0,0,0
    }
    normal_indices {
        2,
        <0,0,0>,
        <0,0,0>
    }
    interior {
        ior 1.000000
        caustics 0.1
    }
    photons{    }
    radiosity {
        importance   1
    }
}
//----Blender Object Name:OBPlane----
object {
    DATAPlane
    matrix <2.206491, 0.000000, 0.000000,  0.000000, -0.000000, -2.206491,
0.000000, 2.206491, -0.000000,  0.000000, 0.000000, 0.000000>

}

//--Lamps--

light_source {
    < 0,0,0 >
    color rgb<6.24, 6.24, 6.24>
    fade_distance 14.999991
    fade_power 2
    matrix <-0.290865, -0.055189, -0.955171,  -0.771101, 0.604525, 0.199883,
0.566393, 0.794672, -0.218391,  1.937143, 16.356291, 4.139796>
}
camera {
    mesh_camera{ 1.000000 0
        mesh2{Plane}
    }
    location <0,0,.01>    direction <0,0,-1>}


File '/home/leonid/workspace/blender/pov_wip/povwip.pov' line 101: Parse Error:
 No triangles in triangle mesh.
Fatal error in parser: Cannot parse input.
Render failed


Post a reply to this message

From: Thomas de Groot
Subject: Re: Mesh projection doesn't work with mesh2
Date: 25 May 2013 10:16:34
Message: <51a0c7c2$1@news.povray.org>
I am not really familiar with the feature, but it seems to me that you 
use a different name:

 > #declare DATAPlane =
 > mesh2 {
 >

 > camera {
 >      mesh_camera{ 1.000000 0
 >          mesh2{Plane}


Change DATAPlane to Plane or Plane To DATAPlane?

Thomas


Post a reply to this message

From: LanuHum
Subject: Re: Mesh projection doesn't work with mesh2
Date: 25 May 2013 12:35:01
Message: <web.51a0e711601a0977a3e03fe0@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:
> I am not really familiar with the feature, but it seems to me that you
> use a different name:
>
>  > #declare DATAPlane =
>  > mesh2 {
>  >
>
>  > camera {
>  >      mesh_camera{ 1.000000 0
>  >          mesh2{Plane}
>
>
> Change DATAPlane to Plane or Plane To DATAPlane?
>
> Thomas

Thomas, thank, thank you!
I didn't pay attention that the script strange renames objects


Post a reply to this message

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