COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

• Email
• Follow

```Hi All.
I have a question about how ogl auto generate the texture coordinates.
I have read the glspec2.0 and found when use OBJECT_LINEAR,the
generation function is:
g = p1xo + p2yo + p3zo + p4wo
so we can write as:g = (p1 p2 p3 p4)(xo yo zo wo)T

and EYE_LINEAR is:
g = p'1xe + p'2ye + p'3ze + p'4we
so we can write as: g = (p'1 p'2 p'3 p'4)(xe ye ze we)T

as ( p'1 p'2 p'3 p'4 ) = ( p1 p2 p3 p4 )M-1
and (xe ye ze we)T = M(xo yo zo wo)T
so when use EYE_LINEAR,the function is also:g=(p1 p2 p3 p4) (xo yo zo
wo)T
same as OBJECT_LINEAR.

As we all know,these two function indeed have difference in use,but why
it seems they have the same generation function? Am I miss something?

```
 0
Reply CHUJINGJUN (2) 3/21/2006 8:11:14 AM

See related articles to this posting

```Alvin wrote:
> when use OBJECT_LINEAR,the generation function is:
> ...
>
> and EYE_LINEAR is:
> ...
>
> As we all know,these two function indeed have difference in use,but why
> it seems they have the same generation function? Am I miss something?
>

OBJECT_LINEAR uses the coordinate of the vertex
as input

EYE_LINEAR uses the vertex transformed by the
current MODELVIEW matrix.

--
<\___/>
/ O O \
\_____/  FTB.    For email, remove my socks.

In science it often happens that scientists say, 'You know
that's a really good argument; my position is mistaken,'
and then they actually change their minds and you never
hear that old view from them again.  They really do it.
It doesn't happen as often as it should, because scientists
are human and change is sometimes painful.  But it happens
every day.  I cannot recall the last time something like
that happened in politics or religion.

- Carl Sagan, 1987 CSICOP keynote address

```
 0

1 Replies
128 Views

Similar Articles

12/11/2013 9:40:45 PM
page loaded in 99362 ms. (0)

Similar Artilces:

Questions, Questions...
Hi! I took the routine from Gastronor.mdb: In the frmOrderDetails -> ITemID_AfterUpdate: Dim strFilter as String strFilter = "ItemID = " & Me!ItemID but it didn't work on win 2000 with access 2000. However, after playing around for a while, I found: Me!UnitPrice = ItemID.Column(2) to work just fine, even after updating prices in the tblItems. Anybody knows why? The routine in win 98/win nt in the footer of frmOrderDetails: =Sum((Price*Amount*(1-[Discount])/100)*100)) didn't either work. After testing and trying I finally discovered that =Sum(Price*Amount*Discount)...

Questions, Questions, Questions -- Well, really only two
This newsgroup seemed distribution non-specific so here goes: 1. Many companies who want to use linux, want it for email and web service. These systems don't need xwindows, and, in fact, as I understand it, not installing it not only saves resources but reduces security risk. Is there anywhere freely available a how-to install various current distributions of linux using text only, and installing mail, web and domain name service that is fairly easy for the uninformed to follow? Especially helpful would be a debian install. 2. Does anyone know of an encyclopedia, preferrably text-b...

Question
I have a history that I have written in MS Word. It is composed of text and images. Is Pagemaker the best program to use for setting up the pages images etc and if so how do I import a MS document into Pagemaker? Thanks folks, I know the questions are probably rather dumb but...... ;-) Wolf wrote: > I have a history that I have written in MS Word. > It is composed of text and images. > Is Pagemaker the best program to use for setting up the pages images etc and > if so how do I import a MS document into Pagemaker? > > Thanks folks, I know the questions are probably...

Question
Can anyone define the difference between ITS vs. simulation? Anne L. Michaels almichaels@dynasims.com "simarts" <almichaels@crashzoom.com> wrote in news:1125937604.488797.222670@g14g2000cwa.googlegroups.com: > Can anyone define the difference between ITS vs. simulation? Probably, if you'd care to say what "ITS" means. All the best, John. On Mon, 05 Sep 2005 15:06:43 -0400, "simarts" <almichaels@crashzoom.com> wrote: >Can anyone define the difference between ITS vs. simulation? What is ITS?... A.L. A.L. <alewando@alamakota.co...

Question
Hi, Can someone tell me why this little piece of php/mysql code fails? \$row = \$result->fetch_assoc(); if (\$clog) fwrite(\$logfile,"row['nametag'] {\$row['nametag']}\n"); if (\$row['nametag'] != 0) { if (\$clog) fwrite(\$logfile,"name {\$row['nametag']}\n"); } I've got this logfile where I am putting debug output. In the above, the first fwrite works -- it writes the name contained in the row value 'nametag'...

Question
I have this statement: DELETE FROM TMP_TABLE_MERGE WHERE EXISTS (SELECT 1 FROM TMP_TABLE_1 T1 WHERE TMP_TABLE_MERGE.OBJECT_ID = T1.OBJECT_ID) In both the table TMP_TABLE_MERGE and TMP_TABLE_1 the field OBJECT_ID is the primary key but in the Explain Plan the table TMP_TABLE_MERGE is acessed in full scan mode. Do someone knows how can I force the use of the primary keys? Thanks Pier On Sat, 4 Jan 2003 14:20:33 +0100, "Pier Gaetano Novara" <pgaetanoNoSpam@csc.com> wrote: >I have this statement: >DELETE FROM > TMP_TABLE_MERGE >WHERE EXIS...

Newbie question...simple rule question...
Dear All, I am trying to understand the best way to write a rule which checks on all the elements. ------------- people(a). people(c). ok(b). ok(a). everybodyok_works :- findall(X,ok(X),List),maplist(people,List). everybodyok_bad :- people(X),ok(X). ------------- What am I missing? Is there a better way to write rule which says: "Everybody is ok if for all people we know has said they are OK." ? Thanks in Advance, Mans On 2005-08-11, mans <mshapshak@gmail.com> wrote: > Dear All, > > I am trying to understand the best way to write a rule which checks on > a...

ipfw question & portscan question
Using BrickHouse to set ipfw so that only port 80 is open (I serve several Web sites), I note lots of the following sort of stuff in console.log and system.log: Jan 27 06:17:34 Stella-Blue kernel: ipfw: 55005 Deny UDP 64.122.147.30:137 216.243.177.155:137 in via en0 Jan 27 06:25:29 Stella-Blue kernel: ipfw: 55005 Deny ICMP:8.0 216.243.190.220 216.243.177.155 in via en0 Jan 27 06:56:48 Stella-Blue kernel: ipfw: 55005 Deny UDP 210.13.22.79:1160 216.243.177.155:1434 in via en0 Jan 27 07:06:11 Stella-Blue kernel: ipfw: 55005 Deny ICMP:8.0 216.244.14.36 216.243.177.155 in via en0 Jan 27 07:09:...

Question?
Do you know of anything that I could get Jeri for her Birthday? I need to know ASAP! Mother would like to know of something too! William William Cunningham wrote: > Do you know of anything that I could get Jeri for her Birthday? I need to > know ASAP! > Mother would like to know of something too! Well, if you don't like Jeri, you should buy her Paint Shop Pro 8 or 9. However, if you like her, a better alternative would be Adobe Photoshop Elements! :-) Uni > > William > > Of couse, you could also buy her Uni's book of wit and wisdom. Small but bea...

questions
1.which is better for processor architecture design and why? external RAM or internal RAM? 2.which is better for processor architecture design and why? external ROM or internal ROM? 3.what is the advantages and disadvantages of simple processor with pipelining and without pipelining? > > 3.what is the advantages and disadvantages of simple processor with > pipelining and without pipelining? one advantage: Because of partitioning the logic task into several stages the timing of your circuit can be improved. one disadvantage : Latency is introduced by the use of the...

i have a question
i need to wipe out my hard drive and was wondering if i will lose all of my music on my ipod or does the ipod back it up or if i will lose all of the music is there anything i can do about it "andy bond" <abond4life@yahoo.com> writes: >i need to wipe out my hard drive and was wondering if i will lose all >of my music on my ipod or does the ipod back it up or if i will lose >all of the music is there anything i can do about it There are tools that will let you upload your music from your iPod to the Mac (or you should be able to copy it via the filesystem). One too...

(..) and (...) question
According to Perl Cookbook, the three dots (...) should be "not inclusive" while the two dots (..) "inclusive" when used with line numbers. By "not inclusive", I would think that the code below will print only line 2, but it prints the same first three lines just like using (..). Can someone please explain? Thanks! #!perl use strict; use warnings; while ( <DATA> ){ chomp; if ( 1 ... 3 ){ print \$_, "\n"; } } __DATA__ Line 1 Line 2 Line 3 Line 4 MSG wrote: > According to Perl Cookbook, the three dots (...) should be > "no...

Hello all,I have got a question about the post increment operator. Consider thefollowing codeint i = 1;System.out.println(i);i = i++;System.out.println(i);The output is11I expect the first 1 because I am (for sanities sake) outputting thevalue of i before any operations are done on it.I then expect the value of i on the right of the = to be assigned tothe i on the left of the equals. I expect that to copy it and then theincrement to happen. I do not see why the increment is not done on tehi to the left of the equals. I know this is with primitives whcih passby value but I was expected an outpu...

Question:
When does AOS 4 ship? Last time I checked, it was expected 2 years ago. -- "Mystical references to "society" and its programs to "help" may warm the hearts of the gullible but what it really means is putting more power in the hands of bureaucrats." - Thomas Sowell "Peter Bj�rn Perls�" <spamtrap@REMOVEmacplanet.dk> wrote in message news:2006090519205650073-spamtrap@REMOVEmacplanetdk... > When does AOS 4 ship? > > Last time I checked, it was expected 2 years ago. > Never. On Tue, 5 Sep 2006 19:20:56 +0200, =?ISO-8859-1?Q?Peter...

Question!
I have about 1500 karaoke files on my laptop. They are cdg+mp3 files. They play perfectly with PCDJ-KJ, and Swift ultralite. I have put them onto CDR disks but find they don.t play in a Karaoke machine. Would this item on eBay play them? http://cgi.ebay.ie/SUNFLY-PRO-KARAOKE-MACHINE-PLAYER-2-MICS-CD-G-DVD-... on the disks I get 2 files, one is a CDG for the lyrics, and one is a MP3 for the music. Do these karaoke players play the 2 together or do I have to rewrite them in some other way? If so what sort of drive do I need? Please conside rmy budget is very limited and I am using a Latitude C...

Question:
1)If I have two classes, how can i run it in the command prompt? (ex: java FileName) for only one class. 2)If I need an input from the command prompt, (This is required. I should not use any other method of getting an input) how can i, for example, print no input if there's no input? To illustrate: 1)class File{ } class Main{ } c:\>javac File.java c:\>java File Error: Exception in thread "main" java.lang.NoSuchMethodError:main 2) sample run: c:\>java Palindrome A Toyota A palindrome c:\>java Palindrome abracadabra Not a palindrome c:\>...

Questions.
Hello, you may recognise my writing from my semi-regular #c64retards notices. Unfortunately this post isn't nearly as light hearted as my previous. Recently there has been a spate of disturbing behaviour that has affected many of us, if it hasn't affected you then feel free to stop reading now. Several recent posts to c.s.c. have been simply nonsensical messages, which seem to be directed towards myself and a few others. I'd like to apologise for the disturbance as those responsible probably never will. Please direct any further questions to uranus@hotmail.com Thankyou, Damian...

A Question
hi: The code below: my \$array = \$Sheet->Range("A1:AH232")->{Value}; foreach my \$ref_array (@\$array) { # loop through the array # referenced by \$array foreach my \$scalar (@\$ref_array) { if (defined(\$scalar)) { print TESTFILE "\$scalar\t"; } } print TESTFILE "\n"; } What's the meaning of (@\$array) and (@\$ref_array)? I am confused here. "david" <yongsheng.yang@gmail.com> wrote in news:1142358376.247441.8000 @u72g2000cwu.go...

New Home\Video Distribution Question (I have researched but have questions)
My wife and I have been in the planning stages of building a new house for quite some time. We were planning to build and I had read dozens of books on home automation and knew exactly how many wires I was going to run, where they were going to go, etc. That changed yesterday because we found a house exactly like we wanted at a price for less than we could build. The house is brand new and all of the bedrooms and the kitchen have 1 cable run to the room. My media room will be downstairs and from there I would like to distribute the signal from my DVD Jukebox, a camera in my son's room ...

Re: If last question--data question #6 627360
The SQL solution is probably the most straightforward. You will have to place the GROUP BY clause before the HAVING clause. DATA step solutions also exist. The classic approach would be a two-stepper. First list the dates of interest: data lastdates; set herd; by herdcode ; keep herdcode testdate; if last.herdcode; run; Then merge with the original data and filter: data getlast2; merge herd lastdates(in=lastdate); by herdcode testdate; if lastdate; run; An alternative is to interleave the dataset with itself (two passes in one step). In this case ...