Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Problem with lights

Author
Message
Juande
13
Years of Service
User Offline
Joined: 2nd Sep 2011
Location:
Posted: 21st Nov 2012 13:28
Hi,

I am testing the lights in a simple scene 3d. This is my code.



The problem is that I don't see the light effect... (you can see it the attachment image).

Where is the mistake?

Thanks

Attachments

Login to view attachments
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 21st Nov 2012 18:06
I see one thing straght away

You use an light radius of 50 .

I dont know if its an bug but you nead to make it even larger.

My dungeon demo uses a light with he radius around 3000-5000 and that lights up the walls pretty close.

Then do i wonder if you shouldt create the light before the object ?

The light on command for the object is simply an internal shader.

Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz
Juande
13
Years of Service
User Offline
Joined: 2nd Sep 2011
Location:
Posted: 21st Nov 2012 18:56
Hi,

I have corrected the radius (now, it's 5000. I have tested with 3000, 5000, 50000) but I have not gotten anything. I have put the createligthpoint command before and after createobjectsphere command and neither... not working

I have tested with a box, a sphere, cone... and neither. I am going to update my graphic card and I will check the app in android... can you say to me if this simple app (with radius 5000) works in your computer?

Thanks!
Juande
13
Years of Service
User Offline
Joined: 2nd Sep 2011
Location:
Posted: 21st Nov 2012 19:38
Nothing, My graphic card is updated but I don't see the light in my sphere. Nor, in Android.
JimHawkins
15
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 21st Nov 2012 20:09
We can't test unless you actually post one!

-- Jim DO IT FASTER, EASIER AND BETTER WITH AppGameKit FOR PASCAL
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 21st Nov 2012 20:40
I know wath it is
You have to create an directional light also as they have only written a point light shader where there also is a directional light

Create an directional light also.

Paul wrote that they are still working on the lights.

Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 22nd Nov 2012 00:03
JimHawkins - see OP unless I am mistaken...

JimHawkins
15
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 22nd Nov 2012 00:23
I think he said it had been altered.

-- Jim DO IT FASTER, EASIER AND BETTER WITH AppGameKit FOR PASCAL
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 22nd Nov 2012 00:39
In that case

Kobaltic
12
Years of Service
User Offline
Joined: 24th Jan 2012
Location: PA, USA
Posted: 22nd Nov 2012 06:03
The radius is way too high for standard 3D engines. Inside a dungeon you should get away with 512. 1024 max. Perhaps there is an issue with brightness. Or like you said a bug.
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 22nd Nov 2012 06:34
And juande you are using agk 108 beta 3 ?

Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz
Juande
13
Years of Service
User Offline
Joined: 2nd Sep 2011
Location:
Posted: 22nd Nov 2012 11:04 Edited at: 22nd Nov 2012 11:05
Hi everyone,

JimHawkins, I was refering to try the same example with an radius of 5000. I am sorry, if I have explained badly (English is not my first language, and I am very clumsy with the languages).

Cliff, I am using agk 108 beta 3. I have tested with directional and point light and... it's perfect. Now, it is working.

Kobaltic, I have tested with a radius of 5000 and the light effect is very little (furthermore, the light is very near the object). I will try others values and will put the commands before and after creating the objects.

The last cuestion: I suppose that the directional light is a cone light. I can control the direcction, but how is the position of the spotlight modified?, I mean, In a 3d designer (blender, 3dmax, cinema4d...), you can put directional light, but you can control the position and direction of this light. I don't find the command for moving the directional light. What command should I use?

Thanks!
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 22nd Nov 2012 16:21
JuandeĀ  those lights in the editors is for creating light maps...

You need to create and manipulate lights within AGK...

Login to post a reply

Server time is: 2024-11-24 05:00:39
Your offset time is: 2024-11-24 05:00:39