POV-Ray : Newsgroups : povray.advanced-users : additional output Server Time
1 Nov 2024 15:27:53 EDT (-0400)
  additional output (Message 1 to 3 of 3)  
From: Rafal 'Raf256' Maj
Subject: additional output
Date: 24 Jun 2002 08:45:27
Message: <Xns9237959B9D7DBraf256com@204.213.191.226>
Hi,
I was wondering - would this be difficult to oputput additional 
informations from POV-RAY, like i.e. 
- distance from camer of some point (can be useful to use in some other 
programs, games etc)
- is sky sphere / background hit - can be used for making transparent gif's
- as above, but in % for partial transparent objects (AFAIR, this is 
possible now, by usnig .png file)
- saving ID of object useful for games, programs.

Example :
sky_sphere { ... NameId 0 }
object { MonsterHead NameId 1 }
object { MonsterBody NameId 2 }

an example output file (monster.id)

5,5
monster.pov PovRay 3.5 Beta
0,0,0,0,0
0,0,1,0,0
0,1,1,1,0
0,0,2,0,0
2,2,2,2,2
2,2,2,2,2

This file can be used in game to implement diffrent damage for parts of 
monster sprite

making additional output files should be realy easy, and very usefully.
I will try to write some code (ANSII C), but I'll need help with puting 
this code togeather with main POV sources, will somebody help me :) ?



-- 


Post a reply to this message

From:
Subject: Re: additional output
Date: 24 Jun 2002 09:15:08
Message: <1s5ehu8ccd5749j742ukhoi96q1o8s5mhj@4ax.com>
On 24 Jun 2002 08:45:27 -0400, "Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote:
> Hi,

Hi Robert again :-)

> I was wondering - would this be difficult to oputput additional 
> informations from POV-RAY, like i.e. 
> - distance from camer of some point (can be useful to use in some other 
> programs, games etc)

It was possible with depth post processing in MegaPOV. It is possible now with
3.5. You have to write simple macro. It should take parameters of camera and
using trace output textfile with array of distance for center of each point.

> - is sky sphere / background hit - can be used for making transparent gif's
> - as above, but in % for partial transparent objects (AFAIR, this is 
>   possible now, by usnig .png file)

Have you readed http://www.povray.org/working-docs/id000185.html#6_7_1_5_3 :-)

> - saving ID of object useful for games, programs.

It is easy possible. Using quick_color feature you assign various colors for
all objects. With one render You can recive sprite_map for all objects.

ABX


Post a reply to this message

From: Philippe Debar
Subject: Re: additional output
Date: 24 Jun 2002 11:37:33
Message: <3D173C3A.2080308@wanadoo.be>


>>I was wondering - would this be difficult to oputput additional 
>>informations from POV-RAY, like i.e. 
>>- distance from camer of some point (can be useful to use in some other 
>>programs, games etc)
> 
> It was possible with depth post processing in MegaPOV. It is possible now with
> 3.5. You have to write simple macro. It should take parameters of camera and
> using trace output textfile with array of distance for center of each point.

Or you can re-render the image using a onion or spherical pigment 
centered on the camera and carefuly scaled, ambient 1 and no 
light-sources, no radiosity. Potential problem : transparent objects.

Other solution : ambient 1 objects and fog (IIRC this should give you a 
logarithmic distance evaluation).


Philippe


Post a reply to this message

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