Re: [osg-users] IPhone retina displays
Hi Tom, Am 26.09.10 18:52, schrieb Thomas Hogarth: > Is it best for me to send my whole git repository to you or just the files > i've changed? just send me the modified files, that's easier I think. Perhaps you can fork the repository on github and commit your changes to your repository and send the changeset to me via github, I think this is called pull-request on github, then I can review your changes and merge them, cheers, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] IPhone retina displays
Hi Stephan >Another approach would be to use the WindowData-class to transport the >scale-factor to the view-creation code. I went this route to disable the >autorotation of the view. I think this is cleaner than adding a >"virtual" screen, which gets complicated, as the iPhone supports IMHO >external displays or an new iPad with "retina"-display gets available. I think your'e right on this one, once i started thinking about it it got way to complicated. Adding a scale factor to the window data is the way to go I think. Especially as it turns out you can have decimal scale factors e.g. 1.5. So it's alsmost like a 'my res is full screen' indicator. i'll try do the changes today and send to you to check in to the git. Tom PS Is it best for me to send my whole git repository to you or just the files i've changed? On 25 September 2010 13:13, Thomas Hogarth wrote: > Hi All > > So finally got hold of an IPod 4th gen which has the new retina display > with a res of 640x960. It does cause a bit of an issue with the iphone port > of osg however. > > For backwards compatibility reasons iOS uses points (not pixels) for it's > ui sizes. The point res of the screen is still 320x640 and is auto scaled up > to fit the new higher res screen. See link below > > > http://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/SupportingResolutionIndependence/SupportingResolutionIndependence.html#//apple_ref/doc/uid/TP40007072-CH10-SW11 > > > So the above states that setting the views content scale factor to two > causes the opengl buffers to be made at the true pixel size of the screen. > So in essence the new IPhone has a screen with two resolutions but you can't > change the res on the fly only change how the uikit treats your content. > > > So essentially because of the way it works the user needs to opt in for > one of the resolutions (so we know how to set the scale factor). > The easiest way to do this I thought would be to treat it as if there are > two screens one of 320x640 and one of 640x960 (IPad can also have external > displays). Then the user can select which one with the graphics traits > screenNum value. This will work but I'm not sure which should be the default > res/screen. 320x640 would be best for backward compatibility but the usual > behaviour is to have the true res as the default, right? > > > Any thoughts would be appreciated > > Tom > > > PS > > Stephan I'm making these changes to the latest git with your osgGA changes > (checked out Thursday, nice one by the way). I still need to find out how > this will effect touch coords. > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [Solved] OSG and CEGUI 0.7
Hi, Sorry for popping this up, but this thread just saved me a lots of googling work! Soluttion worked like a charm :) Thank you! Cheers, Andi -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32059#32059 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] Error compiling osgText on mingw (trunk)
Hi David & Javier, I've just added the missing include ito include/osgText/Glyph and checked it in. Cheers, Robert. On Sun, Sep 26, 2010 at 8:04 AM, Javier Taibo wrote: > Hi David, > > Add #include to Glyph file. > > At least it worked for me. > > > Best Regards, > Javier Taibo. > > > On Sun, Sep 26, 2010 at 8:41 AM, David Wilson wrote: >> >> Hi, >> >> I checked out the trunk of OSG so I could get into the new Qt stuff. >> >> I'm compiling using the version of MinGW included with Qt 4.7 - I think >> it's 4.4.0, and I get this error: >> >> >> > ... Building CXX object >> > src/osgText/CMakeFiles/osgText.dir/DefaultFont.obj >> > >> > In file included from C:\OpenSceneGraph\src\osgText\/DefaultFont.h:19, >> > from C:\OpenSceneGraph\src\osgText\DefaultFont.cpp:18: >> > C:\OpenSceneGraph\include/osg/ref_ptr: In destructor >> > 'osg::ref_ptr::~ref_ptr() [with T = osg::Geode]': >> > C:\OpenSceneGraph\include/osgText/Glyph:101: instantiated from here >> > C:\OpenSceneGraph\include/osg/ref_ptr:35: error: invalid use of >> > incomplete type 'struct osg::Geode' >> > C:\OpenSceneGraph\include/osg/Image:412: error: forward declaration of >> > 'struct osg::Geode' >> > mingw32-make[2]: *** >> > [src/osgText/CMakeFiles/osgText.dir/DefaultFont.obj] Error 1 >> > mingw32-make[1]: *** [src/osgText/CMakeFiles/osgText.dir/all] Error 2 >> > mingw32-make: *** [all] Error 2 >> >> >> Hoping someone can give me an unofficial workaround for this. >> >> Thank you! >> >> Cheers, >> David Wilson >> >> -- >> Read this topic online here: >> http://forum.openscenegraph.org/viewtopic.php?p=32074#32074 >> >> >> >> >> >> ___ >> osg-users mailing list >> osg-users@lists.openscenegraph.org >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Please help, linking errors with OpenSceneGraph
Try clean all, and rebuild...? Martin. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Renesis Skidac Sent: 26 September 2010 11:37 To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Please help, linking errors with OpenSceneGraph Thats what is bothering me. I compiled OpenSceneGraph as release, I set my project to release, I'm using release libraries and Code generation is set to (/MD) and I'm still getting this error. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32079#32079 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Please help, linking errors with OpenSceneGraph
Thats what is bothering me. I compiled OpenSceneGraph as release, I set my project to release, I'm using release libraries and Code generation is set to (/MD) and I'm still getting this error. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32079#32079 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] osg on symbian
hi all~ anyone here do porting osg on symbian ? STL had done OpenThreads no OSG no just wanna run the simple demo osgviewer cow.osg~ p.s Symbian 3 N8 , OSG 2.9.8 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] IPhone retina displays
Hi Tom, Am 25.09.10 14:13, schrieb Thomas Hogarth: > So finally got hold of an IPod 4th gen which has the new retina display with > a res of 640x960. It does cause a bit of an issue with the iphone port of > osg however. > > For backwards compatibility reasons iOS uses points (not pixels) for it's ui > sizes. The point res of the screen is still 320x640 and is auto scaled up to > fit the new higher res screen. See link below > > http://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/SupportingResolutionIndependence/SupportingResolutionIndependence.html#//apple_ref/doc/uid/TP40007072-CH10-SW11 > > > So the above states that setting the views content scale factor to two > causes the opengl buffers to be made at the true pixel size of the screen. > So in essence the new IPhone has a screen with two resolutions but you can't > change the res on the fly only change how the uikit treats your content. > > > So essentially because of the way it works the user needs to opt in for one > of the resolutions (so we know how to set the scale factor). The easiest way > to do this I thought would be to treat it as if there are two screens one of > 320x640 and one of 640x960 (IPad can also have external displays). Then the > user can select which one with the graphics traits screenNum value. This > will work but I'm not sure which should be the default res/screen. 320x640 > would be best for backward compatibility but the usual behaviour is to have > the true res as the default, right? Another approach would be to use the WindowData-class to transport the scale-factor to the view-creation code. I went this route to disable the autorotation of the view. I think this is cleaner than adding a "virtual" screen, which gets complicated, as the iPhone supports IMHO external displays or an new iPad with "retina"-display gets available. Perhaps we can query the scale-factor and apply it to the view when not specified otherwise. Unfortunately I don't have a device with retina display, so can't do any tests. just me 2 cents, cheers, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] Error compiling osgText on mingw (trunk)
Hi, I got the 2.9.8 developer release and it's compiling ok. I really should have checked this out first. Sorry! Thank you! Cheers, David -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32076#32076 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] Error compiling osgText on mingw (trunk)
Hi David, Add #include to Glyph file. At least it worked for me. Best Regards, Javier Taibo. On Sun, Sep 26, 2010 at 8:41 AM, David Wilson wrote: > Hi, > > I checked out the trunk of OSG so I could get into the new Qt stuff. > > I'm compiling using the version of MinGW included with Qt 4.7 - I think > it's 4.4.0, and I get this error: > > > > ... Building CXX object > src/osgText/CMakeFiles/osgText.dir/DefaultFont.obj > > > > In file included from C:\OpenSceneGraph\src\osgText\/DefaultFont.h:19, > > from C:\OpenSceneGraph\src\osgText\DefaultFont.cpp:18: > > C:\OpenSceneGraph\include/osg/ref_ptr: In destructor > 'osg::ref_ptr::~ref_ptr() [with T = osg::Geode]': > > C:\OpenSceneGraph\include/osgText/Glyph:101: instantiated from here > > C:\OpenSceneGraph\include/osg/ref_ptr:35: error: invalid use of > incomplete type 'struct osg::Geode' > > C:\OpenSceneGraph\include/osg/Image:412: error: forward declaration of > 'struct osg::Geode' > > mingw32-make[2]: *** [src/osgText/CMakeFiles/osgText.dir/DefaultFont.obj] > Error 1 > > mingw32-make[1]: *** [src/osgText/CMakeFiles/osgText.dir/all] Error 2 > > mingw32-make: *** [all] Error 2 > > > Hoping someone can give me an unofficial workaround for this. > > Thank you! > > Cheers, > David Wilson > > -- > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=32074#32074 > > > > > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org