POV-Ray : Newsgroups : povray.newusers : problem with tga file Server Time
14 Nov 2024 00:17:40 EST (-0500)
  problem with tga file (Message 1 to 6 of 6)  
From: kobus
Subject: problem with tga file
Date: 17 Oct 1999 07:08:14
Message: <01bf188f$e30f8ba0$667dd383@etnica.ibb.uu.nl>
I just started using povray for windows and was doing some examples from
the povray documentation. In the chapter "Height Field Object" an image is
created with the rendering options +A0.1 +FT. When I open the tga file in
an image viewing program, there is an image with some green and brown
pixels instead of which was rendered by povray.

kobus


Post a reply to this message

From: Peter Popov
Subject: Re: problem with tga file
Date: 17 Oct 1999 08:00:08
Message: <P7kJOF3TQN86l2w8bl14MRK0bOXj@4ax.com>
On 17 Oct 1999 07:08:14 -0400, "kobus" <kob### [at] hotmailcom> wrote:

>I just started using povray for windows and was doing some examples from
>the povray documentation. In the chapter "Height Field Object" an image is
>created with the rendering options +A0.1 +FT. When I open the tga file in
>an image viewing program, there is an image with some green and brown
>pixels instead of which was rendered by povray.
>
>kobus

Welcome!

That image is rendered using the POV HF_Gray_16 TGA format. POV uses
the first two channels of the TGA file (namely the red and green ones)
to represent a 16-bit grayscale image. 16-bit images give 256 times
smoother height fields that 8-bit images, but TGA only supports 8 bits
per channel, so POV is using a little trick to store 16-bit values.
The result is that you see a red-green pattern. Don't worry, it is not
for you to see but for POV to make a height-field out of. Just follow
the tutorial on how to make a height_field object.

Oh, and don't give up :)


Peter Popov
ICQ: 15002700


Post a reply to this message

From: mr art
Subject: Re: problem with tga file
Date: 17 Oct 1999 11:11:50
Message: <3809E704.C3C4E89C@gci.net>
Welcome to the group.
    Peter is right. Those POV HF_Gray_16 TGA format
images aren't for human eyes, just as a data store for POV.
Please keep showing up in the news groups. Every voice,
every viewpoint, every new technique helps us all get better.

As way of encouragement, try a visit to this site:
<http://members.xoom.com/_XOOM/jaimevives/>
I am still impressed with the work done here.

kobus wrote:

> I just started using povray for windows and was doing some examples from
> the povray documentation. In the chapter "Height Field Object" an image is
> created with the rendering options +A0.1 +FT. When I open the tga file in
> an image viewing program, there is an image with some green and brown
> pixels instead of which was rendered by povray.
>
> kobus


Post a reply to this message

From: kobus
Subject: Re: problem with tga file
Date: 18 Oct 1999 09:19:28
Message: <01bf196b$60d91de0$667dd383@etnica.ibb.uu.nl>
Thanks,

but now I have got another question about the same subject. I omitted the
rendering option "-FT". Now the tga image is not anymore readable by povray
but the image can be correctly viewed with the help of a image viewing
program.

kobus


Post a reply to this message

From: omniVERSE
Subject: Re: problem with tga file
Date: 18 Oct 1999 14:21:40
Message: <380b6534@news.povray.org>
If you are using POV-Ray for Windows and not for DOS (nor some others I
believe) then the default reverts to Bmp or other system (Mac) dependant
file type, not a Targa anymore.
Also, when naming your output file manually, using +oC:\images\testpov.bmp
for example, you need the file extension to match the type being created or
a image viewer will not read it properly.

Bob

kobus <kob### [at] hotmailcom> wrote in message
news:01bf196b$60d91de0$667dd383@etnica.ibb.uu.nl...
> Thanks,
>
> but now I have got another question about the same subject. I omitted the
> rendering option "-FT". Now the tga image is not anymore readable by
povray
> but the image can be correctly viewed with the help of a image viewing
> program.
>
> kobus
>


Post a reply to this message

From: Peter Popov
Subject: Re: problem with tga file
Date: 18 Oct 1999 16:53:01
Message: <3IYLOMZciUKDagl=jh4KBLk585oK@4ax.com>
On 18 Oct 1999 09:19:28 -0400, "kobus" <kob### [at] hotmailcom> wrote:

>Thanks,
>
>but now I have got another question about the same subject. I omitted the
>rendering option "-FT". Now the tga image is not anymore readable by povray
>but the image can be correctly viewed with the help of a image viewing
>program.
>
>kobus

As Bob mentioned, if you don't specify an output format, POV defaults
to the system format (bmp for windoze, pict for Mac). Your output
file's extension should match the file type (.bmp for windows). You
can still use this image in POV but you have to use the sys file type
specifier instead of tga, i.e. Also, check out the docs to see if the
HF_16_Gray option works for anything other than tga.

height_field
{ sys "myfile.bmp" //  <-- not bmp "myfile.bmp" !!!
  ...
}

Have fun!


Peter Popov
ICQ: 15002700


Post a reply to this message

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