Author Topic: Bump mapping  (Read 1058 times)

Offline sysaxed

  • byte
  • *
  • Posts: 1
    • View Profile
Bump mapping
« on: June 29, 2012, 06:05:51 pm »
I'm using opengl renderer and trying to make bump mapping work.
I've read this article and I'm trying to make it load bump maps automatically.
I'm loading models from .obj files and in .mtl there are lines like:
Code: [Select]
bump bump.jpg -bm 5Is there any way to get material info from Object3D?
I could parse .mtl files manually but it becomes more complicated when multiple objects are stored in one .obj file.
Maybe there's another way to make it work?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12047
    • View Profile
Re: Bump mapping
« Reply #1 on: June 30, 2012, 10:07:39 pm »
No, there's no such information stored inside Object3D and so there's no way to get it from it. jPCT has no material concept of that kind. I'm not sure what you are trying to do anyway, because obj-format doesn't support multi-texturing and you would need that to store all information about texture- and normal map per object/polygon.