POV-Ray : Newsgroups : povray.general : Wrong material_map caused random errors Server Time
26 Nov 2024 03:35:25 EST (-0500)
  Wrong material_map caused random errors (Message 1 to 1 of 1)  
From: Roland Mösl
Subject: Wrong material_map caused random errors
Date: 3 Nov 2011 01:32:16
Message: <4eb22760$1@news.povray.org>
I declared a photovoltaic unit
by having an aluminium frame
and all the other surface with
silicone behind glas


#declare GEMINI_t_PV_Unit = texture
{ material_map
   { gif "map-pv.gif"
     texture { GEMINI_t_Aluminium }
     texture { GEMINI_t_PV_Silizium }
     texture { GEMINI_t_PV_Silizium }
     texture { GEMINI_t_PV_Silizium }
   }  // material_map
}  // texture

As mentioned in May this year,
I made an animation with this.

Some pictures had been rendered,
as all the photovoltaic is only made
from aluminium.

Now I solved the failure.
The GIF with the material map was wrong.

The picuture had only 2 colors.
Color Index 0 was the aluminium
but the silicone was at color index 246

I reduced the GIF to 16 colors and wrote

#declare GEMINI_t_PV_Unit = texture
{ material_map
   { gif "map-pv.gif"
     texture { GEMINI_t_Aluminium }
     texture { GEMINI_t_PV_Silizium }
     texture { GEMINI_t_PV_Silizium }
     texture { GEMINI_t_PV_Silizium }
     texture { GEMINI_t_PV_Silizium }
     texture { GEMINI_t_PV_Silizium }
     texture { GEMINI_t_PV_Silizium }
     texture { GEMINI_t_PV_Silizium }
     texture { GEMINI_t_PV_Silizium }
     texture { GEMINI_t_PV_Silizium }
     texture { GEMINI_t_PV_Silizium }
     texture { GEMINI_t_PV_Silizium }
     texture { GEMINI_t_PV_Silizium }
     texture { GEMINI_t_PV_Silizium }
     texture { GEMINI_t_PV_Silizium }
   }  // material_map
}  // texture

Now the whole animation renders correct.
So the reason for the random failures
at some pictures had been the
incorrect GIF.

best regards



Post a reply to this message

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