textures
- clarahobbs
- Private First Class
- Posts: 272
- Joined: Thu Jan 10, 2008 1:45 am
- Location: The Fourth Dimension
That would probably involve a mesh, a material, and a matref. I don't know much about this, so here is a page on the subject:
http://my.bzflag.org/w/Editing_by_Hand
Hope the spelling in this page isn't too bad (I've made it a bit better)
http://my.bzflag.org/w/Editing_by_Hand
Hope the spelling in this page isn't too bad (I've made it a bit better)
FKA Ratfink
tonywolfe21, a good place to start is to check out mesh boxes and mesh pyramids. That's how I first learned to texture things. I doubt you want to learn how meshes and texturecoords work for now.
http://my.bzflag.org/w/Meshbox
http://my.bzflag.org/w/Meshpyr
http://my.bzflag.org/w/Meshbox
http://my.bzflag.org/w/Meshpyr
Just so you know, if your server is running on a version later than 2.0.9, you can apply a matref directly to a box or pyramid, without needing to make meshboxes or meshpyramids.
example:
box
position x y z
size x y z
rotation x
matref material_name_here
end
example:
box
position x y z
size x y z
rotation x
matref material_name_here
end
Current Server: hosting.BZADDICT.net:5173
Former Server: Fairserve.bzflag.org:5259
Former Server: Fairserve.bzflag.org:5259
- Gears of War
- Private First Class
- Posts: 9
- Joined: Sun Nov 18, 2007 2:36 pm
like this...
Code: Select all
material
name whatever
addtexture (the texture u want here)
end
box
name texture
position 0 0 0
rotation 0
size 10 10 10
matref (name of the material above, in this case "whatever")
end
Rock You Like a Hurricane!
Help Me build My City
Here
Im not stupid, everyone else is just smarter than me
If electricity comes from electrons, does morality come from morons?
Whoever says that nothing is impossible obviously hasn't tried to slam a revolving door...
Help Me build My City
Here
Im not stupid, everyone else is just smarter than me
If electricity comes from electrons, does morality come from morons?
Whoever says that nothing is impossible obviously hasn't tried to slam a revolving door...
During development, it can just be in your data directory.
Before you release it or run it publicly, you'll need to have it placed on the BZFlag Image Submission System. Then you would specify a full URL to the image file.
Before you release it or run it publicly, you'll need to have it placed on the BZFlag Image Submission System. Then you would specify a full URL to the image file.
i keep getting this error
C:\Program Files\BZFlag2.0.10\ocean view.bzw: warning (line 148): unknown object
parameter "rotation" - skipping
couldn't find reference material: oldwood.png
couldn't find reference material: oldwood.png
couldn't find reference material: oldwood.png
couldn't find reference material: oldwood.png
couldn't find reference material: oldwood.png
couldn't find reference material: oldwood.png
C:\Program Files\BZFlag2.0.10\ocean view.bzw: warning (line 149): unknown object
parameter "matref" - skipping
and
C:\Program Files\BZFlag2.0.10\ocean view.bzw: warning (line 148): unknown object
parameter "rotation" - skipping
couldn't find reference material: oldwood
couldn't find reference material: oldwood
couldn't find reference material: oldwood
couldn't find reference material: oldwood
couldn't find reference material: oldwood
couldn't find reference material: oldwood
C:\Program Files\BZFlag2.0.10\ocean view.bzw: warning (line 149): unknown object
parameter "matref" - skipping
C:\Program Files\BZFlag2.0.10\ocean view.bzw: warning (line 148): unknown object
parameter "rotation" - skipping
couldn't find reference material: oldwood.png
couldn't find reference material: oldwood.png
couldn't find reference material: oldwood.png
couldn't find reference material: oldwood.png
couldn't find reference material: oldwood.png
couldn't find reference material: oldwood.png
C:\Program Files\BZFlag2.0.10\ocean view.bzw: warning (line 149): unknown object
parameter "matref" - skipping
and
C:\Program Files\BZFlag2.0.10\ocean view.bzw: warning (line 148): unknown object
parameter "rotation" - skipping
couldn't find reference material: oldwood
couldn't find reference material: oldwood
couldn't find reference material: oldwood
couldn't find reference material: oldwood
couldn't find reference material: oldwood
couldn't find reference material: oldwood
C:\Program Files\BZFlag2.0.10\ocean view.bzw: warning (line 149): unknown object
parameter "matref" - skipping
- Gears of War
- Private First Class
- Posts: 9
- Joined: Sun Nov 18, 2007 2:36 pm
are u sure that u have oldwood material in the right location? (my computer/c drive/program files/bzflag2.0.10/data)
Rock You Like a Hurricane!
Help Me build My City
Here
Im not stupid, everyone else is just smarter than me
If electricity comes from electrons, does morality come from morons?
Whoever says that nothing is impossible obviously hasn't tried to slam a revolving door...
Help Me build My City
Here
Im not stupid, everyone else is just smarter than me
If electricity comes from electrons, does morality come from morons?
Whoever says that nothing is impossible obviously hasn't tried to slam a revolving door...
- knoxcorner
- Private First Class
- Posts: 30
- Joined: Sat Nov 24, 2007 9:50 pm
- Location: Dallas, TX
No, i do belive it would be
Just as long as its in
C:\Program Files\BZFlag2.0.10rc3\data
But its not, look in that folder, put the name of it after matref in the object without .png
Code: Select all
box
position -21.0 237.0 10.0
size 50.0 90.0 10.0
rotation 0
matref oldwood
end
C:\Program Files\BZFlag2.0.10rc3\data
But its not, look in that folder, put the name of it after matref in the object without .png
Yes, that would work
I was talking about the material itself being before the box, as in:meshbox
position -21.0 237.0 10.0
size 50.0 90.0 10.0
rotation 0
matref oldwood
end
material
name oldwood
addtexture oldwood
end
meshbox
position -21.0 237.0 10.0
size 50.0 90.0 10.0
rotation 0
matref oldwood
end
Current Server: hosting.BZADDICT.net:5173
Former Server: Fairserve.bzflag.org:5259
Former Server: Fairserve.bzflag.org:5259
I was talking about the material itself being before the box, as in:
that worked
[/quote]material
name oldwood
addtexture oldwood
end
meshbox
position -21.0 237.0 10.0
size 50.0 90.0 10.0
rotation 0
matref oldwood
end
that worked
- Attachments
-
- it worked.JPG
- (78.41 KiB) Downloaded 141 times
- ^nightmare^
- Private First Class
- Posts: 1264
- Joined: Sun Feb 20, 2005 7:14 pm
- Location: Alabama
- Contact:
that worked[/quote]tonywolfe121 wrote:I was talking about the material itself being before the box, as in:material
name oldwood
addtexture oldwood
end
meshbox
position -21.0 237.0 10.0
size 50.0 90.0 10.0
rotation 0
matref oldwood
end
Just a little hint with the textures...
If you have a perfect box (ex 50x50x10), then the textures on top or bottom wont stretch to one big blur.
Need bzflag help? Try looking here: http://www.freewebs.com/bznightmare/map ... aghelp.htm