Page 2 of 2

Posted: Tue Jan 09, 2007 3:44 pm
by noreg

Sunflow

Posted: Mon Jul 02, 2007 12:39 am
by pinballwizard
Regarding lightmapping solutions, I noticed no one has mentioned Sunflow on the Irrlicht forums. I just wanted to point it out:

http://sunflow.sourceforge.net

There is an exporter for Blender that saves Blender scenes as Sunflow files. Sunflow then calculates global illumination based on different techniques you can select.

The important thing is that it can render the lighting results using existing unwrapped UV lightmap coordinates. This means Sunflow can render into lightmap textures that you can then apply to your models in Irrlicht/Blender.

The main problem is that you have to unwrap the mesh yourself (providing non-overlapping UV's for every face) before passing it to Sunflow. Of course Blender offers unwrapping tools that can do this for you, but if you unwrap every mesh individually, you will likely have (a) a LOT of separate lightmap textures (b) maybe some of wasted space in each lightmap texture (c) inconsistent lightmap resolution in your level (some meshes with high lightmap resolution, others with low lightmap resolution). A tool like FSRAD "unwraps" meshes automatically and splits large polygons if necessary to ensure consistent lightmap resolution everywhere (you specify the desired resolution and maximum allowable lightmap size, FSRAD splits polys if needed to use that lightmap size). Also, AFAIK, FSRAD tries to optimize lightmap usage so that faces from different meshes may use the same lightmap, and the lightmaps for the faces are "packed" to squeeze as many faces as possible into each lightmap. This reduces the number of lightmap textures and thus the texture-switching burden on the graphics card.

Sunflow still has a few quirks (bleeding on lightmap edges), but overall it's quite powerful and seems to be gaining momentum, so it might be worth checking it out and adding it to your tool set. Oh, and it's written in Java, so it runs on all Java-supported platforms like Linux, Mac OSX, and other operating systems.

Posted: Thu Jul 17, 2008 4:26 am
by patricklucas
All the original post links are kabroke. :-/

Posted: Wed Jul 23, 2008 2:15 pm
by afecelis
Yup, sorry, this is quite an old topic and most of my stuff on that server was lost. :(

Posted: Wed Aug 13, 2008 8:15 am
by roelor
Euh links are dead no images watsoever...
Could someone please fix?

Posted: Wed Aug 13, 2008 8:32 am
by JP
Read the above post ;)

Posted: Thu Aug 14, 2008 12:34 pm
by mikademus
Perhaps this thread should be unstickied?

Posted: Thu Aug 14, 2008 2:23 pm
by roelor
Yeah but on the website itself are also threads that use the broken links.

Posted: Sun Jan 25, 2009 11:08 am
by mc08
just want to point out that the links doesnt work anymore. since it's a sticky, that should be fixed?

// sry for whining ;)