- glEnable(GL_POLYGON_OFFSET_FILL);
DGL https://delphigl.com/forum/ |
|
Faces Ocupying the same space https://delphigl.com/forum/viewtopic.php?f=19&t=3258 |
Seite 1 von 1 |
Autor: | Stucuk [ Do Sep 16, 2004 17:56 ] | |||
Betreff des Beitrags: | Faces Ocupying the same space | |||
Iv noticed in RTCW maps that some faces overlap over faces, proberly the one thats ontop is a decal. My query is, is there anyway to make one dominant? Depending on where u look at them from, depends on which is dominant..... which looks stupid...
|
Autor: | Sascha Willems [ Do Sep 16, 2004 18:04 ] |
Betreff des Beitrags: | |
Just use glPolygonOffset before rendering the decals. This function offsets a polygon that drawn a the exact same place as another polygon. |
Autor: | Stucuk [ Do Sep 16, 2004 20:05 ] |
Betreff des Beitrags: | |
Thx SOS ![]() For anyone who doesn't know how to use the polygon offset(like i didn't) heres some simple code: Code:
Code:
Much simpler than i thought it would be. |
Autor: | Robert Kosek [ Do Sep 16, 2004 20:19 ] |
Betreff des Beitrags: | |
Are you writing a game engine or something? After looking at the last few topics you stared, it sure seems like it. Anyway, nice example of a decal. |
Autor: | Stucuk [ Do Sep 16, 2004 20:30 ] |
Betreff des Beitrags: | |
Yes im trying to make a game engine, Its bassed on Q3MapView by Harry Paintner but heavily modifyed. Always wanted to mod Half-Life but could never find a copy of Visual C++ that was cheap(as in not above 100 pounds) or in a shop, so the next and better thing to do is make a game engine in the worlds best language. |
Autor: | Robert Kosek [ Do Sep 16, 2004 21:45 ] |
Betreff des Beitrags: | |
Awesome!! Wish I could help, but my knowledge of GL is tiny. I hope to learn more and get some books soon. I'd be willing to give you ideas or test. ![]() Best Wishes, Robert |
Seite 1 von 1 | Alle Zeiten sind UTC + 1 Stunde |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |