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.

DarkBASIC Professional Discussion / Shader time command glitch

Author
Message
Kuper
16
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 18th Dec 2015 22:13
Hi!
I stuck up with strange thing:
I have command
float ftime:time;
in my shader.Im using it for leaf animation on trees.
I also use DarkShader to edit it. So glitch is that in DarkShader everything works fine and
smooth but in DBPro animation is jumpy! It looks like time command increases only ones per second or
something like that.I tried different sync rate times - glitch always exist
Whats wrong?
wattywatts
14
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 18th Dec 2015 22:36
Assuming you're using timer based movement, you'll probably want to pass the timer value from your main program to the shader. I just recently had a similar problem.
Kuper
16
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 20th Dec 2015 01:02
@wattywatts
So did I
DBPro timer works good
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 9th Jan 2016 13:13
Yes, I had related problems on a laptop once - the time shader semantic had no effect when I ran the program on the laptop but worked fine when I used my desktop. I had to pass the timer value from dbpro as already suggested. That option worked fine on both machines.


Powered by Free Banners

Login to post a reply

Server time is: 2024-04-23 23:30:29
Your offset time is: 2024-04-23 23:30:29