wh1ps3r
Member
|
point light
Hi
my first question here, hehe
I would like to add pointlight to the my scene. I created Object class, i am able to change settings for point light, but how can i add into scene ? Perhaps it's simple hehe but i still haven't figure it out.
thank you
|
|
02-27-2013 04:56 PM |
|
Esenthel
Administrator
|
RE: point light
Hello!
Once you've created the Object Class for a light (and set "draw as light" in its properties)
Create a new Object in the Project (not Class, but a regular Object), in it's parameters "Params" tab, set it to be of previously created light class.
Then drag and drop that Object into opened world.
Then in the world adjust object position and scale (scale is the light scale/radius)
|
|
02-27-2013 05:11 PM |
|
wh1ps3r
Member
|
RE: point light
Hi,
So, i created Object class, i named it PointLight, i set Draw as light.
I created new regular Object called PointLightObj, i selected my PointLight class in properties of PointLightObj. I added it into world, but i see only low poly sphere, which i can scale or set position.
So, what should i do now ? thank you very much.
|
|
02-27-2013 05:21 PM |
|
Esenthel
Administrator
|
RE: point light
Hi,
That should be enough, it should already cast light in the Editor, just position/scale it so the center of the object is above the ground and scale is big enough that its range covers some objects.
Also make sure you're not in the Simple Renderer (Video Options F10 key) as it supports only 1 Directional Light.
Let me attach a screen in a moment..
|
|
02-27-2013 06:07 PM |
|
Esenthel
Administrator
|
RE: point light
Hi,
The issue seems to be that you're setting the Object Class in the World Editor (it's a bug in the engine and I will fix it in a moment).
The recommended way is to set object class in the Object Editor.
Double click the "PointLightObject" object (this will open Object Editor) and in the "Params" tab set the "PointLight" class and it should work.
Sorry for the issue I will fix it asap.
|
|
02-27-2013 06:23 PM |
|
wh1ps3r
Member
|
RE: point light
Yes, it's working
Thank you for your kind support.
|
|
02-27-2013 06:26 PM |
|
gdalex
Member
|
RE: point light
Can somebody give my a hint to use point lights in the MMO code ?
The Light tutorial draws lights at each frame at a different position.. Okay.
Now what's the better solution to add my different lights mapped in the world at the rendering step ?
|
|
03-09-2013 02:04 PM |
|