textures

Questions and answers about the how and why of making maps.
Post Reply
Anthony
Private First Class
Private First Class
Posts: 222
Joined: Fri Jan 11, 2008 4:01 pm

textures

Post by Anthony » Fri Feb 15, 2008 7:59 pm

how do you texture things useing notepad or any text editor

User avatar
clarahobbs
Private First Class
Private First Class
Posts: 272
Joined: Thu Jan 10, 2008 1:45 am
Location: The Fourth Dimension

Post by clarahobbs » Fri Feb 15, 2008 8:20 pm

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)
FKA Ratfink

User avatar
SkillDude
Private First Class
Private First Class
Posts: 336
Joined: Sun Apr 01, 2007 4:50 pm
Location: United States

Post by SkillDude » Fri Feb 15, 2008 10:47 pm

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

slon02
Private First Class
Private First Class
Posts: 148
Joined: Sat Jun 04, 2005 9:27 pm

Post by slon02 » Fri Feb 15, 2008 11:41 pm

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
Current Server: hosting.BZADDICT.net:5173
Former Server: Fairserve.bzflag.org:5259

User avatar
Gears of War
Private First Class
Private First Class
Posts: 9
Joined: Sun Nov 18, 2007 2:36 pm

Post by Gears of War » Fri Feb 15, 2008 11:48 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...

Anthony
Private First Class
Private First Class
Posts: 222
Joined: Fri Jan 11, 2008 4:01 pm

Post by Anthony » Sat Feb 16, 2008 1:07 am

where should the file be placed or does it matter

User avatar
blast
General
General
Posts: 4756
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Post by blast » Sat Feb 16, 2008 5:36 am

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.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

Anthony
Private First Class
Private First Class
Posts: 222
Joined: Fri Jan 11, 2008 4:01 pm

Post by Anthony » Sat Feb 16, 2008 1:52 pm

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

User avatar
Gears of War
Private First Class
Private First Class
Posts: 9
Joined: Sun Nov 18, 2007 2:36 pm

Post by Gears of War » Sat Feb 16, 2008 2:26 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...

slon02
Private First Class
Private First Class
Posts: 148
Joined: Sat Jun 04, 2005 9:27 pm

Post by slon02 » Sat Feb 16, 2008 3:01 pm

you also need to have the material before the matref
Current Server: hosting.BZADDICT.net:5173
Former Server: Fairserve.bzflag.org:5259

Anthony
Private First Class
Private First Class
Posts: 222
Joined: Fri Jan 11, 2008 4:01 pm

Post by Anthony » Sat Feb 16, 2008 6:01 pm

like this

box
position -21.0 237.0 10.0
size 50.0 90.0 10.0
rotation x
oldwood.PNG matref
end

User avatar
knoxcorner
Private First Class
Private First Class
Posts: 30
Joined: Sat Nov 24, 2007 9:50 pm
Location: Dallas, TX

Post by knoxcorner » Sat Feb 16, 2008 6:12 pm

No, i do belive it would be

Code: Select all

box 
position -21.0 237.0 10.0 
size 50.0 90.0 10.0 
rotation 0 
matref oldwood
end
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

Anthony
Private First Class
Private First Class
Posts: 222
Joined: Fri Jan 11, 2008 4:01 pm

Post by Anthony » Sat Feb 16, 2008 7:04 pm

what about this
meshbox
position -21.0 237.0 10.0
size 50.0 90.0 10.0
rotation 0
matref oldwood
end

slon02
Private First Class
Private First Class
Posts: 148
Joined: Sat Jun 04, 2005 9:27 pm

Post by slon02 » Sat Feb 16, 2008 8:27 pm

Yes, that would work
meshbox
position -21.0 237.0 10.0
size 50.0 90.0 10.0
rotation 0
matref oldwood
end
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
Current Server: hosting.BZADDICT.net:5173
Former Server: Fairserve.bzflag.org:5259

Anthony
Private First Class
Private First Class
Posts: 222
Joined: Fri Jan 11, 2008 4:01 pm

Post by Anthony » Sat Feb 16, 2008 8:39 pm

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
[/quote]
that worked
Attachments
it worked.JPG
(78.41 KiB) Downloaded 141 times

User avatar
^nightmare^
Private First Class
Private First Class
Posts: 1264
Joined: Sun Feb 20, 2005 7:14 pm
Location: Alabama
Contact:

Post by ^nightmare^ » Sun Feb 17, 2008 8:51 am

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
that worked[/quote]

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

Post Reply