hi all...
In this tutorial I will explain how to apply a lightmap to our models... I guess you're comfortable with your 3d app, you know how to texture it and have some basic control over your model.
I will use 3dsMax for this tutorial, but you can use your favorite app. Take care of center your model at 0,0,0 coordinates.
In order to get a model inside Giles, you'll need to export it in ASE format...
And those are the parameters... nothing special...
Open the ASE file you've exported... and now we have our model into Giles.
The first thing is to add some lights... better if you work in 4 view mode. First we'll add the sun, because this is an outdoor scene so, create a Directional light and place it somewhere... be sure the light is pointing the model, although you can't see any realtime interaction with the model when you add or move a light... just place it.
Check the 'infinite' box inside Light Atenuation panel
Now let's see the light effect... go to Editors > Lightning Methods Wizard
I will set up the size as 2048x2048... can't remember defaul settings so try to match something like this... and click Apply.
Now the model goes clearer but still has no shadows... that's because we need to render the lightmap... to do that, go to Render > Render Settings (F5) and select Ambient Oclussion and check Enable Antialiasing and Enable Soft Shadows as well...
Click the render button (F6) and wait... now we have a lighted scene, but it is still a bit boring... let's add another light for fill the interior and get soft shadows...
I will add an Omni light and place it at the center of the model... in the Light Attenuation panel, give it 30 for Near Range and 60 for Far Range... feel free to play with all lights settings until you're happy...
and render again...
ok, at this point, we will finish the lightning/rendering process... so we are now ready to export the model to 3drad... as you can see, we have a very basic lightning setup here... I leave you to play with light colors and different render settings...
To export the model, go to File > Export and create a new folder on your desktop, then select .X file format and gives it a name like '000_mesh'... and leave the 'Lightmap 00' name for the lightmap texture... then, in the popup, uncheck all except 'Collect Texture Files' box and here we go... save and exit from Giles.
Now you have a folder in your desktop with all files needed in rad, just the last tweak for final export:
THE FINAL TRICK!
Before copying the files to rad's skinmeshes folder, we need to edit all the file paths... by default, Giles writes some weird paths for all textures, so they will not work on your 3drad folder nor a compiled game... open the 000_mesh.x file with Notepad++ and change all paths from:
TextureFilename {
"../../../../_TALLER/GRIMBALL/stadium/field.dds";
}
to:
TextureFilename {
"field.dds";
}
this is because the .X file and all textures will be in the same folder.
Make the same thing in the '000_mesh_lmap.x' file, change something like this:
TextureFilename {
"C:\Documents and Settings\BlackCrystal\Escritorio\export\Lightmap 00.bmp";
}
by this:
TextureFilename {
"Lightmap 00.bmp";
}
ok, now we have all files ready to copy them to the 3drad skinmesh folder. Create 2 new folders in your skinmeshes folder: one for the main skinmesh and the second for the Lightmapped one. Call them as you want. Copy the '000_mesh.x' file with all textures (except the Lightmap 00.bmp) to the main skinmesh folder. Rename the '000_mesh_lmap.x' to '000_mesh.x' and move it to the secondary skinmesh folder. Move the 'Lightmap 00.bmp' texture as well.
INSIDE 3DRAD
This is the basic procedure to have a lightmapped skinmesh inside 3drad. We need the 2 skinmeshes above created, so add them to your project. Place them at the same coordinates (mainly 0,0,0). The settings for the LM skinmesh are the following:
And that's all... just place a sunlight and rotates it to match the sun orientation we did into Giles...
BEFORE
AFTER
Hope you guys have learned how to make your models a bit deeper and how to give them better look inside rad. Sorry for my bad english and, if you have any questions, feel free to comment.
In this tutorial I will explain how to apply a lightmap to our models... I guess you're comfortable with your 3d app, you know how to texture it and have some basic control over your model.
I will use 3dsMax for this tutorial, but you can use your favorite app. Take care of center your model at 0,0,0 coordinates.
In order to get a model inside Giles, you'll need to export it in ASE format...
And those are the parameters... nothing special...
Open the ASE file you've exported... and now we have our model into Giles.
The first thing is to add some lights... better if you work in 4 view mode. First we'll add the sun, because this is an outdoor scene so, create a Directional light and place it somewhere... be sure the light is pointing the model, although you can't see any realtime interaction with the model when you add or move a light... just place it.
Check the 'infinite' box inside Light Atenuation panel
Now let's see the light effect... go to Editors > Lightning Methods Wizard
I will set up the size as 2048x2048... can't remember defaul settings so try to match something like this... and click Apply.
Now the model goes clearer but still has no shadows... that's because we need to render the lightmap... to do that, go to Render > Render Settings (F5) and select Ambient Oclussion and check Enable Antialiasing and Enable Soft Shadows as well...
Click the render button (F6) and wait... now we have a lighted scene, but it is still a bit boring... let's add another light for fill the interior and get soft shadows...
I will add an Omni light and place it at the center of the model... in the Light Attenuation panel, give it 30 for Near Range and 60 for Far Range... feel free to play with all lights settings until you're happy...
and render again...
ok, at this point, we will finish the lightning/rendering process... so we are now ready to export the model to 3drad... as you can see, we have a very basic lightning setup here... I leave you to play with light colors and different render settings...
To export the model, go to File > Export and create a new folder on your desktop, then select .X file format and gives it a name like '000_mesh'... and leave the 'Lightmap 00' name for the lightmap texture... then, in the popup, uncheck all except 'Collect Texture Files' box and here we go... save and exit from Giles.
Now you have a folder in your desktop with all files needed in rad, just the last tweak for final export:
THE FINAL TRICK!
Before copying the files to rad's skinmeshes folder, we need to edit all the file paths... by default, Giles writes some weird paths for all textures, so they will not work on your 3drad folder nor a compiled game... open the 000_mesh.x file with Notepad++ and change all paths from:
TextureFilename {
"../../../../_TALLER/GRIMBALL/stadium/field.dds";
}
to:
TextureFilename {
"field.dds";
}
this is because the .X file and all textures will be in the same folder.
Make the same thing in the '000_mesh_lmap.x' file, change something like this:
TextureFilename {
"C:\Documents and Settings\BlackCrystal\Escritorio\export\Lightmap 00.bmp";
}
by this:
TextureFilename {
"Lightmap 00.bmp";
}
ok, now we have all files ready to copy them to the 3drad skinmesh folder. Create 2 new folders in your skinmeshes folder: one for the main skinmesh and the second for the Lightmapped one. Call them as you want. Copy the '000_mesh.x' file with all textures (except the Lightmap 00.bmp) to the main skinmesh folder. Rename the '000_mesh_lmap.x' to '000_mesh.x' and move it to the secondary skinmesh folder. Move the 'Lightmap 00.bmp' texture as well.
INSIDE 3DRAD
This is the basic procedure to have a lightmapped skinmesh inside 3drad. We need the 2 skinmeshes above created, so add them to your project. Place them at the same coordinates (mainly 0,0,0). The settings for the LM skinmesh are the following:
And that's all... just place a sunlight and rotates it to match the sun orientation we did into Giles...
BEFORE
AFTER
Hope you guys have learned how to make your models a bit deeper and how to give them better look inside rad. Sorry for my bad english and, if you have any questions, feel free to comment.