Hi Chris, Thanks for the example code. It's really good that I can see the dragger rendered on top of the scene. While, seems I cannot move or even juct select the dragger. Is there any problem with it? Anyone know the problem? Thanks a lot!
Ruqin On Wed, Jan 28, 2009 at 3:46 AM, Chris Denham <[email protected]> wrote: > Hi Ruqin, > I have attached an example VC2005 project that I put together whilst > working on this. > At some point I'd like to formally submit it as an example to OSG but it > probably needs a bit more 'polishing' before Robby would be let in ;-). > I built the example against a modified OSG 2.6 so you may need to build > against the trunk to get the fix for subgraph relative camara problems. > But in any case, I hope the source code gives you food for thought. > Note that if you get my example to work, the translate, rotate and scale > draggers are activated by pressing 'w' 'e' 'r' respectively, and view > rotation is enabled by holding down alt key. My objective in the project was > to create an interface similar to my favourite 3D modelling pakage... Maya. > Chris. > > ----- Original Message ----- > *From:* Ruqin Zhang <[email protected]> > *To:* Chris Denham <[email protected]> > *Cc:* [email protected] > *Sent:* Tuesday, January 27, 2009 11:29 PM > *Subject:* Re: [osg-users] Dragger rendering issue > > Hi Chris, can I have a look of the chunk of code you mentioned? Thanks a > lot! > > Ruqin > > On Tue, Jan 27, 2009 at 11:04 AM, Chris Denham <[email protected]>wrote: > >> Have you tried my earlier suggestion?....i.e. adding a post render camera >> just above the dragger. >> Can be a bit fiddly to manage the scenegraph, so might be worth trying any >> other ideas first. >> But I can give you some code snippets if you want to try it. >> Chris. >> >> ----- Original Message ----- From: Ruqin Zhang >> To: Chris Denham ; [email protected] >> Sent: Tuesday, January 27, 2009 4:45 PM >> >> Subject: Re: [osg-users] Dragger rendering issue >> >> >> Thank you guys! I tried the idea of turning off the depth test. It works >> ok but not perfect. Just as Chris mentioned, there is some rendering problem >> of the dragger geometries. Anyone has idea of solving this problem? Thanks >> again! >> >> Ruqin >> >> >> On Tue, Jan 27, 2009 at 9:20 AM, Chris Denham <[email protected]> >> wrote: >> >> Hi Ruqin, >> Just wanted to add to this as Robert and JS suggested switching off the >> depth test for the dragger. >> I have actually tried that and found the results "less than ideal" for the >> normal dragger geometries. >> The problem is that the parts of the dragger geometries may not render >> correctly over each other with depth test off. >> Chris. >> >> ----- Original Message ----- From: "Chris Denham" <[email protected]> >> To: <[email protected]> >> Sent: Tuesday, January 27, 2009 9:33 AM >> Subject: Re: [osg-users] Dragger rendering issue >> >> >> >> Hi Ruqin, >> I had the same problem with Draggers, and the solution was to put the >> dragger object in the scenegraph below a post render camera. >> This works well for me as I can now also drag the selected object when it >> is behind other objects in the scene. To do this you may need a version of >> OSG later that 2.6 though, because I had some problems in relation to >> transforms and subgraph cameras which Robert helped me to fix. >> The other 'enhancement' I made was to add an autotransform node to keep >> the dragger geometry the same size on the screen regardless of the >> size/scale of the object. >> Chris. >> >> >> Date: Mon, 26 Jan 2009 17:47:44 -0600 >> From: Ruqin Zhang <[email protected]> >> Subject: [osg-users] Dragger rendering issue >> To: OpenSceneGraph Users <[email protected]> >> Message-ID: >> <[email protected]> >> Content-Type: text/plain; charset="iso-8859-1" >> >> Hi, >> >> >> I got an issue about osgManipulator::dragger. When I set up a dragger, >> sometime it just hide (totally or partially) inside the selected object. >> So, >> I am wondering if there is some sort of way that I could always force the >> dragger rendered on top of the selected object to make it fully visible to >> user? Thanks a lot! >> >> >> Ruqin >> > > -- Research Assistant Human Computer Interaction Program Virtual Reality Applications Center(VRAC) Iowa State University
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

