News:

*NEW* Current Version on STEAM16.793

Webchat:
Visit the chat



Clipping

Previous topic - Next topic

MrTAToad

What would be useful is the ability to select a clipping area, so that anything outside this area isn't displayed.  This is somewhat different to viewports as a clipping area doesn't modify the current origin of graphics.

Ian Price

You can do this with POLYVECTOR. OK, it' not as easy as selecting a rect (or other shaped) area, but it's not that much harder.
I came. I saw. I played.

spacefractal

VIEWPORT cant been used. Yes its does move x/y to its top corner on that VIEWPORT, but you can easy calculcate that.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrTAToad

Indeed, VIEWPORTS cant always be used as multiple overlapping viewports arent always allowed (OpenGL is very weird about that, although DirectX can be fine with it)

Schranz0r

#4
On a Tilemap?

You can draw a 1.000.000 tiles map with a simpl trick:
(btw. Old Code)

http://www.glbasic.com/forum/index.php?topic=966.msg5005#msg5005


simply draw things on the Screen not the outside one!
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

MrTAToad

#5
No, this is for objects on a pseudo 3d track, where multiple objects can overlay each other (which is why VIEWPORT wouldn't work).

I have been testing VIEWPORT, and another problem has cropped up with it, namely fractional parts (or rather a width or height < 1), mess up the positioning