[2.6] renderclient() lighting

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the when posting support requests.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Protagores
Member
Member
Posts: 4
Joined: August 12th, 2010, 7:34 am
Name: Ilyas Gasanov
IRC Username: Prottey
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

[2.6] renderclient() lighting

Postby Protagores » October 23rd, 2010, 5:57 am

It seems that all client (player/bot/etc.) models are rendered fullbright (with lightcolor(1,1,1) and lightdir(0,0,1); since the call of render() routine is done with NULL light parameter) Does anyone have any idea to fix this issue?
Thanks.

Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: [2.6] renderclient() lighting

Postby Hirato » October 23rd, 2010, 8:12 am

This is not a url, clicking it is pointless

Protagores
Member
Member
Posts: 4
Joined: August 12th, 2010, 7:34 am
Name: Ilyas Gasanov
IRC Username: Prottey
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: [2.6] renderclient() lighting

Postby Protagores » October 23rd, 2010, 12:00 pm

The thing I actually need is lighting that depends on location, e.g. in a bright place models are lighted more, in a dark one - lighted less, and the direction of lighting not being from camera, but from actual sources.
Mapmodels seem to be lighted properly, but not client models. And everything was working in 2.5 version, but now broken for some reason. :(

Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: [2.6] renderclient() lighting

Postby Hirato » October 23rd, 2010, 8:33 pm

it was always like that; now just do what I told you to
This is not a url, clicking it is pointless


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Sandbox General Support”

Who is online

Users browsing this forum: No registered users and 2 guests