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 / Bones animations and shaders

Author
Message
Kuper
18
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 15th Jan 2012 20:47
Hi! I tried to use some animated models from models pack for fps creator with normal mapping shader and got some troubles with it. Model just disappeared or i get error message. So my question is: which limits are when using animated model with bones and shader?
CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 16th Jan 2012 09:39 Edited at: 16th Jan 2012 09:39
You need to use special shaders for animated models using bones. Try the attached shader for starters


Kuper
18
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 16th Jan 2012 10:05
Yes im using special shaders for bones.
But i get error message when use model for example with 40 0r 60 animated bones.
There is no problem when i used 10 bones or less.So i asked about limits for bone animated models!
James H
19
Years of Service
User Offline
Joined: 21st Apr 2007
Location: St Helens
Posted: 16th Jan 2012 18:11 Edited at: 16th Jan 2012 18:27
um actually you dont need a special shader for bone rigged models(i just tried a blend shader from dark shader on 1 of bond1`s bone rigged models and everything was aok - however if you want your gfx card to do the animation work as opposed to your cpu..you do - by default bone animations are done by cpu, bone specific shaders will allow the gpu to do the work instead which is much faster

i am no guru with shaders but i think you will need to provide examples of code and shader and model (fpsc models dont have 60 bones do they?? in any case dont upload any media covered by licence ie fpsc models), also some details of the error message would be helpful

the shader cumqua uploaded is designed to work with evolveds advanced lighting project and wont produce the results your looking for on its own - it requires 8 textures 6 of which are scene related - for normal mapping you only require 2 textures

TGC did provide a bumpbone.fx shader for free via newsletter along with several others
http://www.thegamecreators.com/pages/newsletters/newsletter_issue_62.html
(under heading "Lee's Tip of the Month - A Big Bag of Shaders" there is a download link

edit: you will also need to ensure your gfx card supports the shader models that the shader you intend to utilise requires - the version info can be found at the end of the .fx file when opened in notepad, fx shaders combine vertex shaders and pixel shaders which can optionally be done seperately but for the purpose of this language fx shader files are best, google your gfx card model specs to find out what your card can support
Kuper
18
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 24th Jan 2012 12:04
so i solved problem by myself. in shader set BoneData[32] to BoneData[60] ( number of bones in your model) also delete in 3ds max all unused bones

Login to post a reply

Server time is: 2026-07-09 23:12:43
Your offset time is: 2026-07-09 23:12:43