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 / Problems controlling light levels with open meshes

Author
Message
blink0k
AGK Developer
Gold Codemaster
6
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 15th Nov 2018 23:32 Edited at: 16th Nov 2018 03:31
I'm trying to get absolute control of the light levels in my game.
In the example here you have two meshes, the one on the left is open (It has no faces on the back). The one on the right is closed.
The model on the left is washed out (Notice the white on the upper left point). Is there anything i can do to change this? Are there any other settings i should look at maybe?

I would like to be able to set the sun off and the ambient to blac or white (depending on how it is processed) and just use texture to control the appearance of the models but nothing i do seems to change the light levels.

If you download the project you can see it in action by changing the values

Attachments

Login to view attachments
fubarpk
Moderator
14
Years of Service
User Offline
Joined: 11th Jan 2005
Location: Adelaide
Posted: 16th Nov 2018 00:38
I wonder if using one of Janbos shaders would help
fubar
Green7
13
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: Switzerland
Posted: 20th Nov 2018 14:14
Looks like the normals are different on the left one. For lighting control try to use the emissive commands.
janbo
10
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 20th Nov 2018 18:00 Edited at: 20th Nov 2018 18:05
After investigation using my model viewer I found that basically both of your objects are "open".
Let me explain:
You load the object without moving it, but you move the camera below the model and point the camera to it.
If you move the camera above the model you can see that...well you can't see much as there are no faces...
But wait if I turn on wireframes I can see some edges which belong to faces on the top side of the left star.
After moving into the model and looking up you can see the faces facing in the wrong direction.
Also your UV's and normals seem to suffer from it.
Hope that all wasn't intentional, but let me know if you still have lighting problems after revisiting your model

Attachments

Login to view attachments
blink0k
AGK Developer
Gold Codemaster
6
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 20th Nov 2018 22:51 Edited at: 21st Nov 2018 01:45
Yeah they are different Janbo. The texture on the left one was wonky. I get the same results now
Thank you so much

Attachments

Login to view attachments
puzzler2018
User Banned
Posted: 20th Nov 2018 22:58
So what do we wanna do? get rid of the top left star?
puzzler2018
User Banned
Posted: 20th Nov 2018 23:02
looks ok to me, but you maybe a perfectionist
blink0k
AGK Developer
Gold Codemaster
6
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 21st Nov 2018 01:45
Just trying to understand what's going on puzzle dude

Login to post a reply

Server time is: 2019-08-22 15:40:32
Your offset time is: 2019-08-22 15:40:32