Page 1 of 1

textures again

Posted: Fri Apr 13, 2007 12:37 am
by Ratatosk
ok i have my textures except i cant make my png images show up on them can some 1 help?

Posted: Fri Apr 13, 2007 12:55 am
by Sir_Pants
textures are png images...
what are you trying to do? posting the object on which you want to put a texture on is more helpful

Posted: Fri Apr 13, 2007 1:09 am
by JeffM
moved to mapping help.

Posted: Fri Apr 13, 2007 1:10 am
by Ratatosk
i want the box to have a png on it

Posted: Fri Apr 13, 2007 1:14 am
by JeffM
then it has to be a meshbox, and you set it's material using matref.

Posted: Fri Apr 13, 2007 1:31 am
by Ratatosk
i have all of that

Posted: Fri Apr 13, 2007 1:33 am
by Ratatosk
here this is my box/material

meshbox
position 184 110 10
size 80 10 2
matref danger material
end

material
name danger material
texture tadd_hazard_stripe
addtexture tadd_hazard_stripe
# notextures
# notexcolor
# notexalpha
texmat -1
dyncol -1
ambient 0.0 0.0 0.0 1.0
diffuse 1.0 1.0 1.0 1.0
color 1.0 1.0 1.0 1.0
specular 0.0 0.0 0.0 1.0
emission 0.0 0.0 0.0 1.0
shininess 0.0
resetmat
end

Posted: Fri Apr 13, 2007 1:55 am
by Spazzy McGee
Firstly, don't put spaces in your material names.

Secondly, the material needs to come before the meshbox.

Thirdly, you don't need these since they are all defaults:
  • dyncol, texmat, ambient, diffuse, color, specular, emission, shininess, resetmat,
Finally, you only need either texture or addtexture - but not both.

Posted: Fri Apr 13, 2007 8:55 am
by CannonBallGuy
Fifthly, put in the full path or URL to the texture.
In your code above, you trying to use a non-standard texture, so it'll have to be hosted somewhere online - preferably on images.bzflag.org but this isn't a necessity - and the full URL should be used in the material code.

Posted: Fri Apr 13, 2007 12:18 pm
by Ratatosk
so i host it and put the url link in the addtexture right

Posted: Fri Apr 13, 2007 12:24 pm
by Ratatosk
I have this now but still no success

material
name danger_material
addtexture http://i159.photobucket.com/albums/t157 ... ard_stripe
notextures
notexcolor
end

meshbox
position -184 -110 10
size 80 10 2
matref danger_material
end

Posted: Fri Apr 13, 2007 1:28 pm
by CannonBallGuy
add .png to the end of the texture url.

Posted: Fri Apr 13, 2007 4:06 pm
by Spazzy McGee
Take out notextures and noalpha too.

And you'll need to modify the DownloadAccess.txt to be able to view those images in the client...

Posted: Sun Apr 15, 2007 11:11 pm
by Ratatosk
it says cannot load texture filename