OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

statically linking osgPlugins for Android


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins]
View previous topic :: View next topic  
Author Message
peabody124
Newbie


Joined: 22 Aug 2012
Posts: 6

PostPosted: Mon Sep 17, 2012 7:11 am    Post subject:
statically linking osgPlugins for Android
Reply with quote

So after tweaking the CMakeList.txt for the plugins I have png/jpeg's going to their appropriate plugins statically linked. However, I'm still not seeing textures. I get these warnings:


Code:

08-23 11:11:31.532: I/Osg Viewer(3689): OpenGL extension 'GL_EXT_texture_filter_anisotropic' is supported.
08-23 11:11:31.532: I/Osg Viewer(3689): OpenGL extension 'GL_EXT_texture_compression_s3tc' is supported.
08-23 11:11:31.532: I/Osg Viewer(3689): OpenGL extension 'GL_IMG_texture_compression_pvrtc' is not supported.
08-23 11:11:31.532: I/Osg Viewer(3689): OpenGL extension 'GL_OES_compressed_ETC1_RGB8_texture' is supported.
08-23 11:11:31.532: I/Osg Viewer(3689): OpenGL extension 'GL_EXT_texture_compression_rgtc' is not supported.
08-23 11:11:31.532: I/Osg Viewer(3689): OpenGL extension 'GL_IMG_texture_compression_pvrtc' is not supported.
08-23 11:11:31.532: I/Osg Viewer(3689): OpenGL extension 'GL_ARB_texture_multisample' is not supported.
08-23 11:11:31.542: I/Osg Viewer(3689): OpenGL extension 'GL_ARB_shadow' is not supported.
08-23 11:11:31.542: I/Osg Viewer(3689): OpenGL extension 'GL_ARB_shadow_ambient' is not supported.
08-23 11:11:31.542: I/Osg Viewer(3689): OpenGL extension 'GL_APPLE_client_storage' is not supported.
08-23 11:11:31.542: I/Osg Viewer(3689): OpenGL extension 'GL_EXT_texture_integer' is not supported.
08-23 11:11:31.542: I/Osg Viewer(3689): Created new 0x650ec8a0 TextureObject, _numOfTextureObjects 1
08-23 11:11:31.542: I/Osg Viewer(3689): Scaling image '/storage/sdcard0/Models/TEXTURE.PNG' from (350,50) to (256,64)
08-23 11:11:31.552: I/Osg Viewer(3689): OpenGL extension 'GL_EXT_packed_depth_stencil' is not supported.
08-23 11:11:31.552: I/Osg Viewer(3689): Created new 0x66d90bc0 TextureObject, _numOfTextureObjects 1
08-23 11:11:31.552: I/Osg Viewer(3689): Scaling image '/storage/sdcard0/Models/CC.PNG' from (788,393) to (1024,512)
08-23 11:11:31.882: I/Osg Viewer(3689): OpenGL extension '' is not supported.
08-23 11:11:31.882: I/Osg Viewer(3689): Setting up osg::Camera::FRAME_BUFFER
08-23 11:11:31.882: I/Osg Viewer(3689): Warning: Material::apply(State&) - not supported.
08-23 11:11:31.952: I/Osg Viewer(3689): Warning: Material::apply(State&) - not supported.
08-23 11:11:31.952: I/Osg Viewer(3689): Warning: Material::apply(State&) - not supported.
08-23 11:11:31.952: W/Osg Viewer(3689): Warning: detected OpenGL error 'invalid enumerant' at after RenderBin::draw(..)
08-23 11:11:31.952: D/Osg Viewer(3689): end cull_draw() 0x652b7670




I know I saw some other threads about textures and android but I'm a bit out of my depth here so if anyone could point me in the right direction... Sorry for taking my own thread OT.

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







------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
peabody124
Newbie


Joined: 22 Aug 2012
Posts: 6

PostPosted: Mon Sep 17, 2012 7:11 am    Post subject:
statically linking osgPlugins for Android
Reply with quote

Great, thank you very much. That fixed it!

Edit: At the risk of derailing my own thread, the plugin then tries to find imageio to load the textures, but that isn't available on android (and looks like it's designed to be apple specific). What plugin should I be looking at?

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







------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12263

PostPosted: Mon Sep 17, 2012 12:18 pm    Post subject:
statically linking osgPlugins for Android
Reply with quote

Hi James,

On 23 August 2012 16:01, James Cotton <> wrote:
Quote:
Great, thank you very much. That fixed it!

Edit: At the risk of derailing my own thread, the plugin then tries to find imageio to load the textures, but that isn't available on android (and looks like it's designed to be apple specific). What plugin should I be looking at?

imageio is an Apple specific plugin for an Apple specific API so no
way that it'll ever be support on other platforms outside Apple's iOS
and OSX.

The image plugins for other platforms are all individual plugins
written to handle their own specific formats, so jpeg you'll find in
src/osgPlugins/jpeg, png your find in src/osgPlugins/png etc. You'll
need to libjpeg and libpng dependencies for both of these plugins.

Robert.


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Question about linking OSG 3D content... Zachary1234 General 0 Mon Mar 25, 2019 6:14 am View latest post
No new posts Cross-platform examples for Linux, ma... kornerr Announcement [ANN] 6 Tue Aug 14, 2018 10:51 am View latest post
No new posts Can Material, Color, LightSource, etc... jovo General 1 Thu Jul 19, 2018 10:02 am View latest post
No new posts Can't access to assets in Android jovo General 1 Wed Jul 11, 2018 1:40 pm View latest post
No new posts Android can't build osgdb_png lyn General [forum] 7 Fri Jun 29, 2018 2:35 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP