YAL help

Blitz3D Forums/Blitz3D Programming/YAL help

Nexus6(Posted 2008) [#1]
Can anybody help me, I'm trying to create a random city generator made up of 3D tiles. The problem is I want to lightmap the city after its been created and currently the only way to do this is by writing my own lightmapper or use YAL. This is were my problem lies, because I'm definately not capable of writing my own lightmapper and I cant make any sense of the YAL code to be able to insert it into my own source. Has anybody managed to strip down YAL and create a useable include file (and a small help doc wouldn't go amiss).

I know JFK has had some success with YAL because its used as the basis for SlimShady, anyway, all help welcome.


Nexus6(Posted 2008) [#2]
Had another go at tackling the YAL code again last night, totally messed it up, anybody had any success implementing this code within a game?


Ross C(Posted 2008) [#3]
I looked through it. Boggled my mind completely...


Warner(Posted 2008) [#4]
Have you downloaded sswifts version of Yal ? It seems to be pretty straightforward. I didn't look at any earlier version. All functions are commented.
http://www.blitzmax.com/codearcs/codearcs.php?code=794
You'll need to download another code entry of sswift that contains the missing intersection functions. Click on his name to find them.
There is an example function at the bottom of the code:

To convert this version of yal into an include file, remove the LMExample() Function, and the call to it at the top of the program, and use the rest as an include to your program.


John Blackledge(Posted 2008) [#5]
Just bear in mind that YAL can only handle a single welded mesh, not children.


Nexus6(Posted 2008) [#6]
Thanks Warner, Sswifts version is certainly a lot easier to undestand and use, I've avoided his version because I could never find the include file, thanks for pointing me in the right direction.

Thanks for the tip John.


John Blackledge(Posted 2008) [#7]
Just bear in mind that YAL can only handle a single welded mesh, not children.

It's basically very good code, and the wrapper above works.
What we need is for some clever person to mod the code to handle children.


Nack(Posted 2008) [#8]
to handle children, cant you just add it the one mesh ? like collaspe it into one giant mesh before exporting?

nack