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 Studio Chat / [SOLVED] Shadows

Author
Message
Pfaber1
6
Years of Service
User Offline
Joined: 7th Jan 2018
Location: England
Posted: 5th Feb 2022 08:44
How do I get shadows in my games . Any advice would be appreciated. Thank You

The author of this post has marked a post as an answer.

Go to answer

Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 6th Feb 2022 01:20 Edited at: 6th Feb 2022 01:25
the /3D/Shadows project that ships with AGK/S is pretty much self-explanatory.

then, a few threads down contains fun with the Sun.

and, in case HTML is your goal, no such luck (natively).
Pfaber1
6
Years of Service
User Offline
Joined: 7th Jan 2018
Location: England
Posted: 8th Feb 2022 13:01
I tried the shadow commands and still have no shadows.
Setobjectshadowmode(5,-1)
It is not working so far. It accepts the code but no shadows.
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 8th Feb 2022 13:55 Edited at: 8th Feb 2022 13:56
Quote: "Setobjectshadowmode(5,-1)"

i've not seen that command.

what happens when you run the 3D/Shadows project?


and, kevin's code?

Attachments

Login to view attachments
Pfaber1
6
Years of Service
User Offline
Joined: 7th Jan 2018
Location: England
Posted: 10th Feb 2022 10:19
sorry meant getobjectcastshadow(5,1) my mistake. It still does not work. Gonna find 3dshadow project and see how it works .
Pfaber1
6
Years of Service
User Offline
Joined: 7th Jan 2018
Location: England
Posted: 21st Feb 2022 11:43 Edited at: 21st Feb 2022 13:01
This post has been marked by the post author as the answer.
I have now got beautiful shadows. The Command that I used was "setshadowmappingmode(3)" . Also You have to use " setobjectcastshadow(5,3) "
Really happy to have this feature . Have a nice day.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-04-19 20:58:50
Your offset time is: 2024-04-19 20:58:50