jnrido.blogg.se

Pixplant 3
Pixplant 3












I prefer opening the file in the regular way (not "Open as Layers"). This will turn the layer mask into the alpha channel.

  • Once you're finished, click on Layer->Mask->Apply Layer Mask.
  • Add a grayscale copy of the layer or a blank image, whatever fits your needs.
  • Right click on the layer you want to add an alpha channel.
  • Therefore, on the image you're already working, go to the Layer window (if you don't have it, menu Windows->Dockable Windows->Layers): It's like an alpha channel but with a different name BUT gimp doesn't see it as an alpha channel until you apply it.
  • Use the code from previous section to combine the textures into Diffuse_specular, Normal_height textures.
  • You should now have four different textures:.
  • 80 is about right, but it depends on the source texture, naturally.
  • 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",.
  • pixplant 3

  • 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:.
  • pixplant 3

    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.

    pixplant 3

    The default material generator of the Ogre Terrain Component uses two textures per layer:














    Pixplant 3