POV-Ray : Newsgroups : povray.general : Help deciphering Error message : Re: Help deciphering Error message Server Time
29 Jul 2024 00:23:03 EDT (-0400)
  Re: Help deciphering Error message  
From: Your Name
Date: 23 Jan 1999 04:11:57
Message: <36A9925A.1E3114B2@pacbell.net>
J. Vicente wrote:
> 
> I've been trying to create an object with an image map but I keep
> running into problems...the latest message says:
> 
> "Error reading magic number from bmp image" or something along those
> lines.
> 
> I've also had messages such as "texture expected but } found instead"
> 
> HEEEEELP!

With the first problem I can't help without a little more info.
Specificly the exact error message would help and the part of
the pov scene that is causing the problem. Sounds like there is
an error in the bit mapped file itself but it's hard to say.
Try a different image to see if the problem persists. If the
new bmp image works correctly then your first one is probably
corrupt. Sometimes they can be repaired by taking them into a
paint program and resaving them. The resave often times will
fix bad or incorrect header information that could be confusing
Pov. Sometimes not !

The second part is easy. You are not matching your braces
correctly or do not have enough to close the statement.
For every { there has to be a }. To find these start counting.
If you have them in the wrong place in the object statement
you will also get this warning. It takes a while to learn where
to close a function but once you have worked with the program
for a while you will get the hang of it.

An example of wrong would be:

incorrect
union{
sphere{<0,0,0>,1 pigment{rgb 1} - here is a missing brace
sphere{<0,0,0>,1 pigment{rgb 1}}}} - wrongly placed here

correct
union{
sphere{<0,0,0>,1 pigment{rgb 1}}
sphere{<0,0,0>,1 pigment{rgb 1}}}

In the first example there are the correct # of brace pairs
but one is not closing the first sphere statement correctly.
This will generate the warning you recieved.

The second example has corrected the mistake and will
render correctly.

Ken Tyler


Post a reply to this message

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