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 

Transform BoundingSphere by matrix utility


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Submission
View previous topic :: View next topic  
Author Message
scrawl
Appreciator


Joined: 14 Dec 2014
Posts: 175

PostPosted: Fri Apr 10, 2015 2:52 pm    Post subject:
Transform BoundingSphere by matrix utility
Reply with quote

Hi Robert,

In osg::Transform we have some code that transforms a bounding sphere by a matrix, but it's hidden in the implementation file. I found this code useful for my own purposes, so I moved it to the BoundingSphere class. Now it's publicly accessible whenever someone needs it.
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12269

PostPosted: Mon Apr 13, 2015 10:19 am    Post subject:
Transform BoundingSphere by matrix utility
Reply with quote

Hi Jannik,


I have just reviewed your changes and for now don't feel that it's the best way to introduce this type of functionality as it's inconsistent with how other parts of the OSG manage transforms.  When tranforming objects you can either pre or post multiple them, which to use depends upon the context.  If you did want a BS x Matrix, or Matrix x BS method then creating functions methods for these would be the way forward rather than a specific transform method which has an implicit transform order.


Robert.


On 10 April 2015 at 15:52, Jannik Heller < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi Robert,

In osg::Transform we have some code that transforms a bounding sphere by a matrix, but it's hidden in the implementation file. I found this code useful for my own purposes, so I moved it to the BoundingSphere class. Now it's publicly accessible whenever someone needs it.

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




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



------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Submission 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 Converting an osg::Matrix to osg::Pos... Waaayoff General 0 Fri Jan 18, 2019 3:34 pm View latest post
No new posts Can i use MatrixTransform to transfo... PeterGao General 8 Fri Jan 04, 2019 1:46 pm View latest post
No new posts Absolute final world position matrix ... Steal General 1 Mon Sep 24, 2018 11:25 am View latest post
No new posts Model matrix kullboys General 0 Tue Aug 21, 2018 7:10 am View latest post
No new posts Float vs double in BOUNDINGSPHERE and... dieslower81 General 2 Fri Jun 29, 2018 4:00 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