3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1] 2 3

Author Topic: Addon : SpotLights  (Read 7683 times)

« on: August 18, 2010, 12:26:57 PM »
Addon : SpotLights



Requirements
-Systemshader1_shx Addon v1.06 or better
-SkinMesh patch for 6.49 is installed PS! this patch is ONLY for 6.49

How do add a spotlight to your scene :

I'll use car headlights as example here :
=============================


1.  Make sure all skinmehes you want to react to a SpotLight MUST be using a _user_ shader (any).
2.  Add a spotlight by pressing CTRL+D, go to effects and select SpotLight01
     (if this is the first spotlight or pointlight in your scene), if you already have a spot or pointlight, select SpotLight02 and so on..
3.  Add your car
4.  Position "SpotLight01 : Pos / Range / Color", to the front of the car in the editor. you can also edit color/range by clicking it.
5.  Link Car with SpotLight01 Script : Cone/Orientation/Target(s), open it and make sure this is true (if not edit it)

   int   OrientationObject = OBJ_0;   

You might want to boost intensity in daylight or set the sun to black

  float intensity = 5;

The cone of light is also adjustable

  float cone = 50;   //higher value gives more narrow cone. 0 will set spot as pointlight

6.  Link SpotLight01 Script : Cone/Orientation/Target(s) to every skinmesh you shaded in 1.

You now have a spotlight as headlights.
Repeat for Spotlight02-04 if you need.

The addon also contains a shadable default terrain and a sample project called SpotLightDemo.3dr
The shadable terrain can be found by pressing Ctrl+D under Terrains.

[DOWNLOAD]
http://www.3drad.com/addons/SpotLight_shx.php

Contains
=======

1. Terrain addon (so you can shade it)
2. Four SpotLights addons
3. Sample Project called SpotlightDemo.3dr

Make sure you get v1.06 of the latest Systemshader1_shx
Also make sure the SkinMesh patch for 6.49 is installed
« Last Edit: October 05, 2010, 10:17:34 AM by shadmar »
« Reply #1 on: August 18, 2010, 01:47:53 PM »
Very nice.  :)  Great work, thank you for sharing.
« Reply #2 on: August 28, 2010, 11:43:45 AM »
The addon I needed to make my game of cars
See my web:

ninkeon58

« Reply #3 on: September 25, 2010, 04:34:00 AM »
Another very interesting thing! Maybe this can be used for a spotlight on a helicopter/tank etc.
« Reply #4 on: September 25, 2010, 04:57:28 AM »
Yes, it can be used on anything.
« Reply #5 on: October 04, 2010, 09:01:56 AM »
hi, please help me.
i insert video for help.

i install:
-SkinMesh_patch_20100702
-SystemShaders1_shx
-SpotLight_shx

what is the problem with spotlight.please help!!
thank
« Reply #6 on: October 04, 2010, 09:48:06 AM »
Does v7.10 still need the patch?
I'm never here and if I am I will try and say something...
Sorry tramkp888 I kind of forgot you back in July
« Reply #7 on: October 04, 2010, 10:02:02 AM »
No.. just 6.49
« Reply #8 on: October 04, 2010, 01:58:07 PM »
my addon spotlights, don't work in version 6 only in version 7 ?
Please help...
« Reply #9 on: October 04, 2010, 02:10:44 PM »
What doesn't work which version of rad are you using?, and did you follow the example provided?, does the example project work (SpotlightDemo.3dr)?  ???
« Reply #10 on: October 04, 2010, 05:31:02 PM »
What doesn't work which version of rad are you using?, and did you follow the example provided?, does the example project work (SpotlightDemo.3dr)?  ???

yes i do the example project work (SpotlightDemo.3dr) and nothing... :-[
i post my video http://www.3drad.com/forum/index.php?action=dlattach;topic=5085.0;attach=6438
what i doing wrong ?

Please help :'(
you can give me a video who work (SpotlightDemo.3dr).
« Reply #11 on: October 04, 2010, 05:43:28 PM »
You need minimum v6.49 of 3drad, in your video you use v6.46.
I think it's made clear in both the addon page and this post at top ???
« Reply #12 on: October 04, 2010, 05:46:45 PM »
shad...i'm also having some problems withthe spotlight addon...

when i go to the addons menu and select it... nothing happens...

i also don't see the lightable terrain anywhere...

when i run the demo, it loads, then RAD stops working and quits to the desktop...

any ideas...


thx

--Mike

PsychoWeasel9

« Reply #13 on: October 04, 2010, 06:04:47 PM »
To add a spotlight, open that project in rad and resave it- it's a version compatibility issue
Edit: and I don't know what to say about the demo, sorry :-\
« Last Edit: October 04, 2010, 07:44:13 PM by PsychoWeasel9 »
« Reply #14 on: October 04, 2010, 07:10:37 PM »
You need minimum v6.49 of 3drad, in your video you use v6.46.
I think it's made clear in both the addon page and this post at top ???

sorry, you are correct !!!, thank shadmar

it work good in the version v6.49, but where i download it?,please :-[.
i download de version 7, and make error "Physxloader.dll", and reinstall and the same error... :'(

i tray with the version 6.48, and i have de same problem the post  Mike Hense
http://www.3drad.com/forum/index.php?topic=5085.msg44606#msg44606

thank mike ;) he say:
"when i run the demo, it loads, then RAD stops working and quits to the desktop..."
and me have the same problem whit version 6.48 of 3d rad.

where i can download de 6.49 shadmar, please :'(
Pages: [1] 2 3