Custom Textures !

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

User avatar
Jack Ruby
General
Posts: 1443
Joined: Fri Feb 07, 2003 12:20 am
Location: london

Custom Textures !

Post by Jack Ruby »

Just had my first go at adding my own textures, worked great, a surprisingly easy thing to do.

What I want to know is are there certain dimensions I should stick to.

ie.. 200x200, 400x400,

the shader I am using is pointing to tga files even though the images are actually jpg's, is this a problem, well its working but might it cause future display problems ?

Also tga's support alpha channels, will I be able to use these with no problems ?
Philip II of Macedon sent a message to Sparta:
"If I win this war, you will be slaves forever."
The Spartan ephors sent back a one word reply: "If".
Serph
Major
Posts: 278
Joined: Wed Jun 11, 2003 5:23 pm
Location: Barrie, Ontario Canada
Contact:

Post by Serph »

save your textures as .tga (targa) file, I believe would be best... and for texture size make them as big/wide as you need em for.

for example if you have a picture 64x32 then make the custom texture 64x32...
Image
~serph~
rOger
Major
Posts: 290
Joined: Wed Feb 05, 2003 8:56 pm
Location: Sweden

Post by rOger »

There is a list out there somewhere that gives you the recommended dimensions of textures for the Quake 3 engine, don't know where though, sorry. However the ones that is used in the game is mostly 128x128, 256x256 or 512x512. 512x512 is mostly used for terrain. It is also possible to make a rectangular texture, most door textures are 128x256.
Looking for a good game? Play GO the ancient asian game of strategy.
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

if the texture doesn't need to be tessilated, then make it twice the size, it's easier to add detail and when reduced tooks better,

if the the texture does need to be tessilated (tiled) then make it the size need,

if using for terrain make the height the same as the width :D

if making textures for use in the map we're making, make really really good :P

mirror textures aren't possible in MOH radiant, the portla command has been removed in the compile stage, though i'm looking at different ways of making it
hope this helps, prob not cos it's all foreign 2 me :-/
User avatar
Jack Ruby
General
Posts: 1443
Joined: Fri Feb 07, 2003 12:20 am
Location: london

Post by Jack Ruby »

Nuggets, whats the deal with jpg's,

I was checking your shaders and textures out, thats how I worked out how to put mine in there, thanks, I learned something new.

But I saw the shader points to a tga and the new textures you sent are jpgs ?

Does this make sense ? I know it works but how ?
Philip II of Macedon sent a message to Sparta:
"If I win this war, you will be slaves forever."
The Spartan ephors sent back a one word reply: "If".
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

it doesn't search for file extensions, but in targa files (.tga) it recognises the black as something to not appear in MOH
hope this helps, prob not cos it's all foreign 2 me :-/
rOger
Major
Posts: 290
Joined: Wed Feb 05, 2003 8:56 pm
Location: Sweden

Post by rOger »

Well, not the black in the image, but the black in the Alpha layer. If you want to save the image as a TGA and not have any transparency make sure its saved as a 24 bit image. However a jpeg image would be considerably smaller which will reduce loading time (I guess).
Looking for a good game? Play GO the ancient asian game of strategy.
User avatar
Jack Ruby
General
Posts: 1443
Joined: Fri Feb 07, 2003 12:20 am
Location: london

Post by Jack Ruby »

Roger, so what your saying is.. to have the alpha channel working I need to save tga's as 32bit ?

Am I correct ?

Also, I am not sure if this is the cause of a problem I am starting to have,
when I go to run bsp it keeps coming up with errors,
with the custom texture pk3 in the main folder, the bsp thing errors, and it seems if I remove the custom pk3 it will bsp ok, am I right in thinking that if I drop the texture pk3 back into main later it should display correctly, or would I have to have the pk3 back in main before I compiled in mbuilder,

??
Philip II of Macedon sent a message to Sparta:
"If I win this war, you will be slaves forever."
The Spartan ephors sent back a one word reply: "If".
rOger
Major
Posts: 290
Joined: Wed Feb 05, 2003 8:56 pm
Location: Sweden

Post by rOger »

Yes, for transparency you need to save it as 32 bit. However you also need a correct shader for that texture. There are several examples in the scripts folder in pak0.pk3.

As for removing custom pk3's: As long as you are not using any of the textures that you remove I guess that could work. I have been somewhat spared from compiling errors, so I can't be of much help there I'm afraid.
Looking for a good game? Play GO the ancient asian game of strategy.
Serph
Major
Posts: 278
Joined: Wed Jun 11, 2003 5:23 pm
Location: Barrie, Ontario Canada
Contact:

Post by Serph »

is it possible to save targa file in macromedia fireworks?

because i hate sending my my textures through the network then run downstairs open up photoshop then send it back throught the network and make it into a .pk3 file.. sighs because my photoshop is for mac,.. not for pc
Image
~serph~
User avatar
Jack Ruby
General
Posts: 1443
Joined: Fri Feb 07, 2003 12:20 am
Location: london

Post by Jack Ruby »

I dont have fireworks, but I know its a pretty comprehensive package, go file save as , take a look through different formats available, if its not there all may not be lost as I think there might be an export thing, not checked but maybe so, go file export, if theres anything there your a lucky man.
Philip II of Macedon sent a message to Sparta:
"If I win this war, you will be slaves forever."
The Spartan ephors sent back a one word reply: "If".
User avatar
m0g
Lieutenant Colonel
Posts: 407
Joined: Fri May 23, 2003 10:11 am
Location: Sweden
Contact:

Post by m0g »

FW doesn't handle TGA, Photoshop all the way...
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

Post by Gen Cobra »

Just so you all know it doesn't matter if it's a .jpeg or a targa image unless it needs alpha channels stored with the image, as long as the shader is correct. I have been doing all kinds of shaders and textures for the airport I'm doing, from glass to water to anime and I have to say that so far it hasn't made a difference. As long as the shader is right.
Image
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

Gen Cobra wrote:Just so you all know it doesn't matter if it's a .jpeg or a targa image unless it needs alpha channels stored with the image, as long as the shader is correct.
Everybody who will have to wait for the download of a pk3 to finish, will say that it does matter! No offense, but e.g. your zzz-city_nights.pk3 maybe could have had a more user friendly size, couldn't it?
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

Post by Gen Cobra »

Wacko wrote:
Gen Cobra wrote:Just so you all know it doesn't matter if it's a .jpeg or a targa image unless it needs alpha channels stored with the image, as long as the shader is correct.
Everybody who will have to wait for the download of a pk3 to finish, will say that it does matter! No offense, but e.g. your zzz-city_nights.pk3 maybe could have had a more user friendly size, couldn't it?
No offense to you either but have you ever made mod of that magnitude? I didn't think so.
I must say that the people who had 56 k and dl this loved it cause the frames were o so sweet. I have 56 and I spent 4 hours uploading it so people could play it. So please don't offend me by saying that it could have been more user freindly because there is always room for improvement Wacko and changing .tga to .jpg for size is one of them.
Image
Post Reply