Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » "Ghetto" Dynamic Lighting
"Ghetto" Dynamic Lighting [message #84540] Fri, 30 April 2004 22:23 Go to next message
SomeRhino is currently offline  SomeRhino
Messages: 260
Registered: February 2003
Karma: 0
Recruit
http://www.drireign.net/somerhino/headlights.jpg

Although this has a few quarks right now, for the most part, headlights that cast light are possible in Renegade. I'll work on refining it, but it works like it should, and casts on vehicles, soldiers, hilly terrain, etc.

Basically, it's creative use of one of JonWil's new scripts and texture projectors. I'll give details once I get everything working on par.


"Ghetto" Dynamic Lighting [message #84541] Fri, 30 April 2004 22:32 Go to previous messageGo to next message
jd422032101 is currently offline  jd422032101
Messages: 304
Registered: April 2004
Karma: 0
Recruit
nice SR
"Ghetto" Dynamic Lighting [message #84545] Fri, 30 April 2004 22:52 Go to previous messageGo to next message
icedog90 is currently offline  icedog90
Messages: 3483
Registered: April 2003
Karma: 0
General (3 Stars)
Great. Make sure you add those cool bright lights on the headlights. Wink

Mind telling us how you did it?
"Ghetto" Dynamic Lighting [message #84548] Fri, 30 April 2004 23:01 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3555
Registered: February 2003
Karma: 0
General (3 Stars)

Probobly via the script he asked me to write called JFW_Create_Destroy_Object_On_Custom_Bone Smile

Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: "Ghetto" Dynamic Lighting [message #84582] Sat, 01 May 2004 02:26 Go to previous messageGo to next message
Deactivated is currently offline  Deactivated
Messages: 1503
Registered: February 2003
Karma: 0
General (1 Star)
SomeRhino

Although this has a few quarks right now, for the most part, headlights that cast light are possible in Renegade. I'll work on refining it, but it works like it should, and casts on vehicles, soldiers, hilly terrain, etc.

Basically, it's creative use of one of JonWil's new scripts and texture projectors. I'll give details once I get everything working on par.


Hey, if this was combined with my Vehicle lights thing, it would be great!

http://www.cannis.net/forum/uploads/post-32-1080500991.jpg
They turn off and on depending if you're on the vehicle.

[Updated on: Sat, 01 May 2004 02:38]

Report message to a moderator

"Ghetto" Dynamic Lighting [message #84584] Sat, 01 May 2004 02:35 Go to previous messageGo to next message
Majiin Vegeta is currently offline  Majiin Vegeta
Messages: 2186
Registered: February 2003
Location: London
Karma: 0
General (2 Stars)
w00t headlights!!!
"Ghetto" Dynamic Lighting [message #84608] Sat, 01 May 2004 05:42 Go to previous messageGo to next message
TnTANDY is currently offline  TnTANDY
Messages: 130
Registered: April 2004
Location: UK
Karma: 0
Recruit
LOL, renegade is getting more and more realistic. Smile
And thats the way I huh huh I like it huh huh huh! Laughing
"Ghetto" Dynamic Lighting [message #84610] Sat, 01 May 2004 05:47 Go to previous messageGo to next message
Deafwasp is currently offline  Deafwasp
Messages: 555
Registered: February 2003
Karma: 0
Colonel
Now..... who wants to ask EA to give that blackhand studios thing the sourcecode?
"Ghetto" Dynamic Lighting [message #84611] Sat, 01 May 2004 05:49 Go to previous messageGo to next message
TnTANDY is currently offline  TnTANDY
Messages: 130
Registered: April 2004
Location: UK
Karma: 0
Recruit
It would be cool if somebody other than EA could have full control of Renegades coding.
"Ghetto" Dynamic Lighting [message #84621] Sat, 01 May 2004 07:28 Go to previous messageGo to next message
sniper12345 is currently offline  sniper12345
Messages: 817
Registered: November 2003
Location: Hong Kong
Karma: 0
Colonel

Majiin Vegeta

w00t headlights!!!


yea! so huge and bright!


WOL: megapunk0

http://images.listen-to.com/png.php/4g/sniper12345
"Ghetto" Dynamic Lighting [message #84749] Sat, 01 May 2004 17:22 Go to previous messageGo to next message
htmlgod is currently offline  htmlgod
Messages: 360
Registered: July 2003
Karma: 0
Commander
That's not bad. You could probably improve upon it by putting one of the lightsources at each headlight, it kind of looks like a uni-headlamp as is. Cool, though.

Check out http://newhope.conquergaming.com to see the progress of the STARWARS mod for Renegade.

http://newhope.conquergaming.com/OtherStuff/NIKE.jpg
"Ghetto" Dynamic Lighting [message #84777] Sat, 01 May 2004 18:40 Go to previous messageGo to next message
SomeRhino is currently offline  SomeRhino
Messages: 260
Registered: February 2003
Karma: 0
Recruit
http://www.drireign.net/somerhino/hl2.jpg
http://www.drireign.net/somerhino/hl1.jpg
http://www.drireign.net/somerhino/hl3.jpg

It looks great in-game, the amount of light depends both on the angle and how close the vehicle is to the object it's illuminating. If you are on a cliff, a huge area below will be illuminated. As you come down, the area will decrease and become more focused.

This isn't "true" lighting though, because the lightmap is applied over the static lighting. This causes the contrast to be lost when shining on dark surfaces, and burns on light surfaces.

Unfortunately, these tests show nearly a 50% decrease in performance for a single vehicle. I believe that each light source adds another pass to the mesh it is projected onto, so every triangle on the mesh must be processed again, causing the performance problems. Because of these problems, though, this feature will not be included in Sole Survivor.

If you want to try this:
Basically, set up a preset of an object with an invisible model to have an additive texture projector. Use JFW_Create_Destroy_Object_On_Custom_Bone (will be included in Jon's Scripts 1.7) to call up this object to be attached to a vehicle. Although texture projectors always cause Level Edit to crash when they are saved in the level data under an objects' property, they work fine when they are called up in-game. You'll need to do some aligning to get it to work right. I still highly advise not using this though, because you'll get unplayable frame rates when 3-4 vehicles with headlights start driving around.


"Ghetto" Dynamic Lighting [message #84778] Sat, 01 May 2004 18:45 Go to previous messageGo to next message
Majiin Vegeta is currently offline  Majiin Vegeta
Messages: 2186
Registered: February 2003
Location: London
Karma: 0
General (2 Stars)
somebody wanna set up a small map with a humvee with lights so we can piss about on it?? Razz
"Ghetto" Dynamic Lighting [message #84783] Sat, 01 May 2004 18:54 Go to previous messageGo to next message
TnTANDY is currently offline  TnTANDY
Messages: 130
Registered: April 2004
Location: UK
Karma: 0
Recruit
hehe, that would be sweet Razz
"Ghetto" Dynamic Lighting [message #84869] Sun, 02 May 2004 01:25 Go to previous messageGo to next message
Deactivated is currently offline  Deactivated
Messages: 1503
Registered: February 2003
Karma: 0
General (1 Star)
SomeRhino


I still highly advise not using this though, because you'll get unplayable frame rates when 3-4 vehicles with headlights start driving around.


I had the same problem when tried do this through a little lensflares hack.
It would slow down the game when there was more than four lights.
"Ghetto" Dynamic Lighting [message #85074] Sun, 02 May 2004 21:44 Go to previous messageGo to next message
c0nFuZ0r is currently offline  c0nFuZ0r
Messages: 210
Registered: March 2004
Location: CA
Karma: 0
Recruit
When will it be done to downlaod?
"Ghetto" Dynamic Lighting [message #85078] Sun, 02 May 2004 22:19 Go to previous messageGo to next message
icedog90 is currently offline  icedog90
Messages: 3483
Registered: April 2003
Karma: 0
General (3 Stars)
You don't download it. You make it.
"Ghetto" Dynamic Lighting [message #85080] Sun, 02 May 2004 22:32 Go to previous messageGo to next message
c0nFuZ0r is currently offline  c0nFuZ0r
Messages: 210
Registered: March 2004
Location: CA
Karma: 0
Recruit
Oh.. I;m to dumb do figure it out.. Sad
"Ghetto" Dynamic Lighting [message #85181] Mon, 03 May 2004 09:15 Go to previous messageGo to next message
Goltergaul is currently offline  Goltergaul
Messages: 51
Registered: January 2004
Karma: 0
Recruit
SomeRhino can you post your testlevel? i want to figure it out myself Wink would be great! Wink
"Ghetto" Dynamic Lighting [message #87194] Thu, 13 May 2004 12:37 Go to previous messageGo to next message
PCWizzardo is currently offline  PCWizzardo
Messages: 50
Registered: June 2003
Karma: 0
Recruit
I think that WOULD be good for the new Reborn's Light Tower.

How is that done? Please enlighten us!

[Updated on: Mon, 07 June 2004 08:40]

Report message to a moderator

"Ghetto" Dynamic Lighting [message #87203] Thu, 13 May 2004 12:53 Go to previous messageGo to next message
Mad Ivan is currently offline  Mad Ivan
Messages: 513
Registered: February 2003
Location: United Kingdom
Karma: 0
Colonel
agreed, thought i think Reborn`s Tower needs a volume of light, not just a spotlight Wink

"Ghetto" Dynamic Lighting [message #87307] Thu, 13 May 2004 17:38 Go to previous messageGo to next message
Creed3020 is currently offline  Creed3020
Messages: 1438
Registered: February 2003
Location: Toronto, Canada
Karma: 0
General (1 Star)
WTF is that vehicle in the second screenie... Shocked
"Ghetto" Dynamic Lighting [message #87315] Thu, 13 May 2004 17:58 Go to previous messageGo to next message
SuperFlyingEngi is currently offline  SuperFlyingEngi
Messages: 1756
Registered: November 2003
Karma: 0
General (1 Star)
MCV, I believe...

Either that or it's the mobile home of indiscriminate terror.


"To announce that there must be no criticism of the President, or that we are to stand by the President, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public." -- Theodore Roosevelt (1918)

"The danger to political dissent is acute where the Government attempts to act under so vague a concept as the power to protect "domestic security." Given the difficulty of defining the domestic security interest, the danger of abuse in acting to protect that interest becomes apparent. --U.S. Supreme Court decision (407 U.S. 297 (1972)

The Liberal Media At Work
An objective look at media partisanship
"Ghetto" Dynamic Lighting [message #87371] Fri, 14 May 2004 00:52 Go to previous messageGo to next message
Mad Ivan is currently offline  Mad Ivan
Messages: 513
Registered: February 2003
Location: United Kingdom
Karma: 0
Colonel
aye, MCV

"Ghetto" Dynamic Lighting [message #87969] Sun, 16 May 2004 15:44 Go to previous messageGo to previous message
Griever92
Messages: 593
Registered: February 2003
Location: Calgary, Alberta, Canada
Karma: 0
Colonel
yep, it's the MCV, for Renegade: Sole Survivor, a mod for which i am proud to be a tester for... btw, amazing work SR

Alex "Griever92" Bracken
============================
http://www.n00bstories.com/image.fetch.php?id=1165170217
Previous Topic: scripts.dll 1.7 update
Next Topic: Boxes with 6 textures
Goto Forum:
  


Current Time: Sat May 04 21:37:13 MST 2024

Total time taken to generate the page: 0.01131 seconds