Backround?

Backround?

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderators: Moderators, Moderators

Post Reply
NoobsAtWar
Posts: 3
Joined: 07 Oct 2009, 02:45

Backround?

Post by NoobsAtWar »

I was wondering if there was anyway of incorporating a backround onto the map when you zoom out, like that blue screen past the edge of the map, is there anyway to put a diffrent picture there? So it kind of looks similiar to SupCom
0 x

Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Re: Backround?

Post by Warlord Zsinj »

It is possible to put in a skybox, if that is what you are referring too.
0 x

NoobsAtWar
Posts: 3
Joined: 07 Oct 2009, 02:45

Re: Backround?

Post by NoobsAtWar »

I think so. So how could i put that into spring?
0 x

User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Backround?

Post by Argh »

You don't "put it into Spring", you put it into a map. See map-making documentation in that sub-forum for technical details.
0 x

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Backround?

Post by knorke »

not all spring maps have a skybox i think.

but as you do not see the sky when you zoom out, i think he is asking for something on the ground, like the map being surrounded by a rock texture or something. (?)
0 x

NoobsAtWar
Posts: 3
Joined: 07 Oct 2009, 02:45

Re: Backround?

Post by NoobsAtWar »

Im asking if its possible to do something like this Image, so when you zoom all the way out there is a backround at the back.
0 x

User avatar
AF
AI Developer
Posts: 20671
Joined: 14 Sep 2004, 11:32

Re: Backround?

Post by AF »

Get forged alliance
0 x

User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Re: Backround?

Post by SpliFF »

Well obviously he already has FA or he wouldn't be posting screenshots... sheesh.

You could implement this as a widget, using OpenGL commands to draw the background as a textured plane on each widget:DrawWorld() call-in. This isn't the same as doing it per-map (like the skybox) but it would work with existing maps provided you are ok with a generic background for all maps (or for each map 'type' - if such a concept exists).

I don't know if anything exists already so you may need to get your hands dirty with Lua widget code and OpenGL to pull this off.
0 x

User avatar
chillaaa
Posts: 234
Joined: 16 Mar 2005, 00:12

Re: Backround?

Post by chillaaa »

SpliFF wrote:Well obviously he already has FA or he wouldn't be posting screenshots... sheesh.
WRONG. Easy enough to get from a Google image search.
0 x

User avatar
AF
AI Developer
Posts: 20671
Joined: 14 Sep 2004, 11:32

Re: Backround?

Post by AF »

What he posted came from original supreme commander, forged alliance changes that background quite dramatically.
0 x

Master-Athmos
Posts: 862
Joined: 27 Jun 2009, 01:32

Re: Backround?

Post by Master-Athmos »

I guess Argh could make some comments on the actual work required as he recently messed around with drawing orders and altering stuff like that with the Lua capabilities so you have a single bitmap facing the camera as lowest "layer" and everything else draws "over" that...

I wouldn't call it "trivial" to do though but maybe there are more easy ways to accomplish the same...
0 x

User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Backround?

Post by lurker »

Since this is apparently not clear enough.

Lots of maps have skyboxes.

Not all of them do, if it doesn't then you'd have to write a widget to fake one.
0 x

User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7019
Joined: 16 Nov 2004, 13:08

Re: Backround?

Post by zwzsg »

We've had skyboxes for sooo many years.

See the menu at the top of this forum? Click "Development", then "Map Development" and ohhh, there's a whole page about skyboxes, what they are, how to make them, etc...
http://springrts.com/wiki/Skyboxcreation



You can also use the "search" of the forum. With it I found that 4 years old post of mine:
zwzsg wrote:Two .dds that were found working:
- C:\Program Files\ATI Research Inc\CubeMapGen v1.0\Textures\CubeMaps\SpaceSky512.dds
- http://www.fileuniverse.com/spring/Texture1.dds

Another dds in the exemple CubeMaps was found NOT working.

Instruction to make your own dds:
- Make four images. Any common image format (.bmp, jpg, .png, etc...). I only tried 1024x1024 and 512x512, and I think you have to use 16millions colors. But maybe other images are possible, I just haven't tried.
- Install http://www.ati.com/developer/cubemapgen/
- Run it
- Select Cube: X+ Face <1>
- Load CubeMap Face <F> : choose your face1
- Select Cube: X- Face <2>
- Load CubeMap Face <F> : choose your face2
- etc.. until you get all 6 faces.
- Not that for me nothing save a white circle shows in AtiCubeMapGen, but anyway, it works.
- Save CubeMap (.dds): save it into /Spring/maps/
- Then in your map .smd add SkyBox=yourskybox.dds; in the [ATMOSPHERE] like yeha said.
- Run Spring and it should work.


The orientations are:

X+ Face1 West
X- Face2 East
Y+ Face3 Up
Y- Face4 Down
Z+ Face5 North
Z- Face6 South

All side faces are: up in the image = up ingame
Down is: up in the image = north ingame
Up is: up in the image = south ingame
All faces are mirror-inverted.
0 x

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Backround?

Post by knorke »

I might be wrong but the effect he wants has nothing to do with skyboxes
0 x

User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Backround?

Post by lurker »

But he shows a screenshot with one and seems to be drawing attention to the skybox.
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14630
Joined: 17 Nov 2005, 02:43

Re: Backround?

Post by Forboding Angel »

lurker wrote:But he shows a screenshot with one and seems to be drawing attention to the skybox.
He obviously has no idea what a skybox is and
the effect he wants has nothing to do with skyboxes
0 x

User avatar
AF
AI Developer
Posts: 20671
Joined: 14 Sep 2004, 11:32

Re: Backround?

Post by AF »

Take your bitmap, draw it on a quad on the infinite plane ontop of a black skybox, and billboard the quad so it always points at the camera.

For forged alliance effect, draw geometry around the maps edges on a horizontal plane, and darken the skybox. Apply texture to surrounding geometry.
0 x

Post Reply

Return to “Game Development”