Article View: free.pl.comp.games.development
Article #130Re: Teksturowanie terenu
From: Marthy
Date: Fri, 12 Mar 2004 12:06
Date: Fri, 12 Mar 2004 12:06
23 lines
1854 bytes
1854 bytes
> > > i przy pomocy np. kolorow z diffusa robic przejscia miedzy nimi (we > fragment > > > programie) > > > > a tego juz nie bardzo. Moze jakis szczegol? > > glVertexArray.... > glColorArray ... > > (w color array masz wagi R, G, B, A ... z ktorymo pokazuja sie te textury na > danym vertexie (suma wag musi byc rowna 1)) > no i we fragment programie > out = (textura0.rgb * diffuse.a) + (textura1.rgb * diffuse.b) + .... itp. Rozumiem, ze to rozwiazanie dziala tylko dla <= 4 tekstury (bo tyle skladowych ma kolor w glColorArray), przy wiekszej liczbie tekstur trzeba zrobic swoje tablice (np. 6 tablic typu byte[] )? Czy wyliczanie dla kazdego wierzcholka terenu wartosci out w petli renderingu nie bedzie trwalo za dlugo? Marcin
Technical Details
Message-ID:
<c2s98f$hue$1@nemesis.news.tpi.pl>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mailReferences:
<c2pb1l$h6u$1@nemesis.news.tpi.pl> <c2ppre$623$1@nemesis.news.tpi.pl> <c2prlf$d37$1@nemesis.news.tpi.pl> <c2s6uj$63i$1@nemesis.news.tpi.pl>Show Full Headers
Complete Article Headers
X-Google-Language: POLISH,ASCII-7-bit X-Google-Thread: 1162ab,6e2504b5834c3945 X-Google-Attributes: gid1162ab,public X-Google-ArrivalTime: 2004-03-12 04:06:46 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: "Marthy" <marc_ko@poczta.onet.pl> Newsgroups: free.pl.comp.games.development Subject: Re: Teksturowanie terenu Date: Fri, 12 Mar 2004 13:06:53 +0100 Organization: tp.internet - http://www.tpi.pl/ Lines: 25 Message-ID: <c2s98f$hue$1@nemesis.news.tpi.pl> References: <c2pb1l$h6u$1@nemesis.news.tpi.pl> <c2ppre$623$1@nemesis.news.tpi.pl> <c2prlf$d37$1@nemesis.news.tpi.pl> <c2s6uj$63i$1@nemesis.news.tpi.pl> NNTP-Posting-Host: 195.116.249.130 X-Trace: nemesis.news.tpi.pl 1079093332 18382 195.116.249.130 (12 Mar 2004 12:08:52 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Fri, 12 Mar 2004 12:08:52 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165