Do you _MAPTRIANGLE? - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1) +--- Forum: QBJS, BAM, and Other BASICs (https://staging.qb64phoenix.com/forumdisplay.php?fid=50) +--- Thread: Do you _MAPTRIANGLE? (/showthread.php?tid=1564) Pages:
1
2
|
Do you _MAPTRIANGLE? - dbox - 03-20-2023 I've been working on adding _MapTriangle to QBJS and it's got me curious about usage of this method by the community. _MapTriangle is an interesting and powerful function... it's really two different functions in one. There is a 2D version which takes (x, y) points and a 3d version which takes true 3d (x, y, z) coordinates which are relative to the screen size. So, do you _MapTriangle? RE: Do you _MAPTRIANGLE? - bplus - 03-20-2023 My 2 main uses: 1. Yes for RotoZoom 2D 2. But even before that I used for Filled Triangles I am not seeing my category. RE: Do you _MAPTRIANGLE? - dbox - 03-21-2023 Sounds like you are option 2 since you use the 2d version for more than RotoZoom. RE: Do you _MAPTRIANGLE? - James D Jarvis - 03-21-2023 It's darn handy in rotozoom but I also use it to fill areas without using paint. It's pretty quick and I don't have to worry about bleeding outside a boundary by accident. RE: Do you _MAPTRIANGLE? - dbox - 03-21-2023 Based on his recent post it looks like Petr would be in the 3d version camp. Nice example Petr! RE: Do you _MAPTRIANGLE? - dbox - 03-21-2023 (03-21-2023, 01:29 PM)James D Jarvis Wrote: It's darn handy in rotozoom but I also use it to fill areas without using paint. It's pretty quick and I don't have to worry about bleeding outside a boundary by accident. Thanks for the feedback James. Do you have any sample code where you've used it for filling areas instead of Paint? RE: Do you _MAPTRIANGLE? - James D Jarvis - 03-22-2023 (03-21-2023, 06:32 PM)dbox Wrote:(03-21-2023, 01:29 PM)James D Jarvis Wrote: It's darn handy in rotozoom but I also use it to fill areas without using paint. It's pretty quick and I don't have to worry about bleeding outside a boundary by accident. sure, here's an example: Code: (Select All) 'imperfect false grid, doesn't work perfectly but it's an example of using _maptriangle to "paint" RE: Do you _MAPTRIANGLE? - Gets - 03-23-2023 I mainly use it for scaling, since it was faster than PUTIMAGE, and for the tiling effect. RE: Do you _MAPTRIANGLE? - mnrvovrfc - 03-24-2023 _MAPTRIANGLE is a command in QB64(PE) that I've never cared about. After coming across some of MasterGy's programs I feel very small having a lot to learn about graphics programming. I just don't have the patience. I could barely fire up GIMP to create the silly-looking avatars that you keep seeing from me on this site, and other things like the "derpface" GIF file. RE: Do you _MAPTRIANGLE? - dbox - 03-24-2023 (03-23-2023, 06:34 PM)Gets Wrote: I mainly use it for scaling, since it was faster than PUTIMAGE, and for the tiling effect. Thanks for the feedback @Gets! I'm collecting samples for testing purposes. Do you have an example program you could share that uses the tiling effect? |