Jump to content
The Dark Mod Forums

Faux inside/outside window views?


Bikerdude

Recommended Posts

And how do you plan to execute that? You'd have to make room for additional geometry (the plane), and even if you manage to take matching screenshots of interiors, there will be factors like open/closed doors, lights switched on or off, etc. These are called fake interiors for a reason.

Link to comment
Share on other sites

And how do you plan to execute that? You'd have to make room for additional geometry (the plane), and even if you manage to take matching screenshots of interiors, there will be factors like open/closed doors, lights switched on or off, etc. These are called fake interiors for a reason.

I still think it's a valid idea for LOD.

 

The additional geometry would be a func_portal and you'd place the cubemap texture on the associated patch.

 

Then when you get close enough the portal opens and you see the real interior.

 

As long as lighting is static, it should be fine. And, of course, you could do what HMART suggested via material parms triggered when lighting changes or doors open.

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

Then when you get close enough the portal opens and you see the real interior.

 

As long as lighting is static, it should be fine. And, of course, you could do what HMART suggested via material parms triggered when lighting changes or doors open.

The interior\exteriors will be obscured by the warp in the glass and the lead framing, so I wont have to do anything fancy like LOD. And besides going down the LOD root would require lots of extra work, that we don't really need in the small map we are working on.

 

But what is the thing Hmart is refering too..?

Link to comment
Share on other sites

I still think it's a valid idea for LOD.

 

The additional geometry would be a func_portal and you'd place the cubemap texture on the associated patch.

 

Then when you get close enough the portal opens and you see the real interior.

 

As long as lighting is static, it should be fine. And, of course, you could do what HMART suggested via material parms triggered when lighting changes or doors open.

 

That's a lot of extra work with different cubemaps and scripts. And with LOD pop-in (fade-in or fade-out range doesn't work), it doesn't look so great. Suddenly the simple and elegant idea gets more performance heavy than it's worth. You'd be better off with standard LOD setup for lights, shadows, and objects inside your building.

 

There's another trick I saw in RDR 2 recently, they got opaque windows (either reflective grey or with emissive material) fading out to transparency as you get closer to a building. If you can get that to work with LOD fade in and fade out, along with proper LODs for objects inside, that should look better and take less work than making cubemaps for each window.

Edited by Judith
Link to comment
Share on other sites

If you are going to use a custom envshot for every window and if you have enough of them, the additional materials (each of them would need its own) will probably cause a higher performance impact then if you just leave the windows translucent ;) Fake interiors are normally used to create the illusion of you beeing able to see through the window, so me thinks the default way to go would be to use generic envshots (maybe a few different ones) and mask them strong enough so the player does not get that it is fake. I think there was a video somewhere here in the forum of The Witcher 3 iirc that illustrates this effect beeing used in a city. Couldn't find it right now, though.

  • Like 1

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

....

 

But what is the thing Hmart is refering too..?

 

This, but was replying about the fake water reflection, for fake interiors is overkill, is a bunch of work to make different cubmaps for all windows and think of all the different states the rooms could be in. For a single pool of water is fine tho.

 

....

 

Btw about that wiki tut even tho I didn't tested it, I think there's a way to solve the problem referred on that wiki page, the one about the light being off on the world and not on the cube map reflection, this if you want to make that trick more dynamic but is labor intensive... first make cube maps for all light states that you can have on that room (to save work don't use many lights :P ), then make a material like so for the water:

material name
{
   
   qer_editorimage .....
   
   {
         if ( parm7 == 0 )  // default cubemap all lights on
         blend         gl_dst_alpha, gl_one
         maskalpha
        cubeMap        env/env1
        texgen        reflect
    }
    {
         if ( parm7 == 1 ) // cubemap light 1 off
         blend         gl_dst_alpha, gl_one
         maskalpha
        cubeMap        env/env2
        texgen        reflect
    }
    etc...
} 
then make a script where you set the parm7 value depending on the light being off, to turn on/off the material stages, if you (the one reading this) don't know how to script you can do the same on the editor with the "target_setshaderparm", like so, target one light at one "target_setshaderparm" entity and in it, set the desired value for the shaderParm7 key, then target that "target_setshaderparm"at the water surface entity, do this for all lights. Btw this also doesn't solve the problem of movables not being updated on the cube map, so only put static objects near the water.

 

Again i didn't tested this so if it doesn't work don't blame me. :P (but it should work...)

 

Link to comment
Share on other sites

If you are going to use a custom envshot for every window and if you have enough of them, the additional materials (each of them would need its own) will probably cause a higher performance impact then if you just leave the windows translucent ;) Fake interiors are normally used to create the illusion of you beeing able to see through the window, so me thinks the default way to go would be to use generic envshots (maybe a few different ones) and mask them strong enough so the player does not get that it is fake. I think there was a video somewhere here in the forum of The Witcher 3 iirc that illustrates this effect beeing used in a city. Couldn't find it right now, though.

Found it: http://forums.thedarkmod.com/topic/18442-thief-inspired-witcher-3/?hl=witcher

(The vid in the op).

 

Just take a look at the windows, especially the close-ups. The approach is pretty noticeable there. A generic cubemap, some blurring and maybe some additional effects (coloring etc...). Different cubemaps used for different types/sizes of windows, but if you investigate closely you see the repetition. The same approach was used in Thief 4 and is pretty surely used in almost all modern AAA games.

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
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.

  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 6 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...