Re: [osg-users] [3rdparty] Installing osg for Android on Windows (Eclipse)

2012-06-12 Thread Ou Yang
Hi, Jorge 

Thanks for your advice! After learning all the basic thing about linux and 
android programming, I successed in building osg for android and tested the 
sample with my android phone. As an absolute novice, it's really a long 
journey. For other newbies like me, i have found a easy to follow tutorial:
http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2012-March/057074.html

Another problem: if i want to develope some big project just like 
osgVirtualPlanet or osgEarth for android, what is the best IDE for this task? 
Since the only IDE i'm familiar with is visual studio, i have searched 
something similiar with it but couldn't find any useful info. Maybe eclipse cdt?


Thank you!

Cheers,
Ou :)

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [3rdparty] Installing osg for Android on Windows (Eclipse)

2012-05-07 Thread Ou Yang
Hi, Jordi 

I had read the linked page in your post carefully, but still can't figure out 
how to build osg for android on windows.  Since i have learned android 
development only recently, i'd like to ask something more concrete. When 
building for android on win7, could i generate project file with CMake gui, 
just like generating sln file for windows? What kind of tools should i choose?  

I have successfully built and run android ndk sample in eclipse, but i noticed 
that it built c++ files with cygwin and gcc and generated so file rather than 
dll. Should i built osg with cygwin?

I have googled this issue extensively, but no any useful information for 
newbies lke me.

Wang Rui's new book has some information on this issue, but only on linux.
... 


Thank you!

Cheers,
Ou :'  :'  :'

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Problem with osgEarth::ImageOverlay::setAlpha

2012-04-23 Thread Ou Yang
Hi,

The bug has been found in ImageOverlay::init() method.
The original code is:
osg::Vec4Array* colors = new osg::Vec4Array(1);
(*colors)[0] = osg::Vec4(1,1,1,_alpha);

geometry-setColorArray( colors );
geometry-setColorBinding( osg::Geometry::BIND_OVERALL );

when change it to:
osg::Vec4Array* colors = new osg::Vec4Array(4);
(*colors)[0] = osg::Vec4(1,1,1,_alpha);
(*colors)[1] = osg::Vec4(1,1,1,_alpha);
(*colors)[2] = osg::Vec4(1,1,1,_alpha);
(*colors)[3] = osg::Vec4(1,1,1,_alpha);

geometry-setColorArray( colors );
geometry-setColorBinding( osg::Geometry::BIND_PER_VERTEX );
the alpha value are applied correctly.

I don't know if it a bug in osg core library.
... 

Thank you!

Cheers,
Ou

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Problem with osgEarth::ImageOverlay::setAlpha

2012-02-21 Thread Ou Yang
Hi,

I use osgEarth::ImageOverlay::setAlpha(float alpha) to change the transparency 
of images, which was draped on terrain, just like what google earth does, but 
this method seems has no effect at all! It also doesn't work in the sample 
osgearth_imageoverlay. Is it a bug?
I use openscenegraph 3.0.0 and osgearth 2.1.1, build with visual studio 2010.


Thank you!

Cheers,
Ou

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




Attachments: 
http://forum.openscenegraph.org//files/1_538.jpg


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org