HI ?  Could you sign your emails with the name you'd like to addressed
with, thanks.

As for the error, this points to the OSG failing to create a grpahics
context on your system.  What hardware and drivers are you using?

In recent versions of OSG/VPB it's possible to run VPB builds without
using a graphics context.  For this you'll need to compile the OSG
against the NVidiaTextureTools SDK so that the nvtt plugin is built.

Robert.

2011/5/18 ijustfu <[email protected]>:
> Dear all,
>      I use VPB to generate a dem with texture. It shows following error.
> Anybody can help me?
>
> /////////////////////////////////////////////////////////////////////////////////////////////////////////
> C:\OSGCode282\3rdParty_x86\bin>gdal_translate Beijing-XBL.tif texture16k.tif
> Input file size is 4104, 4200
> 0...10...20...30...40...50...60...70...80...90...100 - done.
> C:\OSGCode282\3rdParty_x86\bin>gdaladdo -r average texture16k.tif 2 4 8 16 32
> 0...10...20...30...40...50...60...70...80...90...100 - done.
> C:\OSGCode282\3rdParty_x86\bin>gdal_translate DEMsub3005Geo.tif DEM16k.tif
> Input file size is 4109, 4318
> 0...10...20...30...40...50...60...70...80...90...100 - done.
> C:\OSGCode282\3rdParty_x86\bin>gdaladdo -r average DEM16k.tif 2 4 8 16 32
> 0...10...20...30...40...50...60...70...80...90...100 - done.
> C:\OSGCode282\3rdParty_x86\bin>osgdem --xx 10 --yy 10 -t texture16k.tif --xx 
> 10
> --yy 10 -d DEM16k.tif -l 8 -v 0.1 -o puget.ive -a pegout.osga
> Warning: archive option -a is temporarily disabled, building with archive.
> --xx 10
> --yy 10
> -t texture16k.tif
> loaded layer texture16k.tif
> --xx 10
> --yy 10
> -d DEM16k.tif
> loaded layer DEM16k.tif
> -o puget.ive
> Adding terrainTile
> DataSet::_run() 0 0
> DataSet::assignDestinationCoordinateSystem() : assigning first source file as 
> th
> e destination coordinate system
> started DataSet::createDestination(8)
> Time for after_reproject 0.000004
> DataSet::assignDestinationCoordinateSystem() : assigning first source file as 
> th
> e destination coordinate system
> AR=1.050864 C1=1 R1=1
> createNewDestinationGraph
> Time for _destinationGraph->computeMaximumSourceResolution() = 0.009105
> Time for createDestinationGraph 0.060909
> Time for after_computeNeighbours 0.005470
> completed DataSet::createDestination(8)
> There are 2 contributing source files:
>     DEM16k.tif
>     texture16k.tif
> PixelBufferWin32::init(), Error: some wgl extensions not supported
> Windows Error #127: [Screen #0] ChooseMatchingPixelFormat() - 
> wglChoosePixelForm
> atARB extension not found, trying GDI. Reason: can not find the program。
> Rendering in software: pixelFormatIndex 1
> Windows Error #2000: Win32WindowingSystem::OpenGLContext() - Unable to 
> restore c
> urrent OpenGL rendering context. Reason: invalid pixel format。
> mkpath()
> Need to create output task directory = puget_root_L0_X0_Y0
>    Directory already created
> Task output directory = puget_root_L0_X0_Y0\
> started DataSet::writeDestination(puget.ive)
> _readRow 1
>    reading tile level=0 X=0 Y=0
> imageName = puget_L0_X0_Y0.dds
> DestinationTile::readFrom(SetName=, FileName=texture16k.tif)
> DestinationTile::readFrom(SetName=, FileName=DEM16k.tif)
> _equalizeRow 1
>    equalizing tile level=0 X=0 Y=0
> _writeRow 1
> DestinationTile::createStateSet() - DataSet::MIP_MAPPING_IMAGERY
> Compressed image
> Warning: detected OpenGL error 'Invalid
> enumeration' at DestinationTile::createStateSet()
>        getDirectory()=
>    writeNodeFile = 0 X=0 Y=0 filename=puget.ive
> _writeNodeFile(puget.ive)
> vpb::access(puget.ive, W_OK)=0
> _readRow 1
>    reading tile level=1 X=0 Y=0
> imageName = puget_L1_X0_Y0.dds
> DestinationTile::readFrom(SetName=, FileName=texture16k.tif)
> DestinationTile::readFrom(SetName=, FileName=DEM16k.tif)
> _equalizeRow 1
>    equalizing tile level=1 X=0 Y=0
> _writeRow 1
>        _taskOutputDirectory= puget_root_L0_X0_Y0\
> DestinationTile::createStateSet() - DataSet::MIP_MAPPING_IMAGERY
> Compressed image
> Caught exception.
> ///////////////////////////////////////////////////////////////////////////////////////
> Thanks
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to