Hi all,

I've built the OpenSceneGraph libraries and the osgviewerIPhone example for 
arm7/arm7s and IOS 6.0 with XCode 4.5 using the instructions under "Generating 
an iOS Xcode Project". The code was checked out from the SVN repository earlier 
today. The data in Version (i haven't built osgversion) is:

#define OPENSCENEGRAPH_MAJOR_VERSION    3
#define OPENSCENEGRAPH_MINOR_VERSION    0
#define OPENSCENEGRAPH_PATCH_VERSION    1
#define OPENSCENEGRAPH_SOVERSION        80

Running it on an iPad 2 it throws some errors. Seems it is not comfortable with 
ES 2.0:

++Before Converted source 

void main()
{
  gl_Position = ftransform();
  gl_FrontColor = gl_Color;
}

++++++++
-------- Converted source 
uniform mat4 osg_ModelViewProjectionMatrix;
attribute vec4 osg_Color;
attribute vec4 osg_Vertex;

void main()
{
  gl_Position = osg_ModelViewProjectionMatrix * osg_Vertex;
  gl_FrontColor = osg_Color;
}

----------------

Compiling VERTEX source:
    1: uniform mat4 osg_ModelViewProjectionMatrix;
    2: attribute vec4 osg_Color;
    3: attribute vec4 osg_Vertex;
    4: 
    5: void main()
    6: {
    7:   gl_Position = osg_ModelViewProjectionMatrix * osg_Vertex;
    8:   gl_FrontColor = osg_Color;
    9: }

VERTEX glCompileShader "" FAILED
VERTEX Shader "" infolog:
ERROR: 0:8: Use of undeclared identifier 'gl_FrontColor'

The code also attempts to load a 'hog.osg'. I've checked out 
OpenSceneGraph-Data but don't find this file either here or in the source tree. 
Tried copying 'cow.osg*' (seemed a fair trade :) into the bundle but so far I'm 
getting:

FindFileInPath() : USING 
/private/var/mobile/Applications/94D2B578-90DE-44D1-A900-99F343FAA028/osgviewerIPhone.app/cow.osg
No data loaded


Am i missing something? I'm just getting into the OSG source but thought 
someone might be kind enough to save me some work. If there are any other 
working IOS demos it would be appreciated too!

thanks

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




Attachments: 
http://forum.openscenegraph.org//files/log_126.txt


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to