.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 28th, 2007, 08:48 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 PERFECT SPRITE EXTRACTION

Sorry for the caps but this really is a HUGE announcement. Thanks to something Endoperez said in a sort of offhand manner we now appear to have a way of extracting perfect (though not attacking) sprites from Dom3.

This is going to be a MASSIVE help to modders like myself who have previously had to pretty much redraw the sprites by eye and hand in order to modify them,... AND it's going to mean any random fool (if you'll pardon the term) can now make graphical alterations and new units and whatnot that fit in with Vanilla dom3 more or less perfectly. With this method there is literally no excuse for dodgy or very basic graphics any more.

Here's how I did it, following Endo's guidance.

Turn off the filter in graphical preferences.
Switch resolution to 800x600.
Find the unit you want and right click on it to bring up its display screen.
Then printscreen (screengrab), paste it into a graphical app and cut out the graphic you want.

THAT'S IT.

If I'd known this a few months ago,.... wow that woulda saved me a LOT of time. I'd also have made probably twice as many mods.

THANKYOU ENDO! I really can't stress that enough
Reply With Quote
  #2  
Old April 28th, 2007, 08:56 AM
Endoperez's Avatar

Endoperez Endoperez is offline
National Security Advisor
 
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
Endoperez is on a distinguished road
Default Re: PERFECT SPRITE EXTRACTION

It might not wprk just right, though. Half the human sprites I get are about 40 pixels high instead of ~32. Singularity's post has some details.
Reply With Quote
  #3  
Old April 28th, 2007, 09:06 AM
Endoperez's Avatar

Endoperez Endoperez is offline
National Security Advisor
 
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
Endoperez is on a distinguished road
Default Re: PERFECT SPRITE EXTRACTION

Okay, now I got why it didn't work when I last tried it. I used 800x600 resolution fullscreen and took the screenshots from windowed mode, thinking that what I saw was 800x600. However, it isn't! Even though the command line file, at least, claims that the default windowed resolution is 800x600, using commandline -r 800x600 in the shortcut makes Dom window much smaller. Unit screenshots can be grabbed from windowed mode if you have a shortcut with that property.

Any sprite wishes? I'll do some Caelum ones first.
Reply With Quote
  #4  
Old April 28th, 2007, 09:13 AM
Endoperez's Avatar

Endoperez Endoperez is offline
National Security Advisor
 
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
Endoperez is on a distinguished road
Default Re: PERFECT SPRITE EXTRACTION

Wow, it will be EXTEREMLY easy to grab sprites if you just change the GUI into something that is of single, even color everywhere and put GUI opacity into 1. Then just PrtScreen, paste, use color chooser to select all black that's ever-so-slightly hued by the background, change it into color of your choice. Then change the shadow, pure black, into magenta. VERY FAST!
Reply With Quote
  #5  
Old April 28th, 2007, 09:29 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: PERFECT SPRITE EXTRACTION

I honestly think this is so easy that we don't even need a sprite library any more - you can just get whatever sprite you need at any given moment.

I have just made two new units using this technique. The old way of doing things this would have been like an hours work or something, to get it this good. It took me literally 5 minutes.

The bmp with the two new units (which will be for ulm reborn) will be attached in a moment.
Attached Images
File Type: bmp 515764-New unit preview.bmp (53.5 KB, 129 views)
Reply With Quote
  #6  
Old April 28th, 2007, 09:35 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: PERFECT SPRITE EXTRACTION

I'd like to add that, now, if anyone needs any more complex artwork done for their mods (stuff that goes beyond changing the vanilla sprites a bit, making attack sprites etc) I will probably be free to do it, provided I like the mod.

Might be able to do some awesome stuff for padmassa, for instance, using vanilla sprites as a base.
Reply With Quote
  #7  
Old April 28th, 2007, 09:40 AM
Endoperez's Avatar

Endoperez Endoperez is offline
National Security Advisor
 
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
Endoperez is on a distinguished road
Default Re: PERFECT SPRITE EXTRACTION

LA Caelum unit sprites attached to this post. This is FAST! Choose unit, take screenshot, paste, select area tool, select unit, new window, paste, select eraser, select background color, erase background, move unit/shadow to nice position, save. I did most of these twice, due to not noticing the black area between their legs. INSANE SPEED!
Attached Files
File Type: zip 515769-raptors.zip (23.0 KB, 125 views)
Reply With Quote
  #8  
Old April 28th, 2007, 09:55 AM
Endoperez's Avatar

Endoperez Endoperez is offline
National Security Advisor
 
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
Endoperez is on a distinguished road
Default Re: PERFECT SPRITE EXTRACTION

Gandalf, or anyone else who happens to know the answer:

Would it be possible to do a shortcut for Dominions that first replaces guiborder2.tga with some other tga file, then launches Dom with a --postexec command that somehow replaces the new guiborder2.tga with the original? Or copy of the original, actually, but you know what I mean. It would enable one Dom directory to be used for both normal games AND for ultra-quick screen-grabbing of units, with the only difference being in the shortcut used to launch Dom.

I'm pretty sure it could be done with two .bat files, but I can't write those.
Reply With Quote
  #9  
Old April 28th, 2007, 10:00 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: PERFECT SPRITE EXTRACTION

I don't even think it's that important to be able to do them super fast - I mean even without changing the borders and whatnot you can still get the sprite out cleanly and make the shadow in under a couple of minutes.

I really think there's no need to go extracting all the sprites, since it's so easy to just get the ones you need from right clicking 'em on the recruit screen and following the method. The rest can be got from the monster file cabinet map. I mean having all the sprites to hand would be nice and all, but it would only save you a few minutes - modifying them to look different instead of trying to extract them is what takes the time now, as it should be.

For sure the biggest thing to happen on this forum. Crazy that we only just got this working.
Reply With Quote
  #10  
Old April 28th, 2007, 10:27 AM
Juzza's Avatar

Juzza Juzza is offline
Second Lieutenant
 
Join Date: Oct 2006
Location: Canberra, Australia
Posts: 409
Thanks: 0
Thanked 1 Time in 1 Post
Juzza is on a distinguished road
Default Re: PERFECT SPRITE EXTRACTION

It may not be able to do attack sprites but other that I have to share with Sombres Excitement! now I shouldn't look so stupid with my silly animations!!!
__________________
My Mods:
Tarent Mod:
http://forum.shrapnelgames.com/showt...ghlight=Tarent

Dinnas'Arval Mod:
http://forum.shrapnelgames.com/showt...nnas'Arval

Free Port:
http://forum.shrapnelgames.com/showt...+nation&page=3

Currently working on:
http://forum.shrapnelgames.com/showt...hlight=witcher
Inspired by the game The Witcher and the Witcher Novels.
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 06:39 AM.


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