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 / After shader is applied on 3d object animations stop working and positions are off

Author
Message
Game_Code_here
4
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 12th Dec 2021 04:04
After I put a shader on my 3d objects they stop animating and there not rotated correctly.

odd.
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 12th Dec 2021 06:15 Edited at: 12th Dec 2021 06:15
Game_Code_here
4
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 12th Dec 2021 06:22
Here are the shaders I am trying to use

Mask.ps



Mask.vs


Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 12th Dec 2021 06:59 Edited at: 12th Dec 2021 07:00
that looks like blendman's shader? https://forum.thegamecreators.com/thread/216112#msg2577210

i've asked him to visit this thread to see if he can lend a hand (unless someone beats him to it )
Game_Code_here
4
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 12th Dec 2021 07:11
Quote: "i've asked him to visit this thread to see if he can lend a hand (unless someone beats him to it"


Thank you, If I can get shaders working right these models will look super good.
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 12th Dec 2021 09:31 Edited at: 12th Dec 2021 19:09
Hi

I'm not very at shader, but, I have understand some little things .

When you use an animated shader, it's not the same code as for an "non-animated" shader.

If you want to know what is the code which is used for the default AppGameKit shader (for example, to know what is the code for a defaut animated shader (with fog, light,....), you can use the functions :



So you will get those kind of code (it's the default AppGameKit shader code, for an animated objet) :
Shader VS :



Shader PS :


So, to change your shader, tperh'aps this could work :
PS shader file :



Tell me if it works

EDIT : of course, you have to use the shader VS (code) for animated onject too
AGK2 tier1 - http://www.dracaena-studio.com
Game_Code_here
4
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 12th Dec 2021 09:50
Hi Blendman

No, it made my model scattered everywhere al over the screen. it was animated, but only half of him you could see, the top half was all scattered.

Login to post a reply

Server time is: 2024-11-21 12:58:03
Your offset time is: 2024-11-21 12:58:03