Giter VIP home page Giter VIP logo

osgephemeris's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

osgephemeris's Issues

building on osx

I wonder if it's possible to resurrect this?
I'd like to export the skydome to a open scenegraph file and include in an ios app.
ThumbWorks/AugmentedSolarSystem#60

got stuck with missing things.
it's a pity c++ doesn't have a user friendly dependency injection module like cocoapods / gemfile.

Missing dynamic pointer cast in SkyDomeUpdateCallback

What steps will reproduce the problem?
1. Checkout and build current OpenSceneGraph (2014-08-20 16:15:36)
2. Checkout and try to build osgephemeris


What is the expected output? What do you see instead?
Compilation should work but error occurs:
osgEphemeris/src/osgEphemerisLib/SkyDome.cpp: In member function ‘void 
SkyDomeUpdateCallback::_callDrawableCallbacks(osg::Geode*, 
osg::NodeVisitor*)’:
osgEphemeris/src/osgEphemerisLib/SkyDome.cpp:71:92: error: invalid conversion 
from ‘osg::Callback*’ to ‘osg::Drawable::UpdateCallback*’ [-fpermissive]
                     osg::Drawable::UpdateCallback *updateCallback = dbl->getUpdateCallback();
                                                                                            ^
osgEphemeris/src/osgEphemerisLib/SkyDome.cpp:71:92: error: cannot convert from 
base ‘osg::Callback’ to derived type ‘osg::Drawable::UpdateCallback’ 
via virtual base ‘osg::Callback’


What version of the product are you using? On what operating system?
Current SVN Rev 33 on Debian Jessie. Compiled with g++ 4.8.3 and CMake 2.8.12.2.


Please provide any additional information below.
In SkyDome.cpp line 71 replace:
osg::Drawable::UpdateCallback *updateCallback = dbl->getUpdateCallback();

with

osg::Drawable::UpdateCallback *updateCallback = 
dynamic_cast<osg::Drawable::UpdateCallback*>(dbl->getUpdateCallback());

Original issue reported on code.google.com by [email protected] on 27 Aug 2014 at 1:05

Unitialized variable _tzoff in the DateTime class.

What steps will reproduce the problem?
1. Create an Osg Ephemeris Date Time.
2. Call now().


What is the expected output? What do you see instead?
The data time should have a date time that matches gmt, but instead the results 
are undefined because _tzoff is undefined.


What version of the product are you using? On what operating system?
This occurs on the trunk as of 1/26/14.  I tested it on OS X 10.9

Please provide any additional information below.

Here are the fixed constructors

DateTime::DateTime(
            uint32_t year,
            uint32_t month,
            uint32_t day,
            uint32_t hour,
            uint32_t minute,
            uint32_t second  )
: _tzoff(0)
{
    _tm.tm_year = year - 1900;
    _tm.tm_mon  = month - 1;
    _tm.tm_mday = day;
    _tm.tm_hour = hour;
    _tm.tm_min  = minute;
    _tm.tm_sec  = second;
    _tm.tm_wday = -1;
    _tm.tm_yday = -1;
    _tm.tm_isdst= -1;

    mktime(&_tm);
}

DateTime::DateTime( const DateTime &dt ):
    _tm(dt._tm), _tzoff(0)
{
    mktime(&_tm);
}

DateTime::DateTime(bool initialize)
: _tzoff(0)
{ 
   if( initialize )
   {
      now();
   }
}

DateTime::DateTime( const struct tm &tm )
: _tzoff(0)
{
    _tm = tm;
    mktime( &_tm );
}



Original issue reported on code.google.com by [email protected] on 26 Jan 2014 at 9:35

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.