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 / [bug]Normal maps, dynamic lights, and CreateImageColor(), creates dark textures

Author
Message
TomToad
6
Years of Service
User Offline
Joined: 6th Jan 2018
Location:
Posted: 11th Sep 2019 14:10
If I use CreateImageColor() to create a texture for an object, and then assign a normal map to it, I get a dark texture on it. It is ok if I use a solid color png image, even if it is just 1x1 pixels. Also ok if there is no normal map, or when SetSunActive(0) is set to 0 and no point lights exist.

So to sum up
CreateImageColor, dynamic lights, and normal map, when used together creates dark textures.
Missing any one of those, everything looks fine.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-22 16:41:09
Your offset time is: 2024-11-22 16:41:09