[osg-users] Exporting OBJ file format

2013-07-09 Thread Judson Weissert

Hello,

I was recently trying out the OBJ plugin for exporting a model, and it 
ended up specifying line vertices using syntax one would expect when 
specifying faces.


i.e., The exported file contained a number of lines such as:

l 2261// 2262//2223

l 2263//2224 2264//2225

l 2265//2226 2266//2227

l 2267//2228 2268//2229

l 2269//2230 2270//2231

l 2271//2232 2272//2233

It is my understanding that the obj file format expects lists of 
vertices for the "l" context? When I tried to import the obj file into 
Blender, it complained about the above lines since it was trying to 
interpret each space delimited section (after "l") as an integer.


Am I missing something?

Regards,

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


Re: [osg-users] [vpb] [solved] osgdem has problems blending overlapping images

2013-07-09 Thread Arthur Bogard
Input files had alpha layers by default.  Seems to be working fine now that I'm 
pre-warping them and making gdal_translate ignore layer 4.

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





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


Re: [osg-users] [vpb] [solvedish] VPBmaster consumes over 16GB of RAM

2013-07-09 Thread Arthur Bogard
So, I was finally able to process 1/4th of the dataset at a time with 32GB of 
RAM and a 230GB swap partition on an SSD.

Just wow.  I had no idea that a high-resolution (~15mpp) full-earth DEM would 
need those kind of resources.  I hope that I will be able to add-to the 
database rather than needing 4 independent databases of the DEM for the whole 
earth.

Thanks to all that discussed the issues,
Arthur

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





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


Re: [osg-users] Three Weeks until the Openscenegraph BOF at Siggraph

2013-07-09 Thread David Glenn
Sorry John!

I was tied up from Wed through Sun last weekend 
at another conference for the Anime Industry in Los Angles.
I was volentered in an emergency as a backup for a someone that was a  no-show. 
So I kind of fell out of contact until yesterday morning when I recoved from 
the experance.

If you what to do another test I should e-mail you my work and cell
numbers in case you what to do another test. 

D Glenn
 

John Richardson wrote:
> David,
> 
> I'll be testing this weekend. Maybe we can arrange a test.
> 
> Will coordinate offline if you are interested.
> 
> John F. Richardson
> 
> -Original Message-
> From:  [mailto:] On Behalf Of David Glenn
> Sent: Wednesday, July 03, 2013 8:37 AM
> To: 
> Subject: Re:  Three Weeks until the Openscenegraph BOF at Siggraph
> 
> Greetings John and Robert!
> 
> If I don't get kidnapped at Comic Con I will be there!
> 
> I have some experience with Google Hangout so if John needs some help I'm 
> happy to volunteer if needed! I've even done some hangouts from my laptop 
> that I always carry with me! All I need is internet! 
> Note: Haven’t tested it with my iPhone hotspot yet!
> 
> ... 
> 
> Thank you!
> D Glenn
> 
> 
> David Glenn
> ---
> D Glenn 3D Computer Graphics Entertainment.
> www.dglenn.com
> 
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=55118#55118
> 
> 
> 
> 
> 
> ___
> osg-users mailing list
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
> ___
> osg-users mailing list
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>  --
> Post generated by Mail2Forum



David Glenn
---
D Glenn 3D Computer Graphics Entertainment.
www.dglenn.com

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





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


Re: [osg-users] Android osgAndroidExampleGLES2 compiler errors

2013-07-09 Thread Jordi Torres
Hi,
This bug is fixed in recent versions. So try the svn trunk.
Cheers
El 09/07/2013 18:16, "John Moore"  escribió:

>
> Jorge Izquierdo Ciges wrote:
> > The message its pretty clear:
> >
> > couldn't load osgNativeLib: findLibrary returned null
> >
> >
> >
> > Probably the library has not been copied. This usually happens when
> compiling armeabi-v7 and the device doesn't support it.It is also possible
> that the apk was generated without the .so open the apk first to check it.
> >
> >  --
> > Post generated by Mail2Forum
>
>
> Ok, so the problem could be the warnings that I ignored by removing
> -Werror flag.
> In fact these are the pieces of code in the osgNativeLib.cpp that gives me
> warnings:
>
> Code:
>
>
> 78const char *nativeAddress = env->GetStringUTFChars(address, false);
> 87const char *nativeAddress = env->GetStringUTFChars(address, false);
> 88const char *nativeName = env->GetStringUTFChars(name, false);
>
>
>
>
>
> the warning (which is considered as error if I don't remove -Werror flag)
> is about:
>
> converting 'false' to pointer type for argument 2 of 'char const*
> _JNIEnv::GetStringUTFChars(jstring, jboolean*)' [-Werror=conversion-null]
>   osgNativeLib.cpp/osgViewer/jni  line 78 C/C++ Problem
>
> I didn't write this code. It was in the osgAndroidExampleGLES2.
>
> What do you think about it?
>
> Thanks again for your time.
>
> John
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=55170#55170
>
>
>
>
>
> ___
> 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] Android osgAndroidExampleGLES2 compiler errors

2013-07-09 Thread John Moore

Jorge Izquierdo Ciges wrote:
> The message its pretty clear:
> 
> couldn't load osgNativeLib: findLibrary returned null
> 
> 
> 
> Probably the library has not been copied. This usually happens when compiling 
> armeabi-v7 and the device doesn't support it.It is also possible that the apk 
> was generated without the .so open the apk first to check it.
> 
>  --
> Post generated by Mail2Forum


Ok, so the problem could be the warnings that I ignored by removing -Werror 
flag.
In fact these are the pieces of code in the osgNativeLib.cpp that gives me 
warnings:

Code:


78const char *nativeAddress = env->GetStringUTFChars(address, false);
87const char *nativeAddress = env->GetStringUTFChars(address, false);
88const char *nativeName = env->GetStringUTFChars(name, false);





the warning (which is considered as error if I don't remove -Werror flag) is 
about:

converting 'false' to pointer type for argument 2 of 'char const* 
_JNIEnv::GetStringUTFChars(jstring, jboolean*)' [-Werror=conversion-null] 
osgNativeLib.cpp/osgViewer/jni  line 78 C/C++ Problem

I didn't write this code. It was in the osgAndroidExampleGLES2.

What do you think about it?

Thanks again for your time.

John

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





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


Re: [osg-users] Android osgAndroidExampleGLES2 compiler errors

2013-07-09 Thread Jorge Izquierdo Ciges
The message its pretty clear:

couldn't load osgNativeLib: findLibrary returned null

Probably the library has not been copied. This usually happens when
compiling armeabi-v7 and the device doesn't support it.It is also possible
that the apk was generated without the .so open the apk first to check it.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Crash in LightSpacePerspectiveShadowMap

2013-07-09 Thread Jan Ciger
Hello,

I am playing with the LightSpacePerspectiveShadowMap  and all of those
techniques crash on me like this:

---
Debug Assertion Failed!

Program: C:\Windows\system32\MSVCP110D.dll
File: C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\deque
Line: 1418

Expression: deque subscript out of range


Typically zooming around the scene for a bit triggers this crash.
---

This is using a 64bit debug build, with Visual Studio 2012.


Stack:
>   osg98-osgShadowd.dll!std::deque 
> >::operator[](unsigned __int64 _Pos=2)  Line 1421 C++
osg98-osgShadowd.dll!osgShadow::ConvexPolyhedron::transformClip(const
osg::Matrixd & matrix={...}, const osg::Matrixd & inverse={...})  Line
604 + 0x12 bytesC++
osg98-osgShadowd.dll!osgShadow::ConvexPolyhedron::transform(const
osg::Matrixd & matrix={...}, const osg::Matrixd & inverse={...})  Line
307 C++

osg98-osgShadowd.dll!osgShadow::MinimalShadowMap::ViewData::frameShadowCastingCamera(const
osg::Camera * cameraMain=0x00110af0, osg::Camera *
cameraShadow=0x0012add0, int pass=1)  Line 254 + 0x4b
bytes   C++

osg98-osgShadowd.dll!osgShadow::ProjectionShadowMap::ViewData::frameShadowCastingCamera(const
osg::Camera * cameraMain=0x00110af0, osg::Camera *
cameraShadow=0x0012add0, int pass=1)  Line 77   C++

osg98-osgShadowd.dll!osgShadow::MinimalCullBoundsShadowMap::ViewData::aimShadowCastingCamera(const
osg::Light * light=0x03270b40, const osg::Vec4f &
lightPos={...}, const osg::Vec3f & lightDir={...}, const osg::Vec3f &
lightUp={...})  Line 58 C++
osg98-osgShadowd.dll!osgShadow::StandardShadowMap::ViewData::cull()
Line 458C++

osg98-osgShadowd.dll!osgShadow::ViewDependentShadowTechnique::cull(osgUtil::CullVisitor
& cv={...})  Line 84 + 0x10 bytes   C++

osg98-osgShadowd.dll!osgShadow::ShadowTechnique::traverse(osg::NodeVisitor
& nv={...})  Line 88 + 0x20 bytes   C++

osg98-osgShadowd.dll!osgShadow::ViewDependentShadowTechnique::traverse(osg::NodeVisitor
& nv={...})  Line 43C++
osg98-osgShadowd.dll!osgShadow::ShadowedScene::traverse(osg::NodeVisitor
& nv={...})  Line 65C++
osg98-osgd.dll!osg::NodeVisitor::traverse(osg::Node & node={...})
Line 194C++

osg98-osgUtild.dll!osgUtil::CullVisitor::handle_cull_callbacks_and_traverse(osg::Node
& node={...})  Line 314 C++
osg98-osgUtild.dll!osgUtil::CullVisitor::apply(osg::Group &
node={...})  Line 1220  C++
osg98-osgShadowd.dll!osgShadow::ShadowedScene::accept(osg::NodeVisitor
& nv={...})  Line 36 + 0x62 bytes   C++
osg98-osgd.dll!osg::Group::traverse(osg::NodeVisitor & nv={...})
Line 62 + 0x32 bytesC++
osg98-osgd.dll!osg::NodeVisitor::traverse(osg::Node & node={...})
Line 194C++

osg98-osgUtild.dll!osgUtil::CullVisitor::handle_cull_callbacks_and_traverse(osg::Node
& node={...})  Line 314 C++
osg98-osgUtild.dll!osgUtil::CullVisitor::apply(osg::Group &
node={...})  Line 1220  C++
osg98-osgd.dll!osg::Group::accept(osg::NodeVisitor & nv={...})  Line
38 + 0x60 bytes C++
osg98-osgd.dll!osg::Group::traverse(osg::NodeVisitor & nv={...})
Line 62 + 0x32 bytesC++
osg98-osgd.dll!osg::NodeVisitor::traverse(osg::Node & node={...})
Line 194C++
osg98-osgUtild.dll!osgUtil::SceneView::cullStage(const osg::Matrixd
& projection={...}, const osg::Matrixd & modelview={...},
osgUtil::CullVisitor * cullVisitor=0x0012e370,
osgUtil::StateGraph * rendergraph=0x0012d720,
osgUtil::RenderStage * renderStage=0x0012d8b0, osg::Viewport *
viewport=0x042e17d0)  Line 906  C++
osg98-osgUtild.dll!osgUtil::SceneView::cull()  Line 767 + 0xf4 bytes
C++
osg98-osgViewerd.dll!osgViewer::Renderer::cull()  Line 638  C++
osg98-osgViewerd.dll!osgViewer::ViewerBase::renderingTraversals()
Line 807C++
osg98-osgViewerd.dll!osgViewer::ViewerBase::frame(double
simulationTime=1.7976931348623157e+308)  Line 658   C++
osg98-osgViewerd.dll!osgViewer::ViewerBase::run()  Line 628 C++
osg98-osgViewerd.dll!osgViewer::Viewer::run()  Line 412 C++
shader-test.exe!main(int argc=1, char * * argv=0x0007fc20)
Line 407C++
shader-test.exe!__tmainCRTStartup()  Line 536 + 0x19 bytes  C
shader-test.exe!mainCRTStartup()  Line 377  C


Regards,

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


Re: [osg-users] Android osgAndroidExampleGLES2 compiler errors

2013-07-09 Thread John Moore

> Osg in Android is not emulator-friendly... and the EGL libraries seem from 
> emulator instead of a proper device. 
> 


Ok, I tried with a Samsung Galaxy S3 Mini (which has the same gpu of Samsung 
Galaxy S3) but the app is still crashing.  :(

This is the log:

Code:

07-08 18:12:30.278: D/libEGL(11086): loaded /system/lib/egl/libEGL_mali.so
07-08 18:12:30.288: D/libEGL(11086): loaded /system/lib/egl/libGLESv1_CM_mali.so
07-08 18:12:30.288: D/libEGL(11086): loaded /system/lib/egl/libGLESv2_mali.so
07-08 18:12:30.298: W/EGLview(11086): creating OpenGL ES 2.0 context
07-08 18:12:30.308: W/dalvikvm(11086): Exception 
Ljava/lang/UnsatisfiedLinkError; thrown while initializing 
Losg/AndroidExample/osgNativeLib;
07-08 18:12:30.308: W/dalvikvm(11086): threadid=11: thread exiting with 
uncaught exception (group=0x41c722a0)
07-08 18:12:30.308: E/AndroidRuntime(11086): FATAL EXCEPTION: GLThread 908
07-08 18:12:30.308: E/AndroidRuntime(11086): 
java.lang.ExceptionInInitializerError
07-08 18:12:30.308: E/AndroidRuntime(11086):at 
osg.AndroidExample.EGLview$Renderer.onSurfaceChanged(EGLview.java:319)
07-08 18:12:30.308: E/AndroidRuntime(11086):at 
android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1511)
07-08 18:12:30.308: E/AndroidRuntime(11086):at 
android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
07-08 18:12:30.308: E/AndroidRuntime(11086): Caused by: 
java.lang.UnsatisfiedLinkError: Couldn't load osgNativeLib: findLibrary 
returned null
07-08 18:12:30.308: E/AndroidRuntime(11086):at 
java.lang.Runtime.loadLibrary(Runtime.java:365)
07-08 18:12:30.308: E/AndroidRuntime(11086):at 
java.lang.System.loadLibrary(System.java:535)
07-08 18:12:30.308: E/AndroidRuntime(11086):at 
osg.AndroidExample.osgNativeLib.(osgNativeLib.java:6)
07-08 18:12:30.308: E/AndroidRuntime(11086):... 3 more
07-08 18:12:37.495: I/Choreographer(11086): Skipped 426 frames!  The 
application may be doing too much work on its main thread.
07-08 18:12:37.515: W/SurfaceView(11086): CHECK surface infomation 
creating=false formatChanged=false sizeChanged=false visible=false 
visibleChanged=true surfaceChanged=true realSizeChanged=false 
redrawNeeded=false left=false top=false



[/code]

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





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