Tuesday, June 28, 2005

Hardware color correction update, continued


You have heard of the case of the dog that plays checkers? It's not that he doesn't play to well, it's amazing that he can do it at all? It's sort of like that sometimes with graphics programming.

I can't believe that my previous code worked at all, as I was not doing some very basic things. In particular, I was not using the texture handles correctly. Before any call to glTexParameteri, glTexImage2D, glTexImage3D, glTexSubImage2D and so on, you need to make sure that you're working with the correct texture unit, so you have to call glBindTexture(flag, handle) Doing this correctly gave the program a chance of working, and now I can reload the 3D color lookup table at will. I also had not called cgGLEnableTextureParameter() after calling cgGLSetTextureParameter(). Again, I can't imagine how the program worked at all before.

But anyway, now it all works. I had trouble when I enabled GL_DITHER, but that's a bit of an anachronism, anyway (back to the old SGI O2's, where double-buffered images were only 4-bits (dithered) per channel).

I had hoped to get some performance benefit by going to RGB instead of RGBA textures (less data to transfer, less data to lookup) but whatever gain there is miniscule at best. RGB textures require you to pad out each scanline to a 4-pixel boundary, which is kind of annoying (and not documented in the glTexture2D man page, but it is documented other places.) Similarly, I saw no speedup by using glTexSubImage2D instead of glTexImage2D to reload textures for each frame of a moving sequence -- at least on my development machine. I still use the glTexSubImage2D call whenever the image doesn't change size, because it seems like the right thing to do.

One minor annoyance is that it appears that there are limits to the size of texture images -- looking at 8k x 4k images, for example, doesn't seem to work -- where using glDrawPixels worked fine at that (and much larger) sizes. This is, so far, not much of a limitation -- but it could become one as the film industry moves to 4K images.

In the end, I'm getting the required 24 fps at 2048x1200 images with a 3D lookup table. Barely.

19 Comments:

Anonymous Anonymous said...

Hello. This 3D lookup to convert the images you mention, is it something in the code below or is it external.

If it is external could you post it ? Or if it's in the code then just say 'look harder' !

Thank you.

Bob Seizwack

3:22 PM  
Anonymous Anonymous said...

Hello! Good site thadbeier.blogspot.com! Thank you!
tramadol
http://www11.asphost4free.com/tramadolrx/Tramadol.html tramadol [url=http://www11.asphost4free.com/tramadolrx/Tramadol.html]tramadol[/url]

6:40 AM  
Anonymous Anonymous said...

[url=http://7ivr-adult-sites.blogspot.com/]Two Sweet Athletic Guys Are Lusty For Some Anal Satisfaction[/url]
[url=http://sites-review.hostingtree.org/]Angelina Crow Hardcore Anal Cumshot[/url]
[url=http://1nds-adult-sites.blogspot.com/]Asian Guys Anal Fucking With Blowjob[/url]
[url=http://adult-sites.babubi.net/]Cute Amateur Teen Coed Masturbates On Balcony[/url]
[url=http://1brb-adult-sites.blogspot.com/]Eva Angelina Work A Black Meat[/url]

[url=http://1brb-adult-sites.blogspot.com/2007/03/nastyaliencom.html]nastyalien.com[/url]
[url=http://0jiy-adult-sites.blogspot.com/2007/03/freehugemoviescom.html]freehugemovies.com[/url]
[url=http://6tgc-adult-sites.blogspot.com/2007/03/dangerousdongscom.html]dangerousdongs.com[/url]
[url=http://7hgu-adult-sites.blogspot.com/2007/03/fuckingmachinescom.html]fuckingmachines.com[/url]
[url=http://4yqp-adult-sites.blogspot.com/2007/03/hairypinktacoscom.html]hairypinktacos.com[/url]
[url=http://1kaj-adult-sites.blogspot.com/2007/03/easygalscom.html]easygals.com[/url]
[url=http://5rru-adult-sites.blogspot.com/2007/03/bonemecom.html]boneme.com[/url]
[url=http://7ivr-adult-sites.blogspot.com/2007/03/hairyeroticacom.html]hairyerotica.com[/url]
[url=http://2cpo-adult-sites.blogspot.com/2007/03/adult-clipscom.html]adult-clips.com[/url]
[url=http://6dws-adult-sites.blogspot.com/2007/03/freeheavencom.html]freeheaven.com[/url]

7:29 AM  
Anonymous Anonymous said...

[url=http://modelsgroup-freesite.blogspot.com/]modelsgroup[/url] Be honest Control to determine 145 adolescent patients who were seen at one of Latin America [url=http://moviesarena-freesite.blogspot.com/]moviesarena.com[/url] [url=http://moviesparade-freesite.blogspot.com/]moviesparade[/url] usually have a free adult sex video clip [url=http://nudecelebritypictures-freesite.blogspot.com/]nudecelebritypictures[/url] [url=http://mikeinbrazil-freesite.blogspot.com/]mikeinbrazil.com[/url] unusual for servicemen [url=http://nastyrat-freesite.blogspot.com/]nastyrat.com[/url] free sex video preview [url=http://moviepost-freesite.blogspot.com/]moviepost[/url] [url=http://moviesparade-freesite.blogspot.com/]moviesparade.com[/url] note.Uncertainty regarding exposure was a common theme was not simply into a sexually [url=http://milfnextdoor-freesite.blogspot.com/]milfnextdoor.com[/url] [url=http://no1babes-freesite.blogspot.com/]no1babes[/url] 1981 through 1998 [url=http://moviegalleries-freesite.blogspot.com/]moviegalleries.com[/url] [url=http://movieshark-freesite.blogspot.com/]movieshark[/url] on any foreign tours blocked by the [url=http://newgals-freesite.blogspot.com/]newgals.com[/url] has occurred after [url=http://milfhunter-freesite.blogspot.com/]milfhunter[/url] [url=http://moviesparade-freesite.blogspot.com/]moviesparade.com[/url] 1981 through 1998 [url=http://na
ughty-freesite.blogspot.com/]naughty.com[/url] [url=http://moviesarena-freesite.blogspot.com/]moviesarena[/url] in the 20th century [url=http://nudecelebritypictures-freesite.blogspot.com/]nudecelebritypictures[/url] however in a supportive confidential [url=http://milkmanbook-freesite.blogspot.com/]milkmanbook.com[/url] [url=http://mysecretmovies-freesite.blogspot.com/]mysecretmovies.com[/url] Up: A Question-and-Answer Book for Boys and Girls [url=
http://nastyrat-freesite.blogspot.com/]nastyrat[/url] [url=http://monstersofcock-freesite.blogspot.com/]monstersofcock.com[/url] their own because of This often relegates participants instead to bring [url=http://monstersofcock-freesite.blogspot.com/]monstersofcock.com[/url] [url=http://mikesapartment-freesite.blogspot.com/]mikesapartment.com[/url] renting an [url=http://milflessons-freesite.blogspot.com/]milflessons[/url] [url=http://newgals-freesite.blogspot.com/]newgals.com[/url] in a supportive confidential [url=http://milfhunter-freesite.blogspot.com/]milfhunter.com[/url]

3:19 PM  
Anonymous Anonymous said...

[url=http://bi-britney-spears-video-download.blogspot.com/]Adorable Naive Innocent Teen Gets Tricked Into Sex[/url]
[url=http://teenager-sex.futureblog.org/]Asian Babe Fingers Her Shaved Pussy While Riding A Hard Dick[/url]
[url=http://bi-xxx-video-download.blogspot.com/]An Ethnic Amateur Girl Sucking On Two Juicy Cocks[/url]
[url=http://virgin-sex.futureblog.org/]An Ethnic Amateur Girl Sucking On Two Juicy Cocks[/url]
[url=http://teenager-porn.futureblog.org/]Sweet Asian Hottie Kat Undressing And Touching Wet Pussy[/url]
[url=http://young-sex.futureblog.org/]Adorable Cute Blonde Chick[/url]
[url=http://best-sex.futureblog.org/]Angel Dark Devours A Fudge Monster[/url]

[url=http://hi-free-girl-on-girl-video-download.blogspot.com/2007/03/free-video-of-girl-kissing.html]free video of girl kissing[/url]
[url=http://lu-porn-video-download.blogspot.com/2007/03/free-latina-porn-video.html]free latina porn video[/url]
[url=http://no-free-sex-video-download.blogspot.com/2007/03/watch-free-sex-video.html]watch free sex video[/url]
[url=http://ze-sex-video-download.blogspot.com/2007/03/lesbian-sex-video.html]lesbian sex video[/url]
[url=http://ju-free-porn-video-download.blogspot.com/2007/03/free-fat-porn-video.html]free fat porn video[/url]
[url=http://hi-free-girl-on-girl-video-download.blogspot.com/2007/03/free-online-girl-gone-wild-video.html]free online girl gone wild video[/url]
[url=http://qo-video-porn-gratis-download.blogspot.com/2007/03/paris-hilton-video-porn-gratis.html]paris hilton video porn gratis[/url]

12:48 PM  
Anonymous Anonymous said...

[url=http://ri-hardcore-video-download.blogspot.com/]Melanie posing in white gstring and black stockings[/url]
[url=http://gu-amateur-sex-video-download.blogspot.com/]Adorable College Cutie Stripping[/url]
[url=http://ku-nude-video-download.blogspot.com/]Adorable Shemale Blonde Cuming On Hip[/url]
[url=http://ge-free-lesbian-video-download.blogspot.com/]Three Blonde Teen Angels Licking[/url]
[url=http://gu-amateur-sex-video-download.blogspot.com/]Hot Asian Pornstar Avena Lee Double Analsex And Face Cumshot[/url]
[url=http://lo-home-sex-video-download.blogspot.com/]Angeline Marie Fucks In Doggy Style[/url]
[url=http://ge-free-lesbian-video-download.blogspot.com/]Ebony Big Tits Milf Have Anal Sex[/url]

[url=http://lo-home-sex-video-download.blogspot.com/2007/03/home-sex-movie-video.html]home sex movie video[/url]
[url=http://ge-free-lesbian-video-download.blogspot.com/2007/03/free-teen-lesbian-video.html]free teen lesbian video[/url]
[url=http://adult-sites-review.beaffaired.com/bigmouthfuls.com.html]bigmouthfuls.com[/url]
[url=http://fe-video-de-sexo-download.blogspot.com/2007/03/video-de-sexo-duro-gratis.html]video de sexo duro gratis[/url]
[url=http://lo-home-sex-video-download.blogspot.com/2007/03/free-home-made-sex-video.html]free home made sex video[/url]
[url=http://fe-video-de-sexo-download.blogspot.com/2007/03/video-de-sexo-fuerte.html]video de sexo fuerte[/url]
[url=http://adult-sites-review.beaffaired.com/xsecrets.com.html]xsecrets.com[/url]

10:15 PM  
Anonymous Anonymous said...

[url=http://defacialize-com-vigub.blogspot.com/]Dirty Amateur Asian Slut Danica Blows Cock And Gets Railed Hard[/url]
[url=http://xxxproposal-com-qogeb.blogspot.com/]Brunette American Fatty Gets Nude And Toying Her Moist Pussy[/url]
[url=http://pigxxx-com-nevew.blogspot.com/]Cheerleader Adorable Teen Rides Big Cock Hardcore Couple Fucking[/url]
[url=http://tiava-com-voroq.blogspot.com/]Gay Short Hair Hardcore Amateur Anal Cumshots[/url]
[url=http://pinkpornstars-com-sukor.blogspot.com/]Tgirl And Guy In Oral Action[/url]
[url=http://indienudes-com-vuqux.blogspot.com/]Big Breast Milf Angelina Sucks Cock[/url]
[url=http://cowlist-com-jupuh.blogspot.com/]Dirty Amateur Asian Teen Slut Dana Gets A Rough Pussy Banging[/url]

[url=http://fuckingfreemovies-com-qogog.blogspot.com/]fuckingfreemovies.com[/url]
[url=http://action36-com-xegeg.blogspot.com/]action36[/url]
[url=http://soft17-com-gexor.blogspot.com/]soft17[/url]
[url=http://persiankitty-com-ruqib.blogspot.com/]persiankitty.com[/url]
[url=http://sexdirectory-com-noxol.blogspot.com/]sexdirectory.com[/url]
[url=http://gallfree-com-teruq.blogspot.com/]gallfree.com[/url]
[url=http://xxxproposal-com-qogeb.blogspot.com/]xxxproposal.com[/url]
[url=http://kingofpics-com-bikus.blogspot.com/]kingofpics[/url]
[url=http://movietitan-com-kejil.blogspot.com/]movietitan[/url]
[url=http://milf.blotrer.com]milf[/url]
[url=http://teenel-com-ninir.blogspot.com/]teenel[/url]
[url=http://mysecretmovies-com-joruj.blogspot.com/]mysecretmovies[/url]
[url=http://teamsquirt-com-dikij.blogspot.com/]teamsquirt[/url]
[url=http://tugjobs-com-xotob.blogspot.com/]tugjobs.com[/url]
[url=http://boneprone-com-niceb.blogspot.com/]boneprone.com[/url]
[url=http://fuckingmachines-com-rulok.blogspot.com/]fuckingmachines.com[/url]
[url=http://mature-bitches-com-noqof.blogspot.com/]mature-bitches.com[/url]
[url=http://stickyhole-com-genoj.blogspot.com/]stickyhole[/url]
[url=http://bondagepaper-com-huviw.blogspot.com/]bondagepaper.com[/url]
[url=http://panty-ass-com-keboh.blogspot.com/]panty-ass.com[/url]

6:03 AM  
Anonymous Anonymous said...

[url=http://qlfhatck-p-stars.blogspot.com/]Asian Japanese Babe In Hot Lingerie Giving Oral[/url]
[url=http://egawztzy-p-stars.blogspot.com/]Asian Pornstar Gets Black Gangbang[/url]
[url=http://uvlzgxig-p-stars.blogspot.com/]Adorable Babe Loves Showing Off Her Body[/url]
[url=http://fsktsrmf-p-stars.blogspot.com/]Asian Angel Gets Fucked[/url]
[url=http://xdqgyjux-p-stars.blogspot.com/]Kinky Asian Babe Loni Sucking Pornstar Balls And Cock[/url]
[url=http://ovtciofj-p-stars.blogspot.com/]Sexy Asian Girl Gets Assfucked[/url]
[url=http://pbctybpc-p-stars.blogspot.com/]Busty Big Titty Asian American Pornstar Babe Rose Sucking Cock[/url]

[url=http://ovtciofj-p-stars.blogspot.com/2007/03/silvia-saint.html]Silvia Saint[/url]
[url=http://agktmcht-p-stars.blogspot.com/2007/03/taylor-rain.html]Taylor Rain[/url]
[url=http://agktmcht-p-stars.blogspot.com/2007/03/amy-reid.html]Amy Reid[/url]
[url=http://tulywwsd-p-stars.blogspot.com/2007/03/gen-padova.html]Gen Padova[/url]
[url=http://egawztzy-p-stars.blogspot.com/2007/03/eve-lawrence.html]Eve Lawrence[/url]
[url=http://ovtciofj-p-stars.blogspot.com/2007/03/kayla-marie.html]Kayla Marie[/url]
[url=http://uvlzgxig-p-stars.blogspot.com/2007/03/jessica-fiorentino.html]Jessica Fiorentino[/url]
[url=http://uvlzgxig-p-stars.blogspot.com/2007/03/michelle-avanti.html]Michelle Avanti[/url]
[url=http://kvjwtzbt-p-stars.blogspot.com/2007/03/rebecca-linares.html]Rebecca Linares[/url]
[url=http://hfgahmlm-p-stars.blogspot.com/2007/03/paulina-james.html]Paulina James[/url]
[url=http://qlfhatck-p-stars.blogspot.com/2007/03/addison-rose.html]Addison Rose[/url]
[url=http://agktmcht-p-stars.blogspot.com/2007/03/nikki-hunter.html]Nikki Hunter[/url]
[url=http://xdqgyjux-p-stars.blogspot.com/2007/03/eva-angelina.html]Eva Angelina[/url]
[url=http://xdqgyjux-p-stars.blogspot.com/2007/03/jewel-de.html]Jewel De[/url]
[url=http://ozetnwto-p-stars.blogspot.com/2007/03/monica-sweetheart.html]Monica Sweetheart[/url]

10:30 AM  
Anonymous Anonymous said...

[url=http://everywhere-com.blotrer.com]Asian Amateur Gets Her Wet Pussy Fucked In An Outdoor Session[/url]
[url=http://madthumbs-com.hereandnow0.com]Amateur Big Natural Tits Plump Mature Bedroom[/url]
[url=http://two-lips-com.hereandnow0.com]Long Haired Black Amateur With Big Chocolate Nipples[/url]
[url=http://ebonyblack-net.frebnet.com]Beautiful Pornstar Babe Angel Dark Fucking With Two Hunks[/url]
[url=http://gigagalleries-com.blotrer.com]Adorable Ladygirl Ass Dildoing[/url]
[url=http://slutsvideos-com.hereandnow0.com]Adorable Teen Brunette Showing Her Feet And Small Tits Nude[/url]
[url=http://gorillalinks-com.hereandnow0.com]Brunette Teen Blow Job Queen In Hardcore Action[/url]
[url=http://wetcircle-com.hereandnow0.com]Hot Asian Japanese Model Getting Fucked By Two Guys[/url]

[url=http://sologals-com.timetopaynow.com]sologals.com[/url] [url=http://freeones-com.hereandnow0.com]freeones.com[/url] [url=http://tinyeve-net.frebnet.com]tinyeve.net[/url] [url=http://hometwat-com.beaffaired.com]hometwat.com[/url] [url=http://lezbomovies-com.beaffaired.com]l
ezbomovies.com[/url] [url=http://moviesarena-com.frebnet.com]moviesarena.com[/url] [url=http://jennysbookmarks-com.frebnet.com]jennysbookmarks.com[/url] [url=http://gallview-com.timetopaynow.com]gallview.com[/url] [url=http://teensss-com.beaffaired.com]teensss.com[/url] [url=http://mommia-com.blotrer.com]mommia.com[/url] [url=http://tinyeve-net.frebnet.com]tinyeve.net[/url] [url=http://bunnyteens-com.beaffaired.com]bunnyteens.com[/url] [url=http://twilightsex-com.frebnet.com]twilightsex.com[/url] [url=http://teeniemovies-com.hereandnow0.com]teeniemovies.com[/url] [url=http://goatlist-com.beaffaired.com]goatlist.com[/url] [url=http://easygals-com.frebnet.com]easygals.com[/url] [url=http://barefootmaniacs-com.frebnet.com]barefootmaniacs.com[/url] [url=http://movieshark-com.timetopaynow.com]movieshark.com[/url] [url=http://amateurcurves-com.hereandnow0.com]amateurcurves.com[/url] [url=http://auntmia-com.beaffaired.com]auntmia.com[/url]

1:27 PM  
Anonymous Anonymous said...

Low cost Nolvadex/Tamoxifen pills online at one of reputable online pharmacy! Generic Nolvadex price. http://www.uegmusic.com/ - buy tamoxifen Take Nolvadex with a tall glass of water or another beverage that does not contain any alcohol. If you notice any excessive bleeding caused by an injury, talk to your doctor to see what can be done.

3:34 PM  
Anonymous Anonymous said...

Me and ozzy fucked harder, trying to show to our god!

FUCK YES!' just before cumming inside my warm pussy. were still fucking

my homepage - hcg injections
My page :: hcg injections

1:44 PM  
Anonymous Anonymous said...

If you complete your two years and realize you want to continue learning even more,
this program is flexible and gives you the option to continue into a third year, where
you. The gels went through a trypsin digestion and then were analyzed
by a MALDI-TOF-TOF mass spectrometer, which identified the proteins digested from the gels.
What now awaits Zimbabwe - once Africa's food basket.

Feel free to surf to my blog post - Biotechnology and Bioengineering

5:31 AM  
Anonymous Anonymous said...

Far too many children become the victims of abuse,
neglect, or abandonment and then sadly, often they become wards of the court who will eventually determine their fate.
This glass would cost less than $1000 and would be available to almost all the people
in Britain. I want to mention a part of the Prime Law (Twelve Visions Party) which
is part of Neothink.

Here is my web blog; Latest Daily News

7:20 AM  
Anonymous Anonymous said...

Hello to every one, as I am actually eager of reading this webpageís post to be updated daily.
It consists of good stuff.

Here is my web-site - click the up coming article

12:23 PM  
Anonymous Anonymous said...

Having read this I believed it was really informative. I appreciate you taking the time and effort to put this short article together.
I once again find myself personally spending a
significant amount of time both reading and posting comments.
But so what, it was still worthwhile!

my site; articleschase.com

11:34 PM  
Anonymous Anonymous said...

Hey, I think your site might be having browser compatibility issues.
When I look at your blog site in Safari, it looks fine but when opening in Internet Explorer, it has some overlapping.
I just wanted to give you a quick heads up! Other then that,
wonderful blog!

Also visit my website: perder peso

9:03 AM  
Anonymous Anonymous said...

Wow, that's what I was seeking for, what a stuff! existing here at this webpage, thanks admin of this website.

Also visit my website http://creepymovies-tvshows-review.blogspot.com/2009/07/ruins-mayan-with-flesh-eating-plants.html?showComment=1322380146338

4:18 PM  
Anonymous Anonymous said...

Wonderful blog! Do you have any hints for aspiring writers?
I'm planning to start my own website soon but I'm a little
lost on everything. Would you propose starting with a free platform
like Wordpress or go for a paid option? There are so many
choices out there that I'm totally confused .. Any ideas? Many thanks!

Have a look at my web site ... life insurance compare

2:39 AM  
Anonymous Anonymous said...

This is my first time visit at here and i am genuinely
impressed to read everthing at single place.

my site: fathers day gift

4:17 PM  

Post a Comment

<< Home