POV-Ray : Newsgroups : povray.beta-test : mesh2 texture list bug : mesh2 texture list bug Server Time
4 Nov 2024 19:23:07 EST (-0500)
  mesh2 texture list bug  
From: ingo
Date: 28 Sep 2001 05:23:53
Message: <Xns912A73F2B4A31seed7@povray.org>
Had posted this somewhere else but got no confirmation, so I repost it 
here.

The scene below generate the following error:

      <0,1,2>,0, <----ERROR
Parse Error: Texture index out of range in mesh2.

If I remove the list_texture indices from the face_indices, I get the 
following error:

   texture_list <----ERROR
D:\Ingo\SceneTest\Untitled.pov:29: error: No matching } in mesh2, 
texture_list found instead.

As if the complete texture list is not recognised. The same errors 
happen in MegaPov 0.7


---%<------%<---
#version 3.5;
//#version unofficial MegaPov 0.7;
global_settings {assumed_gamma 1.0}
light_source {<500,500,-500> rgb 1}
camera {location <0.5, 0.5, -1.5>look_at <0.5, 0.5, 0>}

mesh2 {
   vertex_vectors {
      9, 
      <0,0,0>, <0.5,0,0>, <0.5,0.5,0>,
      <1,0,0>, <1,0.5,0>, <1,1,0>   
      <0.5,1,0>, <0,1,0>, <0,0.5,0> 
   }
   face_indices {
      8, 
      <0,1,2>,0, <1,3,2>,0,
      <3,4,2>,1, <4,5,2>,1,
      <5,6,2>,0, <6,7,2>,0,
      <7,8,2>,1, <8,0,2>,1
   }
   texture_list {
      2
      texture{pigment{wood}}
      texture{pigment{rgb<1,0,0>}}
   }
}
---%<------%<---

PII 233 192MB NT4 SP6 POV-Ray beta.4

Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

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