Well, here it is.... my new, almost complete, project.
TextureMax is a tool for easily adding great customization to the media of your Dark Basic Professional project. Using the TextureMax application you can separate your images into channels. You can then apply different colors to each channel adding instant variation to your media.
Making a racing game? Give your users the ability to choose the colors for their car. Simply create your texture in your favorite paint program. When finished, open the texture up in the TextureMax application. Add channels for each area of the car, such as the body, racing stripes and interior. Paint over the image with the appropriate channels. When you are done you can load the saved .tmx file in Dark Basic Professional and texture your 3D object with it. You can then apply whatever color you wish to the body of the car and any color to the racing stripe with a couple of simple commands.
Red car, blue racing stripe, black interior.
Black car, red racing stripe, black interior.
Green car, yellow racing strip, gray interior.
One single media file. Limitless variation.
TextureMax will also work great for multiplayer games. You will be able to easily differentiate your players/teams by separating them into color groups. Again, give the power to your player while saving yourself the work of creating very limited combinations.
lt also works great for 2D games!
There are two main parts to TextureMax:
The TextureMax application, and the TextureMax dll.
Here is a screen of the TextureMax application in action:
http://www.gametoolshed.com/TextureMax/app.jpg
When you are finished you simply load the *.tmx file in your DBpro program and change the colors at will.
Here is a sample of DBpro code to generate random colors for the texture loaded into the editor shown above.
load object "bike.x",1
TMX_Open "bike.tmx",1
TMX_MakeImage 1, 1
Texture object 1,1
TMX_SetAutoBrightEnable 1,0
randomize timer()
do
if spacekey() = 1
for a = 1 to TMX_GetTotalChannels(1)
red = rnd(255)
grn = rnd(255)
blu = rnd(255)
TMX_SetChanColor 1,a,RGB(red,grn,blu)
NEXT a
TMX_MakeImage 1,1
Texture object 1,1
endif
sync
loop
Here are some results for the above code:
Dead simple. Fast. Powerful variation to your media.
TextureMax should be released SOON!
Regards,
Ron Erickson
EZrotate!