POV-Ray : Newsgroups : povray.newusers : heightfield is rendered as black rectangle Server Time
14 Nov 2024 02:22:58 EST (-0500)
  heightfield is rendered as black rectangle (Message 1 to 5 of 5)  
From: Chuck Roberts
Subject: heightfield is rendered as black rectangle
Date: 9 Aug 1999 09:52:09
Message: <37AEDD3D.C72C5D9B@accn.org>
I have POV 3.1g for Win 95 and am trying to render a heightfield which
is a 16 color GIF. My code for it is:
height_field {gif "d:\progra~1\POV-ray\a-images\aztec1.gif"
  scale <4,4,4> 
  translate <-2,2,0>

  }

But it just renders as a black rectangle. The first half of the colors
in the GIF are shades of "black" (i.e. real close to black). Do I need
to vary my colors in the color palette? Some of my colors are non-black,
but how come I don't see any sign of those? I also have 2 light sources
to make sure I see the surface of the object. 

BTW, my picture is a picture of several aztec glyphs. And I used Paint
Shop Pro 3.11 (for win 3.1) to save the GIF to 16 colors.


Post a reply to this message

From: Steve
Subject: Re: heightfield is rendered as black rectangle
Date: 9 Aug 1999 22:20:03
Message: <37AF8B43.1B10361F@ndirect.co.uk>
Give your Hf a texture or colour, but beyond that it's hard to
tell without seeing all of your code. 

Good luck.

Chuck Roberts wrote:
> 
> I have POV 3.1g for Win 95 and am trying to render a heightfield which
> is a 16 color GIF. My code for it is:
> height_field {gif "d:\progra~1\POV-ray\a-images\aztec1.gif"
>   scale <4,4,4>
>   translate <-2,2,0>
> 
>   }
> 
> But it just renders as a black rectangle. The first half of the colors
> in the GIF are shades of "black" (i.e. real close to black). Do I need
> to vary my colors in the color palette? Some of my colors are non-black,
> but how come I don't see any sign of those? I also have 2 light sources
> to make sure I see the surface of the object.
> 
> BTW, my picture is a picture of several aztec glyphs. And I used Paint
> Shop Pro 3.11 (for win 3.1) to save the GIF to 16 colors.

-- 
Cheers
Steve

------------------------------------------------------------------------------------------------
%HAV-A-NICEDAY Error reading file mailto:sjl### [at] ndirectcouk


Post a reply to this message

From: Bob Hughes
Subject: Re: heightfield is rendered as black rectangle
Date: 14 Aug 1999 02:41:23
Message: <37b50f93@news.povray.org>
Not too many responses about this. I gave a 16 color gif a try and it
does have height although not obvious if the colors are near to black.
Unless white, or nearer to white, is in the gif the HF is going to be
fairly flat.

Bob

Steve <sjl### [at] ndirectcouk> wrote in message
news:37AF8B43.1B10361F@ndirect.co.uk...
> Give your Hf a texture or colour, but beyond that it's hard to
> tell without seeing all of your code.
>
> Good luck.
>
> Chuck Roberts wrote:
> >
> > I have POV 3.1g for Win 95 and am trying to render a heightfield
which
> > is a 16 color GIF. My code for it is:
> > height_field {gif "d:\progra~1\POV-ray\a-images\aztec1.gif"
> >   scale <4,4,4>
> >   translate <-2,2,0>
> >
> >   }
> >
> > But it just renders as a black rectangle. The first half of the
colors
> > in the GIF are shades of "black" (i.e. real close to black). Do I
need
> > to vary my colors in the color palette? Some of my colors are
non-black,
> > but how come I don't see any sign of those? I also have 2 light
sources
> > to make sure I see the surface of the object.
> >
> > BTW, my picture is a picture of several aztec glyphs. And I used
Paint
> > Shop Pro 3.11 (for win 3.1) to save the GIF to 16 colors.
>
> --
> Cheers
> Steve
>
> --------------------------------------------------------------------
----------------------------
> %HAV-A-NICEDAY Error reading file mailto:sjl### [at] ndirectcouk
>


Post a reply to this message

From: GRedway
Subject: Re: heightfield is rendered as black rectangle
Date: 14 Aug 1999 08:17:04
Message: <37B55EAA.104866F4@Totalise.co.uk>
You haven't given the h-f a texture or colour. The gif may have a colour
but I don't think these are used for the h-f object.

	Graham.

Chuck Roberts wrote:
> 
> I have POV 3.1g for Win 95 and am trying to render a heightfield which
> is a 16 color GIF. My code for it is:
> height_field {gif "d:\progra~1\POV-ray\a-images\aztec1.gif"
>   scale <4,4,4>
>   translate <-2,2,0>
> 
>   }
> 
> But it just renders as a black rectangle. The first half of the colors
> in the GIF are shades of "black" (i.e. real close to black). Do I need
> to vary my colors in the color palette? Some of my colors are non-black,
> but how come I don't see any sign of those? I also have 2 light sources
> to make sure I see the surface of the object.
> 
> BTW, my picture is a picture of several aztec glyphs. And I used Paint
> Shop Pro 3.11 (for win 3.1) to save the GIF to 16 colors.


Post a reply to this message

From: Mr  Art
Subject: Re: heightfield is rendered as black rectangle
Date: 14 Aug 1999 13:07:35
Message: <37B5A224.748D7F8E@gci.net>
Any h-f that has not been given a pigment will not show.
Try this: pigment { gradient y color_map { [ 0 rgb .1][1 rgb 1]}}
This will at least let you see the shape of your h-f.
GRedway wrote:

> You haven't given the h-f a texture or colour. The gif may have a colour
> but I don't think these are used for the h-f object.
>
>         Graham.
>
> Chuck Roberts wrote:
> >
> > I have POV 3.1g for Win 95 and am trying to render a heightfield which
> > is a 16 color GIF. My code for it is:
> > height_field {gif "d:\progra~1\POV-ray\a-images\aztec1.gif"
> >   scale <4,4,4>
> >   translate <-2,2,0>
> >
> >   }
> >
> > But it just renders as a black rectangle. The first half of the colors
> > in the GIF are shades of "black" (i.e. real close to black). Do I need
> > to vary my colors in the color palette? Some of my colors are non-black,
> > but how come I don't see any sign of those? I also have 2 light sources
> > to make sure I see the surface of the object.
> >
> > BTW, my picture is a picture of several aztec glyphs. And I used Paint
> > Shop Pro 3.11 (for win 3.1) to save the GIF to 16 colors.


Post a reply to this message

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