Jump to content
The Dark Mod Forums

Stained glass?


Tobias

Recommended Posts

Those shots don't really show the color on the floor though. Heck I remember a Q1 mod that did that

 

Coloured, projected lights are easy to do, it's just that no one has used one in a map yet (perhaps because we don't have good stained glass textures).

Link to comment
Share on other sites

Coloured, projected lights are easy to do, it's just that no one has used one in a map yet (perhaps because we don't have good stained glass textures).

 

The problem with that is that you need to have a good texture for the stained glass window and a light texture. I was working on that with my glass stuff, but I couldn't seem to fit a church window into my old mill, so I left it at that :)

 

(The reason why you need a projected light texture is that D3 does not have translucent objects cast shadow or colored shadows at all - so you need to use a fake projected light for it. This is easy for "single" color windows, as you can combine a black/grey/white light texture and some color, but for a stained glass window you need a new texture)

 

Anyway, check out the second room in maps/test/glass.map (after svn update!) and tell me what you think :)

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

Anyway, check out the second room in maps/test/glass.map (after svn update!) and tell me what you think

 

This is public thread, and I doubt sxotty has access to SVN. Perhaps a screenshot would be more helpful.

Link to comment
Share on other sites

This is public thread, and I doubt sxotty has access to SVN. Perhaps a screenshot would be more helpful.

 

Sorry. Here you go:

 

post-144-1195154347_thumb.jpg

 

Note: The colors (and the shape, of course) of each glass element can be set in the editor. The glass is translucent, too. (You don't see that as the wall behind the window is uniform black :)

 

Only downside is that the glass does not cast a colored shadow.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

Only downside is that the glass does not cast a colored shadow.

 

That's something you could hack in pretty easily, though, isn't it?

I mean like using invisible colored spotlights in front of it, hitting the ground to give the illusion of colored backlighting (can lighting have a texture when it hits a surface?).

 

In dromed, some people just put a translucent texture on the ground in front of it, and that looked pretty good ... it just wouldn't cast a shadow if you walked over it like spotlights. But if you didn't care about the shadows, you could do it.

Edited by demagogue

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

Link to comment
Share on other sites

hat's something you could hack in pretty easily, though, isn't it?

I mean like using invisible colored spotlights in front of it, hitting the ground to give the illusion of colored backlighting.

 

Exactly.

Link to comment
Share on other sites

It would just be a single light. You can create your own light shaders, which are essentially textures that tell the light what colour/shape to be.

Link to comment
Share on other sites

Here is how that would look in game:

 

post-144-1195168428_thumb.jpg

 

Please excuse the crappy example texture and the slightly misalignment :blush:

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

Yeah, for crappy (and funny) example :laugh:, that gives us a great idea of the cool potential for this right away. Excellent.

Edited by demagogue

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

Link to comment
Share on other sites

 

Do you know whether it's possible to have the imaginary lightsource (e.g. the sun) not lighting straight into the window but from a different horizontal degree? This always bothered me in T3ED. It didn't seem to be possible. (And it always sucked to know, that your projected lighttextures are unrealistic) I made a quick sketch to illustrate what I mean here... :)

post-684-1195213795_thumb.jpg

Link to comment
Share on other sites

IMO it should be able to project anywhere. You can specify where the light should fall. And yes, it is projected onto all surfaces, including AI and other objects.

 

Yes, thats true. But in praxis, it is quite hard to get the projected light "right", e.g.:

 

Imagine you have a light shining through the window, so you get a bright rectangle. Now you replace the window with some colored glass, and setup a fake light that matches the original light. Since you have to setup the fake light manually, it is really hard to set it up so it ends the same - you notice in my example, that the fake light isn't properly aligned and projects where it should.

 

It would be cool if you could just draw a rectangle on the floor and tell the editor to create a light that covers exactly this area...

 

However, in some case this is even good, as you can fake stuff - f.i. I have a moon light that "looks" correct, but actually shines from the wrong way on the floor - but the projection makes it looking correct. If the player can't spot the difference, well, there isn't anyone :)

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

It"s not hard to do this in Doom. Essentially you can use a texture and then paint it black and white, which will be the projection. I don't know if you can use colours as well, but apparently you can if Tels used this method.

 

Yep, that's how it is done. Creates really nice efffects, if you don't overdo it :)

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

but actually shines from the wrong way on the floor - but the projection makes it looking correct. If the player can't spot the difference, well, there isn't any

 

Unless he or an AI walks over it, the shadow would face the wrong direction.

But even that probably won't be too noticeable.

Edited by demagogue

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

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.
      · 7 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...