Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-20-2008, 08:35 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2008
Location: England, UK
Posts: 46
getfox is on a distinguished road
Default Hello! Little tiny opengl problem.

I know this is stupid problem to ask for help on, but I'm not sure how to make my opengl view see through, I've messed around with all the glBlendFunc options, and I set glClearColor with: (0.0f, 0.0f, 0.0f, 0.0f); the last value being alpha. But it's still black?

Any help would be great. Thanks.
getfox is offline   Reply With Quote
Old 11-20-2008, 09:00 AM   #2 (permalink)
Registered Member
 
Join Date: Sep 2008
Location: England, UK
Posts: 46
getfox is on a distinguished road
Default

Anyone? I'm totally stuck here.
getfox is offline   Reply With Quote
Old 11-20-2008, 09:30 AM   #3 (permalink)
Senior Member
iPhone Dev SDK Supporter
 
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 24
Posts: 3,983
smithdale87 is on a distinguished road
Send a message via AIM to smithdale87
Default

Code:
yourGLView.alpha = 0.5f;
smithdale87 is offline   Reply With Quote
Old 11-20-2008, 09:53 AM   #4 (permalink)
Registered Member
 
Join Date: Sep 2008
Location: England, UK
Posts: 46
getfox is on a distinguished road
Default

Thanks Smithdale. That kind of worked and didn't, with 0.5, everything was alpha which was a bit of a problem but I noticed the black disappeared rather then fading. So I tried self.alpha = 0.998f; and this got rid of the background while leaving everything else pretty much the same. Perfect outcome I guess. I'm not sure why that works but hey thank you.
getfox is offline   Reply With Quote
Reply

Bookmarks

Tags
opacity, opengl

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 386
8 members and 378 guests
chemistry, daudrizek, jeroenkeij, Kirkout, PavelMik, whitey99
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,665
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, daudrizek
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:01 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0