Railroad train games by Rule the Rail - Home Train games, railway games Rule the Rail!

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

backgrounds on billboards

 
Post new topic   Reply to topic    Train games, railway games Rule the Rail! Forum Index -> Buildings, plants, other objects
View previous topic :: View next topic  
Author Message
CaptPDK



Joined: 31 Mar 2007
Posts: 57
Location: M.V.Quinn River/Gulf of Mexico

PostPosted: Wed May 02, 2007 1:22 pm    Post subject: backgrounds on billboards Reply with quote

Hi all!

Here's an idea I've had for a while; backgrounds.

These are not applied as a sky texture but on billboards that can be set behind the table. To change the background you can replace the image file.

I've tested and the image can be a .jpg, dds, bmp. I haven't tested other formats but I know DirectX can handle .png and tga formats as well, but only tga, png and dds have the alpha channel to allow the sky to show through.

Back to top
View user's profile Send private message
Blazer9



Joined: 20 Apr 2006
Posts: 211
Location: Jacksonville FL

PostPosted: Wed May 02, 2007 10:33 pm    Post subject: Reply with quote

Paul,

Have you tried a jpg with a transparent background to see if it will work?

DonR aka Blazer9
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
CaptPDK



Joined: 31 Mar 2007
Posts: 57
Location: M.V.Quinn River/Gulf of Mexico

PostPosted: Thu May 03, 2007 2:27 am    Post subject: Reply with quote

Hay Don,
Well yes and no; a jpg can be used for the background image but a .jpg does not include an alpha channel or transparent layer. You can't force a jpg to be transparent because there's no provision for it in the file format. Microsoft made a provision for images displayed in Windows that gray with an RGB of 172,172,172 will automaticly be transparent, but a DirectX screen is not a Windows screen so that will not work in RtR.

This background started out as a jpg panoramic photo but using DTXBmp I converted it to a DDS and used a gray scale, high contrast duplicate of the image to create the alpha channel. That's the RtR default sky behind those buildings.

The only image formats that include a transparent layer (that I know how to use) are Targa .tga; portable network graphics .png; .gif what ever that stands for and direct draw surface .dds.

Most image editing software can handle all but .dds but DTXBmp makes the dds conversion pretty easy.

Paul
Back to top
View user's profile Send private message
austindave



Joined: 19 Feb 2006
Posts: 391
Location: UK

PostPosted: Thu May 03, 2007 3:38 pm    Post subject: Reply with quote

Hi all

How ever it's is done bit hard for me to understand. It's looks great.

dave
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Train games, railway games Rule the Rail! Forum Index -> Buildings, plants, other objects All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum