Solved

Shadows

Posted on 2001-09-16
5
427 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

617 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