Giter Club home page Giter Club logo

osg2vsg's Introduction

osg2vsg is a small utility library with tools that convert OpenSceneGraph images and 3D models into VSG/Vulkan equivalents and provide integration between OpenSceneGraph/OpenGL and VulkanSceneGraph/Vulkan.

osg2vsg's People

Contributors

olegded avatar rhabacker avatar robertosfield avatar tomhog avatar vsg-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

osg2vsg's Issues

Incorrect conversion of the OSG polygonal paged database

A database created using VirtualPlanetBuilder with the --POLYGONAL option and georeferenced texture could not be converted to vsgt/vsgb. There are artifacts and no texture.

I have tried many combinations of parameters, different versions of VSG and vsgXchange, alternative texture formats, alternative image compression, I have created both osg binary databases and ascii databases. But if I add a texture to the polygonal database everything stops working.

database generated with following setup:
osgdem --POLYGONAL --compressor-nvtt-nocuda --geocentric -d /dems/in -t /dems/texture/referencedl.tif -o /dems/out/database.osgb

VPB from 'master'
OSG 3.6.4

osgviewer:
Screenshot_20220123_231925

vsgviewer:
Screenshot_20220123_231752
converted root file: database.txt
one of the subtiles: database_L5_X8_Y15_subtile.txt

P.S.
A polygonal database created without any texture is working fine.

I don't know what to do in this case, vsgviewer does not give any errors.

vsgwithosg build error on windows

Issue originally submitted via VulkanSceneGraph Issue track by @bclay1297, moved to osg2vsg as it relates to osg2vsg.

Used CMAKE to create osg2vsg Visual Studio 2017 project.
during build process osg2vsg itself guilt ok but sub-project vsgwithosg failed to build
a few build errors were reported "syntax error identifier 'State'" in GLSemaphore.h
Added - #include <osg/State> to GLSemaphore.h and solution built properly

License

What license terms is osg2vsg being released under?

There is no explicit license file and no indication in the source files.

3d scene show lighting differences compared with osg

Describe the error
Loading the file attached to vsg-dev/VulkanSceneGraph#308 or the files robot.osg or spaceship.osgt with vsgviewer, you can see drawing problems on the right side in the attached screenshot. The illuminations looks different.

Reproduce
Steps to reproduce the behavior:

  1. checkout git repo from vsg-dev/vsgFramework unter ~/src
  2. run
cmake -B ~/src/vsgFramework-build -S ~/src/vsgFramework -DBUILD_OpenSceneGraph=1 -DBUILD_assimp=0 -DBUILD_SHARED_LIBS=1
cmake --build ~/src/vsgFramework-build
  1. unpack the zip file attached to vsg-dev/VulkanSceneGraph#308 in ~/src
  2. run LD_LIBRARY_PATH=~/src/vsgFramework-build/lib64 VSG_FILE_PATH=~/src/vsgFramework-build/src/vsgExamples/data ~/src/vsgFramework-build/bin/vsgviewer ~/src/demo.osgt.
  3. see error

Expected behavior
The viewer should display similar illuminations as the reference image created with osgviewer on the left.

Screenshots
grafik

Desktop (please fill in the following information):

  • Operating system: openSUSE Linux
  • version 15.2

Additional context
Vulkan 1.2.189 has been installed

win64: can't build on VS2019

Can't build on VS2019:

...\include\osg/GL(114,10): fatal error C1083: Cannot open include file: 'GL/glcorearb.h': No such file or directory [...\src\osg2vsg\osg2vsg.vcxproj]
  BuildOptions.cpp
...\include\osg/GL(114,10): fatal error C1083: Cannot open include file: 'GL/glcorearb.h': No such file or directory [...\src\osg2vsg\osg2vsg.vcxproj]
  ConvertToVsg.cpp
...\include\osg/GL(114,10): fatal error C1083: Cannot open include file: 'GL/glcorearb.h': No such file or directory [...\src\osg2vsg\osg2vsg.vcxproj]
  GeometryUtils.cpp

Possible fix: Using GLCore ?

FIND_PATH( GLCORE_GLCOREARB_HEADER
    NAMES GL/glcorearb.h GL3/glcorearb.h OpenGL/glcorearb.h gl/glcorearb.h
)
include_directories(${GLCORE_GLCOREARB_HEADER})

structure "TBuiltInResource" changed

I got a compile error after updating vulkanSDK (1.2.141.0).
I found struct TBuiltInResource that in $VulkanSDK\include\glslang\Include\ResourceLimits.h change.

struct TBuiltInResource {
   ...
    int maxMeshViewCountNV;

    int maxDualSourceDrawBuffersEXT; // a new member variable

    TLimits limits;

   ...

3d scene does not show lines and texts compared with osg

Describe the error
Loading the file attached to vsg-dev/VulkanSceneGraph#308 with vsgviewer, you can see drawing problems on the right side in the attached screenshot. Lines and texts are not displayed.

Reproduce
Steps to reproduce the behavior:

  1. checkout git repo from vsg-dev/vsgFramework unter src
  2. run
cmake -B ~/src/vsgFramework-build -S ~/src/vsgFramework -DBUILD_OpenSceneGraph=1 -DBUILD_SHARED_LIBS=1
cmake --build ~/src/vsgFramework-build
  1. unpack the zip file attached to vsg-dev/VulkanSceneGraph#308 in ~/src
  2. run LD_LIBRARY_PATH=~/src/vsgFramework-build/lib64 VSG_FILE_PATH=~/src/vsgFramework-build/src/vsgExamples/data ~/src/vsgFramework-build/bin/vsgviewer ~/src/demo.osgt.
  3. see error

Expected behavior
The viewer should display the lines and texts as they are shown in the reference image created with osgviewer on the left.

Screenshots
grafik

Desktop (please fill in the following information):

  • Operating system: openSUSE Linux
  • version 15.2

Additional context

vsg has a problem with the selection of LOD nodes

VulkanSceneGraph and/or vsgXchange have a problem displaying scenes containing LOD nodes.

Steps to reproduce the behavior:

  1. Build vsg, vsgXchange and vsgExamples with osg support
  2. start osgviewer with this 3d model
  3. start vsgviewer with this 3d model
  4. Compare the displayed 3d scene of the two applications

Screenshots
osgviewer showing LOD Level 1
grafik

osgviewer showing LOD Level 2
grafik

vsgviewer showing LOD Level 1
Screenshot 2022-01-27 112540

vsgviewer showing LOD level 2
Screenshot 2022-01-27 111523

Expected behavior
vsgviewer should not show the nodes belonging to LOD level 1 if the camera is in LOD level 2 distance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.