View previous topic :: View next topic |
|
Author |
Message |
Rambabu Appreciator
Joined: 10 Nov 2016 Posts: 101
|
Posted: Wed Nov 23, 2016 11:37 am Post subject: |
|
|
Hi,separate osg sky source code is available or we have to extract from osgearth ?
...
Thank you!
Cheers,
Rambabu |
|
Back to top |
|
 |
Rambabu Appreciator
Joined: 10 Nov 2016 Posts: 101
|
Posted: Wed Nov 23, 2016 1:15 pm Post subject: |
|
|
Hi,i am not getting silverling sky in osgearth,can anyone explain with examples
...
Thank you!
Cheers,
Rambabu |
|
Back to top |
|
 |
robertosfield OSG Project Lead
Joined: 18 Mar 2009 Posts: 12204
|
Posted: Wed Nov 23, 2016 1:32 pm Post subject: Exporting OpenFlight from OSG and DDS textures |
|
|
On 23 November 2016 at 13:15, Rambabu Repaka <> wrote:
Quote:
|
Hi,i am not getting silverling sky in osgearth,can anyone explain with examples
|
SilveLiining is proprietary SDK:
http://sundog-soft.com/features/real-time-3d-clouds/
------------------
Post generated by Mail2Forum |
|
Back to top |
|
 |
Rambabu Appreciator
Joined: 10 Nov 2016 Posts: 101
|
Posted: Thu Nov 24, 2016 9:24 am Post subject: |
|
|
Hi,In osg 3.2.3 (*_oceanSurface->getCullCallback())(_oceanSurface.get(), &nv); is working but in osg 3.4.0 error is showing
Error 2 error C2064: term does not evaluate to a function taking 2 arguments D:\osgocean-master1\osgocean-master\src\osgOcean\OceanScene.cpp 884 1 osgOcean
How can i solve this ?
in osg 3.2.3 getcullcallback() is in nodecallback
in osg 3.4.0 getcullcallback() is in callback
...
Thank you!
Cheers,
Rambabu |
|
Back to top |
|
 |
robertosfield OSG Project Lead
Joined: 18 Mar 2009 Posts: 12204
|
Posted: Thu Nov 24, 2016 10:05 am Post subject: Exporting OpenFlight from OSG and DDS textures |
|
|
On 24 November 2016 at 09:25, Rambabu Repaka <> wrote:
Quote:
|
Hi,In osg 3.2.3 (*_oceanSurface->getCullCallback())(_oceanSurface.get(), &nv); is working but in osg 3.4.0 error is showing
Error 2 error C2064: term does not evaluate to a function taking 2 arguments D:\osgocean-master1\osgocean-master\src\osgOcean\OceanScene.cpp 884 1 osgOcean
How can i solve this ?
in osg 3.2.3 getcullcallback() is in nodecallback
in osg 3.4.0 getcullcallback() is in callback
|
You will need to adjust the problem code to use a dynamic_cast<> to
osg::NodeCallback, or change the problem code to call the
osg::Callback::run(..) method. The parameter mean and order is
identical between the two types of callback. The osg::Callback is
more flexible, which is it's reason for use in OSG-3.4 and beyond.
Robert.
------------------
Post generated by Mail2Forum |
|
Back to top |
|
 |
Rambabu Appreciator
Joined: 10 Nov 2016 Posts: 101
|
Posted: Thu Nov 24, 2016 10:35 am Post subject: |
|
|
Hi,
dynamic_cast<osg::nodecallback * > (*_oceanSurface->getCullCallback()) (_oceanSurface.get(), &nv);
still showing error .How can i do ?
...
Thank you!
Cheers,
Rambabu |
|
Back to top |
|
 |
robertosfield OSG Project Lead
Joined: 18 Mar 2009 Posts: 12204
|
Posted: Thu Nov 24, 2016 10:44 am Post subject: Exporting OpenFlight from OSG and DDS textures |
|
|
On 24 November 2016 at 10:35, Rambabu Repaka <> wrote:
Quote:
|
Hi,
dynamic_cast<osg::nodecallback * > (*_oceanSurface->getCullCallback()) (_oceanSurface.get(), &nv);
still showing error .How can i do ?
|
This isn't an OSG or osgEarth question.
You need to learn C++ or put in a bit more effort before firing off
trivial questions to the community.
You need to fix this problem yourself, you have to keep developing
your skills as a programmer.
------------------
Post generated by Mail2Forum |
|
Back to top |
|
 |
Rambabu Appreciator
Joined: 10 Nov 2016 Posts: 101
|
Posted: Thu Nov 24, 2016 12:15 pm Post subject: |
|
|
Hi,What is the equivalent function for std::max in osg 3.4.0
deltaMax = std::max(deltaMax, delta);
showing error not a member of std.
...
Thank you!
Cheers,
Rambabu |
|
Back to top |
|
 |
SMesserschmidt (Sebastian Messerschmidt) Forum Moderator
Joined: 10 Sep 2013 Posts: 824
|
Posted: Thu Nov 24, 2016 12:37 pm Post subject: Exporting OpenFlight from OSG and DDS textures |
|
|
Hi,
Again, this is not an OSG-related question. You should really train your
C++ skills before moving on to advanced topics.
Quote:
|
Hi,What is the equivalent function for std::max in osg 3.4.0
deltaMax = std::max(deltaMax, delta);
showing error not a member of std.
|
Without context (compiler, code, version ) it is impossible to help you.
std::max is defined in <algorithm>, so chances a missing include cuases
the error are high. You could have gotten this information by using a
search machine of your choice btw.
This hive-mind is supposed to help with more OSG-related stuff... so
please try harder to solve the C++/programming problems before asking
them here.
Cheers
Sebastian
Quote:
|
...
Thank you!
Cheers,
Rambabu
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69489#69489
|
------------------
Post generated by Mail2Forum |
|
Back to top |
|
 |
Rambabu Appreciator
Joined: 10 Nov 2016 Posts: 101
|
Posted: Fri Nov 25, 2016 11:25 am Post subject: |
|
|
Hi,In main function camera coordinates are osg::Vec3initialCameraPosition(0.0, 0.0, 20.0);
How i can change the camera view continuously along with the model movement.
...
Thank you!
Cheers,
Rambabu |
|
Back to top |
|
 |
robertosfield OSG Project Lead
Joined: 18 Mar 2009 Posts: 12204
|
Posted: Fri Nov 25, 2016 5:41 pm Post subject: Exporting OpenFlight from OSG and DDS textures |
|
|
HI Rambabu,
If you want to ask a question about a new topic start a new thread,
don't keep asking unrelated questions on existing threads.
Also actually try doing some research on your own account, there are
plenty of examples, books, doxygen docs, the answers to your questions
are all there, you just need to put the time into exploring things.
Robert.
On 25 November 2016 at 11:25, Rambabu Repaka <> wrote:
Quote:
|
Hi,In main function camera coordinates are osg::Vec3initialCameraPosition(0.0, 0.0, 20.0);
How i can change the camera view continuously along with the model movement.
...
Thank you!
Cheers,
Rambabu
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69499#69499
|
------------------
Post generated by Mail2Forum |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
Powered by phpBB © 2001, 2005 phpBB Group
|