Brian Beuken
Posts: 374
Joined: Fri Jan 29, 2016 12:51 pm

FBX render?

Tue Jun 22, 2021 10:30 am

Has anyone written any animated FBX renders here, and can give me a few tips?

I can use Assimp to load and create meshes which I can straight render, but I've never tried to load a rigged FBX and attempt to render and animate it in OpenGLES3.1

if anyone can point me to some good tutorials or code that I can research, that would be very helpful.

I've done MD5 on Pi3 so I know the principles of how rigged systems work, but FBX is a few levels above that and there's no SDK for ARM systems to fall back on so I need to write it myself.
Very old computer game programmer, now teaching very young computer game programmers, some very bad habits.
http://www.scratchpadgames.net/
https://www.patreon.com/BrianBeuken

User avatar
topguy
Posts: 7188
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: FBX render?

Tue Jun 22, 2021 2:56 pm

Maybe you will have better luck with finding glTF render code ?
I belive you can convert FBX to glTF and keep the animations.

Are we talking Python or C/C++ ?

Brian Beuken
Posts: 374
Joined: Fri Jan 29, 2016 12:51 pm

Re: FBX render?

Tue Jun 22, 2021 11:18 pm

C++

The format of the data isn't really going to matter too much, since both formats basically work with rigged bones and skins..Once converted into mesh and bone data the shaders are not going to be too different, I've found a great tutorial that shows how Assimp formats the data to its own internal formats, I'm going to use their render demo to see how well it outputs, and then try to optimise it
Will try to get it running at the weekend as I think it will take a couple of sessions.
Very old computer game programmer, now teaching very young computer game programmers, some very bad habits.
http://www.scratchpadgames.net/
https://www.patreon.com/BrianBeuken

Return to “OpenGLES”