Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-20-2007, 10:25 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Changing specific colours on images

Is it possible to change certain colours of a graphic using scripting? (Kinda like how you can change the colour of bodies). This would be useful as I'd like to be able to change certain parts of pictures to the players elemental colours (especially in ganis) without needing to create a new image for each colour.
Reply With Quote
  #2  
Old 06-20-2007, 02:35 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
As far as i know it's not possible. What you could do, is have another gani or image overlay which just includes the parts you want to change. Then you can changeimgcolors on that.
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #3  
Old 06-21-2007, 12:39 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Yup, can't be done.
__________________
Do it with a DON!
Reply With Quote
  #4  
Old 06-21-2007, 07:20 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Steffffaaaaannnnnn!

The ability is already there, can we have this added to scripts?
Reply With Quote
  #5  
Old 06-25-2007, 08:32 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Create an alpha img then just use changeimgcolors() to the desired color
__________________
Deep into the Darkness peering...
Reply With Quote
  #6  
Old 06-25-2007, 11:41 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Angel_Light View Post
Create an alpha img then just use changeimgcolors() to the desired color
He means changing specific colors like if you have an image with yellow, green and blue, just use a command to change the yellow (255, 255, 0) to say red.
__________________
Do it with a DON!
Reply With Quote
  #7  
Old 06-26-2007, 02:24 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
make the img into alpha parts then. I get what your saying
__________________
Deep into the Darkness peering...
Reply With Quote
  #8  
Old 06-26-2007, 02:28 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
Well he wanted to avoid that, he was looking for something simple like changing colors on the bodies.
Reply With Quote
  #9  
Old 06-26-2007, 02:33 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
As i remember saying before, if we had direct access to the images as matrices we could have complete control over them, we could tint, stretch/skew, resize, rotate, move, blur, sharpen, etc, without needing GScript functions for it.
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #10  
Old 06-26-2007, 03:25 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by JkWhoSaysNi View Post
As i remember saying before, if we had direct access to the images as matrices we could have complete control over them, we could tint, stretch/skew, resize, rotate, move, blur, sharpen, etc, without needing GScript functions for it.
Err...how do you do anything on Graal in-game without GScript functions (and variables, duh.)?
__________________
Do it with a DON!
Reply With Quote
  #11  
Old 06-26-2007, 03:35 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
I mean specific GScript functions for crop/rotate/stretch/tint/etc we could code them ourselves and not have to rely on Stefan implementing them in GS2.
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #12  
Old 06-26-2007, 04:09 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
we can already rotate with the P.E.
__________________
Deep into the Darkness peering...
Reply With Quote
  #13  
Old 06-26-2007, 04:15 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
Yes and stretch but my point it we wouldn't be restricted to the functions that already exist because we could make our own functions using transformation matrixes or for affine transformations or apply filters like blur and sharpen, etc
__________________

Coming soon (Hopefully:P)
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 10:30 PM.


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