Re: [osg-users] colours in Android OSG

2012-04-25 Thread Maurizio Lodo
Hi Jorge and thanks for your reply. The file I am loading in the viewers is cell.osg (attached), which on Windows/Linux appears like screen_shot_0_0.jpg In the OSG android viewer example it appears like osgAndroidLightOn.jpg and if I toggle the light with the corresponding button I get

Re: [osg-users] colours in Android OSG

2012-04-25 Thread Maurizio Lodo
Thanks Jason, true, I was using ShapeDrawables. However, I was already working on converting the geometries to use osg::Geometry. I have not done the cylinders yet; however I have converted the cubes, and, unfortunately the results are exactly the same. The code used to generate the cube

Re: [osg-users] colours in Android OSG

2012-04-25 Thread Maurizio Lodo
Unfortunately not. I am not getting this at all. The colour info is there, as you can see if I turn the light off, but as soon as the default headlight is turned on it all goes grey. Oh well thanks for the help anyway. Obviously this is not my thing at all! :) Cheers, Maurizio

Re: [osg-users] colours in Android OSG

2012-04-25 Thread Maurizio Lodo
Thanks guys, you are helping loads. I will try that tomorrow. What about GLES2? Cheers Maurizio -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47307#47307 ___ osg-users mailing list

Re: [osg-users] colours in Android OSG

2012-04-25 Thread Maurizio Lodo
if I use osg::Material I get no colours and a warning in logcat Warning: detected OpenGL error 'invalid enumerant' at after RenderBin::draw(..) -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47311#47311

[osg-users] colours in Android OSG

2012-04-24 Thread Maurizio Lodo
Hi, this is probably a daft question, but as I am a noob to the Android-OSG combo, I hope you will be gentle. I have built the android osgAndroidExampleGiLES1 and I tried to load, one of my osg models (nothing fancy, just a bunch of cubes and cylinders). These models display perfectly in the

Re: [osg-users] Android GLES2 example help

2012-01-25 Thread Maurizio Lodo
Thanks for your kind reply. I have found only 2 instances of LOCAL_ARM_NEON := true one in /PlatformSpecifics/Android/Android.mk.modules.in and one in the Android.mk file of the example. I commented them out but the final result is the same. Am I missing any more of these? Any other suggestion

[osg-users] Android GLES2 example help

2012-01-21 Thread Maurizio Lodo
Hi, I have been going through the Android/O,SG tutorial. I compiled OSG for Android on my Debian machine, which seems to have completed correctly and I am now trying to run the GLES2 example on my Samsung gti5500 with android gingerbread. I replaced OSG_ANDROID_DIR with the correct directory

[osg-users] [osgPlugins] collada export

2009-11-01 Thread Maurizio Lodo
Hi all, I was trying to find a way to export my model created with OSG so that I can play with it in Blender. The only solution at the moment seems the Collada plugin. So I compiled collada-dom 2.2, then I tried 2.1, and I even found some Ubuntu pre-compiled collada-dom/libminizip installers,

Re: [osg-users] recent update-texture issue

2009-10-30 Thread Maurizio Lodo
some more info: the texture is generated with: Code: osg::TextureCubeMap* generateTexture() { // 2D image texture osg::TextureCubeMap* texture = new osg::TextureCubeMap; // load images osg::Image* frontTextureImage = osgDB::readImageFile(./texture/frontLarge.png);

Re: [osg-users] how to improve frame rate of my scene with lots of cubes and cylinders?

2009-10-20 Thread Maurizio Lodo
Hi, Should this be done within VertexShader using GLSL? I tried to create a light following the osglight example, but it did not make any difference. Cheers, Maurizio -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=18417#18417

Re: [osg-users] how to improve frame rate of my scene with lots of cubes and cylinders?

2009-10-18 Thread Maurizio Lodo
Hi, Thanks Peter for your very helpful reply. I have sorted that issue thank to your pointers. Now I have only one more question then I promise I won't bother you anymore. It seems that when I generate my model using the simple geometries I created and using VertexShader, the resulting cube,

Re: [osg-users] how to improve frame rate of my scene with lots of cubes and cylinders?

2009-10-14 Thread Maurizio Lodo
Hi all, Finally I found some time to play with this. Thanks to your words of wisdom, I have decided to create my cylinder geometry. I used the drawinstanced example as a template and I managed to generate the cylinders, translate them and rotate them as I want. However I notice that when I get

Re: [osg-users] how to improve frame rate of my scene with lots of cubes and cylinders?

2009-10-02 Thread Maurizio Lodo
Thanks for your replies!! I have been reading through this forum and googled a lot and it seems the best solution for my problem would be to create a simplified cylinder geometry (which I have done), divide all the cylinders into bins (by diameter, as they will have all the same length), and

Re: [osg-users] Quad buffer stereo issue

2009-09-06 Thread Maurizio Lodo
Hi, Just an update. I was looking for a stereo VRML viewer and I found White Dune. Well the strange thing is that when I start White Dune with the stereo mode enabled, then also osgviewer works perfectly without flickering of the image between the left and right picture. As soon as I close

[osg-users] [osgPlugins] can't compile VRML plugin

2009-09-06 Thread Maurizio Lodo
Hi, I was following the tutorial here (http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/VisualStudio/VisualStudioPlugins) I compiled OpenVRML without any issue. but when it comes to using CMake on the VRML plugin I downloaded here

[osg-users] Quad buffer stereo issue

2009-09-02 Thread Maurizio Lodo
Hi, I am completely new to OpenSceneGraph and I bumped into this issue that I hope you may be able to help me with. I have installed from binaries on our quad core vista 64 bit computer with Nvidia Quadro FX4600 graphic card. I tested with Code: osgviewer cow.osg and all works as it should.