My all in one texture

April 20, 2019, at 07:05 AM by mgarcia in 2019, Pics (0 comments)

Title: My all in one texture Author: mgarcia Date: 2019-04-20 15:05 +1000 Tags: 2019, Pics Comments: Open

Image: Blog.2019-04-20-My-all-in-one-texture

Click to view original image: 186kb

Tilable (repeating textures) images from https://renderman.pixar.com/pixar-one-twenty-eight.

The font is created using Codehead's Bitmap Font Generator: http://www.codehead.co.uk/cbfg/

Created using this script:

Bash script-
 
main_size=1024
text_size=64
_width=0
_height=0

rm *.tga
cd non-alpha/64

rm ../*.tga
for img in *.tga ; do
	echo "file $img"; 
	echo "size $size"; 
	echo "_width $_width"; 
	echo "_height $_height"; 


 	convert ../append_row-$_height.tga $img +append ../append_row-$_height.tga

	_width=$((_width+text_size));


        if ((_height >= main_size)); then
	  echo error height
	  exit
        fi


        if ((_width >= main_size)); then
	  _width=0;
	  _height=$((_height+text_size));
        fi

echo " "
echo " "
done


cd ..



for img in *.tga ; do
	echo "file $i"; 
	echo "size $size"; 
	echo "_width $_width"; 
	echo "_height $_height"; 		

	echo convert all.tga $img -append all.tga
 	convert all.tga $img -append all.tga

echo " "
done
convert -size 1024x1024 xc:transparent  -compress none bigAlpha.tga

composite -compress none -gravity north all.tga bigAlpha.tga bigAlpha.tga

cp bigAlpha.tga ..

cd ..

echo put the font at the bottom.
composite -compress none -gravity south alpha/CBFG/text.tga bigAlpha.tga bigAlpha.tga



Comments are open.


Your name or alias (required):

Your plain text comment (required):


Your entered name and comment will be displayed above this form.
There is no reply notifications or editing of comments.

 Enter value: 7107  



RSS Feed @mgarcia_org Twitter Feeder my random Youtube videos
← An IndieWeb Webring πŸ•ΈπŸ’ β†’



Page last modified on April 21, 2019, at 02:46 AM and visited 2115 times.

Powered by PmWiki