Texture flipping

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
dONKEY
Posts: 566
Joined: Mon Oct 15, 2001 7:00 am

Texture flipping

Post by dONKEY »

I have a lot of stuff going on in rl at the moment and just have not had the time or inclination to map, but today I felt like starting up a new project.
As its been awhile since I've mapped I have a dumb noob type question that for the life of me I can't remember how to do.
When a texture gets flipped on a brush (ie is applied but back to front), how do I un-flip it?
I am working on some terrain using editor images in radiant to align my textures and blending shaders, and I have one section where all the images are reversed.
I'm using gtk 1.5, but have 1.4 still as well so a solution that works in either flavour would be very helpful.
themuffinman
Posts: 384
Joined: Fri Mar 05, 2010 5:29 pm

Re: Texture flipping

Post by themuffinman »

Put a - in front of the x scale in the surface inspector.
dONKEY
Posts: 566
Joined: Mon Oct 15, 2001 7:00 am

Re: Texture flipping

Post by dONKEY »

TY, I forgot....did the trick :)
User avatar
monaster
Posts: 532
Joined: Mon Apr 28, 2008 1:52 pm

Re: Texture flipping

Post by monaster »

Kinda related: if the texture is automatically turned upside down (the bottom becomes the top and vice versa in Q3A, inside the editor it looks fine though) and it says "invalid tga header" in the ingame console (GTKRadiant 1.5.0 doesn't report anything at all beforehand), what might be a plausible reason for that error?
If you are caught on a golf course during a storm and are afraid of lightning, hold up a 1-iron. Not even God can hit a 1-iron.
-Lee Trevino, golfer who actually has been struck by lightning.
User avatar
Eraser
Posts: 19177
Joined: Fri Dec 01, 2000 8:00 am

Re: Texture flipping

Post by Eraser »

A wild guess: have you saved the TGA image with RLE compression enabled? If so, try disabling RLE compression and save the file again.
User avatar
monaster
Posts: 532
Joined: Mon Apr 28, 2008 1:52 pm

Re: Texture flipping

Post by monaster »

That might be indeed the case, I'll have a look at it, thanks for the quick response, Eraser!
If you are caught on a golf course during a storm and are afraid of lightning, hold up a 1-iron. Not even God can hit a 1-iron.
-Lee Trevino, golfer who actually has been struck by lightning.
User avatar
monaster
Posts: 532
Joined: Mon Apr 28, 2008 1:52 pm

Re: Texture flipping

Post by monaster »

Nope, RLE compression unfortunately didn't change anything, still the upside-down displayed texture ingame. I've run a test with both GTKRadiant 1.2.1 and 1.5.0, some random image view program and Q3A (vanilla, so no MODs) itself and there are even minor differences between 1.2.1 and 1.5.0 . I'm kinda lost right now...

Image
If you are caught on a golf course during a storm and are afraid of lightning, hold up a 1-iron. Not even God can hit a 1-iron.
-Lee Trevino, golfer who actually has been struck by lightning.
neoplan
Posts: 125
Joined: Thu Jun 05, 2008 9:47 pm

Re: Texture flipping

Post by neoplan »

1) Try using a tga file that you it works (some stock tga for example). Same problem? If not, then there is something wrong with your tga (which settings do you use for save).
2) Same effect for jpg files?
3) Do you have an old (and maybe corrupt) version of your texture in another pk3 file?
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: Texture flipping

Post by obsidian »

What texture program are you using? There is a bit option in the TGA file that stores the bitmap in reverse order (upside down) and/or mirrored. Clear that option and it should work fine.
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
User avatar
monaster
Posts: 532
Joined: Mon Apr 28, 2008 1:52 pm

Re: Texture flipping

Post by monaster »

@neoplan and obsidian: Taking your posts into account: It's just my door textures giving me this error. Seems that, because I built them upon one single base picture each time, I got that wrong bit option mentioned by obsidian into every final texture. The prog I use can produce working textures (tested it over the last years) but doesn't seem to realize this one error neither it is capable of resolving it. If there would be a single fixed byte that determines whether the bitmap is shown upside down in certain situations and that can be changed via hex editing, it would be great. I'm not sure if something like this can be done though, don't have that much experience with tga file structure.
Gonna run a test with jpg file format while I'm at it, too.
If you are caught on a golf course during a storm and are afraid of lightning, hold up a 1-iron. Not even God can hit a 1-iron.
-Lee Trevino, golfer who actually has been struck by lightning.
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: Texture flipping

Post by obsidian »

You still haven't mentioned what program you are using.
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
User avatar
monaster
Posts: 532
Joined: Mon Apr 28, 2008 1:52 pm

Re: Texture flipping

Post by monaster »

In this case Micrografx Picture Publisher 10. Thought your question was more like a "It could be prog-related" comment, not that you really wanted to know the exact name. :paranoid:

EDIT: Corrected typo.
If you are caught on a golf course during a storm and are afraid of lightning, hold up a 1-iron. Not even God can hit a 1-iron.
-Lee Trevino, golfer who actually has been struck by lightning.
Post Reply