PDA

View Full Version : [TUTORIAL] Advanced High Quality Lightmapping



DEElekgolo
December 24th, 2008, 11:02 AM
Epicness has been produced.


Awesome lightmapping method:
http://img187.imageshack.us/img187/7840/haloce2008121822042815oc9.jpg
HaloCE's Lightmapping:
http://img387.imageshack.us/img387/6332/haloce2008122019444051hi3.jpg
Awesome lightmapping method:
http://img75.imageshack.us/img75/3504/haloce2008121822074429cv1.jpg
HaloCE's Lightmapping:
http://img68.imageshack.us/img68/244/haloce2008122019452315lu4.jpg
Awesome Lightmapping method:
http://img132.imageshack.us/img132/387/haloce2008121822044257ta9.jpg
HaloCE's Lightmapping:
http://img354.imageshack.us/img354/5299/haloce2008122019463584ra6.jpg
Awesome Lightmapping method:
http://img247.imageshack.us/img247/5759/haloce2008121822064678zv6.jpg
HaloCE's lightmapping method:
http://img126.imageshack.us/img126/2674/haloce2008122019473034cg8.jpg

No competition.

As you can see. My method has:


Raytracing
Shadows for objects with transparency
Softer GI
Dithering
Self illumination
Shadows for scenery
Physically correct lighting

Some things to know:

All of my major lightmaps are at 2048x2048. Minor lightmaps are at 1024x1024. Dithering is using the Floyd-Steinberg method. Lightmaps are in-fact baked in 3ds max 2009.

This tutorial was made with the use of VRAY and Ather, both are included in the tutorial


Download Tutorial

http://files.h2vista.net/tutorials/deehunter-lightmapping/lightmapping_tut.rar

Kornman00
December 24th, 2008, 11:37 AM
I predict some good things for Halo1 in the year 2009...

Con
December 24th, 2008, 11:59 AM
I predict some good things for Halo1 in the year 2009...
.

dark57
December 24th, 2008, 12:35 PM
wow.....awesome lightmaping method looks......awesome.

L0d3x
December 24th, 2008, 01:14 PM
Holy doodle that arouses my noodle.

DEElekgolo
December 24th, 2008, 01:57 PM
Did any more noodle arouses occur?

Anton
December 24th, 2008, 02:13 PM
My noodle has long been broken.

DEElekgolo
December 24th, 2008, 02:34 PM
Sorry to hear that.

Disaster
December 24th, 2008, 03:25 PM
My noodle is long been broken.
:raise:

DEElekgolo
December 24th, 2008, 06:17 PM
FireScythe has been staring at this page for a while...

Inferno
December 24th, 2008, 11:14 PM
Approximately how long would it take to run nice light maps like this for 7 multiplayer maps all about 15000 polygons? Trying to decide if its worth it...

LlamaMaster
December 24th, 2008, 11:23 PM
Hasn't this been done several times before? Looks great none the less.

Kalub
December 24th, 2008, 11:32 PM
Jahrain, and I made a Maxscript to take the location of the sun from a sky tag, convert the radians to degrees, and then create a fully automatic light positioning method to mimic it. Then you could just texture bake.

I'm not sure if this is your method, since I haven't watched the video yet, but it worked like a charm. I lost the .ms though. :|

SuperSunny
December 25th, 2008, 01:43 AM
Using Jahrain's lightmapping tool this was done quite a while back, though no major tutorials have been released. I played around with the same concept back in H2V, and a bit in CE. It's all been a self-learning kinda deal, with no docs or help from anyone, so this is going to be really helpful to getting better lighting into Halo!

FireScythe
December 25th, 2008, 04:27 AM
FireScythe has been staring at this page for a while...
It's because this threads damn sexy :haw:. Tut looks good to me. Only restrictions with it is because you don't use the textured mesh you can't get any colour bleeding/reflections/refractions from the surfaces, and you can't put transparency on ladders and such because the UV's and materials are different on lightmaps. Oh and just incase people get the wrong idea, your not restricted to VRay, you can use whatever lighting techniques your comfortable with :D.

Btw, you don't have to rename your imported gbxmodels, the script uses what you have selected, so your renaming it to only end up deleting it afterwards :p.

DEElekgolo
December 25th, 2008, 01:24 PM
I dont have to re-name?! Gah!

Kalub
December 25th, 2008, 07:16 PM
I really like the instancing that his script does. Ours required a ghetto "3d screenshot" of the mesh to do the process.

killer9856
January 4th, 2009, 02:20 PM
Coolio. I'll do the tutorial later.

SR114
January 9th, 2009, 10:29 PM
DEEhunter, you said something about "later tutorials" explaining how to add self-illumination for objects like teleporters? I would really appreciate that.

Dontu
January 12th, 2009, 09:31 AM
I followed DEEHunter's tutorial using mental ray and ran into this problem is there any type of fix?

http://www.xfire.com/screenshots/dontu/ss_file-216bace00d14ff43a45792 (http://www.xfire.com/screenshots/dontu/ss_file-216bace00d14ff43a45792288a4d2538c7c0d91d.jpg)

FireScythe
January 12th, 2009, 10:48 AM
You need to increase the padding value when you render to texture so that when the image is scaled up/down the black background doesnt seep in.

Scooby Doo
January 12th, 2009, 06:38 PM
show us self illum or gtfo!

just kidding. this will come in handy tho. great work, mate.

~Scoob

DEElekgolo
January 12th, 2009, 06:40 PM
Gah. Ill do the illum tut after my finals. That would be in a week or two.

p0lar_bear
January 14th, 2009, 02:49 AM
Yeah, I was going to say that using max for lightmapping isn't a great idea if you have lighted interiors for your map.

I've long wondered how to get materials to emit light.

DaneO'Roo
January 14th, 2009, 04:32 AM
Now that's the shit right there son.

Reaper Man
January 14th, 2009, 05:23 AM
Uh, didn't Jahrain post a tutorial on how to do this a year or two ago? Plus, I've been mentioning it regularly. Oh well, glad to see it's resurfaced.

DaneO'Roo
January 14th, 2009, 06:13 AM
Nah this is a much better less annoying version.


Also, theoretically, if you uv mapped 2 channels instead of 1 for your bsp and gave the extra one normal maps and full materials, like your terrain and what not, you could render displacement baked into the lightmaps, but I'm not sure on that. Could be a way to get all the bumps in the level to look lit rather than having to flashlight them or put a dynamic light near them. You may even be able to do it without a seperate uv channel, I'm not sure.

IF so, you could zbrush or mudbox just your terrain, project render it as normals to your bsp terrain models uvws and apply it to your scene where the ground map material is located. Basically fake some sexy rocky shit happening on the cliffs and what not.

FireScythe
January 14th, 2009, 07:24 AM
Yeah, I was going to say that using max for lightmapping isn't a great idea if you have lighted interiors for your map.

I've long wondered how to get materials to emit light.
The only method I know of is using the Advanced Lighting Override material with scanline and radiosity. Replace the emissive material with this, whack up the luminance scale (I usually put it around 150 for starters) and set the self illumination to a colour.
http://www.kxcad.net/autodesk/3ds_max/Autodesk_3ds_Max_9_Reference/advanced_lighting_override_material.html

Scooby Doo
January 14th, 2009, 12:25 PM
i like your thoughts, dano. i bet the bumps could be achieved by messing with the materials in max. i mean, instead of a fully white material, you do something else like add a bump map, reflection properties, illum maps, etc. i guess if we experiment with it, we'll find out :)

but, DEE did say that self illum had something to do with max materials i think. but we have to wait for his tut... :(


~Scoob

DEElekgolo
January 14th, 2009, 06:56 PM
Actually. You may use things like omni and so on. But vray has the best self illumination method I have seen.
http://www.9jcg.com/tutorials/FlorenceDesignAcademy/Glowing_Material_with_Mental_Ray/large/glowing_material_with_mental_ray_01.jpg
And even bitmap based lighting.
http://www.spot3d.com/vray/help/150SP1/images/examples/vray2sided/paper_lamp.png

jngrow
April 7th, 2009, 04:25 PM
E: works now. For "renderer" slot, had to choose "------------". Sapien crashes if I do 2048x2048 lightmaps tho. Cool. Awesome. 50x faster than lightmaps in tool.

DEElekgolo
April 18th, 2009, 01:09 AM
Made a new tut.
It is VERY brief. But it goes over baking and having objects of self illumination. Baked in low quality. I was rendering lightmaps for yoyo on my other screen so there may be a few skips.
http://www.filedropper.com/lightmappingtut

Mirrors of this will be appreciated.
http://img21.imageshack.us/img21/6258/haloce2009041720441061.png

n00b1n8R
April 18th, 2009, 01:59 AM
I must be the only person who thinks this looks terrible.

I mean, yeah it's more realistic but I want it to look like Halo 1, not something it's not (and the realistic shadows look so out of place with the rest of the H1 graphics) :saddowns:

StankBacon
April 18th, 2009, 02:01 AM
nice video :)

DEElekgolo
April 18th, 2009, 02:05 AM
I must be the only person who thinks this looks terrible.

I mean, yeah it's more realistic but I want it to look like Halo 1, not something it's not (and the realistic shadows look so out of place with the rest of the H1 graphics) :saddowns:
So its too good for halo? :o

SnaFuBAR
April 18th, 2009, 02:12 AM
I must be the only person who thinks this looks terrible.

I mean, yeah it's more realistic but I want it to look like Halo 1, not something it's not (and the realistic shadows look so out of place with the rest of the H1 graphics) :saddowns:
who says only halo1 canon mods would use this? I would've liked modern combat better with this tbh.

n00b1n8R
April 18th, 2009, 02:19 AM
who says only halo1 canon mods would use this? I would've liked modern combat better with this tbh.
Nobody.

I'm just saying that I think it looks odd with all the other graphics (especially the real-time shadows).

Joshflighter
April 18th, 2009, 08:47 PM
Mirror:
http://rapidshare.com/files/223001741/Lightmapping_tut.rar (http://rapidshare.com/files/223001741/Lightmapping_tut.rar)

Syuusuke
April 18th, 2009, 09:06 PM
Bad mirror =/ Use filefront!

This is cool though, I didn't notice this ever.

Joshflighter
April 19th, 2009, 01:29 PM
Bad mirror =/ Use filefront!

This is cool though, I didn't notice this ever.

Its not bad if you have Rapidshare.. :highfive:

Malloy
April 20th, 2009, 02:42 AM
So its too good for halo? :o

I believe he was referring to artistic differences made from this feature :P

but yah as Snaf said, shitty little canyon bloodgulch cliff texture maps wont benefit these lighting effects 100%.

Urban maps ftw though.

FireScythe
April 20th, 2009, 04:16 AM
I must be the only person who thinks this looks terrible.

I mean, yeah it's more realistic but I want it to look like Halo 1, not something it's not (and the realistic shadows look so out of place with the rest of the H1 graphics) :saddowns:
Well it's by no means just for realistic, high quality lighting, it just gives you more artistic control and a faster way to getting things right.
The tutorials alright but theres no use of scenery and such as there was in the other tutorial.

MissingSpartan7
April 20th, 2009, 05:13 PM
is the tutorial from the first post still available?
can't find it on filefront
.....is gone....