Image in bzw.
- ducktape
- Private First Class
- Posts: 1206
- Joined: Sat Jul 01, 2006 2:06 am
- Location: Right Behind you!
Image in bzw.
Hi there,
This is a Really n00by question i know so dont make it worse. I have uploaded a image into the bzflag image uploader thing but how do i get it from the uploaded image onto my map?
-ducktape
This is a Really n00by question i know so dont make it worse. I have uploaded a image into the bzflag image uploader thing but how do i get it from the uploaded image onto my map?
-ducktape
material
name example_material
texture filename # set working texture
# - non-interlaced PNG
# - http:// or ftp:// hyperlinks can be used (no spaces)
# - BZFlag default texture names can be used (.png not required)
end
meshbox
("top" | "bottom" | "inside" | "outside" | "startside" | "endside") example_material (or)
matref example_material
end
name example_material
texture filename # set working texture
# - non-interlaced PNG
# - http:// or ftp:// hyperlinks can be used (no spaces)
# - BZFlag default texture names can be used (.png not required)
end
meshbox
("top" | "bottom" | "inside" | "outside" | "startside" | "endside") example_material (or)
matref example_material
end
- ducktape
- Private First Class
- Posts: 1206
- Joined: Sat Jul 01, 2006 2:06 am
- Location: Right Behind you!
Do i need the
part?
Where do i put the position part to put where i would like?
So far this is what i have:
Code: Select all
# - non-interlaced PNG
Where do i put the position part to put where i would like?
So far this is what i have:
Code: Select all
material
name xross_material
C:\Documents and Settings\Zachary\Desktop\image.png
# - non-interlaced PNG
# - http://images.bzflag.org/zrussell/ducktape_image.png
end
meshbox
("top" | "bottom" | "inside" | "outside" | "startside" | "endside") example_material (or)
matref example_material
end
-
- Private First Class
- Posts: 1400
- Joined: Sun Feb 06, 2005 5:40 pm
- Location: Somewhere over there.
if # is at the begining of a line, it means that it is commented out, or it isn't included when defining the map. those are just there because teppic is saying bzflag doesn't use interlaced pngs? and that you can use the default textures without the png at the end, and that hyperlinks using http or ftp can be used. aka, no, you don't need them
also the (inside | outside | etc.) part is a choise, you chose one, or just do matref. i.e.:
^This would give an infinitly large square occupying everywhere, which my image on the top of it.^
or you can just do matref and the name to have the material on all sides
'inside' is the inside of a hollow arc
'outside' is the outside of an arc
'top' is the top
'bottom' is the bottom
'startside' is something else that i don't know
'endside' is another thing i don't know
also the (inside | outside | etc.) part is a choise, you chose one, or just do matref. i.e.:
Code: Select all
material
name meh
texture ftp://hypertexttransferproto.col/my/image.png
end
meshbox
name myuberbox
size infinity to the third
location everywhere
matref top meh
end
or you can just do matref and the name to have the material on all sides
'inside' is the inside of a hollow arc
'outside' is the outside of an arc
'top' is the top
'bottom' is the bottom
'startside' is something else that i don't know
'endside' is another thing i don't know
- ducktape
- Private First Class
- Posts: 1206
- Joined: Sat Jul 01, 2006 2:06 am
- Location: Right Behind you!
Ok um I thought i got it right, but it shows the Meshbox just no image on it.
Here is what i have:
Here is what i have:
Code: Select all
material
name ducktape_image.png
texture http://images.bzflag.org/zrussell/ducktape_image.png
end
meshbox
name ducktape_image.png
size 10 1 5
position 0 -10 20
end
- immunogoblin
- Private First Class
- Posts: 17
- Joined: Tue Dec 25, 2007 7:24 pm
Change name to matref.ducktape wrote:Code: Select all
meshbox name ducktape_image.png size 10 1 5 position 0 -10 20 end
Helpful links:
- The BZFlag Wiki
- The Material Page
- The Meshbox Page
These pages will also give you more information on how to do additional cool things, like apply colors to meshboxes, apply a texture to just one side of a meshbox, or alter the texture.
- The BZFlag Wiki
- The Material Page
- The Meshbox Page
These pages will also give you more information on how to do additional cool things, like apply colors to meshboxes, apply a texture to just one side of a meshbox, or alter the texture.
- Joe-Schmoe
- Private First Class
- Posts: 192
- Joined: Mon Jul 24, 2006 1:10 am
- Location: This field unintentionally left blank.
You don't have to submit multiple times...what code did you use? I have never got that error message.
Join MI6!
- ducktape
- Private First Class
- Posts: 1206
- Joined: Sat Jul 01, 2006 2:06 am
- Location: Right Behind you!
Ok is the material statement this part:
if so i tried use it only once and it didnt work, Here is what i have:
Code: Select all
material
name ducktape_image.png
texture http://images.bzflag.org/zrussell/ducktape_image.png
end
Code: Select all
material
name ducktape_XrossCTF.png
texture http://images.bzflag.org/zrussell/ducktape_XrossCTF
end
meshbox
matref ducktape_XrossCTF.png
size 5 1 8
position 0 10 10
end
meshbox
matref ducktape_XrossCTF.png
size 1 5 8
position 10 0 10
end
meshbox
matref ducktape_XrossCTF.png
size 1 5 8
position -10 0 10
end
meshbox
matref ducktape_XrossCTF.png
size 5 1 8
position 0 -10 10
end
You forgot the .png at the end of the URL.ducktape wrote:Code: Select all
material name ducktape_XrossCTF.png texture http://images.bzflag.org/zrussell/ducktape_XrossCTF end meshbox matref ducktape_XrossCTF.png size 5 1 8 position 0 10 10 end [...]
> Hmm, I recall reading in the wiki that you could leave out the png in the url... I've never really tried it, though.
> And the .png is not "need" in the name section
Yes, if you're speaking of a local texture in the client's data library. So...you could make a texture using caution.png this way....
...but if you have it at your url, then you need to make it this way...
...with the .png safely intact.
> And the .png is not "need" in the name section
Yes, if you're speaking of a local texture in the client's data library. So...you could make a texture using caution.png this way....
Code: Select all
material
name explosive
texture caution
end
Code: Select all
material
name explosice
texture http://pwnz00r.h4x0r.bz/~r00t/caution.png
end