(SOLVED)Hardware skinning meshes with bones bug
-
- Competition winner
- Posts: 523
- Joined: Tue Jan 15, 2013 6:36 pm
(SOLVED)Hardware skinning meshes with bones bug
If you can't tell his arm left side viewer facing is destroyed. I've had this problem in the past with meshes that used bones. I've tested this issue on my old version of irrlicht up to the newest one and the issue is still there.
Yes I'm positive there's no weight issues with the vertices in the skinned mesh. Only happens in Irrlicht.
Above pictures are using the latest Irrlicht version.
Default Irrlicht hardware skinning example no changes made by me and use Nadros default skinning shader that ships with Irrlicht.
Last edited by The_Glitch on Fri May 08, 2015 10:42 pm, edited 1 time in total.
-
- Competition winner
- Posts: 523
- Joined: Tue Jan 15, 2013 6:36 pm
Re: Hardware skinning meshes with bones bug
Also like to say I used different exporter and nothing changed.
Odd thin is If you load the mesh as a normal IAnimatedSceneNode with no hardware skinning the mesh doesn't have this issue.
Odd thin is If you load the mesh as a normal IAnimatedSceneNode with no hardware skinning the mesh doesn't have this issue.
-
- Competition winner
- Posts: 523
- Joined: Tue Jan 15, 2013 6:36 pm
Re: Hardware skinning meshes with bones bug
I'll do some further test. Just wondering if anyone else has these issues?
-
- Competition winner
- Posts: 523
- Joined: Tue Jan 15, 2013 6:36 pm
Re: Hardware skinning meshes with bones bug
I'd like to report that I did a test on my models and exporter by loading them in the directxsdk example on skinned meshes and they work flawlessly so I'm positive there's something wrong with the hardware skinning setup in Irrlicht.
I think it mostly remains unnoticed due to the fact that the models used in the examples are made of probably less than 200 polys. The effects begin to break down when you use a character from todays games.
So I don't really know what else to do from here.
I think it mostly remains unnoticed due to the fact that the models used in the examples are made of probably less than 200 polys. The effects begin to break down when you use a character from todays games.
So I don't really know what else to do from here.
-
- Competition winner
- Posts: 523
- Joined: Tue Jan 15, 2013 6:36 pm
Re: Hardware skinning meshes with bones bug
DirectxSDK
Re: Hardware skinning meshes with bones bug
If you could send the model and your loading source code to Granyte or some of the developer, they might have a look at it if they have time?
It is hard for them to know where the error is.
Regards,
thanh
It is hard for them to know where the error is.
Regards,
thanh
-
- Competition winner
- Posts: 523
- Joined: Tue Jan 15, 2013 6:36 pm
Re: Hardware skinning meshes with bones bug
Yeah Nadros already looking into it I sent him everything he needs yesterday he just doesn't post in this thread lol.
Thanks though.
Thanks though.
-
- Competition winner
- Posts: 523
- Joined: Tue Jan 15, 2013 6:36 pm
Re: Hardware skinning meshes with bones bug
Different test on a different chipset Intel graphics. Problem still remains.
Re: Hardware skinning meshes with bones bug
Note that this might be related to another report: http://irrlicht.sourceforge.net/forum/v ... =7&t=48908
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Hardware skinning meshes with bones bug
Some changes checked in to svn (both in trunk and 1.8 release branch). Please check if those help for your bug. Otherwise I will need the model to investigage (including original .blend file if possible).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Competition winner
- Posts: 523
- Joined: Tue Jan 15, 2013 6:36 pm
Re: Hardware skinning meshes with bones bug
I use 3ds max not blender.
I don't believe theses are due to animations as I've never had trouble with this in the past. It only happens when you try to use Irrlicht's Hardware skinning setup with these characters meshes.
Also I exported some of the meshes with there bones no animations and the effect remains the same just to test.
If there loaded as an animated mesh with none of the Hardware skinning things just the default way of loading animated mesh's they work perfectly fine.
I do believe this bug remained relatively unnoticed even by me in the past is because the characters in the demo are really low poly even the characters I used in the past were also.
Once I started using characters from todays games the effects really begin to break down.
I don't believe theses are due to animations as I've never had trouble with this in the past. It only happens when you try to use Irrlicht's Hardware skinning setup with these characters meshes.
Also I exported some of the meshes with there bones no animations and the effect remains the same just to test.
If there loaded as an animated mesh with none of the Hardware skinning things just the default way of loading animated mesh's they work perfectly fine.
I do believe this bug remained relatively unnoticed even by me in the past is because the characters in the demo are really low poly even the characters I used in the past were also.
Once I started using characters from todays games the effects really begin to break down.
Re: Hardware skinning meshes with bones bug
Well, you might still try if it's fixed now. And I can't really help in any way unless I have a test-model. Just the model without original data might be sufficient with some luck. It's obviously always easier when I can modify it for tests, but can't do that anyway for 3ds max as I don't have that.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Competition winner
- Posts: 523
- Joined: Tue Jan 15, 2013 6:36 pm
Re: Hardware skinning meshes with bones bug
You can have the data I don't care I got to find the link I sent to Nadro first.
Make sure what you download says models.rar
Make sure what you download says models.rar
-
- Competition winner
- Posts: 523
- Joined: Tue Jan 15, 2013 6:36 pm
Re: Hardware skinning meshes with bones bug
After much work checking code after code shader after shader I can say that Nadro had the C++ side "Irrlicht" correct the problem lies with the shader that's shipped with the examples.
I'm not sure how this shader appears to work correctly on meshes but after passing a mesh that had poly counts for today's standards the effects begin to break down.
I wasn't able to pinpoint what was wrong in Nadro's shader or whoever's shader but after reading the directx sdk and NVidia and some other sources I made a better shader for skinned meshes that handles things better in my OP.
I'm going to clean this shader up some and ask Nadro If I can replace his shader with mine in the Irrlicht HWS examples.
I haven't added the lighting to the shader yet but he animates just fine no tearing etc.
I'm not sure how this shader appears to work correctly on meshes but after passing a mesh that had poly counts for today's standards the effects begin to break down.
I wasn't able to pinpoint what was wrong in Nadro's shader or whoever's shader but after reading the directx sdk and NVidia and some other sources I made a better shader for skinned meshes that handles things better in my OP.
I'm going to clean this shader up some and ask Nadro If I can replace his shader with mine in the Irrlicht HWS examples.
I haven't added the lighting to the shader yet but he animates just fine no tearing etc.
-
- Competition winner
- Posts: 523
- Joined: Tue Jan 15, 2013 6:36 pm
Re: (SOLVED)Hardware skinning meshes with bones bug
Thought I'd post that on my rig in the first picture of the thread there still seems to be a problem with joints specifically fingers.
The rig in the first post use's 78 bones while the last picture of pyramid head uses 58 bones "he works flawlessly now".
But my original guy at the top post still has issues with his fingers maybe the bone count.
The rig in the first post use's 78 bones while the last picture of pyramid head uses 58 bones "he works flawlessly now".
But my original guy at the top post still has issues with his fingers maybe the bone count.