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 #40719 is a reply to message #40716] Sun, 08 September 2013 19:05 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14256
Registered: November 2005
Ultimate Member
unodgs wrote on Sun, 08 September 2013 06:26

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.


Actually, OpenGL ES 2.0 says that non-power-of-2 textures are OK as well, just do not support mipmapping...

Mirek
 
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:24:13 CEST 2025

Total time taken to generate the page: 0.05023 seconds