Main Menu
Menu

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.

Show posts Menu

Messages - sysaxed

#1
Support / Bump mapping
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:
bump bump.jpg -bm 5
Is 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?