Advertisement
Java_Volume1 DirectX #86929

Advanced 2d Shadowing

I was looking all over the net and couldn't find anything on how to create real-time 2d shadows from a single texture, so I made this. What it does is creates a shadow (without real lighting of corse =P) behind the character surface by editing the verticies a bit to angle it so it looks more shadow-ish, then changes the RGB value to 0 (black) and puts on an alpha value to blend it in with the ground, so your shadow doesn't hide stuff from you =) It is all real time and can be put into any DirectX 8 (DX8) project (dont know how it would work in DirectX8 3d though). It creates the shadow with very nice speed, probably just a milisecond longer than it takes to draw the character normally. Again, I couldn't find any other source code that does something like this, so please vote =) You can also check out DXRE (which is here) or Mercenary (http://mindless.sytes.net) to see it in action! =D

AI

Yapay Zeka Özeti: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Kaynak Kod
original-source
Upload
Orijinal Yorumlar (3)
Wayback Machine'den kurtarıldı