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 / 3DObject Normal & Light Mapping

Author
Message
aviles22
10
Years of Service
User Offline
Joined: 1st Dec 2013
Location: New Jersey, USA
Posted: 17th May 2014 17:07
I have an object and 3 textures. The Color Map, Normal Map and Light Map. I also have setup a directional light.

I apply these three textures with:
SetObjectImage( objID, imageID, 0 )
SetObjectImage( objID, imageID, 1 )
SetObjectImage( objID, imageID, 2 )

Is there something I'm missing?
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 18th May 2014 10:54
Yes ... you have to specify shaders on your object depending on texture level with the appropriate shader code ...(vertex shader and pixel shader). for lightmapping you have already the shader code in the 3D demo (but you need to have 3rd and 4th UV coordinate in your obj file). for normal map, i don't know if someone has already attempted to create this shader with AGK. But I don't know if shaders support all the pixel functions and light angle functions to achieve normal mapping ...

You will find more infos here :

http://forum.thegamecreators.com/?m=forum_view&t=201508&b=41


it would be nice if some shaders were integrated by default (normal mapping,lightmapping, blur, etc...) .. maybe in a future version !

Good luck ...

--------------

Login to post a reply

Server time is: 2024-04-28 18:50:51
Your offset time is: 2024-04-28 18:50:51