Jump to content
The Dark Mod Forums

Recommended Posts

Posted
I haven't tried this, but can't you position the skybox camera based on the player's elevation, via scripting?

 

Or maybe hide/show the appropriate camera from several cameras, again using scripting?

 

That wouldn't make any difference. The whole "magic" of the skybox is that its contents always appear at the same distance from the player no matter how close or far away the actual texture skin is. And I don't think the art itself works like a camera-ed image, but just a stock animation it plays directly on the screen. To get the effect you're thinking about, I think the sky-art would have to be animated with a scripted zoom-out and zoom-in animation that plays relative to the player's elevation. That's just thinking hypothetically; not sure it's possible (but you never know).

 

Edit: No it's even more complicated than that because it's already animated with the waves when not moving... So it'd have to switch out animations between zooming w/waves and static w/waves.

 

Edit2: Or do I not understand how skyboxes work? Never read up on them actually; I just assumed that's how they worked. But D3 does have this funny business about pulling in a literal art-box into the world, so maybe it does work from a literal camera inside that box?

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Posted (edited)

That wouldn't make any difference. The whole "magic" of the skybox is that its contents always appear at the same distance from the player no matter how close or far away the actual texture skin is. And I don't think the art itself works like a camera-ed image, but just a stock animation it plays directly on the screen. To get the effect you're thinking about, I think the sky-art would have to be animated with a scripted zoom-out and zoom-in animation that plays relative to the player's elevation. That's just thinking hypothetically; not sure it's possible (but you never know).

 

Edit: No it's even more complicated than that because it's already animated with the waves when not moving... So it'd have to switch out animations between zooming w/waves and static w/waves.

 

Edit2: Or do I not understand how skyboxes work? Never read up on them actually; I just assumed that's how they worked. But D3 does have this funny business about pulling in a literal art-box into the world, so maybe it does work from a literal camera inside that box?

 

Regarding the wave animation, this assumption is incorrect. There is no animation inside of my skybox. I'm happy that nobody has guessed the true nature yet of the SS's (or never mentioned it anyway). This whole skybox and waves setup was my way of dealing with the complicated problem of merging a water box all the way to the horizon with a skybox when the player moves up (at least) 2500 feet in the air (before the first distance based portal close). Basically it was impossible without some special help.

 

So, in fact, the "waves" on the shore is simply a func_bobbing entity that is actually textured with portal_sky, not water!!! this is not water reflecting a skybox. This is..... just a skybox. As of yet, there is no actual water in my FM (lmao). That portal_sky wall is like literally 5 feet away from the "shoreline". So theres no animation inside the skybox. But I don't see why you couldn't do it.

 

I'm not exactly well-versed in skybox lore myself even after having heavily modified one. My "guess" is that the origin of the entity "info_portalsky" inside the box is the position of a camera that angles itself based upon the angle of the players camera, except that it views the contents of the skybox instead of the players view. Whether it is possible or not to actively move that entity dynamically in the game.... no idea. Might be possible.

Edited by ungoliant
Posted

I don't know if you can move the position of the skybox camera, but yes, the camera in the skybox is the point of view you get, so if you can move that camera up to a higher position before you see out the higher ledge, you'll get the effect you want

shadowdark50.gif keep50.gif
Posted

I know and that is exactly the problem I see. When you stand on the beach, the waves look ok size-wise, but when you're higher they will probably look too big compared to the perceived distance of sight. But well, it's not really a big deal! :-)

 

woops forgot to address this concern. Heres the deal. Later in the mission (roughly straight up) the beach where you started (roughly straight below) is going to be covered in particle fog and closed portals. What will be left is ocean that you can see further out to sea (via portal_sky). The distance to any given point way out there from either the beach, or from 2500 units above the beach, is going to be ~= the same, to the point that the human eye would not be able to distinguish the difference. Anyway, the important thing to realize is that the only parts later in the mission you will actually see in the skybox would look really far away, and the same spot from the beach at the beginning of the mission will look really far away. The beach itself will not be visible later in the mission.

Posted

you can move the position of the skycamera the script is on one of the doom 3 forums, tried the script out on something but have since deleted the script as it gave odd results. problems with it not accurately moving the skycamera as the skybox is at scale 1/16 so decimally its 0.0625 but the script was accurate to 2 decimal places.

Posted

Bikerdude: where did you get that transparent chainlink texture in your second shot? Is it a Doom3 asset?

Come the time of peril, did the ground gape, and did the dead rest unquiet 'gainst us. Our bands of iron and hammers of stone prevailed not, and some did doubt the Builder's plan. But the seals held strong, and the few did triumph, and the doubters were lain into the foundations of the new sanctum. -- Collected letters of the Smith-in-Exile, Civitas Approved

Posted (edited)
I just had to make a giant monster!

Classic

where did you get that transparent chainlink texture in your second shot? Is it a Doom3 asset?

Its a std TDm object -

 

models/darkmod/lights/extinguishable/chandelier_6candles_longchain.lwo

Edited by Bikerdude

bhm_banner.jpg

Posted

No, I mean the semi-transparent fence-like texture that covers the gaps of the dome. :)

Come the time of peril, did the ground gape, and did the dead rest unquiet 'gainst us. Our bands of iron and hammers of stone prevailed not, and some did doubt the Builder's plan. But the seals held strong, and the few did triumph, and the doubters were lain into the foundations of the new sanctum. -- Collected letters of the Smith-in-Exile, Civitas Approved

Posted (edited)
No, I mean the semi-transparent fence-like texture that covers the gaps of the dome.

Ah that's a new transparent windows texture in 1.02, it dosent seal though -

 

textures/darkmod/window/roundtop_diamond_pattern01_transparent

Edited by Bikerdude

bhm_banner.jpg

Posted

Thank you! This will come in handy in a later area.

Come the time of peril, did the ground gape, and did the dead rest unquiet 'gainst us. Our bands of iron and hammers of stone prevailed not, and some did doubt the Builder's plan. But the seals held strong, and the few did triumph, and the doubters were lain into the foundations of the new sanctum. -- Collected letters of the Smith-in-Exile, Civitas Approved

Posted

I'm so happy I finally got that skybox rendered and working properly in game.

 

Here's a shot with the lighthouse from the waterfall:

http://sites.google.com/site/shadow516/shot00018.png?attredirects=0

 

And here's the same view from inside the courtyard:

http://sites.google.com/site/shadow516/shot00021.png?attredirects=0

 

And a final shot showing off a custom window shader:

http://sites.google.com/site/shadow516/shot00022.png?attredirects=0

 

With that, I can finally go to bed! laugh.gif

Posted

the thirsd show looks awesome, how/what did you make that fountain with..?

 

The fountain is just patches and a cylinder. The FPS does need a ton of work though. wacko.gif

Posted

The fountain is just patches and a cylinder. The FPS does need a ton of work though. wacko.gif

 

Yeah that fountain is very nice, but you have too many shadow casting lights in there, I can't even count how many there are. Try reducing some.

I always assumed I'd taste like boot leather.

 

Posted (edited)

Yeah that fountain is very nice, but you have too many shadow casting lights in there, I can't even count how many there are. Try reducing some.

 

There are 3 in that shot - 2 floodlights and the moon (also, the lighthouse has one, but it doesn't ever intersect with the floodlights - I think.

 

I'm going to make the statue not cast shadows, as well.

Edited by killhour
Posted

Just enable some fixed tessellation using the patch inspector tool (shift S). Find that nice sweet spot where it fits in more with your geometry and doesnt look uber smooth and "oh that's a patch" (usually around 5/6 for rounded stuff, in one direction). should increase FPS and make the scenes look more TDM-like.

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.


  • Recent Status Updates

    • JackFarmer

      "The Year of the Rat." 
      😄

      Al Stewart must be proud of you!
      Happy testing!
      @MirceaKitsune
      · 1 reply
    • datiswous

      I posted about it before, but I think the default tdm logo video looks outdated. For a (i.m.o.) better looking version, you can download the pk4 attached to this post and plonk it in your tdm root folder. Every mission that starts with the tdm logo then starts with the better looking one. Try for example mission COS1 Pearls and Swine.
      tdm_logo_video.pk4
      · 2 replies
    • JackFarmer

      Kill the bots! (see the "Who is online" bar)
      · 3 replies
    • STiFU

      I finished DOOM - The Dark Ages the other day. It is a decent shooter, but not as great as its predecessors, especially because of the soundtrack.
      · 5 replies
    • JackFarmer

      What do you know about a 40 degree day?
      @demagogue
      · 4 replies
×
×
  • Create New...