/* attempt to deal with prototype, bootstrap, jquery conflicts */ /* for dropdown menus */

Jump to content

Image of the Day

Day 17 -- a bunch more tools join the table :) #blender3d #screenshotsaturday #itssaturdaysomewhere #lowpoly #3D https://t.co/CYJucn0Lfv
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

Simple OpenGl glTexImage2D help

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 jeff8j   Members   

787
Like
0Likes
Like

Posted 05 January 2013 - 11:13 AM

I am trying to work with opengl textures and following nehes tutorials with the triangle and the square when I try to add a texture to the square the triangle goes semi transparent in linux and doesnt even show in windows.

 

I have tracked it down to glTexImage2D that seems to be causing it I am assuming something to do with lighting is that the case? how can I fix it? Thanks


Firefox youtube video and audio downloader MP3 MP4 OGG WEBM

https://addons.mozilla.org/en-US/firefox/addon/simple-youtube-converter/


#2 NewDisplayName   Members   

359
Like
0Likes
Like

Posted 05 January 2013 - 02:11 PM

Seems like an issue of alpha blending, but it can only be a guess because one can't tell what code you're talking about here.



#3 jeff8j   Members   

787
Like
0Likes
Like

Posted 05 January 2013 - 04:02 PM

Thanks for giving it a shot by searching for alpha blending I was able to find some similar questions that led me to the answer I have to call glDisable(GL_TEXTURE_2D); to draw the direct colors.


Firefox youtube video and audio downloader MP3 MP4 OGG WEBM

https://addons.mozilla.org/en-US/firefox/addon/simple-youtube-converter/





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.