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 / I need shader files (.vs & .ps) for normalmap effect ..please :'(

Author
Message
GolWofael
8
Years of Service
User Offline
Joined: 15th Mar 2016
Location:
Posted: 16th Mar 2016 05:09
I need shader files (.vs & .ps) for normalmap effect ..please .
Because I'm not professional in shader programming
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 16th Mar 2016 07:49
Look in the Useful Community Shaders Project thread.
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
GolWofael
8
Years of Service
User Offline
Joined: 15th Mar 2016
Location:
Posted: 16th Mar 2016 07:58
Could you give me link for it please ...
GolWofael
8
Years of Service
User Offline
Joined: 15th Mar 2016
Location:
Posted: 16th Mar 2016 08:01
Thanks ... I found it
GolWofael
8
Years of Service
User Offline
Joined: 15th Mar 2016
Location:
Posted: 16th Mar 2016 08:43
Sorry ... but the 3d normalmap example is not working in the Useful Community Shaders Project thread >_<
Harlequin
14
Years of Service
User Offline
Joined: 22nd Mar 2010
Location: Melbourne (AU)
Posted: 17th Mar 2016 04:28
Hi GolWofael,

so of (most I think) need to be updated to support the new light model that was introduced in 2.0.15

In the .ps file you need to change all references from agk_ObjColor with agk_MeshDiffuse. This worked for me on a few of the shaders I was playing with last month.

A link the my request for help and thanks to Zerotown for the help originally on this. https://forum.thegamecreators.com/thread/216523


cheers

It\'s late, I\'m tired, out of coffee and now I\'m wet.
GolWofael
8
Years of Service
User Offline
Joined: 15th Mar 2016
Location:
Posted: 17th Mar 2016 04:35
Thanks Harlequin ..I will try
GolWofael
8
Years of Service
User Offline
Joined: 15th Mar 2016
Location:
Posted: 17th Mar 2016 09:49
I have one example for 3d normalmap (attached file) ... but is not working So .. Can you fix it please ?
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 17th Mar 2016 10:00
Nothing is attached. (Did you click upload after selecting the file?)
GolWofael
8
Years of Service
User Offline
Joined: 15th Mar 2016
Location:
Posted: 17th Mar 2016 10:06
sorry ...

Attachments

Login to view attachments
Harlequin
14
Years of Service
User Offline
Joined: 22nd Mar 2010
Location: Melbourne (AU)
Posted: 17th Mar 2016 22:39 Edited at: 17th Mar 2016 22:40
here is the updated version (compiled and tested on Centos7)
If you use a text compare program (like winmerge) , you should be able to see all the area's I updated to get it working so you understand what needed to be updated in the other shaders
It\'s late, I\'m tired, out of coffee and now I\'m wet.

Attachments

Login to view attachments
GolWofael
8
Years of Service
User Offline
Joined: 15th Mar 2016
Location:
Posted: 18th Mar 2016 14:15
Thank you very mush "Harlequin" !!
I love you man

Attachments

Login to view attachments
GolWofael
8
Years of Service
User Offline
Joined: 15th Mar 2016
Location:
Posted: 4th Apr 2016 12:26 Edited at: 4th Apr 2016 12:28
Sorry ... but I received this error on my android phone



please help

Attachments

Login to view attachments
OminusPrime
9
Years of Service
User Offline
Joined: 30th Jun 2015
Location:
Posted: 4th Apr 2016 19:58
This method only works on 2D surfaces it doesn't work fully in 3d. change the floor plane into a cube and see what happens to the bump maps as you fly around it . they screw up as soon as the angle goes out of sync with the UV map.
bump map algorithms use Tangent space during the calculation or fake it by calculating tangent at the expense of processing time.
unfortunately AppGameKit passes only Normals not tangent so we need to fake it. until agk someday, hopefully passes this to the Shaders.



janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 4th Apr 2016 22:21
I think you could pass them your self as a uniform array, then you dont have to calculate them in the shader, but per face in your AppGameKit code.

Using AGKv2 Tier1
GolWofael
8
Years of Service
User Offline
Joined: 15th Mar 2016
Location:
Posted: 5th Apr 2016 05:49
Thanks for OminusPrime & janbo ...
janbo ... Could you give me more details (code example) please...

Login to post a reply

Server time is: 2024-09-29 13:22:28
Your offset time is: 2024-09-29 13:22:28