Jump to content


Photo

TDM Engine Wishlist

engine

  • Please log in to reply
29 replies to this topic

#26 HMart

HMart

    Advanced Member

  • Member
  • PipPipPip
  • 708 posts

Posted 26 August 2018 - 02:16 PM

2.07 has shadow maps but do we have a single transparent shadow casting entity to make use of it?

 

Imo you have plenty, they just don't cast shadows now or they are faked with projectors. Any texture with alpha will be a potential "transparent" shadow casting entity, for example trees canopies will be able to cast shadows on the floor, small bushes/plants has well, a grate texture in a flat plane will be able to cast shadows now with no need to use fake projectors or real geometry, etc.   


Edited by HMart, 26 August 2018 - 02:17 PM.


#27 duzenko

duzenko

    Advanced Member

  • Active Developer
  • PipPipPip
  • 1630 posts

Posted 26 August 2018 - 04:45 PM

 

Imo you have plenty, they just don't cast shadows now or they are faked with projectors. Any texture with alpha will be a potential "transparent" shadow casting entity, for example trees canopies will be able to cast shadows on the floor, small bushes/plants has well, a grate texture in a flat plane will be able to cast shadows now with no need to use fake projectors or real geometry, etc.   

Potentially yes, but currently?



#28 HMart

HMart

    Advanced Member

  • Member
  • PipPipPip
  • 708 posts

Posted 26 August 2018 - 05:23 PM

Potentially yes, but currently?

 
Currently, using stencil shadows the only way for textures with transparent parts (alpha), to "cast" shadows, is to use shadow/light projectors, for that you need to create a extra texture that is meant to simulate the shadow that will be, projected, that is how those small rotating fans are made in Doom 3 for example, with shadow maps, you remove this extra steep, the shadow is automatically created for you, for everything.
 
Here is a example in fhdoom:
 
with stencil shadows 
 

https://github.com/e...ff.jpg?raw=true

 

With shadow maps

 

https://github.com/e...on.jpg?raw=true


Edited by HMart, 26 August 2018 - 05:24 PM.

  • Abusimplea likes this

#29 RPGista

RPGista

    Advanced Member

  • Member
  • PipPipPip
  • 1590 posts

Posted 02 September 2018 - 08:33 AM

When I wrote my color grading shader the reference material I was using called for using 3D textures. I found code in TDM's source to support loading such images but no corresponding material keyword to invoke it. Having that keyword would have saved me a ton of time.


Would be fantastic to have your color grading program absorbed into the game somehow, and be something the player can choose in the settings to add flavour to their game (and mappers would be able to choose different ones as defaults for their missions).

In case someone didnt get to see the thread:

http://forums.thedar...er/#entry408635

#30 Judith

Judith

    Advanced Member

  • Member
  • PipPipPip
  • 1597 posts

Posted 03 September 2018 - 09:45 AM

One thing that is probably being worked on already: the use of gradient textures, in both surface and light materials. Right now looks like as if TDM uses 16-bit images instead of 32-bit, and the usual methods of masking texture banding (like using noise) simply don't work.







Also tagged with one or more of these keywords: engine

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users