Request A light with an on/off switch ?

Donamy

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Oct 16, 2007
Messages
6,907
Reaction score
205
Points
138
Location
Cape
Could someone make a spot light .dll that can be turned on and off, be attached and only shine in one direction ?
 

BrianJ

Addon Developer
Addon Developer
Joined
Apr 19, 2008
Messages
1,678
Reaction score
902
Points
128
Location
Code 347
Could someone make a spot light .dll that can be turned on and off, be attached and only shine in one direction ?
Hi Don,
I'd be happy to oblige (least I can do etc.)

I assume you mean a "spotlight vessel" - I can make it quite simply, so that the user can change the associated mesh, and spotlight range and angular spread.

Would that suit your needs?

ATB,
Brian
 

C3PO

Addon Developer
Addon Developer
Donator
Joined
Feb 11, 2008
Messages
2,605
Reaction score
17
Points
53
I assume you mean a "spotlight vessel" - I can make it quite simply, so that the user can change the associated mesh, and spotlight range and angular spread.

Does it need a mesh at all?
 

cmoon55

New member
Joined
Jan 30, 2010
Messages
40
Reaction score
0
Points
0
Location
Vancouver BC
re spotlight vessels

Oh that would be wonderful! When I was working in the "Alien Revisited" add-on I wanted something like that to simulate the flood lamps used during the lading scene on LV 426.:thumbup:
 

Donamy

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Oct 16, 2007
Messages
6,907
Reaction score
205
Points
138
Location
Cape
Hi Don,
I'd be happy to oblige (least I can do etc.)

I assume you mean a "spotlight vessel" - I can make it quite simply, so that the user can change the associated mesh, and spotlight range and angular spread.

Would that suit your needs?

ATB,
Brian

That would be awesome! Thankyou Brian. Could it also have a view to be used a camera view?
 

BrianJ

Addon Developer
Addon Developer
Joined
Apr 19, 2008
Messages
1,678
Reaction score
902
Points
128
Location
Code 347
Don - you can go to the cockpit view of the "spotlight" vessel, if that's what you mean (light shines in +Z direction, so default cockpit view is along the light beam).

C3PO - I'll supply a basic spotlight mesh (suitable for mounting on a vessel)
, but the mesh is specified in the .cfg file so you could change it (and the attachment points, touchdown points, etc etc).

hmmmmmm.........
I seem to be having a problem getting the damn thing to switch on at the moment! (I've done all this before for my launch pads...grrrrr)

No worries....will be working soon no doubt. Need to take a break and have a cuppa....

Cheers,
Brian
 

Donamy

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Oct 16, 2007
Messages
6,907
Reaction score
205
Points
138
Location
Cape
Can't wait Brian !!!:salute:
 

C3PO

Addon Developer
Addon Developer
Donator
Joined
Feb 11, 2008
Messages
2,605
Reaction score
17
Points
53
C3PO - I'll supply a basic spotlight mesh (suitable for mounting on a vessel)
, but the mesh is specified in the .cfg file so you could change it (and the attachment points, touchdown points, etc etc).

OK. I thought that the visible spotlight mesh would be a part of the main vessel, and the spotlight mesh would be an invisible triangle. I have such a dummy mesh that I use for TransX target "vessels" etc.
But with your method both options are available. Good job!
 

Mandella

Space Cultist
Donator
Joined
Apr 5, 2008
Messages
368
Reaction score
0
Points
0
Will this actually be a light source that can illuminate a target, or just a "special effect?"

If the former, this will be a much used addon!

(And a pretty cool one otherwise, even if it doesn't.)
 

BrianJ

Addon Developer
Addon Developer
Joined
Apr 19, 2008
Messages
1,678
Reaction score
902
Points
128
Location
Code 347
C3PO - Yep, you can have no mesh, if you like :)

Mandella - it uses the latest Orbiter version's "multiple light sources" feature, so - yes, it will illuminate a target.

Now up on OH
[ame="http://www.orbithangar.com/searchid.php?ID=5123"]Spotlight Vessel[/ame]

P.S. Ooops, forgot to include the C++ source code in the .zip, never mind - I'll put it in the final version.
 

Donamy

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Oct 16, 2007
Messages
6,907
Reaction score
205
Points
138
Location
Cape
I'm all giddy !!! :lol:
 

Carmen A

redneck kitten with pillow :3
Addon Developer
Joined
Jan 1, 2011
Messages
751
Reaction score
0
Points
0
Location
Can I be in Texas?
Website
v149th.yolasite.com
I was wanting a generic spotlight unit as well. Good to hear it's been produced already:)

How does it work when mounted on a vessel? Like those sub-hunting searchlights they used in WW2?

Is there any way to make the lights illuminate the ground texture as well? I notice the XR ships' landing lights illumulate ownship's hull and other vessels, but sadly not the ground terrain.
 

BrianJ

Addon Developer
Addon Developer
Joined
Apr 19, 2008
Messages
1,678
Reaction score
902
Points
128
Location
Code 347
How does it work when mounted on a vessel? Like those sub-hunting searchlights they used in WW2?
I'm not very familiar with sub-hunting in WWII, but - probably, yes :)

Is there any way to make the lights illuminate the ground texture as well? I notice the XR ships' landing lights illumulate ownship's hull and other vessels, but sadly not the ground terrain.
I think we're up against the limits of Orbiter/DirectX lighting here. I assume the XR lights work the same way, so will have the same limitations.

Cheers,
Brian
 
Top