Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need 7 developers from Canada and 18 more from Australia. to help us complete a research survey. We need your help! Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!


Member Since 18 Jul 2012
Offline Last Active Aug 29 2012 07:09 AM

Posts I've Made

In Topic: Fill distance with quads

26 July 2012 - 04:10 AM

Many many thanks for you. Just met the problem that as I see vectors aren't built-in in Objective-c. Maby you can suggest any library for it? And another question. Now with your code I have path witch should be filled. How could I do it? Any openGL commands or something to tell it to draw quads in every location from point A to point B?

In Topic: Fill distance with quads

20 July 2012 - 01:25 AM

The only way to fix this is to draw a brush for each pixel in between the circles.

How to do it? Is there any tutorials or some useful documentation/information on the internet or something?

In Topic: Fill distance with quads

19 July 2012 - 01:57 AM

I can, but I don't know how to do it in this situation. Because my vertex array object depends on user actions. I mean, points are being added wherever user drags pressed mouse. So I don't know how to tell my program where to draw these additional quads if distance is bigger than something.

If last two quads vertexes in my vertex array is
(x1,y1)[top left]
(x2,y2)[top right]
(x3,y3)[bottom right]
(x4,y4)[bottom left]

(x5,y5)[top left]
(x6,y6)[top right]
(x7,y7)[bottom right]
(x8,y8)[bottom left]

and distance between them is bigger than my allowed size (lets say I'm counting distance between [bottom right] points to know the distance between quads), then how to add for example 3 quads (12 vertexes) to my vertex array where they are needed (between these two quads)? I cant't know where user will be drawing, so I don't know exactly where additional quads will be needed.