Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » saberhawk's Stealth effect
saberhawk's Stealth effect [message #417261] Mon, 11 January 2010 05:26 Go to next message
Poskov
Messages: 235
Registered: March 2008
Location: Western Oceania
Karma: 0
Recruit
Any plans to port the APB stealth effect to Renegade?
Re: saberhawk's Stealth effect [message #417279 is a reply to message #417261] Mon, 11 January 2010 09:41 Go to previous messageGo to next message
R315r4z0r is currently offline  R315r4z0r
Messages: 3836
Registered: March 2005
Location: New York
Karma: 0
General (3 Stars)
If anyone ever hopes to attempt it, they would have to wait for the TT scripts 4.0 patch to be released.
Re: saberhawk's Stealth effect [message #417394 is a reply to message #417261] Tue, 12 January 2010 08:17 Go to previous messageGo to next message
Poskov
Messages: 235
Registered: March 2008
Location: Western Oceania
Karma: 0
Recruit
Why is that?
APB, by vr 1.2 already long had the effect
and they only had scripts 3.4.4
Re: saberhawk's Stealth effect [message #417398 is a reply to message #417261] Tue, 12 January 2010 08:36 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
i dont think it will work this easy but try to load the apbshader.dll file through scripts Razz

http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: saberhawk's Stealth effect [message #417419 is a reply to message #417394] Tue, 12 January 2010 11:57 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
Poskov wrote on Tue, 12 January 2010 10:17

Why is that?
APB, by vr 1.2 already long had the effect
and they only had scripts 3.4.4


Yeah, they had a crappy screen-space version that didn't respect depth and didn't work half the time...

On a sidenote, it's fully possible to implement a proper version in scripts 3.4.4, it's just that nobody has tried to.

Omar007 wrote on Tue, 12 January 2010 10:36

i dont think it will work this easy but try to load the apbshader.dll file through scripts Razz


Yeah, it is that easy; only catch is that your Renegade install gets an APB titlebar instead.

[Updated on: Tue, 12 January 2010 11:58]

Report message to a moderator

Re: saberhawk's Stealth effect [message #417423 is a reply to message #417419] Tue, 12 January 2010 12:11 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
Saberhawk wrote on Tue, 12 January 2010 19:57

Poskov wrote on Tue, 12 January 2010 10:17

Why is that?
APB, by vr 1.2 already long had the effect
and they only had scripts 3.4.4


Yeah, they had a crappy screen-space version that didn't respect depth and didn't work half the time...

On a sidenote, it's fully possible to implement a proper version in scripts 3.4.4, it's just that nobody has tried to.

Omar007 wrote on Tue, 12 January 2010 10:36

i dont think it will work this easy but try to load the apbshader.dll file through scripts Razz


Yeah, it is that easy; only catch is that your Renegade install gets an APB titlebar instead.

Oh cool that its that easy Razz
I'm going to try that then ^^

And @ titlebar; whateverrrrrr Razz as if anyone cares about titlebars. (although i did lol'd at some of the APB ones Thumbs Up )


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg

[Updated on: Tue, 12 January 2010 12:12]

Report message to a moderator

Re: saberhawk's Stealth effect [message #417429 is a reply to message #417261] Tue, 12 January 2010 13:40 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
Sorry for the double post but this is an update on adding it through scripts.dll Wink
First it wasnt really through scripts.dll, it was with HUD.ini

1. Adding it seems successful; Titlebar changes Thumbs Up
2. Our goal is not reached; Stealth Effect didnt change :V

So it isnt that easy Razz

UPDATE:
I added some files from the apb always.dat which works partially.



So it kinda gets stuck at the white part Razz
It should go transparent on stealth and completely gone on unstealth but it doesnt Huh


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg

[Updated on: Tue, 12 January 2010 13:57]

Report message to a moderator

Re: saberhawk's Stealth effect [message #417440 is a reply to message #417429] Tue, 12 January 2010 14:52 Go to previous messageGo to next message
Kimb is currently offline  Kimb
Messages: 607
Registered: August 2009
Location: There is no greater power...
Karma: 0
Colonel

Omar007 wrote on Tue, 12 January 2010 14:40

Sorry for the double post but this is an update on adding it through scripts.dll Wink
First it wasnt really through scripts.dll, it was with HUD.ini

1. Adding it seems successful; Titlebar changes Thumbs Up
2. Our goal is not reached; Stealth Effect didnt change :V

So it isnt that easy Razz

UPDATE:
I added some files from the apb always.dat which works partially.



So it kinda gets stuck at the white part Razz
It should go transparent on stealth and completely gone on unstealth but it doesnt Huh

looks ugly as hell Dont Get It


What we think, or what we know, or what we believe is, in the end, of little consequence. The only consequence is what we do.
CarrierII wrote on Fri 21 May 2010 06:58

This doesn't meet the minimum standards of spam.
Re: saberhawk's Stealth effect [message #417442 is a reply to message #417261] Tue, 12 January 2010 15:01 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
Because it doesnt works as it should

This is how it should be:


It should be transparent and distorting what's behind, under or w/e Thumbs Up


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg

[Updated on: Tue, 12 January 2010 15:02]

Report message to a moderator

Re: saberhawk's Stealth effect [message #417446 is a reply to message #417429] Tue, 12 January 2010 15:28 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
Ah, right; APB has different stealth constants which are used by the shader to fade in/out. Sadly, I no longer have a copy of that shader code, nor do I have the tools to create the shader cache files used by apbshaders.dll.
Re: saberhawk's Stealth effect [message #417482 is a reply to message #417261] Wed, 13 January 2010 03:16 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
Well when i get back home ill be trying to fix it for renegade.

I dont think you will be able to play online after that though; objects.ddb Wink


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: saberhawk's Stealth effect [message #417508 is a reply to message #417261] Wed, 13 January 2010 11:08 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
Again sorry for the double post but i got home and i changed the stealth settings in objects.ddb with the result we wanted (almost)



I put almost between () because sometimes it doesnt work 100%;

1. Sometimes only transparent and not distorting shit
2. Stealth to Un-Stealth and vice versa transition not very good
3. Sometimes your screen (game only if you play windowed) will have some black stuff flickering
4. Looks screwed up when you are at the point you cant cloak because you dont have enough lives (sort of half cloaking Sarcasm )

1; seems only happening on Stank
2 and 4; Always
3; is really rare in my experience

EDIT:
I found what that black shit was. Its the waterfall that is on Hourglass Surprised
  • Attachment: result.png
    (Size: 585.11KB, Downloaded 590 times)
  • Attachment: lolwut.png
    (Size: 176.70KB, Downloaded 572 times)


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg

[Updated on: Wed, 13 January 2010 11:20]

Report message to a moderator

Re: saberhawk's Stealth effect [message #417511 is a reply to message #417261] Wed, 13 January 2010 11:51 Go to previous messageGo to next message
Tupolev TU-95 Bear is currently offline  Tupolev TU-95 Bear
Messages: 1176
Registered: April 2009
Location: Rìoghachd Aonaichte
Karma: 1
General (1 Star)
Good work you made Omar Wink
sadly why must good things be made with objects.dbb?


Decent people


Quotes or w/e

Re: saberhawk's Stealth effect [message #417513 is a reply to message #417511] Wed, 13 January 2010 11:54 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
GOL14TH wrote on Wed, 13 January 2010 19:51

Good work you made Omar Wink
sadly why must good things be made with objects.dbb?

Thanks but it wasnt that hard. (Not that easy as i thought either though Wink )

And yea its sad indeed Sad


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: saberhawk's Stealth effect [message #417517 is a reply to message #417513] Wed, 13 January 2010 12:10 Go to previous messageGo to next message
Tupolev TU-95 Bear is currently offline  Tupolev TU-95 Bear
Messages: 1176
Registered: April 2009
Location: Rìoghachd Aonaichte
Karma: 1
General (1 Star)
Omar007 wrote on Wed, 13 January 2010 18:54

GOL14TH wrote on Wed, 13 January 2010 19:51

Good work you made Omar Wink
sadly why must good things be made with objects.dbb?

Thanks but it wasnt that hard. (Not that easy as i thought either though Wink )

And yea its sad indeed Sad


:'( sad it cant be used as a .dds


Decent people


Quotes or w/e

Re: saberhawk's Stealth effect [message #417519 is a reply to message #417517] Wed, 13 January 2010 12:16 Go to previous messageGo to next message
ErroR is currently offline  ErroR
Messages: 2984
Registered: March 2008
Location: Moldova
Karma: 0
General (2 Stars)
GOL14TH wrote on Wed, 13 January 2010 21:10

Omar007 wrote on Wed, 13 January 2010 18:54

GOL14TH wrote on Wed, 13 January 2010 19:51

Good work you made Omar Wink
sadly why must good things be made with objects.dbb?

Thanks but it wasnt that hard. (Not that easy as i thought either though Wink )

And yea its sad indeed Sad


:'( sad it cant be used as a .dds


a dll more probably
Re: saberhawk's Stealth effect [message #417736 is a reply to message #417261] Fri, 15 January 2010 23:09 Go to previous messageGo to next message
Poskov
Messages: 235
Registered: March 2008
Location: Western Oceania
Karma: 0
Recruit
What exactly are you changing in objects.ddb?
Re: saberhawk's Stealth effect [message #417757 is a reply to message #417261] Sat, 16 January 2010 03:17 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
Visibility range of the Stealth Units

MP (veh + char) range; 0
SP (veh + char) range; 8

That is what it is in the APB objects.ddb Wink


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: saberhawk's Stealth effect [message #417802 is a reply to message #417261] Sat, 16 January 2010 15:33 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
im sure you could change that settings in scripts.

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: saberhawk's Stealth effect [message #454136 is a reply to message #417261] Sun, 11 September 2011 12:14 Go to previous messageGo to next message
kamuixmod is currently offline  kamuixmod
Messages: 211
Registered: July 2010
Karma: 0
Recruit
BUMP:

Scripts 4 are released. So what about this now? Port APB shader to Renegade?


http://img46.imageshack.us/img46/5836/kmauixsignature.png
Re: saberhawk's Stealth effect [message #454137 is a reply to message #454136] Sun, 11 September 2011 12:19 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3808
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
kamuixmod wrote on Sun, 11 September 2011 13:14

BUMP:

Scripts 4 are released. So what about this now? Port APB shader to Renegade?

Pretty sure they rebuilt the code for the cloak effect, so it's all the call of the creator I suppose.


Re: saberhawk's Stealth effect [message #454165 is a reply to message #454136] Sun, 11 September 2011 14:40 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
kamuixmod wrote on Sun, 11 September 2011 12:14

BUMP:

Scripts 4 are released. So what about this now? Port APB shader to Renegade?


Absolutely not; the stealth shader from APB is for APB and wouldn't fit in well.

stealth_effect_n.dds is a normal map compressed using "nvcompress -bc3n" from NVIDIA Texture Tools 2.0. I made the normal map itself by cleaning up the original stealth effect image to be seamless, turning it grayscale, and loading it up in Crazybump as a heightmap. The shader uses the red channel (or alpha channel after you compress) as U translation and the green channel as V translation, everything else is ignored. 0 is negative, 127 is no translation, 255 is positive.
Re: saberhawk's Stealth effect [message #454180 is a reply to message #454165] Sun, 11 September 2011 17:00 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3808
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
saberhawk wrote on Sun, 11 September 2011 15:40

kamuixmod wrote on Sun, 11 September 2011 12:14

BUMP:

Scripts 4 are released. So what about this now? Port APB shader to Renegade?


Absolutely not; the stealth shader from APB is for APB and wouldn't fit in well.

stealth_effect_n.dds is a normal map compressed using "nvcompress -bc3n" from NVIDIA Texture Tools 2.0. I made the normal map itself by cleaning up the original stealth effect image to be seamless, turning it grayscale, and loading it up in Crazybump as a heightmap. The shader uses the red channel (or alpha channel after you compress) as U translation and the green channel as V translation, everything else is ignored. 0 is negative, 127 is no translation, 255 is positive.

That same effect is used in plenty of other games so I really think many mods would like to benefit form it.

Although the effect you provide is quite nice for Renegade.
However, it has one issue though, the little crystal on the laser rifle's first person model is not affected by it, and I would assume it has a pass that does not agree or something.
  • Attachment: Crystal.png
    (Size: 514.25KB, Downloaded 122 times)


Re: saberhawk's Stealth effect [message #454215 is a reply to message #417261] Sun, 11 September 2011 20:27 Go to previous message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
Could we use the same effect to make better looking glass? and how did you guys do it for the water? it is clear now .. it used to be blue... so possibly better glass? Also is it possible to add heat distortion to vehicles and fire?

http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Previous Topic: Does anyone have the pirate mod
Next Topic: A Path Beyond Hollowman!!!!
Goto Forum:
  


Current Time: Fri Sep 27 14:14:39 MST 2024

Total time taken to generate the page: 0.01366 seconds