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 

PIXEL_SIZE_ON_SCREEN And RangeList of osgb file


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
xiaoming
Newbie


Joined: 27 Dec 2017
Posts: 4

PostPosted: Thu Jan 11, 2018 1:42 am    Post subject:
PIXEL_SIZE_ON_SCREEN And RangeList of osgb file
Reply with quote

Hi,

my osgb's "head" is like this:

osg::PagedLOD {
UniqueID 1
CenterMode USER_DEFINED_CENTER
UserCenter -1619.41 -187.445 1047.71 40.4089
RangeMode PIXEL_SIZE_ON_SCREEN
RangeList 2 {
0 1293.08
1293.08 1e+030
}
DatabasePath TRUE "D:\\Tile_050_050/"
RangeDataList 2 {
""
"Tile_050_050_L21_000000000.osgb"
}
PriorityList 2 {
0 1
0 1
}

My problem is that how the rangelist correspond to the pixel size on screen?
such as the pixel size is 1300,then this osgb is display on the screen?but when the pixel size is 300,then what will happen?? or 20000,what will happen??

Another question is that what's meaning of PriorityList?? What is it used for ??

Thank you!

Cheers,
Mouming
Back to top
View user's profile Send private message
Andreas Ekstrand
Guest





PostPosted: Sat Jan 13, 2018 9:48 pm    Post subject:
PIXEL_SIZE_ON_SCREEN And RangeList of osgb file
Reply with quote

Hi Mouming,

With PIXEL_SIZE_ON_SCREEN the specified ranges describe the size in pixels of the PagedLOD's bounding sphere. So in your case, when it's far away and occupies 0 - 1293 pixels (e.g. 300), the first child is shown, i.e. the geometry directly beneath the PagedLOD - no filename is specified for the first range. When you get closer it occupies 1293 - 1e+030 pixels (e.g. 20000) and the specified Tile_050_050_L21_000000000.osgb, which should be more detailed, is loaded as specified as the second range.

I was under the impression that it uses the bounding sphere diameter in pixels but now that I looked more closely I can see in CullingSet::pixelSize where it all boils down that it seems to relate to the radius instead. Someone more knowledgeable can certainly comment on this, as well as the priority offset and scale specified by the PriorityList, it's probably some kind of local LOD scale?

Regards,
Andreas



On 2018-01-11 02:42, Mouming Ning wrote:

Quote:
Quote:
Hi,

my osgb's "head" is like this:

osg::PagedLOD {
UniqueID 1
CenterMode USER_DEFINED_CENTER
UserCenter -1619.41 -187.445 1047.71 40.4089
RangeMode PIXEL_SIZE_ON_SCREEN
RangeList 2 {
0 1293.08
1293.08 1e+030
}
DatabasePath TRUE "D:\Tile_050_050/"
RangeDataList 2 {
""
"Tile_050_050_L21_000000000.osgb"
}
PriorityList 2 {
0 1
0 1
}

My problem is that how the rangelist correspond to the pixel size on screen?
such as the pixel size is 1300,then this osgb is display on the screen?but when the pixel size is 300,then what will happen?? or 20000,what will happen??

Another question is that what's meaning of PriorityList?? What is it used for ??

Thank you!

Cheers,
Mouming

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72719#72719





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General 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 Change color of node read from dxf file dhhabyc General 10 Sat Nov 17, 2018 12:58 pm View latest post
No new posts How to actually play animation in osg... Warren93 General 3 Tue Oct 23, 2018 1:23 pm View latest post
No new posts Load an obj file and mapping a given ... aaa3d General 3 Mon Aug 06, 2018 2:27 pm View latest post
No new posts osgconv osgjs bug file not found memory_thrasher Plugins [osgPlugins] 2 Tue Jul 31, 2018 5:21 pm View latest post
No new posts error while loading .iv file in opens... Rj@123 General 0 Wed Jun 20, 2018 10:52 am 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