POV-Ray : Newsgroups : povray.newusers : Pov-Ray assumptions, and missing Utilities Server Time
1 Nov 2024 10:19:54 EDT (-0400)
  Pov-Ray assumptions, and missing Utilities (Message 1 to 7 of 7)  
From: SA Penguin
Subject: Pov-Ray assumptions, and missing Utilities
Date: 29 Apr 2009 06:35:00
Message: <web.49f82d1b7aff840a118f58ca0@news.povray.org>
Maybe I've jumped off the deep end in my using POV...
I'm trying to create some animations, depicting antenna radiation patterns.

Ideal spherical radiators were simple, and dipoles weren't to hard (torus).
Modifying the toroid with a cardioid was an exercise in isosurfaces. But my
problems started when I combined image_maps and animation!

I have a basic 640x480 black and white grid as the image. I want the "white" to
fade as the object expands, revealing a series of nested "wave fronts". Simple,
right? just change the transmit value for the "white" component of the image map
palette.

Which one?

I'm stuck with minimal resources here- the .gif was created using MS-Windows
Paint. Someone, somewhere, has assumed everyone has access to a basic Palette
Editor. I'm blessed if I can find one, however!

So- how do YOU manage .gif (and .png) palettes?


Post a reply to this message

From: Jaime Vives Piqueres
Subject: Re: Pov-Ray assumptions, and missing Utilities
Date: 29 Apr 2009 07:12:35
Message: <49f83623$1@news.povray.org>

> I have a basic 640x480 black and white grid as the image. I want the "white" to
> fade as the object expands, revealing a series of nested "wave fronts". Simple,
> right? just change the transmit value for the "white" component of the image map
> palette.
> 
> Which one?

   If the image only has black and white, most likely black will be index 0 
and white will be 1.

> I'm stuck with minimal resources here- the .gif was created using MS-Windows
> Paint. Someone, somewhere, has assumed everyone has access to a basic Palette
> Editor. I'm blessed if I can find one, however!
> 
> So- how do YOU manage .gif (and .png) palettes?
> 

   I don't know what are your limitations, but if you can download and 
install The Gimp, it has a palette editor.

   Regards,

--
Jaime


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Pov-Ray assumptions, and missing Utilities
Date: 29 Apr 2009 13:26:32
Message: <49f88dc8$1@news.povray.org>
Jaime Vives Piqueres wrote:


>> Which one?
> 
>   If the image only has black and white, most likely black will be index 
> 0 and white will be 1.

I was curious enough to try what "Paint" actually writes
when only painting some black on white on (xp sp2):

png:               0 /   1
bmp (monochrome):  0 /   1
bmp (256 colors):  0 / 255
gif:              40 / 255   (why not 42???)

;)


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Pov-Ray assumptions, and missing Utilities
Date: 29 Apr 2009 13:33:43
Message: <49f88f77$1@news.povray.org>
> png:               0 /   1

actually that's also 0 / 255, I just screwed up the
measurements by saving as monochrome bmp first ;) on the
other hand, the values for gif are independent of this.


Post a reply to this message

From: Jaime Vives Piqueres
Subject: Re: Pov-Ray assumptions, and missing Utilities
Date: 29 Apr 2009 13:34:12
Message: <49f88f94$1@news.povray.org>

> I was curious enough to try what "Paint" actually writes when only
> painting some black on white on (xp sp2):
> 
> png:               0 /   1

   That's why I assumed it: I always use png for indexed images.

> bmp (256 colors):  0 / 255

   This sounds also logical...

> gif:              40 / 255   (why not 42???)

   ..but that seems totally arbitrary!

--
Jaime


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Pov-Ray assumptions, and missing Utilities
Date: 29 Apr 2009 14:21:12
Message: <49f89a98@news.povray.org>
Jaime Vives Piqueres wrote:

 >
>> gif:              40 / 255   (why not 42???)
> 
>   ..but that seems totally arbitrary!

actually, this is probably an artefact of the lzw compression,
which assigns its own bit patterns to input values. When modifying
the image and resaving it was suddenly 0 / 15. Better not rely on
GIF color indexes (although transparency probably works as GIF
supports it directly).


Post a reply to this message

From: Alain
Subject: Re: Pov-Ray assumptions, and missing Utilities
Date: 30 Apr 2009 12:11:17
Message: <49f9cda5$1@news.povray.org>
SA_Penguin nous illumina en ce 2009-04-29 06:34 -->
> Maybe I've jumped off the deep end in my using POV...
> I'm trying to create some animations, depicting antenna radiation patterns.
> 
> Ideal spherical radiators were simple, and dipoles weren't to hard (torus).
> Modifying the toroid with a cardioid was an exercise in isosurfaces. But my
> problems started when I combined image_maps and animation!
> 
> I have a basic 640x480 black and white grid as the image. I want the "white" to
> fade as the object expands, revealing a series of nested "wave fronts". Simple,
> right? just change the transmit value for the "white" component of the image map
> palette.
> 
> Which one?
> 
> I'm stuck with minimal resources here- the .gif was created using MS-Windows
> Paint. Someone, somewhere, has assumed everyone has access to a basic Palette
> Editor. I'm blessed if I can find one, however!
> 
> So- how do YOU manage .gif (and .png) palettes?
> 
> 
> 
If you are on windows, you can use IrfanView. Free, lightweight, effecient. One 
of it's options allows you to edit a palette.


Post a reply to this message

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