by date
Summer rant (texture pack info too)
Summer rant (texture pack info too)
| Name: | Apparatus | ![]() |
|---|---|---|
| Date Posted: | Jul 08, 2008 | |
| Rating: | 5.0 out of 5 | |
| Public: | YES | |
| Comments: | YES | |
| RSS Feed: | or Subscribe with . | |
| Profile Page: | View profile page for Apparatus |
Blog post
It's that time again when I look up the net, watch movies and whatnot, doodle on napkins and mumble around like an old guy collecting ideas and figuring out new stuff; I love pre-production more than anything else (not more than coffee);
Concept art is something I always wanted to do yet never had a full time job doing it; sometimes I jump from idea directly onto modeling and texture in the same time; it works, though. I think I am mad :) When I have an Idea I need to put it to work - fast; reminds me a bit of the old Halflife mods days, when I made crazy stuff using bsp and entities only (one w I recall was a catapult for Gordon).
Anyway, before I set sail with the new stuff I kinda needed some fresh textures. I have tons of them, buried on my hard drives but I wanted something new - and since somebody noticed that texture packs may appeal to people somewhat more than, say, crates and barrels packs - heck, let's shoot two rabbits then.
I got around 200 textures so far and I am in the mood to keep going for at least 2 more days; After that It will be a real pleasure to jump to Constructor for a week or so for something TGEA aimed. I am still having trouble making the bump work in 1.7.1 - guess I have to start with a clean install - but for now I will focus on some buildings / structures.

Concept art is something I always wanted to do yet never had a full time job doing it; sometimes I jump from idea directly onto modeling and texture in the same time; it works, though. I think I am mad :) When I have an Idea I need to put it to work - fast; reminds me a bit of the old Halflife mods days, when I made crazy stuff using bsp and entities only (one w I recall was a catapult for Gordon).
Anyway, before I set sail with the new stuff I kinda needed some fresh textures. I have tons of them, buried on my hard drives but I wanted something new - and since somebody noticed that texture packs may appeal to people somewhat more than, say, crates and barrels packs - heck, let's shoot two rabbits then.
I got around 200 textures so far and I am in the mood to keep going for at least 2 more days; After that It will be a real pleasure to jump to Constructor for a week or so for something TGEA aimed. I am still having trouble making the bump work in 1.7.1 - guess I have to start with a clean install - but for now I will focus on some buildings / structures.

Recent Blog Posts
| List: | 11/04/08 - Kork 2.0, halted work 09/24/08 - Constructor Pipeline (I) 09/23/08 - Interior Guide Pack Free Download 09/23/08 - Kaboom! Pack for TGEA 09/15/08 - About Constructor 09/11/08 - Interior Guide Pack Released 09/10/08 - Associate Rant 09/08/08 - Interior Guide Pack update |
|---|
Submit your own resources!| Brian \\\"Cybore\\\" Smith (Jul 08, 2008 at 13:51 GMT) Resource Rating: 5 |
| Apparatus (Jul 08, 2008 at 13:56 GMT) Resource Rating: 5 |
| Steve YorkshireRifles Acaster (Jul 08, 2008 at 15:50 GMT) |
| Apparatus (Jul 08, 2008 at 16:14 GMT) Resource Rating: 5 |
| Steve YorkshireRifles Acaster (Jul 08, 2008 at 16:22 GMT) |
So, yes I agree, I've noticed that horizontal surfaces (and angled surfaces like a sloping roof) don't seem to get specular highlights - though the shadowing seems to work.
| bank (Jul 08, 2008 at 16:32 GMT) |
You will see that it's working.
If you need a specular map to be applied, it should be baked as alpha channel into diffuse map, not to normal map's alpha as it's stated in some of manuals.
And, TGEA1.7.0 & 1.7.1 have a bug with specular on interiors (due to incorrect sun vector), see this thread for fix.
edit: link
Edited on Jul 08, 2008 16:33 GMT
| Leslie Young (Jul 08, 2008 at 18:39 GMT) |
As bank said, your specular goes into the color map's alpha channel, and if your using Photoshop make sure to be using the SuperPNG plugin. Just make and alpha channel and copy your specualr map texture into it and it will work if you created the correct meterial code.
You will need a material.cs, I kjust create material.cs files in each of the directories containing textures that needs to be handled.
I normally create a material like this (rip out the specular fields if not eneded)
The textures are all in the same path as the material.cs file so I don;t needa write out the whole path to the texture. "rockmossy_N" in this case would be my normal map, and "rockmossy" the color map with the specular in its alpha channel.
new Material(MAT_ROCK3_rockmossy)
{
mapTo = "rockmossy";
baseTex[0] = "rockmossy";
bumpTex[0] = "rockmossy_N";
pixelSpecular[0] = true;
specular[0] = "1.0 1.0 1.0 1.0";
specularPower[0] = 32.0;
};
Btw. when distributing these you might want to do it with specual map texture seperated (and not in the color map texture) so that the textures are usefull in other engines also. If someone wants to add specular to a material he could then just modify the color map and copy your provided specular map. Dexsoft releases their models with the spec seperated and this allowed me to decide where I really wanted specular like on windows and only create PNG textures for those and keep walls and such without specular and in JPG.
[edit] Will you be working on some buildings again? Request, how bout some wooden ones if your not too bored with medieval yet? :p per my forum topic
Edited on Jul 08, 2008 22:08 GMT
| Apparatus (Jul 08, 2008 at 19:51 GMT) Resource Rating: 5 |
I have so many engines in mind and sometimes I tend to complicate things when they should be simple; I have a couple of simple questions -
1. Is it relevant how you name the material - new Material(MAT_ROCK4_rockyfour) or new Material(whatever) ?
2. Is it relevant to have all the entries in that order (mapTo, basetex, bumpTex..)?
3. Texture naming conventions matter - underscore N (normal) D (diffuse) ?
I have to stress out that my problems are related to DIF only atm. On dts objects works just fine, I just tested the other day with the specular info in the alpha channel with a JPEG and worked just fine.
And yes, I am working on medieval buildings, but it's contract work; hope I will have just as much force to double-tap and make some worthy of a pack as well, tge/tgea ready.
Edited on Jul 08, 2008 21:55 GMT
| Steve YorkshireRifles Acaster (Jul 08, 2008 at 21:49 GMT) |
Thanks for that link, fixes everything like a charm. Also thanks for the spec-map info.
I'd have got round to trawling the forums for a solution eventually, but I'm still very much in design/planning mode at the moment.
| Leslie Young (Jul 08, 2008 at 22:01 GMT) |
2) nah, ,doesn't matter,
3) No, does not matter. Some of my normals end with _NRM,.. its just for myself so I know those ending with _N and _NRM is normal maps.
In my example code I show that I do not apply the whole path to the texture. It works if the texture is in the same path as the material.cs file that references it, else I had to write for example
mapTo = "game/shapes/rocks/set3/rockmossy";
There was two cases where different textures used the same name and they where located in different directories and refferenced by two different material.cs files, still torque complained or rather warned me about them, so for those two I just wrote out the whole path to each texture and torque was happy. I dunno if it would get confused and use the wrong texture, never tested.
I am not playing with DIFs right now so I did not check if bumps work for 'em, but that link bank posted sais that there is a bug related to it and how to fix it.
Edited on Jul 08, 2008 22:09 GMT
| Apparatus (Jul 08, 2008 at 23:08 GMT) Resource Rating: 5 |
Unfortunately I try to avoid content that require code changes (even bug fixes); the pack is already over 500 megs as it is; people my expect it to work out of the box and overlook the bug;
Guess i'll have to re-compile myself though.
| Apparatus (Jul 09, 2008 at 12:44 GMT) Resource Rating: 5 |
I used the code example from Leslie - no normal map; I removed every reference to the used material from the .cs file and the normals popped up from nowhere. In effect, the result does not use material.cs at all.

| Leslie Young (Jul 09, 2008 at 12:54 GMT) |
Here's some TDN links I found usefull.
http://tdn.garagegames.com/wiki/TSE/Materials/Overview
http://tdn.garagegames.com/wiki/TSE/Materials/Mapping_Materials_to_Textures
http://tdn.garagegames.com/wiki/TSE/Materials/Translucency
| Apparatus (Jul 09, 2008 at 19:04 GMT) Resource Rating: 5 |
Yet again, these past 2 weeks have been quite a mess around here, I certainly missed something somewhere; I will leave it for now and start fresh in about 1 week or so.
edit: thanks for the links I had them bookmarked already.
Edited on Jul 09, 2008 19:05 GMT
| Benjamin L. Grauer (Jul 10, 2008 at 01:03 GMT) |
| Apparatus (Jul 12, 2008 at 09:29 GMT) Resource Rating: 5 |
I made the normals show up using this:
new Material(DIRTYCONCRETE3)
{
baseTex[0] = "~/data/interiors/DIRTYCONCRETE3";
bumpTex[0] = "~/data/interiors/DIRTYCONCRETE3_n";
mapTo = "DIRTYCONCRETE3";
specular[0] = "0.3 0.3 0.2 1.0";
specularPower[0] = 32.0;
pixelSpecular[0] = true;
};
On my end whatever I do the materials don't show up without full texture path.
Edited on Jul 12, 2008 09:30 GMT
You must be a member and be logged in to either append comments or rate this resource.



5.0 out of 5


