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 / Light changed, not getting it like it was.

Author
Message
Jo Bach
9
Years of Service
User Offline
Joined: 22nd Dec 2014
Location:
Posted: 3rd Nov 2015 06:10
Hi,

I made some 3d examples wit light.

After the last update the codes seems no to be working.

I used:

setobjectlightmode(id,1)

CreateLightDirectional(1,3,3,3,255,255,255)
CreateLightPoint(1,0,5,-2.5,50,0,0,255)


But the last 2 are unrecognised by AGK.

Looking at the commands (F1) these are gone from the list. It would be handy, if there was a link to the alternative version.

Now I am trying

CreatePointLight(1,3,3,3,20,0,255,255)

But the light is as the basic light and not what is was.

What do I have to choose to get the light working?

Are there more commands removed or changerd?

It is a little bit frustrating doing hours of work when suddenley the code doesn't Run anymore and have to reawrite the code.......................................
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 3rd Nov 2015 10:03
i believe your missing light is the new sun command.
i would also expect a hint CreateLightDirectional is obsolete or something.
http://www.appgamekit.com/documentation/Reference/3D.htm

ClearPointLights
CreatePointLight
DeletePointLight
GetPointLightExists
SetAmbientColor
SetPointLightColor
SetPointLightMode
SetPointLightPosition
SetPointLightRadius
SetSunActive
SetSunColor
SetSunDirection.
AGK (Steam) V2 Beta .. : Windows 10 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Jo Bach
9
Years of Service
User Offline
Joined: 22nd Dec 2014
Location:
Posted: 5th Nov 2015 18:38
Thanks Marcus.

I try to change it.

Jo Bach
9
Years of Service
User Offline
Joined: 22nd Dec 2014
Location:
Posted: 7th Nov 2015 15:18
Just let you all know the problem is solved by adding the one of the codes Marcus gived:

I had to set the SetSunActive(0) to zero. Now the basic bright light is gone, and the environment has its colors back.

Login to post a reply

Server time is: 2024-11-25 15:42:00
Your offset time is: 2024-11-25 15:42:00