Page 2 of 2

Re: cursor relative scaling.

Posted: 19 Aug 2009, 00:41
by Neddie
I agree. I am one person who would use this.

closed: won't add

Posted: 19 Aug 2009, 02:22
by jK
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.

Posted: 19 Aug 2009, 02:42
by smoth
there are a lot of resolutions and such a notion has been suggested in the thread already.

Re: cursor relative scaling.

Posted: 19 Aug 2009, 05:56
by Neddie
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?

Re: cursor relative scaling.

Posted: 19 Aug 2009, 06:06
by jK
Why could you estimate the effort such a feature needs?

Re: cursor relative scaling.

Posted: 19 Aug 2009, 07:24
by smoth
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.

Posted: 19 Aug 2009, 07:33
by Neddie
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?

Re: cursor relative scaling.

Posted: 19 Aug 2009, 14:11
by Regret
Lua support for SVG plzplzplzplzplz

Re: cursor relative scaling.

Posted: 19 Aug 2009, 15:23
by thesleepless
as i mentioned before, librsvg is what you're looking for

Re: cursor relative scaling.

Posted: 19 Aug 2009, 16:20
by smoth
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.

Re: cursor relative scaling.

Posted: 19 Aug 2009, 17:29
by Regret
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.
A tiny widget that does exactly what you want:
http://springrts.com/phpbb/viewtopic.php?f=23&t=19934

Re: cursor relative scaling.

Posted: 19 Aug 2009, 18:12
by smoth
Thank you regret!

Adding to gundam

Re: cursor relative scaling.

Posted: 19 Aug 2009, 21:22
by lurker
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.

Posted: 19 Aug 2009, 23:17
by Regret
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?
According to wiki it existed even in 2008.

http://springrts.com/mediawiki/index.ph ... ldid=15817