Using Kray to Create lightmaps

Post your tutorials and help questions in this forum
Locked
User avatar
8infinite8
Posts: 29
Joined: Wed Jun 04, 2008 9:15 pm
Contact:

Using Kray to Create lightmaps

Post by 8infinite8 »

Hi guys,

I was wondering if there is away to get just the basic light, colour and shadow information out of krays render. Not the full render with reflections etc. To be used in Video games as a lightmap?

Am I making any sense? I notice that Kray does a kind of first pass before the full colour render. Getting hold of this information to be used as a blend ontop of a model and other textures to be used in a game engine would be ace.

Is this currently possible?

Kind regards

Lee
jure
Posts: 2142
Joined: Thu Jun 02, 2005 6:53 pm

Post by jure »

Sure! You can use kray output buffers. Use KrayBuffers.ls found here to select which buffers you need.http://www.kraytracing.com/index.php?su ... uffers.zip

You can also use this in combination with baking camera to get the maps you need...
- Jure
User avatar
8infinite8
Posts: 29
Joined: Wed Jun 04, 2008 9:15 pm
Contact:

Post by 8infinite8 »

Thats ace thankyou Jure!

Not quite to sure how to use it but I will give it a go.

Also this question is unrelated to Kray but when trying to UVmap a scene quickly using Atlas map in modeller I notice that it doesnt seem to be able to sperate the mesh very well. It lays the UV's out brilliantly but the polygons are right next to each other without any kind of buffer and therefore you get bleeding from polys to polys even when rendered out at 4096x4096. I have tried to play around with Atlas's Relative Gap Size % and Segment stuff, but everytime it unwraps there is no controlled gap between polys.

It will be near imposible to unwrap a 100,000-500,000 poly mesh by hand to bake these scenes out. Any ideas how to overcome this?
User avatar
8infinite8
Posts: 29
Joined: Wed Jun 04, 2008 9:15 pm
Contact:

Post by 8infinite8 »

Oh please excuse me I think I have solved this by upping the Relative Gap Size over 100% to around 1000% +

I will post some update. Thankyou.
jure
Posts: 2142
Joined: Thu Jun 02, 2005 6:53 pm

Post by jure »

Ah I also forgot about this command that you can use:

http://www.kraytracing.com/wiki/index.p ... lags_flags
- Jure
Locked