Author Topic: How to use a .jpg file for a background?  (Read 2645 times)

0 Members and 1 Guest are viewing this topic.

Offline Marcov

  • Chicken Little
  • 29
  • My Sig Is Spam
How to use a .jpg file for a background?
Is this possible? For example I just want to use some random pic and make it a FreeSpace background?

How am I supposed to turn it to .pof?

Just too lazy to research  :P.
With the rapid increase of FS fan-made campaigns, we're giving the GTVA a harder time with more violence and genocide.

~FreeSpace: The Battle of Endor (voice dub)~
Part 1/4 - http://www.youtube.com/watch?v=Q9K9-Y1JBTE
Part 2/4 - http://www.youtube.com/watch?v=dtQanXDRAXM
Part 3/4 - http://www.youtube.com/watch?v=yoBLKYt_oG0

Old (original) videos:
Part 1/4 - http://www.youtube.com/watch?v=C1ygskaoUtE
Part 2/4 - http://www.youtube.com/watch?v=f0uoPTksBlI

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: How to use a .jpg file for a background?
A background bitmap, interface background, or skybox texture?

 

Offline Jeff Vader

  • The Back of the Hero!
  • 212
  • Bwahaha
Re: How to use a .jpg file for a background?
use some random pic ... background?

...turn it to .pof?
You can probably turn a .jpg into a .pof much in the same way you turn a .jpg into an .mp3.

Just too lazy to research  :P.
What if people respond that they're too lazy to give an answer?
23:40 < achillion > EveningTea: ass
23:40 < achillion > wait no
23:40 < achillion > evilbagel: ass
23:40 < EveningTea > ?
23:40 < achillion > 2-letter tab complete failure

14:08 < achillion > there's too much talk of butts and dongs in here
14:08 < achillion > the level of discourse has really plummeted
14:08 < achillion > Let's talk about politics instead
14:08 <@The_E > butts and dongs are part of #hard-light's brand now
14:08 <@The_E > well
14:08 <@The_E > EvilBagel's brand, at least

01:06 < T-Rog > welp
01:07 < T-Rog > I've got to take some very strong antibiotics
01:07 < achillion > penis infection?
01:08 < T-Rog > Chlamydia
01:08 < achillion > O.o
01:09 < achillion > well
01:09 < achillion > I guess that happens
01:09 < T-Rog > at least it's curable
01:09 < achillion > yeah
01:10 < T-Rog > I take it you weren't actually expecting it to be a penis infection
01:10 < achillion > I was not

14:04 < achillion > Sometimes the way to simplify is to just have a habit and not think about it too much
14:05 < achillion > until stuff explodes
14:05 < achillion > then you start thinking about it

22:16 < T-Rog > I don't know how my gf would feel about Jewish conspiracy porn

15:41 <-INFO > EveningTea [[email protected]] has joined #hard-light
15:47 < EvilBagel> butt
15:51 < Achillion> yes
15:53 <-INFO > EveningTea [[email protected]] has quit [Quit: http://www.mibbit.com ajax IRC Client]

18:53 < Achillion> Dicks are fun

21:41 < MatthTheGeek> you can't spell assassin without two asses

20:05 < sigtau> i'm mining titcoins from now on

00:31 < oldlaptop> Drunken antisocial educated freezing hicks with good Internet == Finland stereotype

11:46 <-INFO > Kobrar [[email protected]] has joined #hard-light
11:50 < achtung> Surely you've heard of DVDA
11:50 < achtung> Double Vaginal Double ANal
11:51 < Kobrar> ...
11:51 <-INFO > Kobrar [[email protected]] has left #hard-light []

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Marcov

  • Chicken Little
  • 29
  • My Sig Is Spam
Re: How to use a .jpg file for a background?
A background bitmap, interface background, or skybox texture?

Any, but I'm thinking background. What if I wanted to use a pic of the Lucifer as a background?

What if I wanted to fight in a city environment?

Can I do any of these using just normal pics? If so, how?
With the rapid increase of FS fan-made campaigns, we're giving the GTVA a harder time with more violence and genocide.

~FreeSpace: The Battle of Endor (voice dub)~
Part 1/4 - http://www.youtube.com/watch?v=Q9K9-Y1JBTE
Part 2/4 - http://www.youtube.com/watch?v=dtQanXDRAXM
Part 3/4 - http://www.youtube.com/watch?v=yoBLKYt_oG0

Old (original) videos:
Part 1/4 - http://www.youtube.com/watch?v=C1ygskaoUtE
Part 2/4 - http://www.youtube.com/watch?v=f0uoPTksBlI

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Minecraft
    • Steam
Re: How to use a .jpg file for a background?
There's a difference between background bitmaps and skyboxes, here's the deal:

background bitmaps (just like nebulae) are used to cover a small portion of the sky/ambient, the bigger the portion of the ambient you want to cover, the more distortion you'll get from the image.

skyboxes are made to fill the entire sky/ambient using a model and various textures, normally if those are made correctly no distortion will be noticeable, but... as you can imagine, making a skybox is way harder than making a background bitmap.

What if I wanted to use a pic of the Lucifer as a background?

Probably a background bitmap will be the best choice.

What if I wanted to fight in a city environment?

This one might need a skybox.

Can I do any of these using just normal pics? If so, how?

Not really, background bitmaps tend to be an image onto an invisible layer, so any kind of image you get from real life will not work, it will require for you to add that "invisible layer".
For skyboxes, you can try loading a 360° view onto some skybox model, but the 6 images and the model will also require additional tweeking, it's kinda hard to explain all at once.

I would suggest you to do what I did the first time:

Open one of the vp's and extract some of the nebula images, then check those out in gimp or photoshop.. whatever you use, you'll get the idea about how a background bitmap should look like with that.

For the skybox you can try checking the starfield.pof file and it's textures... though I would suggest to go first over the background bitmaps, they are easier to understand, and require fewer programs to edit those.

Also...check the wiki, there you'll find instructions on how to make skyboxes and background bitmaps as well IIRC.
« Last Edit: June 13, 2010, 10:02:50 am by Rodo »
el hombre vicio...

 

Offline Getter Robo G

  • 211
  • Elite Super Robot Pilot
Re: How to use a .jpg file for a background?
You can probably turn a .jpg into a .pof much in the same way you turn a .jpg into an .mp3.

Oh God that's good!

 :lol:
"Don't think of it as being out-numbered, think of it as having a WIDE target selection!"

"I am the one and ONLY Star Dragon..."
Proof for the noobs:  Member Search

[I'm Just an idea guy, NOT: a modeler, texturer, or coder... Word of advice, "Watch out for the ducks!"]

Robotech II - Continuing...
FS2 Trek - Snails move faster than me...
Star Blazers: Journey to Iscandar...
FS GUNDAM - The Myth lives on... :)

 
Re: How to use a .jpg file for a background?
All these changes happen in your mission/mod folder, NOT the root data folder.

Put your .jpg in your /data/effects folder.
Then, extract to data/tables stars.tbl and add a line somewhere that says $Bitmap: yourimagename (where yourimagename is the name of your image, without the extension).
Then, open FRED, making sure that it's using your mod. In the background editor you should be able to add your image the same way that you would a nebula.

Check the wiki for various details that you'll need to know if you want it to be transparant/not transparant, square edges/no square edges, etc.

 

Offline Herra Tohtori

  • The Academic
  • 211
  • Bad command or file name
Re: How to use a .jpg file for a background?
Quote from: The GIMP Thread
FS2_Open can use the following image formats:

(...)

*JPG (technically)
 -Don't ask me why this format is supported. It's lossy compression-wise and uses the same amount of memory as uncompressed TGA, so there is no advantage whatsoever in using it.
 -If you use this for FS2_Open, Admiral Petrarch is going to demote you to a freighter pilot. Seriously, don't use this.


If your source image is in JPG format, you should save it as DDS for use in FS2_Open.

As to how to use it, depends on what exactly you want to do with it... background bitmaps are assigned with stars.tbl and modular table named filename-str.tbm, and then you can select the background in FRED2's background editor.
There are three things that last forever: Abort, Retry, Fail - and the greatest of these is Fail.

 

Offline Marcov

  • Chicken Little
  • 29
  • My Sig Is Spam
Re: How to use a .jpg file for a background?
Where are the background images located (in which .vp)?

Also, where can I find background topics in FSwiki?
With the rapid increase of FS fan-made campaigns, we're giving the GTVA a harder time with more violence and genocide.

~FreeSpace: The Battle of Endor (voice dub)~
Part 1/4 - http://www.youtube.com/watch?v=Q9K9-Y1JBTE
Part 2/4 - http://www.youtube.com/watch?v=dtQanXDRAXM
Part 3/4 - http://www.youtube.com/watch?v=yoBLKYt_oG0

Old (original) videos:
Part 1/4 - http://www.youtube.com/watch?v=C1ygskaoUtE
Part 2/4 - http://www.youtube.com/watch?v=f0uoPTksBlI

 

Offline Herra Tohtori

  • The Academic
  • 211
  • Bad command or file name
Re: How to use a .jpg file for a background?
Where are the background images located (in which .vp)?

There must be limits to what we are willing to feed you readily chewed.

Why don't you look for yourself?

Quote
Also, where can I find background topics in FSwiki?

It would be logical to start from here:

http://www.hard-light.net/wiki/index.php/Backgrounds
There are three things that last forever: Abort, Retry, Fail - and the greatest of these is Fail.

  

Offline captain-custard

  • previously known as andicirk
  • 210
  • one sandwich short of a picnic
Re: How to use a .jpg file for a background?
clicks on the link for Marcov..... :D
"Duct tape is like the force. It has a light side, a dark side, and it holds the universe together."