generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Drawing Canvas! - gap issues

Previous Thread :: Next Thread 
CodeWrighter is not online. CodeWrighter
Joined: 09 Nov 2011
Total Posts: 1030
14 Mar 2015 08:26 PM
http://www.roblox.com/Spectating-Drawing-Canvas-place?id=197813071

I'm working on developing a game where you can either free draw or compete with others to draw the best item by the end of a 5 minute round. However, the issue I've run in to when you draw too fast, there are gaps between the line you're drawing. I know how this is fixed however I don't know the math behind it. Thanks for reading!

-- CodeWrighter
Report Abuse
CodeWrighter is not online. CodeWrighter
Joined: 09 Nov 2011
Total Posts: 1030
14 Mar 2015 08:47 PM
Any ideas?

-- CodeWrighter
Report Abuse
CodeWrighter is not online. CodeWrighter
Joined: 09 Nov 2011
Total Posts: 1030
14 Mar 2015 11:01 PM
Guess no one..

-- CodeWrighter
Report Abuse
CodeWrighter is not online. CodeWrighter
Joined: 09 Nov 2011
Total Posts: 1030
15 Mar 2015 01:29 AM
Anyone out there know?

-- CodeWrighter
Report Abuse
Tokimonu is not online. Tokimonu
Joined: 18 Sep 2009
Total Posts: 643
15 Mar 2015 02:12 AM
no, sorry..
just wanted to help you bump, b/c i'm curious as well


bark
Report Abuse
CodeWrighter is not online. CodeWrighter
Joined: 09 Nov 2011
Total Posts: 1030
15 Mar 2015 02:19 AM
Heh.. Ye this seems something not many people know I guess. I know you need to get the distance between the prevPos of mouse and current pos, but then placing those is a whole different thing. I'm working at it to see if I get anything that works.

-- CodeWrighter
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
15 Mar 2015 03:09 AM
Well...
because of time gaps, this occurs. Use hover events for each pixel. That should remedy.

If not... then you might want to draw lines instead of color pixels.
Report Abuse
micke3212 is not online. micke3212
Joined: 24 Nov 2009
Total Posts: 3000
15 Mar 2015 03:12 AM
^Yup

I'm surprised none have considered making the pixel size .2 x .2 and zooming the camera out to a huge canvas and then allow for a paintbrush using magnitude to draw and color.
Report Abuse
parkiet3 is online. parkiet3
Joined: 16 Jul 2011
Total Posts: 832
15 Mar 2015 03:41 AM
^ :)
Report Abuse
micke3212 is not online. micke3212
Joined: 24 Nov 2009
Total Posts: 3000
15 Mar 2015 03:52 AM
Make 1080 Resolution!!! Have graphics to 1 and then zoom out (Preferable one player game) then use DataStore for people to come around and rate your designs!! Call it Roblox Gallery
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
15 Mar 2015 05:10 AM
even i could do this and im terrible at math
Report Abuse
CodeWrighter is not online. CodeWrighter
Joined: 09 Nov 2011
Total Posts: 1030
15 Mar 2015 06:43 AM
Haha.. Some of these responses. @BothAngles, if "even i could do this and im terrible at math", then why don't you actually respond with something more than that grammatically-improper sentence that you did, eh?

-- CodeWrighter
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
15 Mar 2015 06:47 AM
because i dont like you
Report Abuse
CodeWrighter is not online. CodeWrighter
Joined: 09 Nov 2011
Total Posts: 1030
15 Mar 2015 06:50 AM
OK? Is that supposed to offend me? I've never even spoke to you before, but you can stay on that high horse of yours.

-- CodeWrighter
Report Abuse
CodeWrighter is not online. CodeWrighter
Joined: 09 Nov 2011
Total Posts: 1030
15 Mar 2015 07:26 AM
Ah.. I know exactly who you are now, BothAngles. The one who facepalmed over me using ImageLabels for this. Please do tell a better way because news flash, there isn't. Yes I very well could use Frames if that was what you were suggesting, but then I'm limited to 1 straight style and square brushes whereas ImageLabels can be any image approved by ROBLOX. Though judging from the comments on your places and seeing what you've posted on threads in the past, you just like to start wars.

@Micke, ye that'd work fine and all and I would have done that when I first created the game.. However it's not 3D-based. It's all GUI, so you can't exactly use magnitude to calculate distance. Heh Not a bad idea for 3D art game :)

@cody, not sure what you're saying because it's not like those generic drawing games with assigned areas that you can only draw that specific area like in Imagination. The whole thing is your canvas with no limitations.

-- CodeWrighter
Report Abuse
distalDigitPhalanx is not online. distalDigitPhalanx
Joined: 25 Jan 2015
Total Posts: 1509
15 Mar 2015 08:15 AM
I have an idea that might work, but it requires you to know your algebra/geometry and such.

Every time the mouse moves, compare the world position it was LAST at, and the one it is at now. If you (in your imagination) connect those two points, you will get a line segment of a certain lenght. If your 'blobs' of paint are 1 stud in diameter, divide the line into N segments, where N is the lenght of the line in studs, rounded up. You now have a bunch of points (where the line is divided into smaller pieces). Put a blob of paint in each of these points.
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
15 Mar 2015 08:15 AM
i dont remember what i was thinking but if you post the thread link i might

doing this was harder than i imagined so now i dont feel like giving it away :-)
Report Abuse
distalDigitPhalanx is not online. distalDigitPhalanx
Joined: 25 Jan 2015
Total Posts: 1509
15 Mar 2015 08:16 AM
Oh, lol. I didn't realize you did it with GUIs. My idea would still be applicable though, just ignore the whole world space thing
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
15 Mar 2015 08:25 AM
Your idea works but that's the easy part
The hart part is positioning them correctly
Report Abuse
ianfulton is not online. ianfulton
Joined: 12 Apr 2011
Total Posts: 98
15 Mar 2015 08:27 AM
Add a shorter wait()?


Hmmmmm?
Report Abuse
distalDigitPhalanx is not online. distalDigitPhalanx
Joined: 25 Jan 2015
Total Posts: 1509
15 Mar 2015 08:40 AM
Why would positioning them be difficult?
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
15 Mar 2015 09:06 AM
ok im back and this time it definitely works
idk what happened after ~30 minutes it just clicked and i knew how to solve it
=D

heres a hint you will need:
1 +
1 /
1 *
Report Abuse
CodeWrighter is not online. CodeWrighter
Joined: 09 Nov 2011
Total Posts: 1030
15 Mar 2015 01:49 PM
Heh.. Interesting. BothAngles, if you've got it, I'd love to see it in action. :)

-- CodeWrighter
Report Abuse
DeviousDeviation is not online. DeviousDeviation
Joined: 28 Dec 2010
Total Posts: 9306
15 Mar 2015 02:08 PM
Instead of creating a dot where the mouse is, make a line between the last position and current position of the mouse.

⬡
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
15 Mar 2015 02:15 PM
http://www.roblox.com/Infection-item?id=227030358
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image