Solved

Shadows

Posted on 2001-09-16
5
422 Views
Last Modified: 2013-12-26
How to produce shadows when using sprites. A detail answer is required.Platform is directx 8.0.
0
Comment
Question by:Sumia
  • 2
  • 2
5 Comments
 
LVL 4

Expert Comment

by:ct.smith
ID: 6485992
This is a far too open question to give a detailed answer, so I'll just make some general points:

- when using sprites, shadows can be placed in the sprite artwork and as seperate sprites.

- since DX8 finally dropped an exclusive 2D mode, feel free to just place appropriately shaped and coloured polygons in your scene to be your shadows.

- your typical graphics book will likely have a section on shadows, it's probably a good idea to start perusing whatever literature is available.

- you may want to talk to a sprite artist to see what techniques they use. We programmers don't always have the answers, we only have them most of the time :)
0
 
LVL 2

Accepted Solution

by:
smitty1276 earned 100 total points
ID: 6491634
If your using 2D sprites YOU MUST include the shadows in the sprites.  If it were 3d you could do some matrix crunching.  With 2D graphics, however, you will have to have what basically amounts to a lightmap... a greyscale image with the shadow on it which will be blended with the surrounding images to generate the appearance of a shadow... or a shadow included in the sprite itself.
0
 

Author Comment

by:Sumia
ID: 6500231
And what about 3d sprites?
0
 
LVL 4

Expert Comment

by:ct.smith
ID: 6501022
As far as I know, there's no such thing as 3D sprites.  The term 'sprite' refers to a 2D image.  You'll need to clarify that last question.
0
 
LVL 2

Expert Comment

by:smitty1276
ID: 6503101
I'm sorry... I definately worded my response poorly.  Sprites are, by definition, 2D.  I meant that if your "characters" (or whatever you're using sprites for) were 3D you could mathematically generate shadows.  With 2D sprites you cannot do that unless you do as I said in my previous post.


0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question