|
|
#1 |
|
PowerPoster
Join Date: Jun 04
Location: Saskatoon, SK
Posts: 2,339
![]() |
Changing CULL Mode
Showing my ability to apply the knowledge I have learned while D3D'in I figured out how to fix my skysphere.
The sphere generation code was well written by someone. It was for OpenGL tho. It was also created to create a dome which is to be see from the outside. Well I needed a Dome that can be seen from the inside. So after re-arranging the vertex allocation, or trying to create a dome with a negetive radius I saw each had some graphical problems....Neither worked for me. SO I decided to change the CULL mode to None, then render the skysphere, then change it back to CCW. Works like a charm. So my questions are: D3DCULL_CCW -- remove counter clock wise triangles? D3DCULL_CW -- remove clockwise triangles? D3DCULL_NONE - Remove nothing D3DCULL_FORCE_DWORD -- What the f___??? Does changing the cull mode cause any lag? doing it each frame? Is there a better way? What changing CULL modes should I save the old mode, or not? Will it matter? Can it be different than any of the 4 modes above????
__________________
"From what was there, and was meant to be, but not of that was faded away." - - Steve Damm "The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm "When you do things right, people won't be sure if you did anything at all." - - God from Futurama Last edited by Halsafar; Dec 2nd, 2004 at 03:33 PM. |
|
|
|
|
|
#2 | |
|
Ex-Super Mod'rater
Join Date: Sep 00
Location: Newcastle, England
Posts: 4,354
![]() |
Re: Changing CULL Mode -- Cull Mode Types
Quote:
__________________
When your thread has been resolved please edit the original post in the thread ( )and amend "-[RESOLVED]-" to the end of the title and change the icon to When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.
|
|
|
|
|
|
|
#3 |
|
PowerPoster
Join Date: Jun 04
Location: Saskatoon, SK
Posts: 2,339
![]() |
Alright, sounds good.
I added to my original post. Should I save the cull mode before changing it using GetRenderState. Then change it. Or will the cull mode always be on of the above 4 types?
__________________
"From what was there, and was meant to be, but not of that was faded away." - - Steve Damm "The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm "When you do things right, people won't be sure if you did anything at all." - - God from Futurama |
|
|
|
|
|
#4 | ||
|
Retired G&G Mod
Join Date: Oct 02
Location: Bærum, Norway
Posts: 10,190
![]() ![]() ![]() ![]() ![]() |
Re: Changing CULL Mode -- Cull Mode Types
Quote:
Why don't you look up things like this in the doc? Quote:
|
||
|
|
|
|
|
#5 |
|
PowerPoster
Join Date: Jun 04
Location: Saskatoon, SK
Posts: 2,339
![]() |
I knew all that.
I just seem to see alot of people will store the old render state, change the render state, render whatever, change it back to the old. I figured it may be for the same reasons you have to save a WindowLong before you can alter it or else errors will occur.
__________________
"From what was there, and was meant to be, but not of that was faded away." - - Steve Damm "The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm "When you do things right, people won't be sure if you did anything at all." - - God from Futurama |
|
|
|
|
|
#6 | |
|
Retired G&G Mod
Join Date: Oct 02
Location: Bærum, Norway
Posts: 10,190
![]() ![]() ![]() ![]() ![]() |
Quote:
Correct me if I am wrong here...I might be wrong here since I have worked so much with OGl lately..... |
|
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|