Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-02-2009, 09:04 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Better DrawingPanel support?

Right now drawing panels are extremely limited in what you can achieve. You can basically only show an image and crop/stretch it. Not much you can do with that, honestly... at least if you're trying to do anything even remotely creative.

Suggestions:

1) ability to draw polygons.
2) ability to draw text.
3) ability to draw ganis.
4) clearimage(int x, int y, int width, int height)/clearpoly() - erases the shape of the image/polygon from the canvas. Would allow us to erase in the shape of circles, for example... or any shapes, really.
5) ability to manipulate the above and the existing methods much like we can any other image. Ability to change their colors/rotation and so on. How, since they're not images/objects? That's a good question... maybe store the last drawn image in an object? like MyDrawingPanel.panel.lastimage... Thus we would be able to do something like:
MyDrawingPanel.panel.lastimage.rotation = pi;
MyDrawingPanel.panel.lastimage.alpha = .5;

Or something. Now I realize that drawing panels work by strictly drawing to a canvas and leaving it as that, but maybe the last thing drawn could be preserved separately and only written on to the canvas when the next image is drawn to it?
Reply With Quote
  #2  
Old 11-02-2009, 02:50 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
In v6 and on server-side you can already draw text and curves, and you can apply a mask. Drawing showimg could be interesting too in the future.
Reply With Quote
  #3  
Old 11-02-2009, 04:05 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Don't forget setting of transparencies, and a replace color function.
__________________
Quote:
Reply With Quote
  #4  
Old 11-02-2009, 09:09 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
And TDrawingPanel.panel.image? (allow us to use the panel as an image dynamically).
Reply With Quote
  #5  
Old 11-04-2009, 11:25 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Hmm, apparently panels don't support alpha transparency? There is also no way to draw a cropped image AND resize it.

Also, I'm not very versed with serverside drawing panels, but I would love to be able to somehow pass the data of a clientside panel to a serverside one for image saving purposes. For example, say I wanted to create a painting program, and allow players to save the image to the server(think pictionary or something) for other players to view immediately after they're done. As far as I know, this isn't possible unless I save it clientside then upload the file then move the file and so on.

Last edited by DustyPorViva; 11-05-2009 at 12:09 AM..
Reply With Quote
  #6  
Old 11-05-2009, 12:08 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by DustyPorViva View Post
Hmm, apparently panels don't support alpha transparency? There is also no way to draw a cropped image AND resize it.
Client-side doesn't, server-side works fine as far as transparencies are concerned.
__________________
Quote:
Reply With Quote
  #7  
Old 11-05-2009, 03:47 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
What is the problem with saving and uploading the image?
Reply With Quote
  #8  
Old 11-05-2009, 03:55 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Stefan View Post
What is the problem with saving and uploading the image?
Well mostly that it doesn't need to be saved clientside. Like I said, if I made a pictionary script, the next step would be sharing it with other players/judges. So ideally it should be taken straight to the serverside and shared, rather than taking those many steps in-between.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:58 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.