About Store Forum Documentation Contact



Post Reply 
point light
Author Message
wh1ps3r Offline
Member

Post: #1
point light
Hi smile

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 smile
02-27-2013 04:56 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
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
Find all posts by this user Quote this message in a reply
wh1ps3r Offline
Member

Post: #3
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 ? smile thank you very much.
02-27-2013 05:21 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #5
RE: point light
This is the screen

After chaning obj type to light it should change from sphere to sun icon


Attached File(s) Image(s)
   
02-27-2013 06:10 PM
Find all posts by this user Quote this message in a reply
wh1ps3r Offline
Member

Post: #6
RE: point light
and here is my screenshot.

it looks a bit different. Also it seems, some settings are not read from Pointlight class. I opened all Windows, so you can see all settings. What i did wrong ?


Attached File(s) Image(s)
   
(This post was last modified: 02-27-2013 06:21 PM by wh1ps3r.)
02-27-2013 06:20 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #7
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
Find all posts by this user Quote this message in a reply
wh1ps3r Offline
Member

Post: #8
RE: point light
Yes, it's working smile

Thank you for your kind support.
02-27-2013 06:26 PM
Find all posts by this user Quote this message in a reply
gdalex Offline
Member

Post: #9
RE: point light
Can somebody give my a hint to use point lights in the MMO code ? smile
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
Find all posts by this user Quote this message in a reply
Post Reply