Forum Archive

Go Back   3D Realms Forums > 3D Realms Topics > Duke Nukem > Duke Nukem 3D Modifications
Blogs FAQ Community Calendar

Notices

 
 
Thread Tools
Old 03-20-2009, 10:18 PM   #1
Hoju3942
Sprite Sizing Question
Hey guys. I've been working on replacing some of the ingame sprites using just bastART and my own photoshop skills. Just regular Duke3D Atomic, none of the newer versions that have been made.

When I make a sprite I have to shrink it down and it loses a lot of the detail from the original image I was using. I heard there is a way to change what the sprite resolutions in the game are, without changing their sizes. So I could have a 600 pixel tall sprite in the same place as one that's 150, without having a size difference, only a detail difference.

Is this the fever dream of a madman?
Hoju3942 is offline  
Old 03-20-2009, 11:03 PM   #2
TerminX

TerminX's Avatar
Re: Sprite Sizing Question
Yeah, there's a way... it's called EDuke32.
TerminX is offline  
Old 03-20-2009, 11:05 PM   #3
Hoju3942
Re: Sprite Sizing Question
Would you mind elaborating? I've heard of that, no idea how to use it. Like I said, only using bastART and photoshop.
Hoju3942 is offline  
Old 03-20-2009, 11:34 PM   #4
DeeperThought

DeeperThought's Avatar
Re: Sprite Sizing Question
Quote:
Originally Posted by TerminX View Post
Yeah, there's a way... it's called EDuke32.
Quote:
Originally Posted by Hoju3942 View Post
Would you mind elaborating? I've heard of that, no idea how to use it. Like I said, only using bastART and photoshop.
TerminX is the lead developer of EDuke32, and he has a link to its home page right there in his signature. Hard to miss, if you ask me.

The easiest way to do what you want is to use art in png format and have it replace 8-bit tiles, like they do in the HRP.
__________________
DUKE PLUS
New map effects and various optional extras for Duke 3D.

DUKE NUKEM: ATTRITION
XP based weapon upgrades, progressive difficulty, and more.
DeeperThought is offline  
Old 03-20-2009, 11:38 PM   #5
Hoju3942
Re: Sprite Sizing Question
I actually checked, I already have EDuke32 but I don't use it because I don't know how to edit anything in it! lol

However, if I am getting this right, I would just open the tile for the sprite I want to change, save it at the size I want (let's say it's 600 pixels tall), and the game will automatically resize it to the default (of let's say 150 pixels tall) without squishing the detail? And actually maintaining the larger sprite I want to use, but shrinking it down without losing the detail? I hope I am getting this right, and moreso I hope my ridiculous question makes sense to anybody but me. Anyway, I am going to bed now, I can't wait to fool around with it a bit after work tomorrow.
Hoju3942 is offline  
Old 03-21-2009, 01:34 AM   #6
XTHX2

XTHX2's Avatar
Re: Sprite Sizing Question
Quote:
Originally Posted by Hoju3942 View Post
I actually checked, I already have EDuke32 but I don't use it because I don't know how to edit anything in it! lol

However, if I am getting this right, I would just open the tile for the sprite I want to change, save it at the size I want (let's say it's 600 pixels tall), and the game will automatically resize it to the default (of let's say 150 pixels tall) without squishing the detail? And actually maintaining the larger sprite I want to use, but shrinking it down without losing the detail? I hope I am getting this right, and moreso I hope my ridiculous question makes sense to anybody but me. Anyway, I am going to bed now, I can't wait to fool around with it a bit after work tomorrow.
I'm advicing you to be brave, as also for other beginners to Eduke32... (or whoever has it but never launched it and planning to create a thread about it)
XTHX2 is offline  
Old 03-21-2009, 03:35 AM   #7
hightreason

hightreason's Avatar
Re: Sprite Sizing Question
There's some HTML files with EDuke32, one of them (relnotes.html i think) tells you how to make a .DEF file, you need to make a .def file to use replacement textures.
There's also a file called "Duke3D.def.sample" that is an example .def file, this also tells you how to do this.
__________________
High Treason
(My Website) (Second Site) (My YouTube)
Punk's not dead - and nor is Duke!
Ever get the feeling you are being ignored?
hightreason is offline  
Old 03-21-2009, 04:49 AM   #8
Parkar

Parkar's Avatar
Re: Sprite Sizing Question
http://wiki.eduke32.com/wiki/DEF_Language

Has as far as I know documentation of all the def files are capable of at this point.
Parkar is offline  
Old 03-21-2009, 07:24 AM   #9
Hoju3942
Re: Sprite Sizing Question
I appreciate all the help, but looking through the EDuke32 folder, I am completely confused. I went through all the .def and .con files and did a search for "scale" (which that wiki site says is the phrase used for what I want to do) but it's not bringing up anything. Hrm...

I hate to ask, but are there some simple steps for what I want to do? I literally just want to change the scale for my sprites, that is all. If anybody knows what file I need to open and what number I should change, it would help me out greatly. Unless it's different depending on what tile it's from or other details that I'm not accounting for. If it helps, I'm replacing babes, the ones from tile05. Thanks again guys, I appreciate all the pointers, even if it's still giving me difficulty. At least I have a direction to go in!
Hoju3942 is offline  
Old 03-21-2009, 09:30 AM   #10
hightreason

hightreason's Avatar
Re: Sprite Sizing Question
It doesnt need to do that in the .def - you just need to define the texture in the .def and it replages that graphic in the game, but keeps the original size. The image will still have the same detail - For example, replacing a 120x120 image with a 1200x1200 image in the .def will keep the sprite/graphic at the same size in game, but when you meve nearer to it, the detail is that of your replacement picture, it scales it down automatically in the game.
Hmm, i forgot to mention, it only works if you are using EDuke32, not the original .exe
__________________
High Treason
(My Website) (Second Site) (My YouTube)
Punk's not dead - and nor is Duke!
Ever get the feeling you are being ignored?
hightreason is offline  
Old 03-21-2009, 02:45 PM   #11
Hoju3942
Re: Sprite Sizing Question
I appreciate it, but what file do I open to make these changes? How do you make a texture? I'm sure it's much simpler than I'm making it out to be, I'm just very inexperienced with all this. Most I've done in the game is switch around some sounds and basic sprite replacement, and even that took months to get right! Not working on it constantly, but piecemeal it took me some time to get the right shade of pink, etc.

I have a sprite I want to replace one of the babes with, would I just import the tile005 that I put it in? Or does that do nothing? I'm not sure what definition file I have to change to make the scaling different.
Hoju3942 is offline  
Old 03-21-2009, 05:17 PM   #12
hightreason

hightreason's Avatar
Re: Sprite Sizing Question
Ok, say you wanted to replace texture 0 (the first tile)
in this example, the new texture would be in "textures"
Open notepad (or any good text editor) and add the line:
definetexture 0 0 0 0 -1 -1 "Textures/mytexture.png"
it's similar for any tile, for example, tile 1024 (cant remember what it is)

definetexture 1024 0 0 0 -1 -1 "Textures/Tile1024.png"

Basically, the red 1024 means that that is the tile number you are replacing, the Green path/file is where your texture is and what the texture file is called, just change this as needed.
Don't worry, it took me a while to grasp the workings of this.
__________________
High Treason
(My Website) (Second Site) (My YouTube)
Punk's not dead - and nor is Duke!
Ever get the feeling you are being ignored?
hightreason is offline  
Old 03-22-2009, 05:22 PM   #13
Hoju3942
Re: Sprite Sizing Question
But what file is all that contained in? Or do I have to make my own definitions file? I am still terribly confused. I just hope I get this soon, I don't wanna keep posting the same question so much that it frustrates you. lol
Hoju3942 is offline  
Old 03-22-2009, 06:25 PM   #14
hightreason

hightreason's Avatar
Re: Sprite Sizing Question
you have to make that file yourself.
I'm not sure what would happen if you attempted to use it with the HRP.
Just write the lines in a text editor and save it as Duke3D.DEF in your Duke 3D folder.
__________________
High Treason
(My Website) (Second Site) (My YouTube)
Punk's not dead - and nor is Duke!
Ever get the feeling you are being ignored?
hightreason is offline  
Old 03-23-2009, 03:58 AM   #15
Parkar

Parkar's Avatar
Re: Sprite Sizing Question
Quote:
Originally Posted by hightreason View Post
you have to make that file yourself.
I'm not sure what would happen if you attempted to use it with the HRP.
Just write the lines in a text editor and save it as Duke3D.DEF in your Duke 3D folder.
To make it compatible with the HRP you have to include the duke3d_hrp.def in duke3d.def.
Parkar is offline  
 

Bookmarks


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 Off

Forum Jump


All times are GMT -6. The time now is 12:25 PM.

Page generated in 0.11746097 seconds (100.00% PHP - 0% MySQL) with 16 queries

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

Website is ©1987-2014 Apogee Software, Ltd.
Ideas and messages posted here become property of Apogee Software Ltd.