• Hello and welcome to MSFC. We are a small and close knitted community who specialises in modding the game Star Trek Armada 2 and the Fleet Operations modification, however we have an open field for discussing a number of topics including movies, real life events and everything in-between.

    Being such a close community, we do have some restrictions, including all users required to be registered before being able to post as well as all members requiring to have participated in the community for sometime before being able to download our modding files to name the main ones. This is done for both the protection of our members and to encourage new members to get involved with the community. We also require all new registrations to first be authorised by an Administrator and to also have an active and confirmed email account.

    We have a policy of fairness and a non harassment environment, with the staff quick to act on the rare occasion of when this policy is breached. Feel free to register and join our community.

Lightmaps: How Can You Stop the Graininess?

Majestic

Administrator
Staff member
Administrator
Seraphim Build Team
Joined
17 Apr 2006
Messages
18,332
Age
39
Everytime I apply lightmaps the textures get all grainy on me, ruining in my opinion the quality of the textures. Does anyone know the cause of this or better yet how to stop it?
 

Syf

Lost Finder
Star Fighter
Joined
21 Apr 2006
Messages
7,129
Age
49
Not sure I'm following you on this one! I've not noticed the grainy-ness of a lightmapped texture.
 

Atlantis

Master Chief Petty Officer of Starfleet
Joined
1 May 2006
Messages
518
The alphamap is a separate channel, so it shouldn't do that =S

Not sure tbh
 

Syf

Lost Finder
Star Fighter
Joined
21 Apr 2006
Messages
7,129
Age
49
Exactly. The maps are stored in seperate bits (channel), which should have nothing to do with grainyness. I'd like to see a pic of what your talking about Maj.
 

Jetfreak

Filipino Expat
Staff member
Forum Moderator
Seraphim Build Team
Master of Art
Joined
22 Mar 2008
Messages
2,564
Grainy? You mean like this?

Compasr.jpg
 

Syf

Lost Finder
Star Fighter
Joined
21 Apr 2006
Messages
7,129
Age
49
Looking at that image, I'd say it was a "size" issue on that comp jetfreak. It looks like the lesser quality image is a smaller image, thus making the difference in the quality.
 

Majestic

Administrator
Staff member
Administrator
Seraphim Build Team
Joined
17 Apr 2006
Messages
18,332
Age
39
What I mean:

attachment.php

You can see above all the textures have been screwed up, giving a grainy effect making the textures of less quality like a bad gif file.

attachment.php

The above image shows what the textures actually look like both after lightmaps are applied and opened in a graphics program and in game when no alphas are added to the textures.

When I don't apply alpha channels this grainy effect doesn't happen and I have played around with the ambient etc settings and put them to white and black and this still happens. I apply the channels in Photoshop CS3 Extended and used to in Photoshop CS (Version 8) and got the same result. I have been unable to figure out why this happens. :confused:

Any help on the situtation would be appreicated otherwise I will have to refuse to apply lightmaps to any ships I make that would also include Yesteryears as I would rather good quality textures over bad quality grainy textures with lightmaps.
 

Attachments

  • grainy.PNG
    grainy.PNG
    302.7 KB · Views: 24
  • grainynot.jpg
    grainynot.jpg
    69.4 KB · Views: 23

Syf

Lost Finder
Star Fighter
Joined
21 Apr 2006
Messages
7,129
Age
49
Have you looked at the same model ingame? Stormviewer don't use the full capabilty of the A2 engine. I have noticed a difference between the 2.
 

Majestic

Administrator
Staff member
Administrator
Seraphim Build Team
Joined
17 Apr 2006
Messages
18,332
Age
39
I'll give it a check before I go to tech today.
 

Syf

Lost Finder
Star Fighter
Joined
21 Apr 2006
Messages
7,129
Age
49
I seen the same thing in stormview just now with the YY version of the textures. (with alpha channels). Then, just to check, I made a quick export and placed all the files into the A2 folder and spun up the game. Here's the results.

As you can see, the A2 game does a better job with the textures (and yes, that's an alpha channel on it...).
 

Attachments

  • sample.jpg
    sample.jpg
    105.4 KB · Views: 13

Majestic

Administrator
Staff member
Administrator
Seraphim Build Team
Joined
17 Apr 2006
Messages
18,332
Age
39
It's still happening, I just did as you suggested.

attachment.php
 

Attachments

  • grainy2.PNG
    grainy2.PNG
    372.4 KB · Views: 24

Syf

Lost Finder
Star Fighter
Joined
21 Apr 2006
Messages
7,129
Age
49
I'd like to take a look at that. I did it just fine with what I have...

What are your A2 graphics settings?

I have mine set on 1024x768x32, with all the other options on. I know that ???x???x16 can be very grainy. The textures are 32 bit when you have an alpha channel, 24bit without.
 

Majestic

Administrator
Staff member
Administrator
Seraphim Build Team
Joined
17 Apr 2006
Messages
18,332
Age
39
Mine is set to 1024x768x32 with all the options on a graphic detail to half. It must be photoshop ,the model export or something with the materials itself causing the problems.

I will look further into this after I get home this afternoon.
 

Syf

Lost Finder
Star Fighter
Joined
21 Apr 2006
Messages
7,129
Age
49
Well, if you get stumped, I'll be glad to help.:D
 

SquireJames

Senior Chief Petty Officer
Joined
16 Feb 2008
Messages
371
Well I've discovered if you maximise the SOD viewer the textures look awful, so when loaded, don't resize the window at all.

The only other thing I can think of is the alpha setting on the texture. For example.

· alphathreshold - Use for objects using alpha channel 'cut outs'. Alpha channels will have hard edged 'threshold' but objects will be drawn quickly.
· alpha - Uses entire alpha channel. Object will require sorting, so will have performance implications.

If your using alphathreshold, it might look poorer compared to default.

I've never noticed any graininess in my textures once i've lightmapped them, so as I said, its probably down to the viewer being resized. Resizing the A2 SOD viewer also makes the entire model seem blurry, atleast on my PC.
 

Atlantis

Master Chief Petty Officer of Starfleet
Joined
1 May 2006
Messages
518
Ahh yeah, after reading/seeing this I know what you mean now, it happens to me too in Storm3d. Never noticed it ingame though.

It might not be a milkshape issue then, as i use 3DSMax... I will experiment tonight.
 

Syf

Lost Finder
Star Fighter
Joined
21 Apr 2006
Messages
7,129
Age
49
It has to be in the textures. I have similar textures and they look fine in A2.
 

Starfox1701

Master of the Arwing
Warrant Officer
Joined
29 Jan 2008
Messages
2,560
Age
48
Maby it my monitor and stuff but all the pic Majestic put up look fine to me. I just can't see it.
 

Majestic

Administrator
Staff member
Administrator
Seraphim Build Team
Joined
17 Apr 2006
Messages
18,332
Age
39
I am still looking into it, but it's not because of Storm3D I have known for years about the resizing issue of that program. It happens ingame too so when I get some time I am going to try and play around with the model but I don't like my chances as previous lightmapped models have the same grainy effect one of a few reasons I never really bothered with them in the past.
 
S

Sweldon

Deleted Due to Inactivity
Former MSFC Member
hmmm got minor questioin..

Did you merge the layers in the photo shop texture into one layer?
 

Majestic

Administrator
Staff member
Administrator
Seraphim Build Team
Joined
17 Apr 2006
Messages
18,332
Age
39
No, I use the photoshop file as a template for all three races textures.
 
S

Sweldon

Deleted Due to Inactivity
Former MSFC Member
No, I use the photo shop file as a template for all three races textures.

ok maybe I could simplify this question with a question did you layer your textures?
If you image /texture is made up of multiple layers it sometimes can cause graininess if they are not merged into one layer.
 

Majestic

Administrator
Staff member
Administrator
Seraphim Build Team
Joined
17 Apr 2006
Messages
18,332
Age
39
I have 5 psp files, each has multiple layers and I have to targa directly from it.
 
S

Sweldon

Deleted Due to Inactivity
Former MSFC Member
I have 5 psp files, each has multiple layers and I have to targa directly from it.

may I get a copy of the targa file to check it out real quick?
 

Majestic

Administrator
Staff member
Administrator
Seraphim Build Team
Joined
17 Apr 2006
Messages
18,332
Age
39
I have uploaded one of them for you.
 
Last edited:
S

Sweldon

Deleted Due to Inactivity
Former MSFC Member
I sent an email to you at hotmail. I hope this fairs better than what you had..
I despectacled it and reduce it rgb save set,but it still have alot of noise to it ,,
very nice texture though.
 
Top