DDS problem

DDS problem

Postby eyore » Thu Aug 07, 2014 10:12 am

I seem to be having a senior moment, as I can't get my head round this issue.

When I use tiled textures I often create a separate snow object, as a winterised tiled texture can look silly if it extends to the side/underside of an object. The snow object has an invisible texture for all other seasons and a snow-wi.dds texture, as below, for the winter season.

Image

I decided I wanted to get away from the simple white winter texture to something a little more varied to reflect the fact that the depth of snow will vary, so I thought I would use a "cloud" type alpha channel to try and creat the variety I'm looking for.

Image

but the results are just patches rather than the varied density of snow I'm seeking.

Image

I'm creating the .dds file using the nvidia plug-in with settings at 8.8.8.8 ARGB 32bpp unsigned.

I'm probably missing something painfully obvious, but any help appreciated.
Phil

Image
User avatar
eyore
Passed Fireman
 
Posts: 139
Images: 12
Joined: Tue Apr 01, 2014 6:34 pm
Location: Lake District
Has thanked: 25 times
Been thanked: 67 times

Re: DDS problem

Postby VictoryWorks » Thu Aug 07, 2014 11:14 am

Which shader are you using? If it only supports 8 bit alpha, or even 1 bit, then that would explain the jaggy edges where the nice shades of grey have become 8 versions of grey, or even just black and white.
User avatar
VictoryWorks
Driver
 
Posts: 333
Joined: Mon Apr 07, 2014 1:22 pm
Has thanked: 41 times
Been thanked: 224 times

Re: DDS problem

Postby eyore » Thu Aug 07, 2014 12:17 pm

VictoryWorks wrote:Which shader are you using? If it only supports 8 bit alpha, or even 1 bit, then that would explain the jaggy edges where the nice shades of grey have become 8 versions of grey, or even just black and white.


I'm using TrainBasicObjectDiffuse.fx shader with Trans.
Phil

Image
User avatar
eyore
Passed Fireman
 
Posts: 139
Images: 12
Joined: Tue Apr 01, 2014 6:34 pm
Location: Lake District
Has thanked: 25 times
Been thanked: 67 times

Re: DDS problem

Postby VictoryWorks » Thu Aug 07, 2014 12:32 pm

Yeah that shader only supports single bit (black and white) alpha transparancy, so it's turning your nice cloud into 2 colours, which create on/off for the alpha.
Not sure whether the season objects are limited to certain shaders but you might want to try BlendATexDiff instead? I rarely use alpha transparency so I'm struggling to remember which ones support full alpha.
User avatar
VictoryWorks
Driver
 
Posts: 333
Joined: Mon Apr 07, 2014 1:22 pm
Has thanked: 41 times
Been thanked: 224 times

Re: DDS problem

Postby Pauls » Thu Aug 07, 2014 1:27 pm

With some shaders Trans also needs a sub-setting of TEST.

Cheers
Paul
Pauls
Driver
 
Posts: 435
Joined: Fri Apr 04, 2014 10:38 am
Has thanked: 460 times
Been thanked: 188 times


Return to 3D Objects General

Who is online

Users browsing this forum: No registered users and 1 guest