Does anybody know where the source code to tga2bmp2 is.

Programming Reality Factory and Genesis3D.
Post Reply
User avatar
hgt_terry
RF Dev Team
Posts: 167
Joined: Sun Feb 24, 2008 12:20 am
Location: England

Does anybody know where the source code to tga2bmp2 is.

Post by hgt_terry » Mon Mar 31, 2008 6:11 pm

Does anybody know where the source code to tga2bmp2 is.

Thanks
Terry

User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Re: Does anybody know where the source code to tga2bmp2 is.

Post by QuestOfDreams » Tue Apr 01, 2008 1:12 am

Unfortunately we only have the tool but not the source. You may try to contact the original author Lauri Aalto at http://www.coolhouse.fi/

User avatar
bernie
RF Moderator
Posts: 1249
Joined: Tue Nov 15, 2005 10:07 am
Location: Ireland

Re: Does anybody know where the source code to tga2bmp2 is.

Post by bernie » Tue Apr 01, 2008 12:26 pm

I've been doing a bit of detective work and ...
I think he can be contacted via sales@coolhouse.fi
Either he or some relative runs that website and an online game. There's an A.Aalto aka lamexi (female) the moderator on the game forum who's home website is http://www.coolhouse.fi
Worth a try you might get lucky.

cheers

EDIT: I found an email address: lauri.aalto@coolhouse.fi.
and another one lauri_aalto@online.tietokone.fi although this one is quite old.

User avatar
hgt_terry
RF Dev Team
Posts: 167
Joined: Sun Feb 24, 2008 12:20 am
Location: England

Re: Does anybody know where the source code to tga2bmp2 is.

Post by hgt_terry » Tue Apr 01, 2008 9:07 pm

hello berine

well mate i think i can write the code myself the first thing is
the 32 bit tga is in the format bgra format blue red green and alpha
the actor likes it in rgba or at least rgb all i have done is exchanged the first byte and
third byte round which is a faily standard thing to do.

The trick is with the actor in genesis 1.6 a new command geActor_SetAlpha exsits
and there is also a format for bitmap files rgbx now i dont know at the moment which is the best.

I think the geActor_SetAlpha set the alpha color to a forced color like black for instance and will ignore the alpha chanel of the tga file where as the rgbx method if it works uses the true alpha
chanel of the tga file.

I have done the swap thing brga to rgba and can convert the tga file i just need to do the actor
side of it over the next few days.

Hope all this makes sence.

Regards
Terry

User avatar
bernie
RF Moderator
Posts: 1249
Joined: Tue Nov 15, 2005 10:07 am
Location: Ireland

Re: Does anybody know where the source code to tga2bmp2 is.

Post by bernie » Tue Apr 01, 2008 10:00 pm

I'm sure it makes sense Terry, I just don't understand it too well LOL. You could drop Lauri a line at that first e-mail address and ask her/him what she/he did (I think Lauri is female after looking on some forums). That first address is quite recent from a post of lauri's in january this year lauri.aalto@coolhouse.fi you'll probably get the whole source code and that would save you some work maybe.

Cheers,
Bernard

Suski
Posts: 2
Joined: Sun Apr 06, 2008 8:43 pm

Re: Does anybody know where the source code to tga2bmp2 is.

Post by Suski » Sun Apr 06, 2008 8:56 pm

Hello,

Seems like during our last homepage update, all the old Genesis 3D files were removed from the server. The Actor Skin Replacer never had its source published but since I haven't been working with Genesis 3D for years, I think it's ok to release it now before the code gets lost somewhere. The code is mostly undocumented (some documentation in finnish though), and might be kinda horrible mess. However, the part that does the real job is quite short so it should be readable.

You can download the source from my homepage at:
http://www.coolhouse.fi/files/tga2gebmp.zip

Use it as you please but including Coolhouse into credits would be a nice thing of course.

User avatar
bernie
RF Moderator
Posts: 1249
Joined: Tue Nov 15, 2005 10:07 am
Location: Ireland

Re: Does anybody know where the source code to tga2bmp2 is.

Post by bernie » Mon Apr 07, 2008 11:30 am

:D Thanks suski. I downloaded it and put it as is on my filefront for the use of forum members.

User avatar
hgt_terry
RF Dev Team
Posts: 167
Joined: Sun Feb 24, 2008 12:20 am
Location: England

Re: Does anybody know where the source code to tga2bmp2 is.

Post by hgt_terry » Thu Apr 10, 2008 2:35 pm

Thanks berine i sent her an email but see didnt respond you must have a
silver tounge a gift.

any way i have just downloaded the source and it will be the focus of the
next release sunday.

so going to look at it now.

Thanks Thanks And Thanks again berine.

Respect
Terry

Suski
Posts: 2
Joined: Sun Apr 06, 2008 8:43 pm

Re: Does anybody know where the source code to tga2bmp2 is.

Post by Suski » Fri Apr 11, 2008 11:16 am

hgt_terry wrote:Thanks berine i sent her an email but see didnt respond you must have a
silver tounge a gift.
Actually I did get the email (although the address listed on this page was my old email. I've changed my name and email since then) and tried replying. Guess it didn't get through as I tried attaching the source in the email as well.

Anyways, if you people will be hosting the files then I can probably safely take them down from our servers at some point in case a need for that rises.

User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Re: Does anybody know where the source code to tga2bmp2 is.

Post by QuestOfDreams » Fri Apr 11, 2008 9:33 pm

Thanks for the contribution :)
I've updated and fixed the code a bit. The new version will be part of the next RF release.

Post Reply