Horde3D

Next-Generation Graphics Engine
It is currently 14.11.2024, 07:34

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Baked lighting test
PostPosted: 23.08.2009, 19:11 
Offline

Joined: 16.05.2009, 12:43
Posts: 207
Just thought I'd share a shot of an ambient occlusion bake test scene I've just done. Dont expect anything other than programmer art :)

Adding lightmap support was really quite easy. Its getting max to bake a half-decent AO pass thats a pain. I really need to get Tim an arty type to teach me how to bake AO using mental ray (light tracer is just too lame, but tis the easiest way I know to bake AO).

We've got a test scene in the works that Tim wanted to test out various game-engine style rendering stuff with (he teaches game art, while I teach game programming and design). Not sure he'll want to share that with the H3D community. But at the least, it should at least demo some stuff thats possible with horde.

Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Baked lighting test
PostPosted: 24.08.2009, 07:38 
Offline

Joined: 08.11.2006, 03:10
Posts: 384
Location: Australia
Nice - just to clarify though, the hard shadows (not the nice edge softening) in the pic are from Horde's shadow-mapping, not your lightmaps, right?

I wasn't aware that Max could bake out lighting into maps like that -- the artists at work always bake their lighting into the vertex colour channel, which can look bad unless you tessellate the mesh a lot.


Top
 Profile  
Reply with quote  
 Post subject: Re: Baked lighting test
PostPosted: 24.08.2009, 10:48 
Offline

Joined: 11.06.2008, 10:34
Posts: 119
Is their anychance on releasing or lending the shader for some testing :). One of the content packs has an AO pass, but im not sure if the supplied GEO has the second UV channel exported.

Looking good.

_________________

Let's bring 'em out! Any old iron! Any old iron!
A door opens and a homewife brings out a rather sophisticated-looking ground-to-air missile system, and dumps it on the cart.
Thank you.


Top
 Profile  
Reply with quote  
 Post subject: Re: Baked lighting test
PostPosted: 24.08.2009, 11:47 
Offline

Joined: 16.05.2009, 12:43
Posts: 207
DarkAngel wrote:
Nice - just to clarify though, the hard shadows (not the nice edge softening) in the pic are from Horde's shadow-mapping, not your lightmaps, right?

I wasn't aware that Max could bake out lighting into maps like that -- the artists at work always bake their lighting into the vertex colour channel, which can look bad unless you tessellate the mesh a lot.


Yeah, the hard shadows are Horde. The soft shadow stuff is a really poorly done ambient pass rendered in max (using render to texture and a single skylight).

Normally, you wouldnt do it this way. You would use something like mental ray or vray and a proper unwrapper like unwrella or flatiron. Or even use something like that one from illuminate labs. Needless to say, they look a damn sight nicer than my test level.


Top
 Profile  
Reply with quote  
 Post subject: Re: Baked lighting test
PostPosted: 24.08.2009, 11:52 
Offline

Joined: 16.05.2009, 12:43
Posts: 207
PuG wrote:
Is their anychance on releasing or lending the shader for some testing :). One of the content packs has an AO pass, but im not sure if the supplied GEO has the second UV channel exported.

Looking good.


http://www.britishindie.com/video/aomaze.zip

If you get that zip, it should have the test level (in max and collada format), the model.shader file with the F06 shader switch plus materials and textures to load the mesh.

Note: If you run the collada file through collada conv again, it will change the material file name. I hand-edited the grey material one (and the scene) because I hate the names the max file uses when it exports into collada. Call me obsessive if you like :)

Let me know if you need anything else. Basically, all you need is to make sure the lightmap is baked into channel 2. Thinking about it, I could add support for the alpha channel in the shader so I could fade the edges of any lightmaps in my tiles! (Sorry, just thinking to myself, my world is made up of a grid of mesh tiles and I did a test tile but when putting multiples of it on a grid, the lighting at the edges of the tiles looked wierd.


Top
 Profile  
Reply with quote  
 Post subject: Re: Baked lighting test
PostPosted: 24.08.2009, 13:16 
Offline

Joined: 11.06.2008, 10:34
Posts: 119
thanks :) will have ago hopefully tonight.

_________________

Let's bring 'em out! Any old iron! Any old iron!
A door opens and a homewife brings out a rather sophisticated-looking ground-to-air missile system, and dumps it on the cart.
Thank you.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group