Texture Problems
Moderator: Moderators
- SanadaUjiosan
- Conflict Terra Developer
- Posts: 907
- Joined: 21 Jan 2010, 06:21
Texture Problems
First of all, hey all. I'm new, but I'm good friends with oksnoop2, who I imagine at least some of you have been helping get his mod in working order. Thing is, I'm helping him (we're both making our own "factions") so I'm going to be having a lot of troubles too. I hope you guys can help me out and I apologize in advance for all of my stupidity.
My biggest problem right now is that whenever I get my unit in-game, the textures are basically broken. I followed the tutorial pertaining to DXTbmp and Upspring, and flipped my texture and all of that, and have even experimented with not flipping them and using mirror instead, and flipping the image prior to Upspring in Photoshop, but I just can't get it to work. The odd thing is that the degree of the problem seems to vary with what I do. I've noticed that when I don't flip the image in Upspring, I get the closest to it working correctly. Here's an example of my problem:
http://picasaweb.google.com/lh/photo/35 ... directlink
This is the broken texture.
http://picasaweb.google.com/lh/photo/0D ... directlink
This is what it is supposed to look like.
I've brought 4 units into the game so far, and all of them have been like this.
My biggest problem right now is that whenever I get my unit in-game, the textures are basically broken. I followed the tutorial pertaining to DXTbmp and Upspring, and flipped my texture and all of that, and have even experimented with not flipping them and using mirror instead, and flipping the image prior to Upspring in Photoshop, but I just can't get it to work. The odd thing is that the degree of the problem seems to vary with what I do. I've noticed that when I don't flip the image in Upspring, I get the closest to it working correctly. Here's an example of my problem:
http://picasaweb.google.com/lh/photo/35 ... directlink
This is the broken texture.
http://picasaweb.google.com/lh/photo/0D ... directlink
This is what it is supposed to look like.
I've brought 4 units into the game so far, and all of them have been like this.
Re: Texture Problems
for dds you don't flip the texture. If I am understanding you right you are flipping teh texture prior to conversion.
- SanadaUjiosan
- Conflict Terra Developer
- Posts: 907
- Joined: 21 Jan 2010, 06:21
Re: Texture Problems
Yeah, the tutorial I read said to load the .targa in Upspring, then go to Texture Mapping > Show UV Mapping > Edit > Flip UVs.
Thing is, I've experimented with not flipping it, or doing Mirror UVs instead of Flip UVs, and even flipping the image in Photoshop before even messing with Upspring or DXTbmp. None have given me a proper texture. My friend oksnoop2 used the same tutorial and his textures have come out fine.
And, what does dds mean?
Thing is, I've experimented with not flipping it, or doing Mirror UVs instead of Flip UVs, and even flipping the image in Photoshop before even messing with Upspring or DXTbmp. None have given me a proper texture. My friend oksnoop2 used the same tutorial and his textures have come out fine.
And, what does dds mean?
Re: Texture Problems
You should not have to use "flip UVs". Just load the texture, and it will be "wrong" in UpSpring, but "right" in Spring. If it looks "right" in UpSpring, flip the texture vertically in your paint program.
If you're still stuck after that, post the model and the texture here.
DDS is a special texture format used in games. It won't be upside down, and has a bunch of other advantages in Spring. But don't worry about that right now.
If you're still stuck after that, post the model and the texture here.
DDS is a special texture format used in games. It won't be upside down, and has a bunch of other advantages in Spring. But don't worry about that right now.
- SanadaUjiosan
- Conflict Terra Developer
- Posts: 907
- Joined: 21 Jan 2010, 06:21
Re: Texture Problems
Well I tried multiple times and in different combinations of texture orientation and whatnot, and couldn't get it to work. When the texture looked right in Upspring, it was wrong in-game, when it was wrong in Upspring it was wrong in-game. So I'm not sure. I'll attach the files so someone can look at it.
Thanks a lot.
Thanks a lot.
- Attachments
-
- assaulttank.rar
- (209.82 KiB) Downloaded 22 times
Re: Texture Problems
you need to flip your uvs using the menu in upspring.
like argh said it will look odd in upspring but right in spring.
like argh said it will look odd in upspring but right in spring.
Re: Texture Problems
Yup, took a look, and you just need to flip the texture vertically, it will be fine then.
- Spawn_Retard
- Posts: 1248
- Joined: 21 Dec 2006, 14:36
Re: Texture Problems
Why is there this problem?smoth wrote:you need to flip your uvs using the menu in upspring.
like argh said it will look odd in upspring but right in spring.
- Spawn_Retard
- Posts: 1248
- Joined: 21 Dec 2006, 14:36
Re: Texture Problems
And the reason that is?smoth wrote:because DDS is upside down.
Re: Texture Problems
I don't know. Jcnossen made a post about it some time ago.
Re: Texture Problems
The reason is it's a Direct Draw Surface and DirectX is arse-backwards.
Or more technically speaking:
DirectDraw's screen coordinate origin is the top-left corner of the screen and OpenGL's origin is the bottom-left corner. This leads to the need of flipping the texture vertically before converting the image or taking the opposite t texture coordinate.
NVIDIA DDS Info
Or more technically speaking:
DirectDraw's screen coordinate origin is the top-left corner of the screen and OpenGL's origin is the bottom-left corner. This leads to the need of flipping the texture vertically before converting the image or taking the opposite t texture coordinate.
NVIDIA DDS Info
- SanadaUjiosan
- Conflict Terra Developer
- Posts: 907
- Joined: 21 Jan 2010, 06:21
Re: Texture Problems
Well, I am still getting a screwy texture. I flipped the images like Argh said, made sure it looked screwy in Upspring, and still my textures aren't right. Maybe there's just a legitimate error on my end somewhere?
The only thing I can think of that would be different from how the tutorial goes is that when I create my texture file way back in Wings3D, I don't select the filesize it defaults on because I think it's too small. I use the second largest one. Maybe that is screwing something up?
I apologize for any frustration this may be generating. Unless I'm totally missing some crucial step, I just don't know what to think here.
Also, that's awesome that it's using DirectDraw.
The only thing I can think of that would be different from how the tutorial goes is that when I create my texture file way back in Wings3D, I don't select the filesize it defaults on because I think it's too small. I use the second largest one. Maybe that is screwing something up?
I apologize for any frustration this may be generating. Unless I'm totally missing some crucial step, I just don't know what to think here.
Also, that's awesome that it's using DirectDraw.
Re: Texture Problems
It's not. It's just a file format.Also, that's awesome that it's using DirectDraw.
IDK. Does this version work?The only thing I can think of that would be different from how the tutorial goes is that when I create my texture file way back in Wings3D, I don't select the filesize it defaults on because I think it's too small. I use the second largest one. Maybe that is screwing something up?
- Attachments
-
- assaulttank.zip
- (127.78 KiB) Downloaded 22 times
- SanadaUjiosan
- Conflict Terra Developer
- Posts: 907
- Joined: 21 Jan 2010, 06:21
Re: Texture Problems
It does. I'm guessing by the smaller texture file size you resized it to the default Wings3D texture size?
The fragility of these sorts of things always amazes me.
The fragility of these sorts of things always amazes me.
Re: Texture Problems
Size won't make any difference
Re: Texture Problems
His texture was 2048. IDK whether that was the problem, or just flipping it vertically.
Re: Texture Problems
flipping it vertically was/should be the issue.
- SanadaUjiosan
- Conflict Terra Developer
- Posts: 907
- Joined: 21 Jan 2010, 06:21
Re: Texture Problems
Gentlemen (and gentlewomen), texture size seems to be the culprit. I just whipped up a quickie model and texture, using the 512 size and it looks like it should in-game. Thanks everyone for helping me along the way, I'll probably have more questions in the future.