Skyboxes

BalmarkBalmark Join Date: 2002-11-01 Member: 3476Members, Constellation, Reinforced - Silver, Reinforced - Shadow, WC 2013 - Shadow
edited September 2013 in Mapping
Just a quickie .. not sure if anyone care too much about this sorta stuff .. but I've been tinkering about with making skyboxes .. started with me messing about making a combat map and found unless I put a bit of effort into it, I'd have to rip off an existing skybox or just have no windows : P

My aim is to just keep adding to an 'mod' .. FFASkyboxes.. atm there's only 1 skybox there .. my first, but I plan to get better ; )
So if anyones making a map, load it up and take whatever skybox you want .. copy them to your map

I think they'll be 1024 res .. and they're gonna be simple starting off .. first is just purple sky, 3 suns (one big dim) .. bitta water and a bitta rock : P

Hoping to prompt more glass in maps .. I've been feeling a bit claustrophobic with maps that are basically big coffins ;) ... stick a glass ceiling on half your map .. have glass tunnels, corridors, walls ; )

Don't be too harsh on the first skybox, as I said, its just my first

Comments

  • SamusDroidSamusDroid Colorado Join Date: 2013-05-13 Member: 185219Members, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Gold, Subnautica Playtester, NS2 Community Developer, Pistachionauts
    Nice! Looks better than some game's skyboxes.
    Dem smilies ;)
  • AurOn2AurOn2 COOKIES! FREEDOM, AND BISCUITS! Australia Join Date: 2012-01-13 Member: 140224Members, Forum Moderators, NS2 Playtester, Forum staff
    Couldnt read post, too busy glaring at smilies..:(
    Looks awesome though!
  • VetinariVetinari Join Date: 2013-07-23 Member: 186325Members, Squad Five Blue, Reinforced - Shadow, WC 2013 - Silver
    Looks good!
    How do you create skyboxes?
  • [AwE]Sentinel[AwE]Sentinel Join Date: 2012-06-05 Member: 152949Members
    Nice idea, I was making one my own, but I kinda lack the edge. Is there a hint on how you make the sky fit to the other sides? I can see the transition on the edges. But making the rims with the same color so that they match is easy to spot as well.
    Maybe you should add the link of the mod to your signature, that is a good advertisement and offers easy access, just an idea.

    @F0rd This is quite helpful, I made one following the steps. Now I only have to get better with digital painting: forums.unknownworlds.com/discussion/112417/creating-a-custom-skybox

    The only thing I made different is that my material file looks like this:
    shader = "shaders/SkyBox.surface_shader"
    emissiveMap = "materials/skybox/sky_mapname_down.dds"

    A question on that matter: Does a skybox texture has to be 1024x1024 or can you use higher resolutions? If I make a normal texture, they should have specific resolutions, but I found out that other resolutions are working as well. You might have problems if you want to use the standard editor scales for moving your texture, but the game ain't crashing. My skybox looks kinda 8bit ;) But making it with high resolutions might lead to performance loss?

    I hope ns2 will get a pool of custom textures, skyboxes, cinematics etc. That can be accessed. Something like, if you aggree that other members of the community use them, add them to this place kinda thing. Let's hope that mapping and modding will flourish once ns2 stops to get new builds and focus on the tools n stuff.
  • VetinariVetinari Join Date: 2013-07-23 Member: 186325Members, Squad Five Blue, Reinforced - Shadow, WC 2013 - Silver
    @[AwE]Sentinel thank you! ill check that link out when im at my pc.
  • BalmarkBalmark Join Date: 2002-11-01 Member: 3476Members, Constellation, Reinforced - Silver, Reinforced - Shadow, WC 2013 - Shadow
    hah .. re: smilies .. I'll cut them down a little in this thread, but check any of my other posts .. there's a 1 smilie for every 10 word minimum ; )

    I'm not sure why 1024 .. really why I picked 1024 was just a tutorial from @Tig http://forums.unknownworlds.com/discussion/112417/creating-a-custom-skybox .. but then after rendering a few .. my machine isn't great .. takes me about 2 hours to render 1 of the 6 sides of a skybox at 1024 .. wouldnt go higher unless it was an awesome scene and I didnt want to play NS2 for a week ;) heh

    F0rdPrefect, Terragen has a nice community skybox renderer tool and like 30 day evaluations and a free use with limitations ;) you can basically create a fantastic scene (terragen really is amazing) and the generated 3d scene can be pumped into a skybox gen tool to create 6 images.. (takes about 10 hours ugh) .. rotate the images as needed, pump the saved images through nvidias nvdxt.exe tool to create the dds' , create the .material files, load it up in the cinematic editor and add a skybox and attach your up/down/left/right/back/fronts ;)

  • BalmarkBalmark Join Date: 2002-11-01 Member: 3476Members, Constellation, Reinforced - Silver, Reinforced - Shadow, WC 2013 - Shadow
    Added a bright 'clean' icy mountain .. earth looking only 1 sun etc ;) .. not sure if camera is a bit too low for a map?

  • VetinariVetinari Join Date: 2013-07-23 Member: 186325Members, Squad Five Blue, Reinforced - Shadow, WC 2013 - Silver
    @Balmark Terragen looks pretty awesome. Thanks for the tip!
    Just have to figure out how to use it, and how to not crash it within minutes :D
  • VetinariVetinari Join Date: 2013-07-23 Member: 186325Members, Squad Five Blue, Reinforced - Shadow, WC 2013 - Silver
    I can't seem to get this nvidia plugin running... Is it working on AMD graphics cards as well? And if not, do those files have to be created by this special plugin or is anything fine, as long as it's a .dds?

    And btw, what is your approach to get a 360° render out of terragen?
  • [AwE]Sentinel[AwE]Sentinel Join Date: 2012-06-05 Member: 152949Members
    I am using Gimp 2.8 and added a dds and a normalmap plugin. Works fine. I have seen better normal maps in commercial programs, but that was the best free solution I could find (I am new to custom textures/dds/normal maps so there might be actually a better solution :D ).
  • VetinariVetinari Join Date: 2013-07-23 Member: 186325Members, Squad Five Blue, Reinforced - Shadow, WC 2013 - Silver
    edited September 2013
    What do you use the normalmap plugin for?


    Terragen's free version doesn't allow pictures broader than 900 :\
  • [AwE]Sentinel[AwE]Sentinel Join Date: 2012-06-05 Member: 152949Members
    You don't need it for Skyboxes, but you will need a normalmap for custom textures. Gimp and the 2 plugins are enough for a start, so I just added the info for the sake of completeness.
  • VetinariVetinari Join Date: 2013-07-23 Member: 186325Members, Squad Five Blue, Reinforced - Shadow, WC 2013 - Silver
  • BalmarkBalmark Join Date: 2002-11-01 Member: 3476Members, Constellation, Reinforced - Silver, Reinforced - Shadow, WC 2013 - Shadow
    yeah, I'd same plugin for gimp .. but wanted something I could use with command prompt .. so could make a build batch file

    https://developer.nvidia.com/sites/default/files/akamai/tools/files/DDS_Utilities_8.31.1127.1645.exe

    I think has the nvdxt.exe that can convert most file formats to .dds

    Can use something like
    call %NVDXT% -file temp\%EXTENSION% -outdir %OUTPUT_FOLDER% -nomipmap -24 dxt5

    I was using IrfanView to rotate images from the command prompt (the terragen skybox plugin doesnt get the rotations right for NS2)

    and a simple echo command to create the material files
    FOR %%f in (*.dds) do (
    echo %%~nf
    echo filename = %%~nf.material
    echo shader = "shaders/SkyBox.surface_shader" > %%~nf.material
    echo emissiveMap = "%LEADING%\%%~nf.dds" >> %%~nf.material
    )

    my problem is my pc is too slow .. current render is going for ~24hours and still about 30% left to go at a guess
    trying to get something decent for loki .. although I think it's not dark enough and probably needs a stary night instead of what's there ;)


  • VetinariVetinari Join Date: 2013-07-23 Member: 186325Members, Squad Five Blue, Reinforced - Shadow, WC 2013 - Silver
    edited September 2013
    I used the gimp plugin to create the .dds files, and I created .material files for them; they look exactly like the existing .material files for the other skyboxes (except for the path, ofc). But I can't assign the material files to a skybox in the cinematic editor - when I do, the editor stays black; If I save it nonetheless and load it into the spark editor, I get the usual turquoise pattern which indicates that it couldn't find the textures.

    @Balmark what are your system specs?

    edit: Assigning "proper" material files (from biodome) didn't work, either, whereas when I load the existing skybox.cinematic from biodome the files are displayed correctly.
    After assigning the materials, is there another step to do before saving?
  • BalmarkBalmark Join Date: 2002-11-01 Member: 3476Members, Constellation, Reinforced - Silver, Reinforced - Shadow, WC 2013 - Shadow
    edited September 2013
    Terragen creates 360 scenery by default .. all you're looking at are camera views of your scenery .. render an image and you;'re rendering it based on the camera .. but the 360 scene is there

    http://www.planetside.co.uk/forums/index.php/topic,14026.0.html is an .exe that creates 6 images based on your saved scene
  • VetinariVetinari Join Date: 2013-07-23 Member: 186325Members, Squad Five Blue, Reinforced - Shadow, WC 2013 - Silver
    edited September 2013
    Balmark wrote: »
    Terragen creates 360 scenery by default .. all you're looking at are camera views of your scenery .. render an image and you;'re rendering it based on the camera .. but the 360 scene is there

    http://www.planetside.co.uk/forums/index.php/topic,14026.0.html is an .exe that creates 6 images based on your saved scene

    I rendered 6 images manuall, with a FOV of 90 each, rotated by 90°...
    Let's see how it works out.

    What are your system specs? If your's are a lot worse than mine, maybe I can render it for you.

    ---

    I still have the problem in the cinematic editor: Assigning the materials to the skybox and reopening the document gives me the broken default textures...

    edit: Ok, seems to be a problem with the .dds files. Looks like I will have to get that photoshop plugin running, anyway -.-

    edit2: Migrated CS2 to my primary drive. Still can't get the nvidia plugin running.

    edit3: I got it working with paint.NET. Turns out it natively supports .dds! Who would've thought that?
  • VetinariVetinari Join Date: 2013-07-23 Member: 186325Members, Squad Five Blue, Reinforced - Shadow, WC 2013 - Silver
Sign In or Register to comment.