Hello,
I was wondering what Ogre would do if I tried to animate a complex mesh without a 3d card. Would it skip the animation completely, or would it try to animate it aniway?
How can I check whether Ogre will do it or not (in order to give the user an error message)?
Thanks.
M
Test on video card
- marco.c
- Halfling
- Posts: 51
- Joined: Mon Nov 22, 2004 5:44 pm
- Location: Italy
- Contact:
- haffax
- OGRE Retired Moderator
- Posts: 4823
- Joined: Fri Jun 18, 2004 1:40 pm
- Location: Berlin, Germany
- x 7
- Contact:
Actually vertex blending in software is the default. If the card is not capable of holding all the bones of a model in the vertex shader's constant registers it will switch back to software blending even if a vertex shader has been specified. So complex meshes (complex as in has many bones) have to be software rendered anyway. I guess there is some API function to ask if hardware blending is enabled, but I don't know it from the top of my head.
- marco.c
- Halfling
- Posts: 51
- Joined: Mon Nov 22, 2004 5:44 pm
- Location: Italy
- Contact:
- :wumpus:
- OGRE Retired Team Member
- Posts: 3067
- Joined: Tue Feb 10, 2004 12:53 pm
- Location: The Netherlands
- x 1
- marco.c
- Halfling
- Posts: 51
- Joined: Mon Nov 22, 2004 5:44 pm
- Location: Italy
- Contact:
- SuprChikn
- Bugbear
- Posts: 863
- Joined: Tue Apr 19, 2005 6:10 am
- Location: Melbourne, Aus
- Contact:
Yes. If you look at the material definition for the robot (it's in Example.material, and the material script is called Examples/Robot) you will see there are two techniques defined in there: one for Hardware Skinning, and the other for Software Skinning.
I believe the way it works is it will default to tring to do the first technique listed in the material script, and if it cant do it (cause the hardware doesnt support it) it will use the next technique in the list. So it will iterate through the list until it finds one it can use, or there are no more techniques listed (which I think would result in nothing being rendered).
I believe the way it works is it will default to tring to do the first technique listed in the material script, and if it cant do it (cause the hardware doesnt support it) it will use the next technique in the list. So it will iterate through the list until it finds one it can use, or there are no more techniques listed (which I think would result in nothing being rendered).
- marco.c
- Halfling
- Posts: 51
- Joined: Mon Nov 22, 2004 5:44 pm
- Location: Italy
- Contact: