textures again

Questions and answers about the how and why of making maps.
Post Reply
User avatar
Ratatosk
Private First Class
Private First Class
Posts: 277
Joined: Sun Nov 05, 2006 2:04 am
Location: Chicago, IL

textures again

Post by Ratatosk »

ok i have my textures except i cant make my png images show up on them can some 1 help?
Courage is the magic that turns dreams into reality.
Image
Sir_Pants
Private First Class
Private First Class
Posts: 194
Joined: Mon Mar 28, 2005 2:41 am
Location: SOMEwhere in WA

Post 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
MONKEYPANTS.COM
Image
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

moved to mapping help.
ImageJeffM
User avatar
Ratatosk
Private First Class
Private First Class
Posts: 277
Joined: Sun Nov 05, 2006 2:04 am
Location: Chicago, IL

Post by Ratatosk »

i want the box to have a png on it
Courage is the magic that turns dreams into reality.
Image
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

then it has to be a meshbox, and you set it's material using matref.
ImageJeffM
User avatar
Ratatosk
Private First Class
Private First Class
Posts: 277
Joined: Sun Nov 05, 2006 2:04 am
Location: Chicago, IL

Post by Ratatosk »

i have all of that
Courage is the magic that turns dreams into reality.
Image
User avatar
Ratatosk
Private First Class
Private First Class
Posts: 277
Joined: Sun Nov 05, 2006 2:04 am
Location: Chicago, IL

Post 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
Courage is the magic that turns dreams into reality.
Image
User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1405
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom

Post 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.
"Life is what happens to you while you're busy making other plans." - John Lennon
User avatar
CannonBallGuy
Private First Class
Private First Class
Posts: 2083
Joined: Wed Apr 12, 2006 1:31 am
Contact:

Post 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.
Image

Merry Christmas!

"Look, if I don't buy booze for the kids, I don't get any incriminating pictures to show to their parents, my business goes down the sink, my girlfriend leaves me and the baby goes on ebay. So help me search..."

"go Play With Toys urself in a dark alley u donkey ******" - Lt-Kirby2007
User avatar
Ratatosk
Private First Class
Private First Class
Posts: 277
Joined: Sun Nov 05, 2006 2:04 am
Location: Chicago, IL

Post by Ratatosk »

so i host it and put the url link in the addtexture right
Courage is the magic that turns dreams into reality.
Image
User avatar
Ratatosk
Private First Class
Private First Class
Posts: 277
Joined: Sun Nov 05, 2006 2:04 am
Location: Chicago, IL

Post 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
Courage is the magic that turns dreams into reality.
Image
User avatar
CannonBallGuy
Private First Class
Private First Class
Posts: 2083
Joined: Wed Apr 12, 2006 1:31 am
Contact:

Post by CannonBallGuy »

add .png to the end of the texture url.
Image

Merry Christmas!

"Look, if I don't buy booze for the kids, I don't get any incriminating pictures to show to their parents, my business goes down the sink, my girlfriend leaves me and the baby goes on ebay. So help me search..."

"go Play With Toys urself in a dark alley u donkey ******" - Lt-Kirby2007
User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1405
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom

Post 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...
"Life is what happens to you while you're busy making other plans." - John Lennon
User avatar
Ratatosk
Private First Class
Private First Class
Posts: 277
Joined: Sun Nov 05, 2006 2:04 am
Location: Chicago, IL

Post by Ratatosk »

it says cannot load texture filename
Courage is the magic that turns dreams into reality.
Image
Post Reply