OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Open Flight


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins]
View previous topic :: View next topic  
Author Message
d_a_heitbrink (David Heitbrink)
User


Joined: 23 Sep 2013
Posts: 42

PostPosted: Fri Sep 08, 2017 4:45 pm    Post subject:
Open Flight
Reply with quote

I have an issue I have some nodes with day, night , dusk flags set. I need this data for time of day control, as nodes set for night time have emissive properties, that do not work for day time, and the converse is true, and even worse is if both are active at the same time. I traced down into the plugin where the is read:


Code:
 
class Object : public PrimaryRecord .....   
  if (document.getReadObjectRecordData())
        {
            osgSim::ObjectRecordData* ord = new osgSim::ObjectRecordData;
            ord->_flags = in.readUInt32();
            ord->_relativePriority = in.readInt16();
            ord->_transparency = in.readUInt16();
            ord->_effectID1 = in.readInt16();
            ord->_effectID2 = in.readInt16();
            ord->_significance = in.readInt16();

            _object->setUserData( ord );
        }
        else
        {
            /*uint32 flags =*/ in.readUInt32();
        }

        // Postpone add-to-parent until we know a bit more.


Tracing through the code, the user data block is never added to a node, the object goes out of scope and the data is lost.

I strongly suspect this section of code was never finished, and I will have to finish writing it myself. That being said A: is this true? B: if I do have to finish is there a place to start? I think my output data is in version 15.0, I can have the data exported from our tools in something newer. [/code]
Back to top
View user's profile Send private message Send e-mail
d_a_heitbrink (David Heitbrink)
User


Joined: 23 Sep 2013
Posts: 42

PostPosted: Fri Sep 08, 2017 4:49 pm    Post subject:
Reply with quote

FYI I forgot to mention this from OSG 3.4.0, looking at the git repo, I does not look like anything has changed since with the plugin.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins] All times are GMT
Page 1 of 1

 
Jump to:  
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

Similar Topics
Topic Author Forum Replies Posted
No new posts Choosing a game engine for an open Ro... Duncan Cragg General 3 Wed Apr 26, 2017 8:52 pm View latest post
No new posts Draw open polygon Bruno Oliveira General 2 Thu Nov 17, 2016 10:11 am View latest post
No new posts Updating the Open Scene Graph Wiki kabbotta General 4 Sun Oct 11, 2015 10:00 pm View latest post
No new posts Open Scene Graph 3.4.0 has bug when u... Twiddeldidu General 21 Tue Sep 01, 2015 7:59 am View latest post
No new posts Google and "Authoritative Distri... Chris Hanson General 9 Mon May 11, 2015 9:30 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP