cursor relative scaling. - Page 2

cursor relative scaling.

Requests for features in the spring code.

Moderator: Moderators

User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Re: cursor relative scaling.

Post by Neddie »

I agree. I am one person who would use this.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

closed: won't add

Post by jK »

just add different cursor sets with different sizes of the same images and use lua to switch between them at runtime -_-
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: cursor relative scaling.

Post by smoth »

there are a lot of resolutions and such a notion has been suggested in the thread already.
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Re: cursor relative scaling.

Post 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?
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: cursor relative scaling.

Post by jK »

Why could you estimate the effort such a feature needs?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: cursor relative scaling.

Post 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.
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Re: cursor relative scaling.

Post 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?
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: cursor relative scaling.

Post by Regret »

Lua support for SVG plzplzplzplzplz
User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

Re: cursor relative scaling.

Post by thesleepless »

as i mentioned before, librsvg is what you're looking for
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: cursor relative scaling.

Post 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.
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: cursor relative scaling.

Post 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
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: cursor relative scaling.

Post by smoth »

Thank you regret!

Adding to gundam
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: cursor relative scaling.

Post 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?
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: cursor relative scaling.

Post 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
Post Reply

Return to “Feature Requests”