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 » UppGL
Re: UppGL [message #32463 is a reply to message #32462] Thu, 19 May 2011 08:23 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

cbpporter wrote on Thu, 19 May 2011 02:00

On problem that I am having is the texture sizes: they need to be a power of two. If not you get an unsatisfying and unpredictable resize operation executed in the background in the best case scenario and horrible visual artifacts in the worst case scenario.

Uno, did you encounter this problem? Right now I am solving it by small pictures actually pointing to a large texture and containing the positional and size information and merging textures together in a texture pool when an image is loaded.

Like I wrote in my post, right now I have many textures of different sizes. But I want to rewrite texture manager to be more intelligent to be able to create one big texture (which is power of two) and put as many as possible smaller textures there. Other big textures will be simply resized to the power of two with empty spaces on the right and the bottom. So I'm gonna solve it in exactly the same way you are Smile I guess there is no better way to do it.

But that must wait a moment (it's not an issue on modern pc hardware). Right now I'm trying to use stencil buffer for nested transformed clipping.

[Updated on: Thu, 19 May 2011 08:26]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: external GIT clones differ in HASH --> problem when merging
Next Topic: STARTED: Python in bazaar
Goto Forum:
  


Current Time: Fri Jun 06 12:33:50 CEST 2025

Total time taken to generate the page: 0.06663 seconds