cursor relative scaling.
Moderator: Moderators
Re: cursor relative scaling.
I agree. I am one person who would use this.
closed: won't add
just add different cursor sets with different sizes of the same images and use lua to switch between them at runtime -_-
Re: cursor relative scaling.
there are a lot of resolutions and such a notion has been suggested in the thread already.
Re: cursor relative scaling.
As much as I love non-vector formats as a pixel artist, this is one of the few times where vector might be handy. I understand that you may not see this, but think of it the other way around... why wouldn't you add something which has both function and use, which additionally may not require very much effort at all - look, a library - and is a more efficient engine-side solution to a common concern, even if not everybody is behind it?
Oh, wait. You WOULD.
Aaaanyway, the thread isn't about .svg, the thread is about engine side scaling, which once again is a good idea I can't imagine a viable argument against. Can we get back to it?
Oh, wait. You WOULD.
Aaaanyway, the thread isn't about .svg, the thread is about engine side scaling, which once again is a good idea I can't imagine a viable argument against. Can we get back to it?
Re: cursor relative scaling.
Why could you estimate the effort such a feature needs?
Re: cursor relative scaling.
No idea but I wanted to ask anyway. Maybe someone might go, hey that annoys me to and do something to correct it.
Re: cursor relative scaling.
Let me see...
Since SVG is a maintained format and there are other open source programs which use it, we can assume there is a library available for converting SVG into a OGL interpretable format. Given that, you then need to write a function to load the SVG and pass it through the converting library. If it only needs to be sized once in an instance of Spring, like a cursor or fixed element of the GUI, it only needs to be rendered once. I suppose there are some optimization concerns with something which would need to be rerendered, a dynamic element like a unit icon, which changes size based on zoom. It isn't a negligible effort but there are resources and documentation at your disposal
You're right, as I am not a coder I don't know the specifics of integrating this and I cannot do so myself. However, that doesn't mean I don't know a little about how things work.
Anyway, I would like to get back to the actual discussion. I'm not going to continue the point, it is a proposal for another time and I can do what I want with or without it. Smoth, continue?
Since SVG is a maintained format and there are other open source programs which use it, we can assume there is a library available for converting SVG into a OGL interpretable format. Given that, you then need to write a function to load the SVG and pass it through the converting library. If it only needs to be sized once in an instance of Spring, like a cursor or fixed element of the GUI, it only needs to be rendered once. I suppose there are some optimization concerns with something which would need to be rerendered, a dynamic element like a unit icon, which changes size based on zoom. It isn't a negligible effort but there are resources and documentation at your disposal
You're right, as I am not a coder I don't know the specifics of integrating this and I cannot do so myself. However, that doesn't mean I don't know a little about how things work.
Anyway, I would like to get back to the actual discussion. I'm not going to continue the point, it is a proposal for another time and I can do what I want with or without it. Smoth, continue?
Re: cursor relative scaling.
Lua support for SVG plzplzplzplzplz
- thesleepless
- Posts: 417
- Joined: 24 Oct 2007, 04:49
Re: cursor relative scaling.
as i mentioned before, librsvg is what you're looking for
Re: cursor relative scaling.
I asked you not to derail the thread... gj.
THIS THREAD IS A REQUEST FOR RELATIVE CURSOR SCALING NOT SUPPORT FOR THAT OVER-RATED VECTOR FORMAT. VECTORS ARE LIMITED IN WHAT THEY CAN DO.
GO REQUEST SVG IN ANOTHER THREAD.
THIS THREAD IS A REQUEST FOR RELATIVE CURSOR SCALING NOT SUPPORT FOR THAT OVER-RATED VECTOR FORMAT. VECTORS ARE LIMITED IN WHAT THEY CAN DO.
GO REQUEST SVG IN ANOTHER THREAD.
Re: cursor relative scaling.
A tiny widget that does exactly what you want:smoth wrote:I asked you not to derail the thread... gj.
THIS THREAD IS A REQUEST FOR RELATIVE CURSOR SCALING NOT SUPPORT FOR THAT OVER-RATED VECTOR FORMAT. VECTORS ARE LIMITED IN WHAT THEY CAN DO.
GO REQUEST SVG IN ANOTHER THREAD.
http://springrts.com/phpbb/viewtopic.php?f=23&t=19934
Re: cursor relative scaling.
Thank you regret!
Adding to gundam
Adding to gundam
Re: cursor relative scaling.
The set cursor function has a scale parameter? Did this exist when the topic was first active and nobody realized, or is it new?
Re: cursor relative scaling.
According to wiki it existed even in 2008.lurker wrote:The set cursor function has a scale parameter? Did this exist when the topic was first active and nobody realized, or is it new?
http://springrts.com/mediawiki/index.ph ... ldid=15817