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 08-06-2006, 01:54 AM
Omini Omini is offline
Millenium Owner
Join Date: Feb 2006
Location: N.Ireland
Posts: 293
Omini is on a distinguished road
Send a message via AIM to Omini Send a message via MSN to Omini Send a message via Yahoo to Omini
A different showpoly question

N.B. This question is related to showpoly, but it's a different question than what the other showpoly topic contains.

Does anyone know if it's possible to cause a poly to 'fade'?

I tried:

PHP Code:
showpoly(4000,{0,0,screenwidth,0,screenwidth,screenheight,0,screenheight});
changeimgcolors(4000,1,1,1,0.3); 
But it just stays as a solid white. Does anyone know if it's possible to fade it? (and if so, can you tell me please?)
__________________



Reply With Quote
  #2  
Old 08-06-2006, 12:59 PM
contiga contiga is offline
Graal2001 Administration
contiga's Avatar
Join Date: Jul 2004
Location: Netherlands
Posts: 419
contiga is an unknown quantity at this point
Send a message via ICQ to contiga Send a message via AIM to contiga Send a message via MSN to contiga Send a message via Yahoo to contiga
Quote:
Originally Posted by Omini
N.B. This question is related to showpoly, but it's a different question than what the other showpoly topic contains.

Does anyone know if it's possible to cause a poly to 'fade'?

I tried:

PHP Code:
showpoly(4000,{0,0,screenwidth,0,screenwidth,screenheight,0,screenheight});
changeimgcolors(4000,1,1,1,0.3); 
But it just stays as a solid white. Does anyone know if it's possible to fade it? (and if so, can you tell me please?)
PHP Code:
with findImg4000)) { 
  
polygon = { 00screenwidth0screenwidthscreenheight0screenheight};
  
alpha 0.3;
  
layer 4;

Should work
__________________
AIM: Contiga122
MSN: [email protected]
Status:
Quote:
Originally Posted by unixmad View Post
I am also awake 3AM to help correct problems.
Quote:
Originally Posted by Bomy Island RC people
Daniel: HoudiniMan is a bad guy =p
*Bell: rofl. I first read that as houdini is a bad man. like the little kid that wants his mommy to keep her away from that boogie man
Daniel: xD
*Rufus: I wouldn't want my kids around him.
Reply With Quote
  #3  
Old 08-06-2006, 03:44 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
If you mean if its possible to set transparency to polys, then yes - but only online for some reason.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #4  
Old 08-06-2006, 08:46 PM
Omini Omini is offline
Millenium Owner
Join Date: Feb 2006
Location: N.Ireland
Posts: 293
Omini is on a distinguished road
Send a message via AIM to Omini Send a message via MSN to Omini Send a message via Yahoo to Omini
Quote:
Originally Posted by contiga
PHP Code:
with findImg4000)) { 
  
polygon = { 00screenwidth0screenwidthscreenheight0screenheight};
  
alpha 0.3;
  
layer 4;

Should work
Doesn't appear to. No matter what I have alpha set to, it just stays as solid white.
__________________



Reply With Quote
  #5  
Old 08-07-2006, 12:15 PM
contiga contiga is offline
Graal2001 Administration
contiga's Avatar
Join Date: Jul 2004
Location: Netherlands
Posts: 419
contiga is an unknown quantity at this point
Send a message via ICQ to contiga Send a message via AIM to contiga Send a message via MSN to contiga Send a message via Yahoo to contiga
Quote:
Originally Posted by Omini
Doesn't appear to. No matter what I have alpha set to, it just stays as solid white.
Try this then:
PHP Code:
with findImg4000)) {
  
polygon = { 00screenwidth0screenwidthscreenheight0screenheight};
  
green 0.9;
  
alpha 0.3;
  
blue 0.9;
  
red 0.9;
  
layer 4;

Should be still a bit white, but transparant.
__________________
AIM: Contiga122
MSN: [email protected]
Status:
Quote:
Originally Posted by unixmad View Post
I am also awake 3AM to help correct problems.
Quote:
Originally Posted by Bomy Island RC people
Daniel: HoudiniMan is a bad guy =p
*Bell: rofl. I first read that as houdini is a bad man. like the little kid that wants his mommy to keep her away from that boogie man
Daniel: xD
*Rufus: I wouldn't want my kids around him.
Reply With Quote
  #6  
Old 08-07-2006, 09:54 PM
Omini Omini is offline
Millenium Owner
Join Date: Feb 2006
Location: N.Ireland
Posts: 293
Omini is on a distinguished road
Send a message via AIM to Omini Send a message via MSN to Omini Send a message via Yahoo to Omini
I have

PHP Code:
with (findImg(4000)) {
        
polygon = { 00screenwidth0screenwidthscreenheight0screenheight};
        
alpha 0.3;
        
red 0.9;
        
green 0.9;
        
blue 0.9;
        
layer 4;
      } 
I also tried

PHP Code:
with (findImg(4000)) {
        
polygon = { 00screenwidth0screenwidthscreenheight0screenheight};
        
this.alpha 0.3;
        
this.red 0.9;
        
this.green 0.9;
        
this.blue 0.9;
        
layer 4;
      } 
But it doesnt appear to work... anything noticable that's causing the problem?
__________________



Reply With Quote
  #7  
Old 08-08-2006, 12:26 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
have you tried changing the mode to 1 and letting it fade that way
__________________
Deep into the Darkness peering...
Reply With Quote
  #8  
Old 08-08-2006, 11:27 AM
contiga contiga is offline
Graal2001 Administration
contiga's Avatar
Join Date: Jul 2004
Location: Netherlands
Posts: 419
contiga is an unknown quantity at this point
Send a message via ICQ to contiga Send a message via AIM to contiga Send a message via MSN to contiga Send a message via Yahoo to contiga
Try this:
PHP Code:
red green blue 0
__________________
AIM: Contiga122
MSN: [email protected]
Status:
Quote:
Originally Posted by unixmad View Post
I am also awake 3AM to help correct problems.
Quote:
Originally Posted by Bomy Island RC people
Daniel: HoudiniMan is a bad guy =p
*Bell: rofl. I first read that as houdini is a bad man. like the little kid that wants his mommy to keep her away from that boogie man
Daniel: xD
*Rufus: I wouldn't want my kids around him.
Reply With Quote
  #9  
Old 08-08-2006, 06:40 PM
Omini Omini is offline
Millenium Owner
Join Date: Feb 2006
Location: N.Ireland
Posts: 293
Omini is on a distinguished road
Send a message via AIM to Omini Send a message via MSN to Omini Send a message via Yahoo to Omini
Would using 'transparency = .3;' do anything within the findimg?
__________________



Reply With Quote
  #10  
Old 08-09-2006, 03:37 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
I dont think tranparecy is a command.

mode = 1;
alpha = 0.3;

that would fade the img without adding/taking away light
__________________
Deep into the Darkness peering...
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 02:19 PM.


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