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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-09-2010, 06:00 PM   #1 (permalink)
Abel
Registered Member
 
Join Date: Jul 2008
Posts: 189
Default A little openGL help please ?

In order to support text in my game I wrote a class for handling textures that generates textures from images or text. It works fine when I generate a string texture upon program initialization but when a string texture is generated dynamically while in the game the texture comes out like pixel noise. You can sort of see the string but not really because you get all these random pixels of random colors all over the place where the texture is drawn.

Has anyone had this issue before or have a probable cause for this? What was causing it and how was it solved ?

I tried adding glFlush() calls after my GL code and CGContextFlush calls after my CG calls and it makes no difference.

Im using CG to draw the string to an image buffer than I then pass to openGL to generate a texture. It works very well when the string is static, but when it is generated as needed all I get is noise.
__________________
http://shareitapp.net
Abel is offline   Reply With Quote
 

» Advertisements
» Online Users: 278
18 members and 260 guests
ADY, ckgni, her-ur, ilmman, imehl, IphoneSdk, iph_s, jakerocheleau, karunaskj, MarkC, marshusensei, mer10, peterkessler45, rodrigozanatta, Rudy, Speed, Xaron
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,218
Posts: 380,695
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:31 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.