![]() |
| [[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]] |
|
|
#1 |
|
Member
Join Date: Aug 2007
Location: tehran
Posts: 52
|
hi
i want to use stencil buffer to render a mirror effect. Code:
but when i try to clear buffers Code:
it seems that TARGET isnt cleard when is add "D3DCLEAR_STENCIL" !! even if id dont set : Stencil buffer active, by clearing it , TARGET wont clear ! i'm really confeused !! ( please HELP ME !! |
|
|
|
|
|
#2 |
|
Member
Join Date: Sep 2004
Posts: 55
|
I think you need to put the clear after the begin scene.
|
|
|
|
|
|
#3 |
|
Member
Join Date: Aug 2007
Location: tehran
Posts: 52
|
yakul
it wont solve the problem |
|
|
|
|
|
#4 | |
|
Senior Member
Join Date: Sep 2005
Location: .nl
Posts: 519
|
I googled for the documentation about D3DCLEAR_STENCIL, and the first hit was a very similar problem: http://www.gamedev.net/community/for...opic_id=199232
But that thread isn't very helpful. The documentation tells me this Quote:
Is that correct? You can/could/should try this too: turn the direct3d debug version on in the control panel, and watch your debug output (with dbmon.exe for example) |
|
|
|
|
|
|
#5 |
|
Member
Join Date: Aug 2007
Location: tehran
Posts: 52
|
i think problem comes frome: D3DPRESENT_PARAMETER !
Stencil format is : D3DFMT_D24FS8, but if it failes format is changed to : D3DFMT_D16, does "D3DFMT_D16" mean not to use stencil ? i use this type of code in another project too. its works fine, but in this one..! |
|
|
|
|
|
#6 |
|
Member
Join Date: Aug 2007
Location: tehran
Posts: 52
|
and on more thing : i have installed DirectX SDK but there is no directx icon in my control panel...!
|
|
|
|
|
|
#7 | |
|
DevMaster Staff
Join Date: Sep 2005
Location: The Netherlands
Posts: 1,476
|
Quote:
___________________________________________
C++ addict - Currently working on: the 3D engine for Tomb Raider: Underworld and Deus Ex 3. |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|