Re: [osg-users] bumpmapping and tangentspacegenerator, generating tangents

2012-10-04 Thread John Moore
Ok, Let's say that I want to read an OBJ file and assign the BUMP texture to 0 and the DIFFUSE texture to 1 Am I doing right with these lines of code for the options? osg::ref_ptrosgDB::ReaderWriter::Options options = new osgDB::ReaderWriter::Options; options-setOptionString(DIFFUSE=1

[osg-users] bumpmapping and tangentspacegenerator, generating tangents

2012-10-03 Thread John Moore
Dear OSG users, I am trying to develop bump mapping using opengl es 2.0 and openscenegraph. I can't use osgFX because of opengl es 2.0. I have to apply a bump map to an obj that has the map embedded in the MTL. The mtl is like this: newmtl Nuovo Kd 0.80 0.80 0.80 illum 2 Ns