Re: [osg-users] osgAnimation and 3ds max exporter

2010-07-12 Thread Michele Olsen
Hello,

I'm just curious as to the state of the 3dsmax exporter. If there is anything 
that you need help with I'd be interested in getting involved.

-Michele

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29933#29933





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Character animation in OSG

2010-07-12 Thread Michele Olsen
Hello,

I've been working in osgCal and cal3d for a few weeks now and one thing I would 
like to see in osgAnimation is the capability to control a bone during a cycle 
animation. Specifically, I want to be able to control where a head is looking 
while an idle animation is playing. I don't think there is a simple way to do 
it in osgCal or cal3d, or I haven't found it yet. Also, documentation could be 
improved upon. 

Thanks for all your hard work!

Michele

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29926#29926





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] softshadowmap and glsl shader

2009-08-20 Thread Michele Olsen
Hi,

This looks to be the answer to my problem

[url]
http://forum.openscenegraph.org/viewtopic.php?p=16504#16504[/url]

if the link doesn't work try searching for texture in shader

-Michele

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=16506#16506





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] textures in shaders

2009-08-20 Thread Michele Olsen

> 'd double-check that the model is
> actually using texture unit 1. I've seen some COLLADA models
> (particularly those exported from 3ds MAX) that try to use texture unit
> 1 instead.


That did it!!

Thank you!!

Michele

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=16504#16504





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] textures in shaders

2009-08-20 Thread Michele Olsen
Hello,

I have been having some trouble rendering textured models with shaders. I am a 
little confused about how to set the sampler uniform to the textures. 

Also, from my understanding, if a vertex shader is not specified that 
functionality is pushed to the fixed pipeline?

Here is what I have. 

Application:

Code:

#include 
#include 
#include 
#include 
#include 

/* loadShaderSource from 
http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/ShadersIntroduction
 */
bool loadShaderSource(osg::Shader* obj, const std::string& fileName )
{
  std::string fqFileName = osgDB::findDataFile(fileName);
  if( fqFileName.length() == 0 )
{
  std::cout << "File \"" << fileName << "\" not found." << std::endl;
  return false;
}
  bool success = obj->loadShaderSourceFromFile( fqFileName.c_str());
  if ( !success  )
{
  std::cout << "Couldn't load file: " << fileName << std::endl;
  return false;
}
  else
{
  return true;
}
}

int main(int argc, char ** argv)
{
  osgViewer::Viewer viewer;
  
  osg::ref_ptr root = new osg::Group();
  osg::ref_ptr snowplow = 
osgDB::readNodeFile("PlowModel/Plow_Main.DAE");

  osg::ref_ptr snowplowState = snowplow->getOrCreateStateSet();

  /// load and compile shader

  osg::ref_ptr program = new osg::Program();
  osg::ref_ptr fragshader = new osg::Shader(osg::Shader::FRAGMENT);
  program->addShader( fragshader );

  loadShaderSource( fragshader, "texture_fragment.glsl");

  osg::ref_ptr baseTexture = new osg::Uniform("textureSampler", 
0);

  snowplowState->addUniform( baseTexture );

  snowplowState->setAttributeAndModes( program, osg::StateAttribute::ON );


  root->addChild(snowplow.get());

  viewer.setSceneData( root.get() );
  return viewer.run();
}





Shader:

Code:


//
/*  added for texturing */
//
uniform sampler2D textureSampler;
//

void main()
{
//
/*  added for texturing */
//
vec3 texturedColor = vec3 (texture2D (textureSampler, 
gl_TexCoord[0].st));
//

/*/
/* changed for texturing */
/* gl_FragColor = gl_Color; */
gl_FragColor = vec4 (texturedColor.rg, 1.0, 1.0);

}





Thanks for your help!

Michele

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=16499#16499





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] softshadowmap and glsl shader

2009-08-17 Thread Michele Olsen
Hi,

I am using osgShadow in my application. Ever since the newest release (2.8.2) 
my fragment shaders have not been able to pick up the texture coordinates for 
my models' base texture. Thus the texture lookups are not correct. I've loaded 
my models in osg viewer, so I know the fixed pipeline is picking up the 
textures fine. Any ideas?
... 

Thanks,

Michele

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=16354#16354





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Textures not appearing after latest update

2009-07-30 Thread Michele Olsen
Yes I have seen that thread, but none of my model files contain the offending 
line.

---

Michele

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15656#15656





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Textures not appearing after latest update

2009-07-30 Thread Michele Olsen
Hi,

I have recently upgraded my system from ubuntu 8.04 32 bit to 9.04 64 bit. I 
also upgraded to the latest osg build 2.8.2. Since then, no textures appear on 
any of the objects in my simulation. Were there any changes to FBOs or the 
Collada loader that may be causing this problem?

Thanks for your help,

Michele

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15654#15654





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgPlugins] Collada plugin texture problem

2009-07-29 Thread Michele Olsen
Hello,

I am having a similar problem of the textures not appearing when I upgraded to 
osg 2.8.2.
I tried looking at the files but I was unable to find the line you said to 
modify. I used the Collada Next Gen exporter in 3D Studio Max 2008 to export my 
models. The specific line I get when loading the models into my scene is 
"Failed to find matching  for CHANNEL1"

Thanks for your help,

Michele

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15620#15620





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Frame rates vary dramatically across runs

2009-07-21 Thread Michele Olsen
My machine is using a 9800 GTX and Ubuntu 8.04 32 bit btw.
Thanks for the help, and I hope the driver bug gets worked out.

... 

Michele[/quote]

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15194#15194





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Frame rates vary dramatically across runs

2009-07-21 Thread Michele Olsen
Hi,

It seems the issue was caused by using shadow maps that were too large. I 
switched back to 4096 x 4096 and all is well. 
... 

Thank you!

Cheers,
Michele

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15178#15178





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Frame rates vary dramatically across runs

2009-07-01 Thread Michele Olsen
Hi,

I am building an application using osg and recently I have been experiencing 
dramatic changes in frame rate across runs. One run will have 140 + fps while 
the next run will have < 15 fps.  I was wondering if anyone else has 
experienced this?

Thank you!

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=14783#14783





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org