Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Serge

#1
Well, i used the star just an a example of what I am trying to do, in fact I need to be able to draw any irregular polygon and fill it. So,since the polygons will be randomly created I can not use the approach of using images. :(

thanks and regards
#2
Hi,

I am trying to use POLYVECTOR in order to draw a Polygon, but I noted that it is not filled as I expected. I need that the polygon is filled only by inside, but instead, the polygon is filled drawing a triangle from the first edge to the rest of them, so concave polygons are not filled correctly (i.e. when drawing a star, please see my attached image).

I found that there are some algorythms to do it (i.e. scanline algorythm) , but before implement it I would like to know it this is already implemented for GLBasic.

Thanks and regards

Serge
www.tiptapgames.com

[attachment deleted by admin]
#3
Mhh, not yet, but I will make some performance test and let you know the results

Best regards

Serge
www.tiptapgames.com
#4
 =D That's exactly what I needed, thanks so much for your help!!

Serge
www.tiptapgames.com
#5
Hi,

I need to have 2 images, one as backgrond and other one that at the begining does not have any transparency, so I will draw a irregular area on this image and I need to make transparent only this area, so it will be like a window where you can see the background.

I hope it clarifies.

Thanks again and best regards.

Serge
www.tiptapgames.com
#6
Hi all,

I am trying to make transparent some random areas of a image before draw it to the back buffer. I saw the functions GetPixel and SetPixel but I think they work only over the back buffer.  I would need to be able to modify the image before draw it, so the areas that I randomly defined transparent will not be drawn.

Basically what I need is:

-Load an image in a sub-buffer where I could be able to read the pixels and modify them.
-Keep this image and the modifications in memory, since I would need to use it again.
-Redefine the DrawSprite, so I could be able to draw in the buffer only the areas that I required.

Is it possible?

Thanks so much and regards

Serge
www.tiptapgames.com