POV-Ray : Newsgroups : povray.binaries.images : Baking lighting maps (aka lightmaps) with beta 39 Server Time
2 Nov 2024 16:11:30 EDT (-0400)
  Baking lighting maps (aka lightmaps) with beta 39 (Message 1 to 6 of 6)  
From: Jaime Vives Piqueres
Subject: Baking lighting maps (aka lightmaps) with beta 39
Date: 23 Sep 2010 07:47:26
Message: <4c9b3e4e@news.povray.org>
Hi All:

    Here are some pics illustrating my first "serious" use of the new mesh
camera feature to bake lightmaps. A detailed tutorial is on the works, but
basically I used the method I developed for the demo scene bundled with the
beta, just baking to plain white textures.

    The scene was created entirely with Wings3D, using the autoUV feature to
create uv maps for all the objects. The two attached screenshots of Wings3d
show the lightmaps loaded back into Wings, illustrating what can be done for
VR/games purposes. These could used as lightmaps with your preferred VR
application, gaming engine, WebGl app, etc...

    The other two attachements are POV-Ray renderings showing that the maps
can be used with POV-Ray too, to render unlighted scenes very, very quickly,
using just ambient or emission on the textures. This greatly helps when
making walkthrough animations, multiple views of the same scene, or multiple
versions with different textures...

    Judging from this first "serious" experiment, the feature seems to work
flawlessly, and I'm really excited by all the possibilities that it opens
for POV-Ray, specially in regards to where it can be used.

    The only drawback is that, currently, all the baking code has to be setup
manually with POV-Ray and shell scripts, and this can be tedious with big
scenes with hundreds of meshes... but I hope that existing external
applications will take over this task: a Wings3D plugin will be nice,
although a new "baking" tab for Poseray will be very useful too... and any
other app that uses POV-Ray to render could add automated baking with little
effort, I think.

    Of course there are some things that can be done better. HDRI ouput would
be the optimal format, but POV-Ray doesn't supports transparency there, at
the moment (it it's needed to mitigate the seams problem). Also, with big
scenes, it would be nice to be able to use the existing "clockless
animation" feature, to avoid re-parsing the scene for each mesh baked.

    Regards, and happy baking!

-- 
Jaime Vives Piqueres

http://www.ignorancia.org


Post a reply to this message


Attachments:
Download 'pantallazo-1.jpg' (205 KB) Download 'pantallazo-2.jpg' (200 KB) Download 'baked-room-04.jpg' (178 KB) Download 'baked-room-05.jpg' (193 KB)

Preview of image 'pantallazo-1.jpg'
pantallazo-1.jpg

Preview of image 'pantallazo-2.jpg'
pantallazo-2.jpg

Preview of image 'baked-room-04.jpg'
baked-room-04.jpg

Preview of image 'baked-room-05.jpg'
baked-room-05.jpg


 

From: Sven Littkowski
Subject: Re: Baking lighting maps (aka lightmaps) with beta 39
Date: 24 Sep 2010 10:46:35
Message: <4c9cb9cb$1@news.povray.org>
I like the chair at the right side in front of the balcony. Nice design! Can 
it be downloaded as POV-Ray object somewhere?


Post a reply to this message

From: Jaime Vives Piqueres
Subject: Re: Baking lighting maps (aka lightmaps) with beta 39
Date: 25 Sep 2010 03:33:44
Message: <4c9da5d8@news.povray.org>

> I like the chair at the right side in front of the balcony. Nice design!
> Can it be downloaded as POV-Ray object somewhere?

   Thanks, it was my own design, but I doubt you could really sit comfortably
on such chair...

   In fact I modelled everything on this scene with Wings3D, as it is going
to be the scene bundled with my "lightmap baking" tutorial, and I prefer to
not use 3rd party models. So, yes, it is going to be published soon,
hopefully this weekend...

-- 
Jaime Vives Piqueres

http://www.ignorancia.org


Post a reply to this message

From: FlyerX
Subject: Re: Baking lighting maps (aka lightmaps) with beta 39
Date: 25 Sep 2010 04:14:53
Message: <4c9daf7d@news.povray.org>
On 9/23/2010 6:46 AM, Jaime Vives Piqueres wrote:
> Hi All:
>
> Here are some pics illustrating my first "serious" use of the new mesh
> camera feature to bake lightmaps. A detailed tutorial is on the works, but
> basically I used the method I developed for the demo scene bundled with the
> beta, just baking to plain white textures.
>
> The scene was created entirely with Wings3D, using the autoUV feature to
> create uv maps for all the objects. The two attached screenshots of Wings3d
> show the lightmaps loaded back into Wings, illustrating what can be done
> for
> VR/games purposes. These could used as lightmaps with your preferred VR
> application, gaming engine, WebGl app, etc...
>
> The other two attachements are POV-Ray renderings showing that the maps
> can be used with POV-Ray too, to render unlighted scenes very, very
> quickly,
> using just ambient or emission on the textures. This greatly helps when
> making walkthrough animations, multiple views of the same scene, or
> multiple
> versions with different textures...
>
> Judging from this first "serious" experiment, the feature seems to work
> flawlessly, and I'm really excited by all the possibilities that it opens
> for POV-Ray, specially in regards to where it can be used.
>
> The only drawback is that, currently, all the baking code has to be setup
> manually with POV-Ray and shell scripts, and this can be tedious with big
> scenes with hundreds of meshes... but I hope that existing external
> applications will take over this task: a Wings3D plugin will be nice,
> although a new "baking" tab for Poseray will be very useful too... and any
> other app that uses POV-Ray to render could add automated baking with
> little
> effort, I think.
>
> Of course there are some things that can be done better. HDRI ouput would
> be the optimal format, but POV-Ray doesn't supports transparency there, at
> the moment (it it's needed to mitigate the seams problem). Also, with big
> scenes, it would be nice to be able to use the existing "clockless
> animation" feature, to avoid re-parsing the scene for each mesh baked.
>
> Regards, and happy baking!
>

Certainly this looks like something PoseRay could automate. I would have 
to look into it and will be looking forward to your tutorial since the 
documentation for this camera mode is sparse at the moment.

FlyerX


Post a reply to this message

From: Jaime Vives Piqueres
Subject: Re: Baking lighting maps (aka lightmaps) with beta 39
Date: 25 Sep 2010 07:15:09
Message: <4c9dd9bd@news.povray.org>

> Certainly this looks like something PoseRay could automate. I would have
> to look into it and will be looking forward to your tutorial since the
> documentation for this camera mode is sparse at the moment.

   Yes, I think the way you organized it all within PoseRay makes it very
easy to add the automated baking.

   Indeed, my tutorial requires the use of PoseRay to export the whole scene:
I created a quick and dirty php script which scans the files exported by
PoseRay, collects the objects and materials data, and then writes the .inc
files and bash scripts needed to automatically bake all the meshes in the
scene. It should give you some ideas, at least on how to not implement it... ;)


-- 
Jaime Vives Piqueres

http://www.ignorancia.org


Post a reply to this message

From: Thomas de Groot
Subject: Re: Baking lighting maps (aka lightmaps) with beta 39
Date: 26 Sep 2010 02:51:52
Message: <4c9eed88$1@news.povray.org>
"FlyerX" <fly### [at] yahoocom> schreef in bericht 
news:4c9daf7d@news.povray.org...
> Certainly this looks like something PoseRay could automate. I would have 
> to look into it and will be looking forward to your tutorial since the 
> documentation for this camera mode is sparse at the moment.
>

That would be great indeed!!

Gentlemen, you have my very deep thanks for your work!!

Thomas


Post a reply to this message

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