.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening > Scenarios, Maps and Mods

Reply
 
Thread Tools Display Modes
  #1  
Old April 5th, 2010, 08:10 AM
Ragnarok-X's Avatar

Ragnarok-X Ragnarok-X is offline
Major General
 
Join Date: Jan 2004
Location: Germany / Bielefeld
Posts: 2,035
Thanks: 33
Thanked 18 Times in 12 Posts
Ragnarok-X is an unknown quantity at this point
Default Problem with sprite editing

I have a problem editing sprites. They look ok in photoshop, but when loading them into the game, there are sometimes black around them, they have a tiny black border and/or the pink shaddow doesnt seem to work. I use layers, melt them down to one and then save them as .tga. Attached in an archive with two units, especially the angel one doesnt work.

In addition, it seems my tga (64x64) are not scaled right, they look kind of "fat" ingame, while they look just ok when editing them.

http://rapidshare.com/files/372249774/new.rar.html
Reply With Quote
  #2  
Old April 5th, 2010, 08:17 AM

Sombre Sombre is offline
BANNED USER
 
Join Date: Feb 2007
Posts: 5,463
Thanks: 165
Thanked 324 Times in 190 Posts
Sombre is on a distinguished road
Default Re: Problem with sprite editing

The shadow must be 255 0 255.

Anything you want to be transparent must be 0 0 0.
Reply With Quote
  #3  
Old April 5th, 2010, 08:39 AM
Stavis_L's Avatar

Stavis_L Stavis_L is offline
Second Lieutenant
 
Join Date: Sep 2008
Posts: 466
Thanks: 35
Thanked 95 Times in 60 Posts
Stavis_L is on a distinguished road
Default Re: Problem with sprite editing

RE: the "fat" graphics - yes, I've noticed that too. The in-game scaling does not appear to be 1:1. I don't have any suggestion other than eyeballing it - it's a particular problem if you want a fairly accurate geometric shape (as you notice when it's "off" more easily.) Note that viewing in the recruitment screen is a relatively quick way to judge, and you can get the dimensions worked out prior to fiddling with the fine detail.
__________________
A nation mod I created:
Mistica: A Magocratic Police State
Micro-mods by me you might find useful:
Brainless Soulless - a fix for Life after Death/Ankh "exploit", Bogarus Scout Fix
Reply With Quote
  #4  
Old April 5th, 2010, 10:38 AM

Sombre Sombre is offline
BANNED USER
 
Join Date: Feb 2007
Posts: 5,463
Thanks: 165
Thanked 324 Times in 190 Posts
Sombre is on a distinguished road
Default Re: Problem with sprite editing

If you pick a basic resolution and turn filtering off the sprites appear exactly as they are in the graphical editing program of your choice.

So I don't think the game is stretching sprites, it's just a matter of resolution.
Reply With Quote
  #5  
Old April 5th, 2010, 11:14 AM
Stavis_L's Avatar

Stavis_L Stavis_L is offline
Second Lieutenant
 
Join Date: Sep 2008
Posts: 466
Thanks: 35
Thanked 95 Times in 60 Posts
Stavis_L is on a distinguished road
Default Re: Problem with sprite editing

Quote:
Originally Posted by Sombre View Post
If you pick a basic resolution and turn filtering off the sprites appear exactly as they are in the graphical editing program of your choice.

So I don't think the game is stretching sprites, it's just a matter of resolution.
What do you consider a "basic resolution"? I use 1680 x 1050, which is my monitor's native resolution (both in-game via the visual preferences, and in my OS.) I still see the "fat sprites" effect (not very noticeable, except when doing something like a perfect sphere.)
__________________
A nation mod I created:
Mistica: A Magocratic Police State
Micro-mods by me you might find useful:
Brainless Soulless - a fix for Life after Death/Ankh "exploit", Bogarus Scout Fix
Reply With Quote
  #6  
Old April 5th, 2010, 01:45 PM

Sombre Sombre is offline
BANNED USER
 
Join Date: Feb 2007
Posts: 5,463
Thanks: 165
Thanked 324 Times in 190 Posts
Sombre is on a distinguished road
Default Re: Problem with sprite editing

A non widescreen resolution.

Dom3 doesn't support widescreen it seems to me.
Reply With Quote
  #7  
Old April 5th, 2010, 03:23 PM
Globu's Avatar

Globu Globu is offline
Corporal
 
Join Date: Apr 2009
Location: California
Posts: 176
Thanks: 71
Thanked 49 Times in 25 Posts
Globu is on a distinguished road
Default Re: Problem with sprite editing

In the Drowned image, I see faint stray pixels around the sprite -- be sure to use, say, the magic wand tool to find and remove those (if not wanted).

As for the angel one (and possibly the drowned one too -- I didn't check it for this), the problem is that you've got a dark "halo" of nearly-black pixels around it. Most of these should be deleted, but some require a judgment call -- if removing them destroys a certain element of detail that is good, then use the H/S/L or Brightness/Contrast tools to lighten them (and possibly increase color saturation) a bit.

Edge pixels under a certain threshold of lightness will show up in-game darker than you'd expect from looking at it in an editor. Unless you specifically want an area quite dark, you need to have the edges fairly light -- maybe just a bit darker than the main color. It took a bit of dinking around for me to get a sense of it, but you can reduce a lot of the pixel-by-pixel work by using the Magic Wand tool (Fuzzy Select in GIMP) with a tolerance (threshold in GIMP) of, say, 5 or 10. Experiment to get a good result.

Attached image should show you what I mean.
Attached Thumbnails
Click image for larger version

Name:	Angel Dark Halo.png
Views:	205
Size:	30.3 KB
ID:	9805  
Reply With Quote
  #8  
Old April 5th, 2010, 04:13 PM
Ragnarok-X's Avatar

Ragnarok-X Ragnarok-X is offline
Major General
 
Join Date: Jan 2004
Location: Germany / Bielefeld
Posts: 2,035
Thanks: 33
Thanked 18 Times in 12 Posts
Ragnarok-X is an unknown quantity at this point
Default Re: Problem with sprite editing

Ill try, thanks for your help guys. After cleaning the angel up, it looks better ingame, it was indeed a a faint black halo around it, probably from the copy/paste and smudge job.
Reply With Quote
  #9  
Old April 5th, 2010, 08:40 PM
Globu's Avatar

Globu Globu is offline
Corporal
 
Join Date: Apr 2009
Location: California
Posts: 176
Thanks: 71
Thanked 49 Times in 25 Posts
Globu is on a distinguished road
Default Re: Problem with sprite editing

I don't know if this will help, but one little trick I found very helpful for smudging or smearing or any sort of thing like that is to use the hand-drawing select tool (I haven't reinstalled it since the HD crash, so I can't remember the exact term it used) to carefully select only the area you want to smudge/burn/whatever. That way, you can't push color into the surrounding pixels even if you try.

(Another trick in a situation where you only want to avoid tainting the black background is to use the magic wand to select the black background color with 0 tolerance, then Selection->Invert.

Don't know if those tips are helpful, but thought I'd throw 'em out there anyway.
Reply With Quote
  #10  
Old April 6th, 2010, 08:25 AM
Stavis_L's Avatar

Stavis_L Stavis_L is offline
Second Lieutenant
 
Join Date: Sep 2008
Posts: 466
Thanks: 35
Thanked 95 Times in 60 Posts
Stavis_L is on a distinguished road
Default Re: Problem with sprite editing

Quote:
Originally Posted by Sombre View Post
A non widescreen resolution.

Dom3 doesn't support widescreen it seems to me.
Ack! So the game doesn't actually support the listed resolutions natively??

I just tried running in windowed mode with explicit dimensions specified, and apparently I'm used to the wider fonts, etc. because now everything looks squished

So, basically, if you're running a 4x3 resolution, graphics are "normal", but everything else is off by whatever the scaling factor is..I also tried 1280 x 1024 (5x4, resolution of my other monitor), and that makes things *narrower*. Not at all what I would expect. This should be in the modding manual, at least (if not the game manual.)

Hrmph...
__________________
A nation mod I created:
Mistica: A Magocratic Police State
Micro-mods by me you might find useful:
Brainless Soulless - a fix for Life after Death/Ankh "exploit", Bogarus Scout Fix
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 08:25 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.