Official BF Editor Forums: Custom Skybox - Official BF Editor Forums

Jump to content

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

Custom Skybox

#1 User is offline   Outlawz Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 323
  • Joined: 28-February 07

Posted 18 July 2010 - 11:02 AM

Result from today's summer morning boredom. I wondered if the BF2 skybox can be changed and after seeing that it's actually a simple .staticmesh object, I got an evil grin on my face. About an hour and couple of CTDs later this is what came out :D

Posted Image

I can do a small tut or description on how to do this, if anyone's interested, will also see if it's possible to attach it to a custom map instead of a mod.

This post has been edited by Outlawz: 18 July 2010 - 11:03 AM

Posted Image
0

#2 User is offline   bergerkiller Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 563
  • Joined: 24-April 09
  • Gender:Male
  • Location:Netherlands
  • Interests:Battlefield 2 modding, programming and overall gaming. Xfire acc: ibergerwar

Posted 18 July 2010 - 12:29 PM

Isn't making your custom "sky" texture and using it in a level enough to change the skybox? :huh:
All our Lost Pirates Productions' programs

Posted Image Lost Pirates Productions Software Leader
Posted Image
0

#3 User is offline   Cassio Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 121
  • Joined: 26-December 05
  • Gender:Male
  • Location:Germany

Posted 18 July 2010 - 12:47 PM

Yes you can change the texture but as the default skybox actually is a "dome" a boxlike sky is hard to do :P

First Strike Mod did several cool custom skyboxes for their space maps. Mainly boxes but interesting uvmapping to get an awesome look ;)

This post has been edited by Cassio: 18 July 2010 - 12:49 PM

Interstate Nitro Coder, Mapper, Modeller
Posted Image
0

#4 User is offline   bergerkiller Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 563
  • Joined: 24-April 09
  • Gender:Male
  • Location:Netherlands
  • Interests:Battlefield 2 modding, programming and overall gaming. Xfire acc: ibergerwar

Posted 18 July 2010 - 01:54 PM

Ah I seee :D

So bacially you could even make a triangle-box-shaped "skybox"?
All our Lost Pirates Productions' programs

Posted Image Lost Pirates Productions Software Leader
Posted Image
0

#5 User is offline   Bensta Icon

  • Expert
  • PipPipPipPip
  • Group: Moderators
  • Posts: 1,924
  • Joined: 12-May 06
  • Gender:Male
  • Location:England

Posted 18 July 2010 - 03:35 PM

Yea you can also put objects on the skybox, works well with distant sky scrapers/city plus more
Posted Image
0

#6 User is offline   Outlawz Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 323
  • Joined: 28-February 07

Posted 18 July 2010 - 03:54 PM

The original skybox is actually diamond shaped, but only the top part is UVd, which is why the bottom of the texture needs to be a solid color/gradient, cos the bottom of the texture gets stretched to the bottom half of the skybox. Oh and I haven't found a way to do this map-side, somehow can't get maps to load the skybox from the custom client.zip instead of default, it loads the sky texture, but the dome is either loaded from BF2, or isn't loaded at all. :(
Posted Image
0

#7 User is offline   UberWazuSoldier Icon

  • Expert
  • PipPipPipPip
  • Group: Members
  • Posts: 1,172
  • Joined: 18-December 08
  • Location:Auckland, New Zealand

Posted 19 July 2010 - 05:50 AM

Not even with Skydome.skyTemplate skydome?

This post has been edited by UberWazuSoldier: 19 July 2010 - 05:50 AM

Roflbox/Operation Dead Dawn Developer. (Ninjamod is taking a back seat for now)

Posted Image
0

#8 User is offline   Rhino Icon

  • Expert
  • PipPipPipPip
  • Group: Members
  • Posts: 1,068
  • Joined: 17-August 05
  • Gender:Male
  • Location:UK

Posted 19 July 2010 - 06:27 AM

That's pretty cool how you made it look box like, like that :)

Can you post a .jpg of the sky texture? :)
Posted Image
0

#9 User is offline   Outlawz Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 323
  • Joined: 28-February 07

Posted 19 July 2010 - 09:50 AM

View PostUberWazuSoldier, on 19 July 2010 - 07:50 AM, said:

Not even with Skydome.skyTemplate skydome?


Hmm no, I tried with this part from sky.con

Quote

if v_arg1 == BF2Editor
else
run /Common/Sky/SkyDome/skydome.con
run /Common/Sky/Flare/flaresprite.con
endIf


Where would I add that template line btw?

View PostRhino, on 19 July 2010 - 08:27 AM, said:

That's pretty cool how you made it look box like, like that :)

Can you post a .jpg of the sky texture? :)


That's because it is a box :P

Posted Image

Here's the UV map.
Posted Image

This post has been edited by Outlawz: 19 July 2010 - 09:52 AM

Posted Image
0

#10 User is offline   Rhino Icon

  • Expert
  • PipPipPipPip
  • Group: Members
  • Posts: 1,068
  • Joined: 17-August 05
  • Gender:Male
  • Location:UK

Posted 19 July 2010 - 03:44 PM

ummm, BF2 uses 360 sky domes like this?

Posted Image
Posted Image
0

#11 User is offline   Outlawz Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 323
  • Joined: 28-February 07

Posted 19 July 2010 - 04:08 PM

Yeah, but that's because the skybox is dome shaped, this one is a box?
Posted Image
0

#12 User is offline   bergerkiller Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 563
  • Joined: 24-April 09
  • Gender:Male
  • Location:Netherlands
  • Interests:Battlefield 2 modding, programming and overall gaming. Xfire acc: ibergerwar

Posted 19 July 2010 - 06:57 PM

Lawl, you guys he changed the mesh of the skydome, not the texture. :D
All our Lost Pirates Productions' programs

Posted Image Lost Pirates Productions Software Leader
Posted Image
0

#13 User is offline   Outlawz Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 323
  • Joined: 28-February 07

Posted 19 July 2010 - 09:35 PM

Glad you figured out it, but I'm surprised Rhino missed it. :blink:

Quote

I wondered if the BF2 skybox can be changed and after seeing that it's actually a simple .staticmesh object


I mean hellooo... :P :lol:
Posted Image
0

#14 User is offline   bergerkiller Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 563
  • Joined: 24-April 09
  • Gender:Male
  • Location:Netherlands
  • Interests:Battlefield 2 modding, programming and overall gaming. Xfire acc: ibergerwar

Posted 19 July 2010 - 10:01 PM

But yeah, this is awesome for small city maps (as you said before). You could make the map "endless large".

Although...since the box follows the camera...all meshes will be viewed from the very same side at all times. So you wouldn't even need 3d structures in the skybox, since you can just use a globe texture.

Hard to tell if a box is really that special...could you make a box effect by making a sky texture inside a box? B)
All our Lost Pirates Productions' programs

Posted Image Lost Pirates Productions Software Leader
Posted Image
0

#15 User is offline   BEEX Icon

  • Expert
  • PipPipPipPip
  • Group: Moderators
  • Posts: 1,368
  • Joined: 06-August 05

Posted 19 July 2010 - 10:56 PM

you guys make me feel smart...lol.
.
the skydome mesh doesnt follow the camera,it renders differently to give the appearence of it being infinite,the skydome origin is always at the level origin.
.
im curious if anyone has made a skydome rotate,or managed to get 2 rotating skydomes???,obviously a time of day system is not possible in bf2,it would be pretty cool for things like asteroids,large spaceships,space junk or planets that rotate over or around the level.

This post has been edited by BEEX: 19 July 2010 - 10:58 PM

Posted Image
0

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users