POV-Ray : Newsgroups : povray.binaries.utilities : Lightmapping tool Server Time
29 Mar 2024 03:15:58 EDT (-0400)
  Lightmapping tool (Message 1 to 6 of 6)  
From: Jaime Vives Piqueres
Subject: Lightmapping tool
Date: 2 May 2011 13:16:37
Message: <4dbee6f5@news.povray.org>
Hi All:

    My lightmapping tutorial finally evolved into a little Java app. It's
by no means anything serious, nor very developed... just a superficial
demo of what can be done with external programming and the new
mesh_camera feature.

    In the attached zip you can find the Java tool, a simple test scene,
and a README file with more details. As always, comments, suggestions
and criticism are welcome...

    Regards,


-- 
Jaime Vives Piqueres
		
La Persistencia de la Ignorancia
http://www.ignorancia.org


Post a reply to this message


Attachments:
Download 'lightmapping-0_1.zip' (1221 KB)

From: C Rivlaldo
Subject: Re: Lightmapping tool
Date: 24 Jun 2012 12:25:01
Message: <web.4fe73e18dbab09eb28c61d550@news.povray.org>
Jaime Vives Piqueres <jai### [at] ignoranciaorg> wrote:
> Hi All:
>
>     My lightmapping tutorial finally evolved into a little Java app. It's
> by no means anything serious, nor very developed... just a superficial
> demo of what can be done with external programming and the new
> mesh_camera feature.
>
>     In the attached zip you can find the Java tool, a simple test scene,
> and a README file with more details. As always, comments, suggestions
> and criticism are welcome...
>
>     Regards,
>
>
> --
> Jaime Vives Piqueres
>
> La Persistencia de la Ignorancia
> http://www.ignorancia.org

Hi, Jaime!

Your Java tool is very cool! Thank you for it!

But I have some troubles with using scripts, which I made with my own generator
(they based on yours scripts).

When I'm rendering scene (two plane mesh and one cube) without lightmaps
(use_baking=0), image is ok:
http://img13.imagefra.me/i56o/crivlaldo/1r9b_55c_u95yo.png

But when I'm rendering lightmaps, they are black. Look at scene with lightmaps
(use_baking=2):
http://img15.imagefra.me/i56o/crivlaldo/1pir_527_u95yo.png

POV-Ray scripts are in attachment.

Can you or somebody, who know what I'm doing wrong, help me?


Post a reply to this message


Attachments:
Download 'lightmaps.zip' (141 KB)

From: Jaime Vives Piqueres
Subject: Re: Lightmapping tool
Date: 25 Jun 2012 13:09:53
Message: <4fe89b61$1@news.povray.org>
On 24/06/12 18:19, C.Rivlaldo wrote:
> Your Java tool is very cool! Thank you for it!

   Thanks to you: you're my first known user! Also thanks for serving as
a reminder of my pending tasks on this... I really have it all ready to
be published on the web site, but I was being very lazy.

> But when I'm rendering lightmaps, they are black.

   Fortunately, tough I'm a bit rusty on my baking technique (I tend to
forgot very quickly), I figured it out surprisingly soon: the normals on
you meshes are inverted from what my tool expects... but you're lucky:
just reverse the normals on the baking cameras and that's it:

  location <0,0,-.01>
  direction <0,0,1>

   The problem was that the baking process was shooting from the other
side of the meshes, so the lightmaps came out black, and so the baked
render was black too.

   Regards,

--
Jaime


Post a reply to this message

From: C Rivlaldo
Subject: Re: Lightmapping tool
Date: 26 Jun 2012 02:35:00
Message: <web.4fe956f3dbab09eb28c61d550@news.povray.org>
Jaime Vives Piqueres <jai### [at] ignoranciaorg> wrote:
> On 24/06/12 18:19, C.Rivlaldo wrote:
> > Your Java tool is very cool! Thank you for it!
>
>    Thanks to you: you're my first known user! Also thanks for serving as
> a reminder of my pending tasks on this... I really have it all ready to
> be published on the web site, but I was being very lazy.
>
> > But when I'm rendering lightmaps, they are black.
>
>    Fortunately, tough I'm a bit rusty on my baking technique (I tend to
> forgot very quickly), I figured it out surprisingly soon: the normals on
> you meshes are inverted from what my tool expects... but you're lucky:
> just reverse the normals on the baking cameras and that's it:
>
>   location <0,0,-.01>
>   direction <0,0,1>
>
>    The problem was that the baking process was shooting from the other
> side of the meshes, so the lightmaps came out black, and so the baked
> render was black too.
>
>    Regards,
>
> --
> Jaime

Thank you! With your changes POV-Ray bake lightmaps very well.


Post a reply to this message

From: Thomas de Groot
Subject: Re: Lightmapping tool
Date: 26 Jun 2012 03:29:02
Message: <4fe964be$1@news.povray.org>
On 25-6-2012 19:09, Jaime Vives Piqueres wrote:
> On 24/06/12 18:19, C.Rivlaldo wrote:
>> Your Java tool is very cool! Thank you for it!
>
> Thanks to you: you're my first known user! Also thanks for serving as
> a reminder of my pending tasks on this... I really have it all ready to
> be published on the web site, but I was being very lazy.
>
Being also extremely lazy, I still have to try your tool! Must make room 
in my - fairly empty - agenda ;-)

Thomas


Post a reply to this message

From: nemesis
Subject: Re: Lightmapping tool
Date: 26 Jun 2012 09:05:01
Message: <web.4fe9b374dbab09ebc5cddb570@news.povray.org>
Jaime Vives Piqueres <jai### [at] ignoranciaorg> wrote:
> On 24/06/12 18:19, C.Rivlaldo wrote:
> > Your Java tool is very cool! Thank you for it!
>
>    Thanks to you: you're my first known user! Also thanks for serving as
> a reminder of my pending tasks on this... I really have it all ready to
> be published on the web site, but I was being very lazy.

"We will encourage you to develop the three great virtues of a programmer:
laziness, impatience, and hubris."
-- Larry Wall


Post a reply to this message

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