Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » OpenGL texture issues
Re: OpenGL texture issues [message #40716 is a reply to message #40711] Sun, 08 September 2013 12:26 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

mirek wrote on Sun, 08 September 2013 01:35

mirek wrote on Sun, 08 September 2013 01:30


- it looks to like OpenGL expects textures in non-premultiplies format. In that case we need to unmultiply Image, right? (I have not seen any such thing in CoreGL/resources.cpp, but I might be missing something).



Ha, 2 minutes after posting, I have found in CoreGL

	glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);



I have to admit I didn't even think about it Smile But docs says it is exactly prempultiplied mode.

If it comes to textures of power of 2 it is true for opengl es - so for all mobile devices. On desktop it is not required.

[Updated on: Sun, 08 September 2013 12:26]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Tutorial] Using the Visual Studio IDE with U++
Next Topic: Serialization technique
Goto Forum:
  


Current Time: Sat May 03 14:30:11 CEST 2025

Total time taken to generate the page: 0.02339 seconds