Adjust the Intensity value of the Specular channel - too much will make the terrain look weird.Fire up PixPlant and File->Load Texture->dirt.jpg.PixPlant is powered by Ogre and is a highly recommended texture tool! Get the nVidida texture tools (DDS Utilities) and convert the output textures to dds.Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::PF_BYTE_RGBA) Ĭombined.save("moos1_diffusespecular.png") Ĭombined.loadTwoImagesAsRGBA("moos1_NORM.tga", "moos1_DISP.bmp", Use the following C++ code to combine the images:Ĭombined.loadTwoImagesAsRGBA("moos1.jpg", "moos1_SPEC.bmp",.Generate the maps by running the bat script, once for each texture.Replace the directory and texture name with what you want to generate maps for. Create a bat file with the following contents:.Get ShaderMap CL from (Link no longer works, try ).The following shows different ways to create a working set of terrain textures. It's important to have the textures in the right format, otherwise the terrain is not going to look right. The default material generator of the Ogre Terrain Component uses two textures per layer:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |