Hi,
There are 3 objects in *.obj file. Is it possible to get their nodes in OSG in
order to set different transformations?
Thank you!
Cheers,
John
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=31757#31757
___
Hi,
How can I pass vertices in GLSL1.4 shaders
How can I pass values to "in vec4 vertex"
Code example.
Code:
#version 150
uniform mat4 projectionMatrix; //Specifies that the value is passed to the
shader from the
application and is constant across a given primitive.
uniform mat4 modelViewMat
HOw get vertex coordinates?
Through variable gl_VertexID?
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=31858#31858
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscen
Hi,
I'm loading a sphere with texture that was created in Maya. In osg only a black
sphere. Why?
Code for laoding texture:
Code:
osg::Image* image = osgDB::readImageFile( "neptune2.jpg" );
if ( image )
{
osg::Texture2D* tex2d = new osg::Texture2D;//( image );
tex2d-
Thank very much!
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=31959#31959
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce
Thank very much!
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=31960#31960
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce
Hi,
When I try this code, I got an error 'class osgGA::TrackballManipulator' has
no member named 'setAllThrow'|
Code:
osg::ref_ptr trackball = new
osgGA::TrackballManipulator();
trackball->setAllThrow(true);
Why?
Thank you!
Cheers,
John
--
Read this topic
Hi, while compiling osg I've got an error. Why
Code:
[ 13%] Building CXX object src/osgDB/CMakeFiles/osgDB.dir/WriteFile.obj
[ 13%] Building CXX object src/osgDB/CMakeFiles/osgDB.dir/XmlParser.obj
Linking CXX shared library ..\..\bin\libosgDB.dll
Creating library file: ..\..\lib\libosgDB.dll.a
e
Hi,
I need to load osg-scene as dll from my program. Transformation operations
will be implemented in main program.
How can I send transformation parameters to osg-scene?
Should I use WinAPI or something else?
Thank you!
Cheers,
John
--
Read this topic online here:
http://foru
I've written osg program in DLL and launch it from another program.
I'd like that two programs work independently and main program can pass node
transformation parameters to osg-program. Main program must transform nodes'
position, rotation...
--
Read this topic online here:
http
Hi,
I'd to initialize my scene one cpp-file and launch it in another. Is it possible
Code:
osgViewer::Viewer pipeviewer;
pipeviewer=osgScene();
osgScene():
osgViewer::Viewer osgScene(){
osgViewer::Viewer viewer;
...viewer initialising procedures
return viewer;
}
Thank you!
Cheer
Thanks. No, there isn't any reason=)
Is this code write? I get an error and a program closes.
Code:
osg::ref_ptr pipeviewer;
pipeviewer=osgScene();
while (!pipeviewer->done())
{
pipeviewer->frame();
}
osgScene():
Code:
osg::ref_ptr osgScene()
{
osg::ref_ptr vie
I have an error on such simple code. How must be written viewer?
Code:
int main()
{
osg::ref_ptr viewer;
viewer.get()->setCameraManipulator(new osgGA::TrackballManipulator());
while(!viewer.get()->done())
{
viewer.get()->frame();
}
return 0;
}
--
thanks a lot [Exclamation] [Exclamation] [Exclamation]
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=33197#33197
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscene
14 matches
Mail list logo