Gtk Radiant 1.4.0 ET - Beginner on the way


(The Mysterious) #1

Hello!

I thought i’d start a new thread for this, you can remove the previous.
Anyway, the problem is that it doesn’t find the textures! I’ve created directory:

E:\Wolfenstein - Enemy Territory\etmain\TheMysterious extures

For my textures/pics/bitmaps. It doesn’t find them, shows the “Shaders Not Found” images.
Any, uh, advice?


(carnage) #2

you directory should be

E:\Wolfenstein - Enemy Territory\etmain extures\TheMysterious

all testures should be .jpg or .tga

and not all sahders have images so this isnt anything to worry about. when you understand shaders it will make sence


(DerSaidin) #3

The engine cant load up just pictures, it needs more information. So, a “shader script” is used.

Engine --(Reads)-> Shader --(References)-> Image file

You need to write shaders for your images. They go in the scripts directory. Just look at the .shader files in the scripts directory in pk0.

Its very easy, just copy one and replace the parth. Dont worry about anything complex until you want to.


(CooperHawkes) #4

Sorry that I have to say this… but this is wrong.
True is that the engine is looking for a shader first. If it doesn’t find a shader with the proper name, the engine continues to search for a tga/jpg picture of this name and applies a standard shader to this image.

BTW (@TheMysterious) : the pixel dimensions of the image have to be a power of 2.


(DerSaidin) #5

Yeah, but thats pretty slack of the author. Best to get him onto good habits I think :slight_smile:


(The Mysterious) #6

What you mean by power of 2 with pixel dimension?

Btw, it doesn’t find the standart textures that came with game (or with 1.5.0).


(=SC=Nathan) #7

Like 100100, 200200, …


(Shaderman) #8

That’s wrong!

Texture sizes must be 2¹ - 2¹° (2, 4, 8, 16, 32, 64, 128, 256, 512, 1024). For example 64x128, 256x256 or 256x512 are valid texture sizes.


(CooperHawkes) #9

100 and 200 are for sure NOT a power of 2 (at least not for natural exponents ;-))

power of 2 = 2^n with n = 0,1,2,…,10
i.e.: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024
The texture does not need to be square… e.g. 128 x 256 is a valid texture size.
note: do not use 512 and 1024 too often… a texture with 1024 x 1024 in size consumes 4MB (uncompressed)!

[EDIT] hehe… Shaderman, you’ve beaten me by a few seconds =-)


(carnage) #10

this is bacuse when the image is laoded for open Gl the actul image is loaded then it creates an image of half the size then half the size again and so on. This is needed since a very close up wall needs a bigger image then a samll one. if a far away wall to the larger image to apply to it then the only one pixel from the area that would be merged on the smaller image then the wall would look very strage and the text would lose a lot of detail. the images have to be to power of two to allow the system to create smaller image and uses them

because of this when loaded the texture actuly uses 1 + 1/3 of the uncompresses texture size in memory


(The Mysterious) #11

Sorry, i still don’t get what the heck is the power of TWO?
But, you can give me popular texture sizes for common things like wall, door, ground, etc. Thank you.

edit: I did the directory: E:\Wolfenstein - Enemy Territory\etmain extures\TheMysterious\
And maps and scripts foldens in it, did i do, right?


(WeeBull) #12

The size of you textures have to be for example 22 pixels or 64128 or 256*512. Where are you from, maybe someone can explain it in your language.

Here’s what the folder structure should look like for you.
E:\Wolfenstein - Enemy Territory\etmain\maps <-- here goes the bsp and the script
E:\Wolfenstein - Enemy Territory\etmain\scripts <-- here goes the shader
E:\Wolfenstein - Enemy Territory\etmain extures\TheMysterious <-- your own made textures go here
E:\Wolfenstein - Enemy Territory\etmain\models\TheMysterious <-- your own made models go here
E:\Wolfenstein - Enemy Territory\etmain\levelshots <-- the command map picture and the loading screen picture goes here
You probably only need the ‘maps’ and ‘textures’ folder for now.


(The Mysterious) #13

Hmmm, i do know what it is in my language, but the meaning of it or whatever… :banghead:


(Lanz) #14

This is really very basic math, but anyway. Power of means; take the base and multiply it against itself n times.

base ^ n

2^6 => 22222*2 = 64

2^3 => 222 = 8

If you open windows calculator you have a button for it if you use the advanced layout that looks like this: x^y

Just type 2 x^y 6 = and it will return 64.


(The Mysterious) #15

Hi again!

I finally get it, hopefully… never been good at mathics.
Disliked em’ in elementary school. One more step up, thanks to you guys.

Just if i happen to be lazy;
could anyone offer a link to default ET textures with proper size, please? :uhoh:
Thanks already. :drink:


(*PM|Sypher) #16

i wish i was good math like in the old days…