View Full Version : Casting shadows from wireframe object
PJDIXIT
06-02-2009, 12:25 PM
Hi,
Is there anyway to cast shadows from wireframe entities (such as glutWireSphere or simply GL_LINES )on a non planer objects?
I am sure there must few smart guys out there who have already figured it out. Thanks in advance!!
-Prasad
ZbuffeR
06-02-2009, 01:04 PM
Pretty sure it works out of the box with shadowmap.
PJDIXIT
06-02-2009, 01:15 PM
cool..thanx ZbuffeR!! Do have any example code or can u please direct me to more elaborate articles on it?
Best,
-Prasad
remdul
06-02-2009, 02:15 PM
If self-shadowing is not an issue, I suggest you render this to multi-sampled FBO, or more efficiently, to a normal 8-bit texture/FBO with line anti-aliasing.
PJDIXIT
06-03-2009, 07:11 AM
Actually self shadowing is one of the most important aspect of it :p
I am using shadow volume technique to cast shadows from polygons. Now I also want line entities in my model to cast shadows.
It seems like a very basic problem. there has to be something to deal with it.
-Prasad
_NK47
06-03-2009, 09:05 AM
just switching to wireframe mode and rendering shadow volumes won't work i afraid. if a line would consist of two triangles you could extrude them like you do with shadow volumes. basically a quad of two triangles forming a line is then a shadow volume mesh. seems like this is a horrible approach, shadowmaps are way better here.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.