Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / Transparency and Decals

Author
Message
Lon
20
Years of Service
User Offline
Joined: 12th Feb 2004
Location: Big Ass Castle
Posted: 11th Nov 2005 20:15 Edited at: 11th Nov 2005 20:15
Am I right in assuming that in DBPro, TGA files without an alpha mask will render RGB(0,0,0)as transparent? Why doesn't FPSC do this? If I try to bring in a decal,(animated),the black always shows up. The decal I'm bringing in is 24 bit, but my problem is that the image is black and white. If I apply an alpha mask to my image, it has holes and transparencies in it since its made out of variating grays. I'd like the black background in my image to be transparent, but the actual image show. BTW I use no pure black in my actual image itself, just for the background. What I represent as black in my artwork is just a hue above 0 0 0 rgb black.

Thanks

Lon
Merranvo
19
Years of Service
User Offline
Joined: 24th May 2005
Location: That ^ is a Orange
Posted: 11th Nov 2005 21:02 Edited at: 11th Nov 2005 21:02
don't know, try png

And some people won't tell HOW.

Your mod has been erased by a signature which was erased by a mod being erased by a signature.

"Ye oft de adopte early shalt move mountains, and be gods among men"
uman
Retired Moderator
20
Years of Service
User Offline
Joined: 22nd Oct 2004
Location: UK
Posted: 11th Nov 2005 23:40 Edited at: 11th Nov 2005 23:42
Hi Lon,

Not quite sure what your problem is - though I have worked quite extensively with decals and transparency on those and other entities. Some particular images can be a little tricky though I have not yet had a transparency issue that could not be overcome.

I only use .dds - files saved directly as such and dont use tga and allow FPSC to convert them.

In what circumstances are you using the decals. i.e. for what kind of entity? is it for one of your characters?

If you would like to make available an offending image that I could download I could try and see if I can find a fix for you though cant obviously promise success. I can try. You could supply an image that was just a non usable image (not one of your actual game or copyright images) if you are worried about anyone using it - just an example of a problem image - even a small part image might do for a test purpose. Something that has obvious holes in it where they should not be.

You could e.mail me something directly if you want.

Entirely up to you.


foleypro
19
Years of Service
User Offline
Joined: 3rd Jun 2005
Location: Tacoma Washington USA
Posted: 23rd Nov 2005 04:57
Yes I would like to know too.


I am trying effects and other things like decals but the Black always shows up...

As Always B3D....www.fnggames.com

dpharaoh
19
Years of Service
User Offline
Joined: 2nd Nov 2005
Location: SouthEast MA
Posted: 23rd Nov 2005 16:28
I just ran into this, and found a solution. start with a format like PNG that uses an alpha/transparency channel. In DDS Converter2, you have to make sure you go into Options and click on 'Save alpha Channel (if any)'. this will give you a nice DDS with Alpha!
uman
Retired Moderator
20
Years of Service
User Offline
Joined: 22nd Oct 2004
Location: UK
Posted: 23rd Nov 2005 17:52
Transparency in FPSC is no problem. It will support transparency on anything the engine supports as far as I have been able to ascertain. That includes segments, entities and decals.

I have had a couple of difficult images with decals.

Here are some tips that might help.

First of all your image must have a totally black or greyscale alpha channel.

Black (greyscale) the transparent colour must always be so. i.e. absolute 100% black for areas that are outside the boundary of a continuous tone image. For example in its simpliest form : you have a square image with black background - in the middle you have a white circle. If the black is perfectly so you should just see your white circle in game.

In your objects script file be sure to include the transparency info. i.e. transpqarency = 2 as well as making sure the transparency figure is set in the objects properties dialogue box in editor. If the figure 2 dont work correctly try another for the particular object 0,1,2,4 and see what you get - its worth experimenting anyway so you know how the numbers affect your images transparency and you will have learned something.

When testing if you get problems - make sure that every time you make adjustments you exit FPSC and restart the editor after deleting the offending objects .bin and possibly .dbo files. Be careful what you delete. A nusiance but sometimes necessary when problems occur so that FPSC updates your changes.

If you still get difficulty with transparency:

If you have problems with your alpha channel in your 24 bit image - try making or saving out the alpha channel of your image as an 8 bit greyscale image before pasting or importing it back to the alpha channel within your 24 bit image file - that fixes some probs. 24 bit black/greyscale created alpha channels can prove troublesome sometimes.

Try saving your image file with the alpha channel set as 1 bit, 8 bit, 24 bit and see if one of those fixes the problem.

Try using a different file format as different image progs, formats and game engines utilise output files with alpha channel in a different ways. Its not an absolute compatible world the world of imaging.

Try using tga, dds or png and yes we know FPSC converts tga to dds - dont matter try anyway.

Personally I use 24 bit dds files for all images I make - when alpha channel is required then I use the mentioned mentioned previously above and separate or create an alpha channel saving it as 8 bit greyscale - then open it, copy it and paste it to the 24 bit image alpha channel - save as .dds - thats it and it works in almost every instance.

Decals are the hardest to get transparency on when you need to apply a level of transparency to the whole of the image and not just a part of it. i.e. if you want water to be transparent or a complex face - you may want a graduated level of transparency over the whole area - thats when it becomes the hardest for decal success as you are mixing a 24 bit graduated tone image with a greyscale graduated tone alpha channel. I not failed yet though had some difficult ones.

If all else fails as I have said before - if its appropriate for your object - you may want to try creating another entity, such as in the case of water and use a wall type entity using your 24 bit texture on it and making it either invisible or transparent and passable (coloff) before attaching/applying a transparent decal to it. Of course you would need to make sure again that the entity also has its transparency value set in editor and script.

Hope that helps though it sounds complex its not. Time consuming it may be until you get a personal solution and thereafter its plain sailing. One step at a time does the job.

foleypro
19
Years of Service
User Offline
Joined: 3rd Jun 2005
Location: Tacoma Washington USA
Posted: 24th Nov 2005 04:21
Thank you Folks


I will see what I can do...

If I can get this working I will give to the community a Sampler Pack of what I am doing and I also will be Giving other sampler Packs like Vegitation and Trees and Bushes and Plain anything you can think of...

As Always B3D....www.fnggames.com

Login to post a reply

Server time is: 2024-11-24 00:35:14
Your offset time is: 2024-11-24 00:35:14