Re: [osg-users] Sharing PrimitiveSets between Geometrys

2008-10-28 Thread Robert Osfield
HI Brian, On Mon, Oct 27, 2008 at 7:25 PM, Brian R Hill [EMAIL PROTECTED] wrote: Can primitivesets be shared between geometrys similarly to vertexes, colors, and texcoords? I have never tried this, but it should work just fine. Robert. ___ osg-users

Re: [osg-users] What can I do with the NodeKit osgSim?

2008-10-28 Thread Robert Osfield
On Mon, Oct 27, 2008 at 7:32 PM, Paul Martz [EMAIL PROTECTED] wrote: It contains support classes to enable OpenFlight model loading and working with terrain databases. That's just one of the items that osgSim provides... The NodeKit is just a collection of classes that help in the development

Re: [osg-users] QT4 ViewerQOSG and Q_OBJECT

2008-10-28 Thread Robert Osfield
Hi Martin, Could you post complete modified file as this will explain the changes without any chance of ambiguity. Thanks, Robert. On Mon, Oct 27, 2008 at 8:10 PM, [EMAIL PROTECTED] wrote: Not a question so much as a note for the archives. If you want ViewerQOSG to be able to handle signals

Re: [osg-users] Call for feedback : AC3D loader behavior w.r.t texture repeat and clamping

2008-10-28 Thread Robert Osfield
On Mon, Oct 27, 2008 at 9:42 PM, John Cummings [EMAIL PROTECTED] wrote: FYI, here is the link to the discussion on the Ac3D forum: http://www.inivis.com/forum/showthread.php?t=5090 It seems to be headed in the same direction as Robert's comments regarding keeping track of the UV ranges.

Re: [osg-users] updateCalculatedNearFar problem

2008-10-28 Thread Robert Osfield
Hi Forest, Do you expect people to really follow this? Just throw the code out there and expect people to know what effect your are trying to do? Please remember that everyone will be busy with their own work and just scan emails. You need to convey what you are trying to do in a digestable form

Re: [osg-users] Call for feedback : AC3D loader behavior w.r.t texture repeat and clamping

2008-10-28 Thread Robert Osfield
On Mon, Oct 27, 2008 at 9:51 PM, Csaba Halász [EMAIL PROTECTED] wrote: On Mon, Oct 27, 2008 at 10:42 PM, John Cummings [EMAIL PROTECTED] wrote: FYI, here is the link to the discussion on the Ac3D forum: http://www.inivis.com/forum/showthread.php?t=5090 It seems to be headed in the same

Re: [osg-users] Call for feedback : AC3D loader behavior w.r.t texture repeat and clamping

2008-10-28 Thread mjingting
hi Robert: when I use osg::ImageSequence with option PAGE_AND_DISCARD_USED_IMAGES, the program will crash; I found in OSG 2.7.3 ImageSequence.cpp at line 387, if ((i=_images.size() || !_images[i]) _filesRequested.count(_fileNames[i])==0), the variable _fileNames is empty, I don't know why?

Re: [osg-users] Call for feedback : AC3D loader behavior w.r.t texture repeat and clamping

2008-10-28 Thread Robert Osfield
Hi ?? Could you please sign with the name you'd like to be addressed. Also if you want to report a problem the place is not to hang it off a complete unrelated thread. Please send the post with a relevant subject line so it gets thread properly by mail tools and is easy to follow. If you want me

Re: [osg-users] Please test SVN of OpenSceneGraph in prep for 2.7.4 dev release

2008-10-28 Thread Robert Osfield
Hi All, On Mon, Oct 27, 2008 at 5:26 PM, Robert Osfield [EMAIL PROTECTED] wrote: There have been lots of bug and build fixes checked in since 2.7.3, and feature refinements but as always this might come with their own regressions, so please do a check out of svn/trunk and test the build and

[osg-users] Test Paged database online

2008-10-28 Thread Robert Osfield
Hi All, Last night I uploaded a 547Mb paged database to openscenegraph.org. The .ive files are all generated using zlib compression that is built into the svn/trunk version of the OSG, you won't be able to load them with any prior version of the OSG I'm afraid as the compression support has just

Re: [osg-users] Please test SVN of OpenSceneGraph in prep for 2.7.4 dev release

2008-10-28 Thread Wang Rui
Hi Robert, The newest SVN version works for my VisualStudio 9. Maybe this is a bug of VS8. :) Wang Rui 2008/10/28 Robert Osfield [EMAIL PROTECTED] Hi All, On Mon, Oct 27, 2008 at 5:26 PM, Robert Osfield [EMAIL PROTECTED] wrote: There have been lots of bug and build fixes checked in since

Re: [osg-users] Sharing PrimitiveSets between Geometrys

2008-10-28 Thread Brian R Hill
Robert, It does work when adding them during runtime, but the .ive/.osg reader/writer don't support sharing them. They always write out full definitions and expect to read in full definitions. For my current use (creating sequences from osgCal/cal3d models) the prim overhead isn't too bad, at

Re: [osg-users] Sharing PrimitiveSets between Geometrys

2008-10-28 Thread Robert Osfield
Hi Brian, On Tue, Oct 28, 2008 at 12:55 PM, Brian R Hill [EMAIL PROTECTED] wrote: It does work when adding them during runtime, but the .ive/.osg reader/writer don't support sharing them. They always write out full definitions and expect to read in full definitions. For my current use

[osg-users] AutoTransform and small feature culling

2008-10-28 Thread Peter Wraae Marino
Hi, We have searched the archive and already found a post about this subject: http://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg15948.html First our build setup: OS: Windows (sorry robert) OSG: osg2.6.0 DELTA3D: 2.1.0 Ok,.. our problem is that AutoTransform nodes get culled and

Re: [osg-users] AutoTransform and small feature culling

2008-10-28 Thread Robert Osfield
On Tue, Oct 28, 2008 at 1:14 PM, Peter Wraae Marino [EMAIL PROTECTED] wrote: To our application we don't need our AutoTransform objects to be small feature culled, so we would like to ask is there a reason why there isn't a flag on all nodes to enabled/disable small feature culling? Because

Re: [osg-users] Test Paged database online

2008-10-28 Thread Lionel Lagarde
Hi Robert, osgviewer reports me: DataInputStream::readCharArray(): Failed to read char value. Do I need to do something to enable the zlib decompression ? Robert Osfield wrote: Hi All, Last night I uploaded a 547Mb paged database to openscenegraph.org. The .ive files are all generated using

Re: [osg-users] Please test SVN of OpenSceneGraph in prep for 2.7.4 dev release

2008-10-28 Thread John Vidar Larring
Hi Robert, Compiled without errors on CentOS 4.7 x86_64 with gcc 3.4.6 /John Vidar Robert Osfield wrote: Hi All, On Mon, Oct 27, 2008 at 5:26 PM, Robert Osfield [EMAIL PROTECTED] wrote: There have been lots of bug and build fixes checked in since 2.7.3, and feature refinements but as always

Re: [osg-users] Test Paged database online

2008-10-28 Thread Robert Osfield
Hi Lionel, On Tue, Oct 28, 2008 at 1:50 PM, Lionel Lagarde [EMAIL PROTECTED] wrote: osgviewer reports me: DataInputStream::readCharArray(): Failed to read char value. Do I need to do something to enable the zlib decompression ? You need to have zlib installed. If it is installed perhaps

Re: [osg-users] Test Paged database online

2008-10-28 Thread John Vidar Larring
Hi Robert, After compiling OSG svn trunk (linux 64bit), the following commands worked like charm: wget http://www.openscenegraph.org/data/earth_bayarea/bay.path osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive -p bay.path --file-cache MyFileCache The second time I ran

Re: [osg-users] Test Paged database online

2008-10-28 Thread Lionel Lagarde
The ive plugin is built with zlib support. There is a problem in the uncompress loop. The earth.ive size is 14976 bytes. In the loop, the first read: strm.avail_in = fin.readsome((char*)in, CHUNK); reports me 12427 bytes read and the second 0 bytes. Continuing investigation. John Vidar

[osg-users] asymmetrical viewing volume

2008-10-28 Thread Gianluca Natale
Hi all. I need to set a projection matrix for an asymmetrical viewing volume. Settings for the scene view associated with the camera are: osg::CullSettings::COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES. I tried with camera.SetProjectionMatrixAsFrustum(.), but it resets left and right clipping

[osg-users] Cloud particles

2008-10-28 Thread Roman Grigoriev
Hi guys! I try to solve flightgear clouds sorting problem Clouds consists of billboards position and lighting calculated in vertex and fragment program here is screenshot in attachment Maybe gurus give us quick solution Our blend equation and alpha func and shaders

Re: [osg-users] TrackballManipulator Question

2008-10-28 Thread Rob Radtke
Ok, will do. Thank you very much for your advice! Rob -- Date: Tue, 28 Oct 2008 07:26:59 -0600 From: Paul Martz [EMAIL PROTECTED] Subject: Re: [osg-users] TrackballManipulator Question To: 'OpenSceneGraph Users' osg-users@lists.openscenegraph.org Message-ID: [EMAIL

Re: [osg-users] Test Paged database online

2008-10-28 Thread Lionel Lagarde
Curiously, the readsome function fail to read data (return value is 0), but fin.eof() returns false. I've tried to loop until some data are read but it does not work : do { strm.avail_in = fin.readsome((char*)in, CHUNK); while (strm.avail_in == 0 !fin.eof()); It is an infinite loop. The

Re: [osg-users] asymmetrical viewing volume

2008-10-28 Thread Robert Osfield
Hi Gianluca, The default compute of near/far is something that you can disable via: viewer.getCamera()-setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR); But even if you don't call this a let the near far be recomputed it won't affect the asymmetry of the projection matrix.

Re: [osg-users] auto-capture example: capturing an image from a PagedLOD Database

2008-10-28 Thread Robert Osfield
Hi John, I haven't personally tried this but an educated guess is that you'll need to do is keep polling the DatabasePager::getFileRequestListSize() till it returns 0.Something like: while(!viewer.done() viewer.getDatabasePager()-getFileRequestListSize()0) frame(); Robert. On Tue, Oct 28,

Re: [osg-users] Test Paged database online

2008-10-28 Thread Robert Osfield
Hi Lionel, The readsome() returns if data isn't available yet, it doesn't wait like read. You could try changing the code across to using read() and gcount() to find out how many bytes have been read. What platform are you working on? Robert. On Tue, Oct 28, 2008 at 3:00 PM, Lionel Lagarde

Re: [osg-users] Test Paged database online

2008-10-28 Thread Jean-Sébastien Guay
Hi Robert, Last night I uploaded a 547Mb paged database to openscenegraph.org. Nice, can't check it out yet as I'm waiting on a full compile but will check it out as soon as I can. About the animation path: Grab this then run osgviewer with the path: osgviewer

Re: [osg-users] Test Paged database online

2008-10-28 Thread Jean-Sébastien Guay
Hi Robert, The readsome() returns if data isn't available yet, it doesn't wait like read. You could try changing the code across to using read() and gcount() to find out how many bytes have been read. What platform are you working on? Just to add another report, I get the same error as

Re: [osg-users] Test Paged database online

2008-10-28 Thread Gerrick Bivins
I get this error on Mac OSX 10.5 DataInputStream::readCharArray(): Failed to read char value. ./bin/osgviewer.app/Contents/MacOS/osgviewer: No data loaded Gerrick On 10/28/08 11:13 AM, Jean-Sébastien Guay [EMAIL PROTECTED] wrote: Hi Robert, The readsome() returns if data isn't available

Re: [osg-users] auto-capture example: capturing an image from a PagedLOD Database

2008-10-28 Thread John Vidar Larring
Hi Robert, I haven't personally tried this but an educated guess is that you'll need to do is keep polling the DatabasePager::getFileRequestListSize() till it returns 0.Something like: while(!viewer.done() viewer.getDatabasePager()-getFileRequestListSize()0) frame(); I was hoping

Re: [osg-users] Test Paged database online

2008-10-28 Thread Serge Lages
Hi all, Can't test myself currently but I'll try as soon as I can. About the error, are you behind proxies or something similar ? Is it possible to be a connection problem ? On Tue, Oct 28, 2008 at 5:16 PM, Gerrick Bivins [EMAIL PROTECTED] wrote: I get this error on Mac OSX 10.5

Re: [osg-users] Test Paged database online

2008-10-28 Thread Robert Osfield
Hi J-S, On Tue, Oct 28, 2008 at 4:10 PM, Jean-Sébastien Guay [EMAIL PROTECTED] wrote: Can the animation path also be gotten by http? If so, we could use the following all-powerful command line: osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive -p

Re: [osg-users] Test Paged database online

2008-10-28 Thread Lionel Lagarde
I don't think that is a connection problem. libcurl download the file integrally in a stringstream. The stringstream is then given to to ive ReaderWriter. Serge Lages wrote: Hi all, Can't test myself currently but I'll try as soon as I can. About the error, are you behind proxies or

Re: [osg-users] auto-capture example: capturing an image from a PagedLOD Database

2008-10-28 Thread Robert Osfield
Hi John, On Tue, Oct 28, 2008 at 4:16 PM, John Vidar Larring [EMAIL PROTECTED] wrote: I was hoping this would work too, but getDatabasePager()-getFileRequestListSize() _always_ returns 0 (zero). So I am hoping that this is either a bug that can be fixed or that there is another method for

Re: [osg-users] Problems with RTT-cameras when changi ng window size

2008-10-28 Thread Steffen Kim
Hi. The cameras are part of the scene graph. I was still using frame buffer based cameras because they seem to be the only way to get a real-time-sufficient performance for more complex applications. I figured out that this causes the problem and found no way to get rid of the error - even

Re: [osg-users] Problems with RTT-cameras when changing window size

2008-10-28 Thread Robert Osfield
Hi Steffen, On Tue, Oct 28, 2008 at 4:38 PM, Steffen Kim [EMAIL PROTECTED] wrote: I was still using frame buffer based cameras because they seem to be the only way to get a real-time-sufficient performance for more complex applications. This sounds a bit odd, such as FBO or PBuffer RTT

Re: [osg-users] choppiness on 2nd graphics card with 4 monitors

2008-10-28 Thread Robert Osfield
Hi Joe, Just looking at the two images, it really looks like you running two separate viewers. Is this right? Is it even two separate applications? The OSG allows you to run a single viewer across multiple contexts and this is the usual way that OSG users will do multi-monitors. Is there a

Re: [osg-users] Test Paged database online

2008-10-28 Thread Robert Osfield
Hi All, I have just merged a fix for the read error from Lionel Lagrade - he implemented read() and gcount() usage rather than my previous readsome() as it looks like this function isn't consistently implemented across platforms. Could all those who've had read problems on the online database do

Re: [osg-users] Load animated model?

2008-10-28 Thread Thanh Trung Trinh
Thanks, but sadly that topic doesn't solve the problem. Is there a way to load the animation without using osgCal and Cal3D? I have a pretty simple animation, and I just want to load the animation and control the framerate, and don't really need skeleton animation or so. Hope some will help.

Re: [osg-users] Sharing PrimitiveSets between Geometrys

2008-10-28 Thread Bill Prendergast
Can primitivesets be shared between geometrys similarly to vertexes, colors, and texcoords? I have never tried this, but it should work just fine. Slightly off-topic, but I recently made a visitor that looks for duplicated texture coordinates (unit 1 uses same TC's as unit 0) and deleted the

Re: [osg-users] Test Paged database online

2008-10-28 Thread christophe loustaunau
Hi, Before the update, I get also the error : readCharArray(): Failed to read char value. But now everithing works well ! Very cool stuff ! Regards. On Tue, Oct 28, 2008 at 6:30 PM, Robert Osfield [EMAIL PROTECTED]wrote: Hi All, I have just merged a fix for the read error from Lionel

[osg-users] osgShadow question (ATI related?)

2008-10-28 Thread Rick Middelkoop
Hello, I'm trying to add shadows to the application I'm working on, and encountered two issues which seems to be ATI card/driver related. The first issue is, that shadows generated using the ShadowMap technique are in the wrong location, both in the application I'm working on and the 'osgshadow'

Re: [osg-users] Load animated model?

2008-10-28 Thread Tomlinson, Gordon
At this time nope, unless you want to write a loader to handle you case with your models Gordon __ Gordon Tomlinson Product Manager 3D Email : gtomlinson @ overwatch.textron.com

[osg-users] Group Info (Off-topic)

2008-10-28 Thread Jeremy Moles
Whoa! I'm the #7 poster (since Jul of last year, it looks like)! I've really got to cut back, jeeze... http://groups.google.com/group/osg-users/about Anyways, fun information. And oh yeah, this bumps my post count one more. :) ___ osg-users mailing

Re: [osg-users] Test Paged database online

2008-10-28 Thread Gerrick Bivins
Same here. This works for me now as well(Mac 10.5). Pretty cool stuff Robert!!! Gerrick On 10/28/08 1:10 PM, christophe loustaunau [EMAIL PROTECTED] wrote: Hi, Before the update, I get also the error : readCharArray(): Failed to read char value. But now everithing works well ! Very

Re: [osg-users] choppiness on 2nd graphics card with 4 monitors

2008-10-28 Thread Robert Osfield
Hi Joe, OK this screenshot makes more sense... and is indeed how one would typically drive multiple monitors with the OSG. One optimization that is worth doing with this type of setup is use one graphics context per graphics card, and split the each window across two displays. This typically

[osg-users] World-space bounds of a node

2008-10-28 Thread Jean-Sébastien Guay
Hi all, I was wondering, what's the correct way to get the world space bounds of a node? I can do the following: osg::ComputeBoundsVisitor cbbv; node-accept(cbbv); osg::BoundingBox bb = cbbv.getBoundingBox(); I also have the localToWorld matrix of the node. But just transforming

Re: [osg-users] Group Info (Off-topic)

2008-10-28 Thread Jean-Sébastien Guay
Hi Jeremy, Whoa! I'm the #7 poster (since Jul of last year, it looks like)! I've really got to cut back, jeeze... You think you need to cut back? Not only am I second in the last month, but I'm second AND fifth of all time! J-S -- __

Re: [osg-users] Group Info (Off-topic)

2008-10-28 Thread Paul Martz
Hi Jeremy, Whoa! I'm the #7 poster (since Jul of last year, it looks like)! I've really got to cut back, jeeze... You think you need to cut back? Not only am I second in the last month, but I'm second AND fifth of all time! I'm trying to keep my number of posts equal to the number

Re: [osg-users] newcomer: suitabilty of osg for physics modeling program?

2008-10-28 Thread Janusz
Vaclav: While ago I worked on a discrete-element-method tool. A very,very early version of the tool (using osg v. 1.2) you may still find at this site: www.3dcalc.pl/osg-examples/osgDEM.zip This used to be a part of an academic project some time ago. This is a linux-based project. The tool

Re: [osg-users] osgShadow question (ATI related?)

2008-10-28 Thread Wojciech Lewandowski
Rick, I don't know how to help you with your particular problem. But I hope these 2 hints could be useful: I suppose it would be fairly simple to make similar adjustment for LisPSM as you did for ShadowMap. Texgen matrix for LispSM is set in MinimalDrawBoundShadowMap line 225. For safety you

Re: [osg-users] osgShadow question (ATI related?)

2008-10-28 Thread Wojciech Lewandowski
Hi Again Rick, Small errata: I forgot to add .cpp suffixes to the files I suggest to modify. So fixes should be done in MinimalDrawBoundShadowMap.cpp line 225 and StandardShadowMap.cpp line 753 Let us know if this helps, if it does, I will be smarter next time when this question appears again.

[osg-users] Viewer vs. Composite Viewer

2008-10-28 Thread Ed
After reading osgViewer::Viewer vs osgViewer::CompositeViewer, I think I might need to use CompositeViewer at some point in the future of my project, but not at the outset. Should I begin with the CompositeViewer, or make the necessary mods later? How difficult is it to change from Viewer to

Re: [osg-users] World-space bounds of a node

2008-10-28 Thread Paul Martz
Hi J-S -- I recently wrote my own visitor to flatten transforms. To do this, I use osg::computeLocalToWorld(osg::NodePath) to get the local-to-world matrix, and transform all vertices by that matrix. This works great for me, and what you are doing sounds like an equivalent operation, so I'm not

Re: [osg-users] Viewer vs. Composite Viewer

2008-10-28 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
It's simple to convert over. Look at the osgcompositeviewer example to see what needs to be done. I've been using just osgViewer::Viewer and I changed over to using the composite viewer with no problems or difficulty. One's just a subset of the other so I would probably just start out with a

[osg-users] light gouraud

2008-10-28 Thread Cicey Hu
Hi, all, Question for how to make light work on face that set to gouraud in .flt. I have read all tutorials light part, search the mail list, but cannot find a way. Background: my visual data is .flt format; some faces setting: drawing-shade-Gouraud; some faces setting drawing-shade-lit.

Re: [osg-users] QT4 ViewerQOSG and Q_OBJECT

2008-10-28 Thread mgb
ViewerQOSG declaration in QOSGWidget.h separated out from QOSGWidget.cpp To use the QT moc class definitions must each be in their own header. // Parent class derived from QObject must come first. class ViewerQOSG : public QOSGWidget,public osgViewer::Viewer { //Include this if you want to

Re: [osg-users] Please test SVN of OpenSceneGraph in prep for 2.7.4 dev release

2008-10-28 Thread Ulrich Hertlein
Compiled fine on Mac OS X 10.5.5, gcc 4.0.1, intel 32-bit ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] light gouraud

2008-10-28 Thread Paul Martz
I'm not sure that OpenFlight Face/Mesh records with the Gouraud flag set should be lit. Can you point to something in the OpenFlight specification that supports this? If you want to enable lighting for those nodes, you would need to write a NodeVisitor to enable lighting and provide appropriate

Re: [osg-users] light gouraud

2008-10-28 Thread Gordon Tomlinson
If OFL flag its set to just Gouraud then it should not be lit and should not react to light If its set to Lit Gouraud then lighting does apply __ Gordon Tomlinson [EMAIL PROTECTED] IM: [EMAIL PROTECTED] www.vis-sim.com

Re: [osg-users] updateCalculatedNearFar problem

2008-10-28 Thread forest37
hi robert, Thanks for your advice. I know people are busy,so i concentrate the code.Sometimes problems are hard to describe in native language much less a foreign language.I will try to describle problems in english instead of codes. Thank you again. Best regards forest

Re: [osg-users] updateCalculatedNearFar problem

2008-10-28 Thread Wang Rui
Hi forest, Why not try to describe your question again at bbs.osgchina.org? Maybe your theory will be more clear using native language. It is a Chinese forum. :) Wang Rui 2008/10/29 forest37 [EMAIL PROTECTED] hi robert, Thanks for your advice. I know people are busy,so i

[osg-users] TrackballManipulator asymptote

2008-10-28 Thread Richard Baron Penman
hello, when I use the TrackballManipulator to view my model I find that the camera velocity slows to zero if I try to approach a certain point, which I believe is the origin. Do you know why this occurs and how it can be prevented? Richard ___