Jump to content
The Dark Mod Forums
Sign in to follow this  
jaredmitchell

Skybox Trees?

Recommended Posts

Hey there, guys.

 

I'm currently trying to finish up my map, and the last thing I need to do is decorate my 3D skybox to look like a convincing forest. Since I had prior experience using these in the Hammer editor, I didn't think that what was available to use for this feature would be radically different in Radiant.

 

The biggest issue I'm running into right now is a lack of models that are intended for use in the 3D skybox, trees being the most pressing need. I just wanted to double-check: are there any models made for this purpose that I'm not seeing in the directory? And if not, has anyone else found a good solution for this problem? I'm currently using patches to make miniature trees, but they look almost exactly like something a kindergartener would draw.

 

Thank you very much!

  • Like 1

Share this post


Link to post
Share on other sites

You could try normal tree models, and scale them down by 16 using this spawnarg on each of them:

 

"rotation" "0.0625 0 0 0 0.0625 0 0 0 0.0625"

 

Once you've done that, you can use the normal DR rotation tools to vary the look.

 

If you have lights in your skybox, you might want to turn off shadows ("noshadows" "1") on each tree.

  • Like 1

Share this post


Link to post
Share on other sites

Oh, you can scale models? Feel like I should've found that out by now.

 

And yes, I agree about using "noshadows". Thanks for the reminder, especially since I have a rotating light for a lighthouse at the other end.

 

Thank you very much!

Share this post


Link to post
Share on other sites

A few remarks on the subject of forest skyboxes:

 

Try what it looks like when there's no ambient light reaching the skybox, you'll get black silhouettes of the trees against the background of the sky. I found that to be much more immersive.

 

You can fill any gaps between trees with easily self-made bushels as per Sotha's Outdoors Recipe.

 

Performance is a factor with this kind of skybox, so it'd be worth trying out the envshot command to turn the complete assembly of forest models into a texture. But I'd only suggest attempting this if you're already comfortable with setting up custom textures in TDM.

 

Otherwise, while downscaling with the rotation spawnarg is viable, it comes with the performance downside that you can't use SEED to merge identical models - SEED would really pay off in a forest skybox. Ideally you'd downscale via a modelling program.(Also note that the rotation hack breaks the collisionmesh and shadowmesh: you can get around this by creating brushes textured with nodrawsolid and shadow as a replacement, if either is needed).

 

Thanks for the reminder, especially since I have a rotating light for a lighthouse at the other end.

Interesting, does your mission have a maritime theme then?

  • Like 2

Share this post


Link to post
Share on other sites

Lots of good advice, Dragofer, thank you. That forum post you linked does seem helpful, especially because I found out a method I used to merge levels and 3D skyboxes in Hammer won't work with idTech's skybox camera.

 

Because of the lighthouse, though, a lot of it isn't really applicable, I'm afraid. I've got a rotating light in the skybox, so the player would be able to tell if it was all just a texture. I'm using noshadows on all of these models, as well, so fortunately I don't need to worry about the shadowmesh issue.

 

In terms of performance I actually seem to be doing just as well as before, maybe an average of 2-3 fps lower? I've had the skybox implemented for a while now with a rough terrain patch, so maybe that's why.

 

 

Interesting, does your mission have a maritime theme then?

 

Yes, kinda. The level takes place in a coastal manor that used to be a Hammer church. With the mountainous terrain and pine trees, it's starting to feel really Scandinavian, which I am more than fine with!

  • Like 3

Share this post


Link to post
Share on other sites

Some of the pine trees use particle leaves, so for the more distant trees you might be able to get away with just placing loads of func_emitters.


Some things I'm repeatedly thinking about...

 

- louder scream when you're dying

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...