.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 November 19th, 2007, 07:31 PM

Panpiper Panpiper is offline
Corporal
 
Join Date: Aug 2004
Location: Montreal
Posts: 186
Thanks: 21
Thanked 16 Times in 7 Posts
Panpiper is on a distinguished road
Default General advice on sprite painting?

I thought I was doing pretty well, having come up with a half dozen unit sprites that looked pretty decent to me. I even uploaded them as the most recent additions to the mod I'm working on. Then I booted up the game to look at them (yepper, I should have done that before uploading).

Ouch!

A lot of what I assumed would be transparent turned out to be black. When I tried to use my fill tool to fix the problem, I wound up turning a lot of what should have been really dark, transparent. (I've since learned to adjust the 'threshold' of the fill tool.) Obviously I am missing a crucial insight as to how to start a new sprite. Should I be starting on a white background and simply 'fill' the white when I am done with pure black (the transparent variety)?

Are there some really obvious tricks that I should be aware of? (Seeing as how the obvious seems to escape me.)
__________________
Chaos Undivided Race Mod
Reply With Quote
  #2  
Old November 19th, 2007, 07:41 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: General advice on sprite painting?

Use layers and masks, if necessary.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #3  
Old November 19th, 2007, 08:04 PM
DrPraetorious's Avatar

DrPraetorious DrPraetorious is offline
Major General
 
Join Date: Feb 2005
Location: Lake of Hali, Aldebaran, OH
Posts: 2,474
Thanks: 51
Thanked 67 Times in 27 Posts
DrPraetorious is on a distinguished road
Default Re: General advice on sprite painting?

Is it possible to attach images in-line?

Here's how you handle this, in GIMP, which is what you should use. Photoshop, in addition to costing money, is inferior for this purpose (although it has other nice features which GIMP lacks for other purposes):

1) Keep all of your sprites in a format that preserves transparency, while you are working on them. This can be tga, but keep a transparency layer, and make sure that the background is alpha-0. You can achieve this by selecting everything that should be background and erasing it.

2) When you want to actually use a sprite, there are three steps:
a) Make sure that the background is set to true-black (0-0-0). Double click on the background box in the tool chest to set this by hand if needed.
b) Layer->Transparency->Threshold Alpha
This is the step that you were missing - or couldn't use because you were working on a black background instead of transparency from the begining. 128 (which means 50%) is generally the best setting to use but for an particular image you may want to move the threshold around and see if it looks better. If you do this *after* all rotations, partial transparent painting, etc. etc. ad nauseum, you'll see what the sprite actually should look like in-game.
If GIMP gives you bull**** about doing this, save the image as a .tga and then open it again.
c) Image->Flatten Image
This introduces a perfect black background. Since you threshold alpha before doing this, you don't end up with any really-dark-but-should-be-50%-transparent-pixels.

The game actually will accept a tga with a transparency layer, but I don't know how it handles it or whether it's possible to give such images shadows. Most of the older modders are used to the black-background graphics so that's what most people use. I also think it's what KO himself uses.
__________________
If you read his speech at Rice, all his arguments for going to the moon work equally well as arguments for blowing up the moon, sending cloned dinosaurs into space, or constructing a towering *****-shaped obelisk on Mars. --Randall Munroe
Reply With Quote
The Following 2 Users Say Thank You to DrPraetorious For This Useful Post:
  #4  
Old November 19th, 2007, 10:45 PM

Panpiper Panpiper is offline
Corporal
 
Join Date: Aug 2004
Location: Montreal
Posts: 186
Thanks: 21
Thanked 16 Times in 7 Posts
Panpiper is on a distinguished road
Default Re: General advice on sprite painting?

Thank you DrPraetorious. I can see that things have progressed a lot since I played around with Paint Shop Pro 3.0 twelve years ago.

By the way, I am still looking forward to your race design system. I like working within a point structure, it makes it relatively easy to balance things. Unlike this Chaos mod. ;-)
__________________
Chaos Undivided Race Mod
Reply With Quote
  #5  
Old November 20th, 2007, 01:14 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: General advice on sprite painting?

I use psp and never mess around with layers, alphas, transparencies and all that rubbish. I just use 0, 0, 0 for transparent, 255 0 255 for shadow.

It's not rocket science.
Reply With Quote
  #6  
Old November 20th, 2007, 01:24 AM
Foodstamp's Avatar
Foodstamp Foodstamp is offline
Major General
 
Join Date: Oct 2006
Location: Tennessee USA
Posts: 2,059
Thanks: 229
Thanked 106 Times in 71 Posts
Foodstamp is on a distinguished road
Default Re: General advice on sprite painting?

I do it the same way sombre does. But I need to find a good graphics utility that works off a jump drive. Anyone know of one? =)
__________________
BLAH BLAH BLAH BLAH NEXT TURN.
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 12:15 AM.


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