🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.demoscena
Article #32709

Re: OPENGL: jaka technika rozwiaze ten problem?

#32709
From: mx
Date: Fri, 21 Jan 2005 12:03
24 lines
1546 bytes
> biki, dzieki - pewnie wiesz z mojego poprzedniego postu ze jestem w OGL
> nowicjuszem, jak to sie robi w OGL? to co opisales? jak nie wpisac
> nic do bufora koloru a jedynie do z-bufora a potem z niego czytac i 
> testowac?

pass1:

glDepthMask(TRUE);
glDepthFunc(GL_LESS);
glColorMask(FALSE, FALSE, FALSE, FALSE);
glEnable(GL_DEPTH_TEST);

rysujesz wypelnionego torusa

pass2:

glDepthMask(FALSE);
glDepthFunc(GL_LEQUAL);
glColorMask(TRUE, TRUE, TRUE, TRUE);

rysujesz torusa w wireframe

-- 
mx 
Technical Details
Message-ID: <csqr44$of$1@atlantis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <csoqo7$ooq$1@inews.gazeta.pl> <95E54556Dbikikillerradomnet@193.110.122.97> <csqhk8$a9a$1@inews.gazeta.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: "mx" <spam@spam.org>
Newsgroups: pl.comp.demoscena
Subject: Re: OPENGL: jaka technika rozwiaze ten problem?
Date: Fri, 21 Jan 2005 13:03:36 +0100
Organization: tp.internet - http://www.tpi.pl/
Lines: 26
Message-ID: <csqr44$of$1@atlantis.news.tpi.pl>
References: <csoqo7$ooq$1@inews.gazeta.pl> <95E54556Dbikikillerradomnet@193.110.122.97> <csqhk8$a9a$1@inews.gazeta.pl>
NNTP-Posting-Host: krakow.realitypump.pl
X-Trace: atlantis.news.tpi.pl 1106309060 783 62.181.185.228 (21 Jan 2005 12:04:20 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Fri, 21 Jan 2005 12:04:20 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2149
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2149
X-RFC2646: Format=Flowed; Original
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit