![]() |
Polygon cutout?
2 Attachment(s)
I know this is somewhere on the forums but I seem to not be able to find it after hours of searching. So I played with some scripts and tried to get a polygon to display around the whole screen with a cutout around the player.
This is what I came up with. Any suggestions why the top left part of my screen and part of the inner circle dont display right.. Im not 100% familiar with polygons yet. PHP Code:
|
It's probably easier to create a circle image with a square border then fill in the gaps with polygons.
|
Not sure what you mean.. Black image with cutout of a circle stretched over screen? Couldnt that mess the circle up??
|
You need to add the first coordinates to the end as well.
|
Thanks. That fixed it.. :)
How about for making the lights also show on the poly?? |
Quote:
Also, none of my HD LttP graphics were up for grabs, like the bush, so could you please remove them? |
Quote:
Well other then multiple light sources. How would I make multiple lanterns actually light up near there area.. I tried seteffect() and using a light with an alpha.. and that didn't improve visibility at all.. *shrugs*.. tried poly's too. |
Quote:
|
Quote:
Would be neat to have image masking here.. :( Also: were sorry for using your gfx without your permission. They are being removed. It wasn't realized they were not up for grabs. |
Quote:
Quote:
|
Are there any examples of drawingpanel? I am completely unfamiliar with it.
|
Quote:
However in v6 you can do things like draw polygons and apply filters. If you check out my old server upload I posted in the playerworld section you might find the script in there I made using this technique: http://i.imgur.com/GEwJM.png As you can see there are cons. It's a gui, so it's going to be drawn over all in-game elements like showimgs, and it might try to steal focus since it's being drawn over the entire screen. Also, since you're coordinating level positions like players to gui positions, it tends to be a frame behind the player, which can look sort of bad. |
Quote:
Sadly, the wiki lacks hardcore information. Like you said about drawing poly's not even mentioned in the wiki for guidrawingpanel.. :( |
Quote:
or.. apply lessed darkness where not cur out.. and then throw a slight darkness under it.. |
Quote:
http://i.imgur.com/lJg0n.png |
Quote:
and you apply an alpha of .99 or less and the whiter the color the brighter it is? |
Quote:
2) fill black 3) draw image for each light source(white circles, with transparency(semi-transparency for softer edges) by via screenx(posx,posy)*quality,screeny(posx,posy)*qual ity 4) render drawing panel at 0,0 and at the scale of quality I haven't looked at the script in a long time though, so I could be making mistakes... but as for flexibility? You're kind of screwed. Last time I tried this it was either totally opaque, or 99% transparent. Those were the only levels of transparency it would allow. Honestly, you'd be better off looking at the script yourself, as I'm working from memory here. |
Quote:
Or just making the center of the white space "softer" ? EDIT: Oh, I see what you mean. I have to make the darkness totally black. Hmm. I would need to play with the script to see what I can come up with. Might this be what you speak of? http://forums.graalonline.com/forums...t=DustyPorViva |
All times are GMT +2. The time now is 02:13 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.