Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - sysaxed

Pages: [1]
1
Support / 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 http://www.jpct.net/wiki/index.php/Shaders 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?

Pages: [1]