1 registered members (TipmyPip),
18,484
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: How do you display shadows on invisible surfac
[Re: Orange Brat]
#135999
07/18/07 20:30
07/18/07 20:30
|
Joined: Mar 2006
Posts: 2,758 Antwerp,Belgium
frazzle
Expert
|
Expert
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
|
I guess applying your original methode like you wanted plus the single colored texture will work, though, you would be cheating agains the rendering engine in one way  Btw, I said the unorthadox and the contradictorical stuff with a smile such as it would be like a joke  I'll run some more tests with the stencilzfail and etc. considering your request but I'll doubt if it's even possible. Within the SDK itself, you might be able to change it temporarily. Cheers Frazzle
Antec® Case Intel® X58 Chipset Intel® i7 975 Quad Core 8 GB RAM DDR3 SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB NVIDIA® GeForce GTX 295 Memory 1795GB
|
|
|
Re: How do you display shadows on invisible surfac
[Re: frazzle]
#136000
07/19/07 06:48
07/19/07 06:48
|
Joined: Aug 2000
Posts: 7,490
Orange Brat
OP

Senior Expert
|
OP

Senior Expert
Joined: Aug 2000
Posts: 7,490
|
Keep me posted on your results. I know you were joking, and if cheating will get me the results when it comes to this 2nd issue than so be it. 
My User Contributions master list - my initial post links are down but scroll down page to find list to active links
|
|
|
Re: How do you display shadows on invisible surfac
[Re: Orange Brat]
#136001
07/19/07 18:57
07/19/07 18:57
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
The reason I wanted to use my method was because All the geometry is already there. It's as if I paused the rendering, and held the result without rerendering. On the release version, it won't use the shaders and such, just the generated images. The shader should be possible with FFP, so I may not even use any shaders in the release, but we'll see where I end up...
I'm writing a storyline now, I'm going to have my friend Mike help me make it more creative/interesting. I'll begin work once I get home...
xXxGuitar511 - Programmer
|
|
|
Re: How do you display shadows on invisible surfac
[Re: Orange Brat]
#136004
07/23/07 12:46
07/23/07 12:46
|
Joined: Mar 2006
Posts: 2,758 Antwerp,Belgium
frazzle
Expert
|
Expert
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
|
I've run all of the test I could think of but none gave a perfect result. I guess you'll have to keep the player visible, apply stencil shadows and cheat agains the rendering engine  Maybe Guitar can get better results using his idea. Cheers Frazzle
Antec® Case Intel® X58 Chipset Intel® i7 975 Quad Core 8 GB RAM DDR3 SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB NVIDIA® GeForce GTX 295 Memory 1795GB
|
|
|
Re: How do you display shadows on invisible surfac
[Re: Orange Brat]
#136006
07/23/07 17:51
07/23/07 17:51
|
Joined: Mar 2006
Posts: 2,758 Antwerp,Belgium
frazzle
Expert
|
Expert
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
|
While testing, I discovered that z-buffer shadows can be rendered when a model is invisible. Stencil buffer shadows are rendered as well when a model is invisble with render state settings. However, the result isn't very pleasant and the reason is quite obvious. I've ran some tests with alphablending, the model is invisible due to alphablending and the shadows are casted but while the shadows are situated at a range where the model is visible/invisible rendered , this leads up to some kind of distortion. Alphablending is a pain in the as* when it comes to stencil shadows because when the model itself is invisible due to alphablending, part of the shadow is not visible. Alhpablending doesn't allow stencil shadows to be completly visible when they are situated behing a model's mesh. Strange, because z-buffer shadows work just fine. Here are two pictures who prove it: The pictures show a model with a standard alphablending render state and a stencil shadow. The sun rotates to make the shadow move and mark the difference. Picture one: The shadow is being covered up for +-20 percent by the model's mesh. Picture two: The shadow is situated underneed the player but as I've mentioned, the shadow is being coverd up for +- 95 percent due to alphablending. I guess you get the problem  But the sad thing is that I can't get this solved, not even with the stencil render states. I think you're probably right that it's an DirectX (D3D) issue is. Good luck on finding a potential solution and completing your game OB  Cheers Frazzle
Antec® Case Intel® X58 Chipset Intel® i7 975 Quad Core 8 GB RAM DDR3 SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB NVIDIA® GeForce GTX 295 Memory 1795GB
|
|
|
Re: How do you display shadows on invisible surfac
[Re: frazzle]
#136007
07/23/07 21:15
07/23/07 21:15
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
Well, if we can make a model invisible for rendering, but keep it in the z-buffer, can we not do the opposite? Let it render, but keep it out of the z-buffer so that shadows are not cast onto it? ...of course this would probably not render correctly, and possibly on top of everything else 
xXxGuitar511 - Programmer
|
|
|
Re: How do you display shadows on invisible surfac
[Re: xXxGuitar511]
#136008
07/24/07 22:20
07/24/07 22:20
|
Joined: Aug 2000
Posts: 7,490
Orange Brat
OP

Senior Expert
|
OP

Senior Expert
Joined: Aug 2000
Posts: 7,490
|
@xXx: Take a look at the game Secret Files: Tunguska. I'm not recommending it because of how it may or may not relate to the technology discussed in this thread, but instead as a heads up to a modern adventure game that gets the UI right. The mouse management and space bar hint system is 2nd to none. Just about every review of this game, whether it was positive or negative, was highly positive about these two particularly aspects. Myself, I loved the hint system. All it did was when you pressed and held down the space bar, all of the available interactive spots and exits would be highlighted. In fact, if you check out the official site, it is a Flash site and uses one of the backgrounds, and if you press and hold down the space bar, it highlights everything (that was an awkward sentence  ). The mouse management is probably the best implemented "smart cursor" I've ever seen in the the genre. Anyway, there's a demo if you want to try it out first hand. http://www.secretfiles-game.com/
My User Contributions master list - my initial post links are down but scroll down page to find list to active links
|
|
|
|