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 » Fri Apr 13, 2007 12:37 am

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 » Fri Apr 13, 2007 12:55 am

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: 5173
Joined: Fri Dec 13, 2002 4:11 am
Location: https://discord.gg/NN9uAvx
Contact:

Post by JeffM » Fri Apr 13, 2007 1:09 am

moved to mapping help.

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 » Fri Apr 13, 2007 1:10 am

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: 5173
Joined: Fri Dec 13, 2002 4:11 am
Location: https://discord.gg/NN9uAvx
Contact:

Post by JeffM » Fri Apr 13, 2007 1:14 am

then it has to be a meshbox, and you set it's material using matref.

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 » Fri Apr 13, 2007 1:31 am

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 » Fri Apr 13, 2007 1:33 am

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: 1403
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom
Contact:

Post by Spazzy McGee » Fri Apr 13, 2007 1:55 am

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 » Fri Apr 13, 2007 8:55 am

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 » Fri Apr 13, 2007 12:18 pm

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 » Fri Apr 13, 2007 12:24 pm

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 » Fri Apr 13, 2007 1:28 pm

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: 1403
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom
Contact:

Post by Spazzy McGee » Fri Apr 13, 2007 4:06 pm

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 » Sun Apr 15, 2007 11:11 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest