Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [Utility] Stroke  (Read 16519 times)

0 Members and 1 Guest are viewing this topic.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10801
    • View Profile
    • development blog
    • Email
AW: Re: [Utility] Stroke
« Reply #15 on: November 07, 2012, 02:24:47 pm »
Impressive! Why not put the code on GitHub?
Because the original code is not mine and the new code is a dirty adaption which isn't fully tested and Spidyy said he'd have a new version soon... ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Nexxtron

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: [Utility] Stroke
« Reply #16 on: November 07, 2012, 06:16:13 pm »
I´m glad to hear that this project still goes on  :) can´t wait.
Meanwhile, I try the "dirty" sfml 2 port :D ( my port doesn´t work quite good... )
« Last Edit: November 07, 2012, 06:24:24 pm by Nexxtron »

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
Re: [Utility] Stroke
« Reply #17 on: November 10, 2012, 11:00:14 pm »
This could be useful if updated.  Any word on it yet?
I have many ideas but need the help of others to find way to make use of them.

Spidyy

  • Sr. Member
  • ****
  • Posts: 493
    • View Profile
Re: [Utility] Stroke
« Reply #18 on: November 13, 2012, 03:21:19 am »
Well sorry about the "soon", but it takes a bit more time that planned, due to real life priorities.

I'm still working on it, and I can say this for sure :

- All the naming of the class is rewrited to be more in a well made way. (no more this everywhere.)
- Added an Radomizer class with the stroke, that way stroke with randomize themselves even after the disapearance of SFML randomizer.
- No more draw modes, only 2 draw is supported : textured and non textured. I don't think the Line rendering is used for games, more for my own debugging.
- No more sweep attributes, the way the stroke is shaped will be replaced by another more flexible mean, allowing you to shape the Stroke anyway you like from its start to its end.
- No more stippling, as in fact, a little texture trick can do the work.
- A stroke can now be "closed", meaning you can draw perfect circle with it, the start and end point will join themselves nicely.
- You will have to call for an "update" function each frame before rendering to ensure the stroke is correctly computed, except if you don't add any joint or the stroke is not self-animated.

Well I still have the texturing and the shaping system to work on before releasing.
« Last Edit: November 13, 2012, 03:23:11 am by Spidyy »

Kain5056

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: [Utility] Stroke
« Reply #19 on: July 22, 2013, 08:53:02 pm »
Does anyone still have the files? This looks crazy awesome, and it would be great if someone could re-upload the code.  :)

Or at least some pointers on how it was done, this would also be helpful if the files are already lost.  ;D

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10801
    • View Profile
    • development blog
    • Email
Re: [Utility] Stroke
« Reply #20 on: July 22, 2013, 10:15:14 pm »
I really hoped Spidyy would get around to do a whole rewrite, but I don't think that's gonna happen. :-\

Here's my dirty port to SFML 2.0: https://gist.github.com/eXpl0it3r/6057215
But since it's already again quite a few month old, it might not be working anymore.

For the concept, it's mostly just a lot of math. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/