Author Topic: shaders skinning  (Read 961 times)

Offline elhoce

  • byte
  • *
  • Posts: 16
    • View Profile
shaders skinning
« on: March 25, 2012, 06:43:46 pm »
hello,

I try to make animated skinning via GLSL, I need to build VBOs with additional data such as weight and indices of joints per vertex. Because you build VBOs loading object, I'd like to know if I can do instead of JPCT, is that possible?
If not, why?
thank you

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: shaders skinning
« Reply #1 on: March 25, 2012, 09:31:31 pm »
ATM, you can't. Simply because you don't have access to the shader that is hidden inside of GLSLShader. But here's a version that adds a getProgram()-method to GLSLShader. With that and maybe an implementation of IRenderHook, you should be able to cram into your shader whatever you have to. However, you have to make sure to setup and tear down everything correctly, because you are working behind jPCT-AE's back here...

The file: http://jpct.de/download/beta/jpct_ae.jar