Shadow Volume Question (VB.NET 2005, Direct3D)
Shadow Volume Question (VB.NET 2005, Direct3D)
Shadow Volume Question (VB.NET 2005, Direct3D)
Shadow Volume Question (VB.NET 2005, Direct3D)
Shadow Volume Question (VB.NET 2005, Direct3D)
Shadow Volume Question (VB.NET 2005, Direct3D) Shadow Volume Question (VB.NET 2005, Direct3D) Shadow Volume Question (VB.NET 2005, Direct3D) Shadow Volume Question (VB.NET 2005, Direct3D) Shadow Volume Question (VB.NET 2005, Direct3D) Shadow Volume Question (VB.NET 2005, Direct3D) Shadow Volume Question (VB.NET 2005, Direct3D) Shadow Volume Question (VB.NET 2005, Direct3D)
Shadow Volume Question (VB.NET 2005, Direct3D) Shadow Volume Question (VB.NET 2005, Direct3D)
Shadow Volume Question (VB.NET 2005, Direct3D)
Go Back  Xtreme Visual Basic Talk > > > > Shadow Volume Question (VB.NET 2005, Direct3D)


Reply
 
Thread Tools Display Modes
  #1  
Old 03-06-2009, 07:09 AM
Zosimas Zosimas is offline
Newcomer
 
Join Date: May 2007
Posts: 3
Default Shadow Volume Question (VB.NET 2005, Direct3D)


Hi! I made a test Direct3d project with VB.NET 2005
trying to see how shadow volume works.
When I render the scene without shadows I get this nice
result: PictureA (Attachment)
I'm using a material for the teapot with this ambient color:
Material.Ambient.Color(255, 127, 127, 127) to get the result of
a global lighting.
When I render the scene with shadows I get this strange
result: PictureB (Attachment)
The shadow result is nice as I expected, but it also renders
an annoying Sharpe shading at the back of the teapot! How can I avoid
the rendering of this shading?
The source code is attached. Thank you!
Attached Images
File Type: jpg PictureA.JPG (125.3 KB, 20 views)
File Type: jpg PictureB.JPG (126.6 KB, 25 views)
Attached Files
File Type: zip D3D_Shading_Shadows.zip (1.30 MB, 30 views)
Reply With Quote
  #2  
Old 03-20-2009, 01:16 PM
Leade's Avatar
Leade Leade is offline
Junior Contributor
 
Join Date: Jul 2005
Location: Wherever i fall over
Posts: 222
Default

You have to enable dithering

//Dithering
Dx9Device3D.RenderState.DitherEnable = True;


Tell me how easy is it to enable Volume shadows, right now i'm using shadow matrix. as i've never bothered with shadow volume.
__________________
Fact: The best ideas come when your smashed of your face. So drink beer and be merry!!!
Reply With Quote
  #3  
Old 03-22-2009, 07:44 AM
Leade's Avatar
Leade Leade is offline
Junior Contributor
 
Join Date: Jul 2005
Location: Wherever i fall over
Posts: 222
Default

After looking through the code, i've decided not to go along with shadow volumes, as it will be too slow and computationally expensize. The code counts through each vertex when drawing to create a silohette, unless there is a better way of doing it i'll stick to the shadow matrix for now. which only needs to count throught the subsets of the mesh or you can just specify zero and it will just use the whole mesh.

Such a shame cos shadow volumes looks awesome.
Attached Images
File Type: jpg ROBOT1.jpg (15.8 KB, 9 views)
File Type: jpg ROBOT2.jpg (20.9 KB, 9 views)
__________________
Fact: The best ideas come when your smashed of your face. So drink beer and be merry!!!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Shadow Volume Question (VB.NET 2005, Direct3D)
Shadow Volume Question (VB.NET 2005, Direct3D)
Shadow Volume Question (VB.NET 2005, Direct3D) Shadow Volume Question (VB.NET 2005, Direct3D)
Shadow Volume Question (VB.NET 2005, Direct3D)
Shadow Volume Question (VB.NET 2005, Direct3D)
Shadow Volume Question (VB.NET 2005, Direct3D) Shadow Volume Question (VB.NET 2005, Direct3D) Shadow Volume Question (VB.NET 2005, Direct3D) Shadow Volume Question (VB.NET 2005, Direct3D) Shadow Volume Question (VB.NET 2005, Direct3D) Shadow Volume Question (VB.NET 2005, Direct3D) Shadow Volume Question (VB.NET 2005, Direct3D)
Shadow Volume Question (VB.NET 2005, Direct3D)
Shadow Volume Question (VB.NET 2005, Direct3D)
 
Shadow Volume Question (VB.NET 2005, Direct3D)
Shadow Volume Question (VB.NET 2005, Direct3D)
 
-->