Re: [osg-users] Very simple Firefox-Plugin to display osg-files

2008-12-05 Thread Simon Hammett
On windows you can call GetModuleFileName which retrieves the fully qualified path to the dll/exe in which the calling function resides. 2008/12/5 Andreas Goebel [EMAIL PROTECTED]: You will probably have to explicitly provide the library path to go searching for the plugins. You could either

Re: [osg-users] Very simple Firefox-Plugin to display osg-files

2008-12-05 Thread Simon Hammett
2008/12/5 Andreas Goebel [EMAIL PROTECTED]: Simon Hammett schrieb: On windows you can call GetModuleFileName which retrieves the fully qualified path to the dll/exe in which the calling function resides. Sadly no, it returns the path to firefox.exe, already tried that. The only way I can

Re: [osg-users] Visual Studio Static compilation

2008-12-05 Thread Simon Hammett
Why would you want to static link to osg when you say you can have dlls? Just stick the osg dlls in the same folder as the exe and it should work. If you really must static link, you can probably just change the project build type in VS. I haven't tried this though. Use cmake, set the options,

Re: [osg-users] Very simple Firefox-Plugin to display osg-files

2008-12-05 Thread Simon Hammett
2008/12/5 Andreas Goebel [EMAIL PROTECTED]: Simon Hammett schrieb: 2008/12/5 Andreas Goebel [EMAIL PROTECTED]: Simon Hammett schrieb: On windows you can call GetModuleFileName which retrieves the fully qualified path to the dll/exe in which the calling function resides. Sadly

Re: [osg-users] Very simple Firefox-Plugin to display osg-files

2008-12-05 Thread Simon Hammett
It does not fail, but his plugin source code does not know it's instance handle, because DllMain() is deeply buried in the Plugin API, I guess. If you pass a null handle to GetModuleFileName it uses the return address on the stack to work out which dll the calling function is in. It should

Re: [osg-users] Very simple Firefox-Plugin to display osg-files

2008-12-05 Thread Simon Hammett
2008/12/5 Ralph Kern [EMAIL PROTECTED]: Simon Hammett schrieb: If you pass a null handle to GetModuleFileName it uses the return address on the stack to work out which dll the calling function is in. It should always work for any function linked in an exe or dll. Sorry, Simon, you are wrong

Re: [osg-users] Very simple Firefox-Plugin to display osg-files

2008-12-05 Thread Simon Hammett
Nuts, I must be confusing it with one of the debug help functions. Easiest way is to do it DllMain then, you get passed the handle to your dll. Then just store the handle or the path. Knew there was a relatively straight forward way of doing it: wchar_t buff[256]; buff[0] = '\0'; HMODULE

Re: [osg-users] 4m 36 seconds!

2008-12-05 Thread Simon Hammett
2008/12/5 Robert Osfield [EMAIL PROTECTED]: Hi All, I've taken a picture of my latest computer jut to make you all jealous :-) Robert. Brilliant! That looks like how my machine performs. -- The truth is out there. Usually in header files. ___

Re: [osg-users] OpenVRML and Windows

2008-12-05 Thread Simon Hammett
2008/12/5 Serge Lages [EMAIL PROTECTED]: I tried the patch but it doesn't work for Visual Studio. Anyone have an idea on how to transform a method declaration like that : float (operator[](size_t index) throw ())[4]; In something similar but VS compliant ? If you are trying to get a

Re: [osg-users] The build of osg2.6 succeed in my computer but failed in another!

2008-12-08 Thread Simon Hammett
The VS linker does go nuts on rare occasions. This happens more often when using Incremental linking, so you might try turning that off. Just do the osg project only first to see if that fixes it. 2008/12/8 xuhuabing [EMAIL PROTECTED]: Hello I am a user of OpenSceneGraph-2.6.0, I download the

Re: [osg-users] Is it time that we have a OpenSceneGraph/src/3rdPartyPlugins directory?

2008-12-09 Thread Simon Hammett
2008/12/9 Robert Osfield [EMAIL PROTECTED]: Hi All, Snip. Thoughts? Recommendations? Robert. ___ osg-users mailing list Well I'm not too keen on having loads of third part stuff in the default core. Building osg is already painfully slow, the

Re: [osg-users] Is it time that we have a OpenSceneGraph/src/3rdPartyPlugins directory?

2008-12-09 Thread Simon Hammett
2008/12/9 Robert Osfield [EMAIL PROTECTED]: HI Simon, On Tue, Dec 9, 2008 at 3:30 PM, Simon Hammett [EMAIL PROTECTED] wrote: Well I'm not too keen on having loads of third part stuff in the default core. Building osg is already painfully slow, the only machines I have access to are over 3

Re: [osg-users] Is it time that we have aOpenSceneGraph/src/3rdPartyPlugins directory?

2008-12-09 Thread Simon Hammett
It should be possible to achieve these same benefits with one CMake system. -Paul I was thinking about 2 separate ones due to way the UI tool works on windows. You just get a big long list of options, with a bunch hidden behind an 'Advanced' checkbox. So you have carefully review every line,

Re: [osg-users] Cmake question - is it possible to explicitly pull in symbols in a static lib?

2008-12-10 Thread Simon Hammett
Is this idea possible with compilers? Is it possible with CMake? VS has a force include symbol option, which looks like it will make the linker pull in a library: The /INCLUDE option tells the linker to add a specified symbol to the symbol table. The linker resolves symbol by adding the

Re: [osg-users] Windows XP GDI Menu Shadow flicker on ATI Radeon

2008-12-15 Thread Simon Hammett
No it's not multi threading. My single threaded non OSG apps do the same, and that's with my OpenGl rendering code called in response to WM_PAINT. It's something to do with the back buffer swap overwriting the screen without being properly synchronised with GDI but I've never had time to

Re: [osg-users] Windows XP GDI Menu Shadow flicker on ATI Radeon

2008-12-15 Thread Simon Hammett
Robert is quite correct; it's nothing to do with OSG. (nor your driver version) My raw OpenGl programs have the same problem and so do quite a few other none OSG programs. I've never been bothered enough to investigate myself though. A quick dirty solution is just to disable screen updates when

Re: [osg-users] Windows XP GDI Menu Shadow flicker on ATI Radeon

2008-12-15 Thread Simon Hammett
Curious. Could you provide a really stripped down program which doesn't have dodgy menus? mfc / atl or raw win32, as I don't have any other GUI toolkits setup. I can make one out of my programs but you've already looked at one wrong program so another wrong one isn't going to help... 2008/12/15

Re: [osg-users] Memory management in OSG

2008-12-19 Thread Simon Hammett
2008/12/19 Pierre Bourdin (gmail) pierre.bour...@imerir.com: Hi, valgrind is very powerfull if you're on an Linux/Unix environnement, if you are using MSVC you can use this: add this bloc at the beginning of each file you want to trace (after all includes): #ifdef _WIN32 # ifdef _MSC_VER

Re: [osg-users] Building VPB on Windows

2008-12-23 Thread Simon Hammett
Well it's hard to give you any pointers if you don't supply the error messages... 2008/12/23 Michael W. Hall hal...@att.net: I just ran the configure utility. I am getting errors with CMake configure. Reports that a lot of the variables are set to not found. Windows XP BTW and Visual Studio

Re: [osg-users] Node Names After Picking

2009-01-02 Thread Simon Hammett
2009/1/2 Ryan Morris russell.co...@gmail.com: Just to be clear, would something like: osg::Node *node = osgDB::readNodeFile(file.osg); osg::Geode *geode = osg::dynamic_castosg::Geodenode; geode-getDrawable()-setName(New name); should work? (syntax might be a little off I'm not at my home

Re: [osg-users] Node Names After Picking

2009-01-02 Thread Simon Hammett
2009/1/3 Simon Hammett s.d.hamm...@googlemail.com: 2009/1/2 Ryan Morris russell.co...@gmail.com: Just to be clear, would something like: osg::Node *node = osgDB::readNodeFile(file.osg); osg::Geode *geode = osg::dynamic_castosg::Geodenode; geode-getDrawable()-setName(New name); should work

Re: [osg-users] MFC SDI Example

2009-01-09 Thread Simon Hammett
The MDI mfc version has the same problems last time I tried it. Try calling setUpViewerAsEmbeddedInWindow on your viewer. If you problems go away you're hitting threading issues. 2009/1/8 Brad Huber br...@procerusuav.com: Umit, Thanks. The SDI application that I have created so far is very

Re: [osg-users] package names for static builds ?

2009-01-14 Thread Simon Hammett
2009/1/14 Jean-Sébastien Guay jean-sebastien.g...@cm-labs.com: Hi Mattias, 1. When building static libraries - should we indicate this in the package filename? e.g. libopenscenegraph-dev-2.x.y-win32-x86-vc80-Release-static.tar.gz ? I would say yes, otherwise how do we separate the static

Re: [osg-users] LWO loading problem

2009-02-04 Thread Simon Hammett
Works ok in 2.7.1. 2009/2/5 Csaba Halász csaba.hal...@gmail.com: Hi everybody. I have gotten a report that the LWO loader doesn't seem to work. Investigating, I grabbed the sample LWO file posted by Marco Jez back in november last year (attached for convenience). Loading into osgviewer, I

Re: [osg-users] build on windows

2009-02-09 Thread Simon Hammett
That's a header from mfc/atl which you won't have unless you have the full version of visual studio. You can try just editing the OpenThreadsVersionInfo.rc by hand and commenting out that include. It doesn't look like the rc is using any of the mfc defines. 2009/2/10 Cedric Pinson

Re: [osg-users] ComputeBoundsVisitor problem

2009-02-11 Thread Simon Hammett
ComputeBoundsVisitor only computes bounds for drawables. ie geometry. 2009/2/11 Engvall Åsa asa.engv...@saabgroup.com: Hi osg-users! I want to use a ComputeBoundsVisitor for finding the bounds of an object. The object belongs to the class GroundObject, which is derived from osg::Node.

Re: [osg-users] ComputeBoundsVisitor problem

2009-02-11 Thread Simon Hammett
the same thing on an osg::Node, it works. Both the Node and the GroundObject are created using readNodeFile. Åsa -Ursprungligt meddelande- Från: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] För Simon Hammett Skickat: den 11 februari 2009

Re: [osg-users] DrawArrays and bind_per_primitive

2009-02-20 Thread Simon Hammett
No it works fine for me. (2.7.1) It doesn't work with tri/quad strips though, you get the same behavior as BIND_OVERALL. 2009/2/20 Steven Saunderson osgfo...@tevs.eu: Is BIND_PER_PRIMITIVE allowed when using a DrawArrays (GL_QUADS) primitive ? I've found that if I do this and save the scene

Re: [osg-users] photos to be displayed in sequence

2009-03-05 Thread Simon Hammett
So you need @ minimum168 Mb/sec streaming bandwidth from your hard discs That's not utterly insane, but many older PC's won't be able to deliver that sort of bandwidth. On my current machine the burst transfer rate from cache (ie memory to memory copy) is only 184 Mb/sec. Reading from HD I

Re: [osg-users] background color fills all the window (not only the given viewport)

2009-03-26 Thread Simon Hammett
This might be want you are looking for: http://factor-language.blogspot.com/2007_08_01_archive.html and http://factor-language.blogspot.com/2007/08/opengl-redraw-bug-on-windows.html Basically enable the scissor test, then tell OpenGl what part of the window to update when calling SwapBuffers.

Re: [osg-users] background color fills all the window (not only the given viewport)

2009-03-26 Thread Simon Hammett
context affects the whole window it's assigned to. Robert. On Thu, Mar 26, 2009 at 8:59 AM, Simon Hammett s.d.hamm...@googlemail.com wrote: This might be want you are looking for: http://factor-language.blogspot.com/2007_08_01_archive.html and http://factor-language.blogspot.com/2007/08

Re: [osg-users] Problems integrating MFC example with existing application

2008-10-01 Thread Simon Hammett
2008/9/30 Simon [EMAIL PROTECTED] Yup, the mfc example is broken. Doh, ignore me. Just problems with loading plugins, it fails silently... Mind you the MFC version keeps flashing the screen black when resizing whilst the one I wrote which uses setUpViewerAsEmbeddedInWindow doesn't. If you

Re: [osg-users] Thread infinite waiting problem

2008-10-10 Thread Simon Hammett
That's not nearly enough information to enable anyone to help. Multi threaded apps can hang for any number of reasons. You'll need to show callstack for each thread and give an other view of you app design. 2008/10/10 Vincent Bourdier [EMAIL PROTECTED] Hi all, Randomly my application freeze.

Re: [osg-users] A Windows binary version of OSG 2.6.x available?

2008-11-06 Thread Simon Hammett
If you want binaries you need to specify which compiler you are using. I've got 2.7.1 built for vc.Net 2003 but it's a 200Mb zip, without the examples. Free to anybody who can provide me somewhere to upload it if anybody else is using such an old version of vc. Building yourself is very easy

Re: [osg-users] pragma warnings disabled in headers

2008-11-07 Thread Simon Hammett
2008/11/7 Robert Osfield [EMAIL PROTECTED] Hi Peter, On Fri, Nov 7, 2008 at 12:11 PM, Peter Wraae Marino [EMAIL PROTECTED] wrote: there is no push/pop for the warning in the header file which will make these warnings disabled in my own code too. I would like to catch this warnings in my

Re: [osg-users] pragma warnings disabled in headers

2008-11-07 Thread Simon Hammett
2008/11/7 Robert Osfield [EMAIL PROTECTED] On Fri, Nov 7, 2008 at 3:42 PM, Simon Hammett [EMAIL PROTECTED] wrote: I agree with Peter, arbitrarily turning off peoples warnings isn't good practice. The OSG generally doesn't disable warnings, warning disabling is only done on VS as it's had

Re: [osg-users] Teaching an intro to graphics course

2008-11-07 Thread Simon Hammett
For me Geometry handling and generators. I've spent part of today writing a generalised extrusion function but I'd be highly surprised if this hasn't been done 10,000 times already. I couldn't find such a function in osg. If it is there, then maybe you could get your students to help with the

Re: [osg-users] A Windows binary version of OSG 2.6.x available?

2008-11-07 Thread Simon Hammett
2008/11/7 Robert Osfield [EMAIL PROTECTED] Hi Simon, On Thu, Nov 6, 2008 at 1:02 PM, Simon Hammett [EMAIL PROTECTED] wrote: If you want binaries you need to specify which compiler you are using. I've got 2.7.1 built for vc.Net 2003 but it's a 200Mb zip, without the examples. Free

Re: [osg-users] Teaching an intro to graphics course

2008-11-07 Thread Simon Hammett
2008/11/7 [EMAIL PROTECTED] Thanks Simon, A CSG library would be a great idea to work on. I needed one of those for some work I did with Northrop Grumman. The generalized extrusion function is cool too, maybe for a single student or as a feature of the CSG library. I didn't look too

Re: [osg-users] Teaching an intro to graphics course

2008-11-14 Thread Simon Hammett
I'll have a look this weekend. ty. 2008/11/14 Wang Rui [EMAIL PROTECTED]: Hi Simon, As Alberto Luaces said, there is an external library for OSG to support various polygon technologies, osgModeling (http://code.google.com/p/osgmodeling/) is completely new work and not familiar to others.

Re: [osg-users] Networking with OSG + Bullet

2008-11-19 Thread Simon Hammett
There are good articles @ valvesoftware about this: http://developer.valvesoftware.com/wiki/Source_Multiplayer_Networking http://developer.valvesoftware.com/wiki/Lag_Compensation -- The truth is out there. Usually in header files. ___ osg-users

Re: [osg-users] pragma warnings disabled in headers

2008-11-21 Thread Simon Hammett
2008/11/21 Wojciech Lewandowski [EMAIL PROTECTED]: Hi, Guys Some middle step solution could be CMake define which would activate warning disable in osg\Export. Would this be acceptable ? What do other OSG windows developers think ? Sounds good to me. Though perhaps we should go whole hog

Re: [osg-users] Viewer creation and frame() from different threads

2009-10-20 Thread Simon Hammett
is it OK to create a viewer in e.g. the main thread and then call frame() from a different thread? We're getting erratic results on Linux vs Windows vs Mac. So I just want to know if this use case is legal. I've done this under Linux - the osgqtbrowser example in svn/trunk has the option

Re: [osg-users] Viewer creation and frame() from different threads

2009-10-20 Thread Simon Hammett
2009/10/20 J.P. Delport jpdelp...@csir.co.za: Hi Simon, Simon Hammett wrote: I will try osgqtbrowser on Windows and see what happens. Anyone else have reports on osgqtbrowser on Windows? thanks jp Windozes is same as Mac, only the owner thread can retrieve events for windows. can

Re: [osg-users] Epic releases free version of Unreal Editor

2009-11-05 Thread Simon Hammett
Yeah I spent quite a bit of time playing with the UT editor way back with the release before UT 2K3 It was crap then and I doubt it's got any better. The last UT sucked nads. And actually so did the one before that. It was pretty much on a par with Valve's 'Hammer Editor' which is also a massive

Re: [osg-users] Epic releases free version of Unreal Editor

2009-11-07 Thread Simon Hammett
2009/11/7 Jan Ciger jan.ci...@gmail.com: Simon Hammett s.d.hamm...@googlemail.com wrote: I've gotten good results with exporting blender - .lwo as long as you split your model meshes up the right way, so you can run the smoothing  visitor on it. Why? There is osg exporter too. Works fine

Re: [osg-users] Epic releases free version of Unreal Editor

2009-11-07 Thread Simon Hammett
2009/11/7 Jan Ciger jan.ci...@gmail.com: Simon Hammett s.d.hamm...@googlemail.com wrote: Well .lwo was the first format I found that worked and it's binary so the models load quickly. The apps I work on, load lots of stuff outta dbs, run third party dlls black boxes etc on start up, so

Re: [osg-users] Epic releases free version of Unreal Editor

2009-11-07 Thread Simon Hammett
2009/11/7 Jan Ciger jan.ci...@gmail.com: Simon Hammett s.d.hamm...@googlemail.com wrote: which is yet another step in the process. that's making things more complicated, not less. and .lwo works rather nicely so why change? Because .osg can capture also things that are native

Re: [osg-users] Computing Normals for Drawables

2009-11-09 Thread Simon Hammett
2009/11/9 Andrew Burnett-Thompson aburnettthomp...@googlemail.com: Hi guys, Interesting conversation on solving this problem. I'm working with James on this and he's away this week, so I thought I'd reply to keep the conversation going, and also to thank you for your input. Just to throw

Re: [osg-users] Matrix xform will scale but not translate

2009-11-15 Thread Simon Hammett
2009/11/15 Darick Barnes dbtex352...@yahoo.com Hi, For some reason I cannot translate my hexagon geode made up of a primitiveset of LINE_STRIP The scaling works but translation does not. I am modifying AdapterWidget.cpp --MDI section of the code so that I can use QT4. It is from the

Re: [osg-users] picture in picture...

2009-11-25 Thread Simon Hammett
Views get rendered in order added. (at least in single threaded mode) Just add your 'in picture' viewport last, where you want it. You will need to turn off clearing of the colour buffer if you want to see your main scene through the picture . And maybe call setAllowEventFocus(false); on the

Re: [osg-users] normal vectors aren't causing culling

2009-11-26 Thread Simon Hammett
2009/11/26 Jim Brooks jimbl...@gmail.com This is very basic This test-code snippet is supposed to create a simple square with a normal vector (or vectors). After rotating it around with the trackball manipulator, the square is never culled. Same behavior on OSG 2.6 and 2.8. Culling

Re: [osg-users] Picking bug?

2009-12-03 Thread Simon Hammett
2009/12/3 Fred Smith osgfo...@tevs.eu Hi, On one occasion I don't get two intersections, only one. That's the problem. I expect two intersections. One for the first triangle, one for the second. I get only one, for the second triangle, even though I picked the left triangle. You can

Re: [osg-users] Triangle mesh looks like a silhouette with no surface detail.

2009-12-04 Thread Simon Hammett
2009/12/4 Ulrich Hertlein u.hertl...@sandbox.de On 4/12/09 4:42 AM, Ray Stamper wrote: through the Delta3d api, which worked well enough but was limited to 2^16 vertices. I wrote a class to make a Geode from .ply files, but they end up looking a little weird. Geometrically, they are

Re: [osg-users] Animated Models

2009-12-04 Thread Simon Hammett
2009/12/4 J.P. Delport jpdelp...@csir.co.za Hi, Paul Martz wrote: Danny Lesnik wrote: How can I create animations within OSG models (similar to cessnafire.osg sample scene).? for example, how this file was created? Look at the OSG file in a text editor and see what nodes it uses.

Re: [osg-users] Picking bug?

2009-12-04 Thread Simon Hammett
2009/12/4 J.P. Delport jpdelp...@csir.co.za Hi, have you checked what the members of the TriangleIntersection struct are? I think you must make them double too, this it where we had problems in some of our code. jp Opps, yes they need changing as well. -- http://www.ssTk.co.uk

Re: [osg-users] Picking bug?

2009-12-04 Thread Simon Hammett
2009/12/4 Fred Smith osgfo...@tevs.eu Thanks for all your answers. Hitting a little bit of a problem in my understanding of the source code. If I change TriangleIntersection to use Vec3d and not Vec3: Code: TriangleIntersection(unsigned int index, const osg::Vec3d normal, double

Re: [osg-users] Full list of dependencies

2009-12-06 Thread Simon Hammett
2009/12/6 Rizzen riz...@darkstar.co.za Hi Where can I find the full list of dependencies required for OSG 2.8 and list of configuration options for building OSG libraries? Rizzen osg itself doesn't have any dependencies, only the plugins do. You'll have to run cmake and look through that

Re: [osg-users] Picking bug?

2009-12-07 Thread Simon Hammett
2009/12/4 Fred Smith osgfo...@tevs.eu Nope, it still doesn't work. Not my lucky day... Hi Fred, I've attached my modified version of LineSegmentIntersector.cpp if you want to try that. It's from 2.8.2 but it should be ok with most recent versions. If that doesn't work for you, you'll need

Re: [osg-users] Develop a scalable binary file format for native OSG scenes?

2009-12-10 Thread Simon Hammett
2009/12/10 Chris 'Xenon' Hanson xe...@alphapixel.com On 12/10/2009 10:27 AM, Robert Osfield wrote: Or... just have the binary format extension be .osgb... :-) For filesystem-management purposes, I know I'd prefer a .osgb extension. So much easier to grep and write scripts when you can

Re: [osg-users] Borland/Codegear C++ Builder

2009-12-14 Thread Simon Hammett
2009/12/14 Wouter Boelen li...@wboelen.be Hi, I just got the dubious honour of becoming the poor sap who has to test the viability of using OSG in an existing project. Trouble is, it's been written in Borland C++ builder (and uses VCL,...). And the OSG source isn't fully compatible with its

Re: [osg-users] HUD-Problem

2009-12-22 Thread Simon Hammett
2009/12/22 Carl Johnson uto...@gmx.net Hi, I need to use osg for a project, so i tried to modify the example HudsAndText from osg tutorial to my original project, but this didn't work out. i saw the graphics (a triangle), but no HUD. so i went back to the roots I tried this basic

Re: [osg-users] Rotation 2 DOF node with 2 Different Matrix.

2009-12-31 Thread Simon Hammett
Not really following what you are after, but one point: 2009/12/31 Ümit Uzun umituzu...@gmail.com Hi Paul, Thanks for your reply. I need only one explanation about that; psudo code Matrix matrix1= identity; matrix1-rotate( 10 degree on

Re: [osg-users] PositionAndAttitudeTrabsform

2010-01-01 Thread Simon Hammett
2010/1/1 Gordon Tomlinson gor...@gordon-tomlinson.com Your right it does not scale the normals. So the normal are no longer correct for the model once you scale it See http://www.vis-sim.com/osg/osg_faq_1.htm#f19 That should really mention that rescale only works with uniform scaling. --

Re: [osg-users] Updating tesselator

2010-01-01 Thread Simon Hammett
2009/12/31 Martin Beckett m...@mgbeckett.com I am trying to draw a rubber band wioth the mouse around a selection I get the mouse position, convert into world coords (assumign a plan view) then add the new point to the geometry. I then call osg::Util Tessellator to build the selection into a

Re: [osg-users] How to render last with multiple cameras

2010-01-06 Thread Simon Hammett
2010/1/6 Mike Greene mgre...@hiwaay.net I have a view with two cameras - a HUD camera and a regular 3D perspective camera. I have my scene set up so that I can vary the alpha of the HUD (drawn with a polygon) so that I can see the 3D view behind at various intensities. What I would like to be

Re: [osg-users] Efficiently hiding points

2010-01-08 Thread Simon Hammett
2010/1/8 J.P. Delport jpdelp...@csir.co.za Martin Beckett wrote: Jason Daly wrote: The advice about breaking up large geodes is still applicable. If you're talking about hundreds of thousands of vertices, it's probably best to represent those as multiple geodes (and group them spatially,

Re: [osg-users] Depth buffer for shadow mapping

2010-01-11 Thread Simon Hammett
2010/1/11 Dominic Stalder dominic.stal...@bluewin.ch camera-attach(Camera::COLOR_BUFFER, image.get(), 0, 0); -- camera-attach(Camera::DEPTH_BUFFER, image.get(), 0, 0); Well you are trying to attach a depth texture to the color buffer, that's not going to work. Try

Re: [osg-users] Vanilla GL VBOs in OSG

2010-01-26 Thread Simon Hammett
2010/1/26 Mattias Thell mattias.th...@gmail.com snip Code: extensions-glBindBuffer(GL_ARRAY_BUFFER_ARB, vbo); glEnableClientState(GL_VERTEX_ARRAY); glVertexPointer(4, GL_FLOAT, 0, 0); glDrawArrays(GL_POINTS, 0, numPrims); glDisableClientState(GL_VERTEX_ARRAY);

[osg-users] Regression: 2.9.6, slow paths geometry w/ BIND_PER_PRIMITIVE normals breaks state set handling.

2010-02-04 Thread Simon Hammett
As per the subject. I've attached a modified version of osgViewer.cpp which shows the issue. The codes works fine in 2.8.2 2.7.1 I had a quick look at the code, but there's been way too many changes from 2.8.2 to 2.9.6 for me to find out what broke. Also state set loading when opening .osg

Re: [osg-users] Regression: 2.9.6, slow paths geometry w/ BIND_PER_PRIMITIVE normals breaks state set handling.

2010-02-04 Thread Simon Hammett
On 4 February 2010 10:19, Robert Osfield robert.osfi...@gmail.com wrote: Hi Simon, On Thu, Feb 4, 2010 at 9:58 AM, Simon Hammett s.d.hamm...@googlemail.com wrote: I've attached a modified version of osgViewer.cpp which shows the issue. The codes works fine in 2.8.2 2.7.1 I had

Re: [osg-users] Camera view frustum to Polytope

2010-02-18 Thread Simon Hammett
On 18 February 2010 15:13, Sean McVey sean.r.mc...@lmco.com wrote: Hi guys, I've been trying to setup my Polytope as my cameras' frustum with no such luck. Robert has the setup changed? I'm using osg 2.8.1. Is this correct? What am I doing wrong? osg::Polytope frustum;

Re: [osg-users] freetype fonts on Windows...

2010-02-23 Thread Simon Hammett
On 23 February 2010 22:23, Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC shayne.tuel...@hill.af.mil wrote: All, We’re having some issues with the OSG freetype font plugin? We’re using VC++ 2008 on Windows and we’re having trouble reading ttf files. We get the message “could not find

Re: [osg-users] Tracking down 'invalid enumerant'

2010-02-23 Thread Simon Hammett
On 23 February 2010 18:00, Andrew Cunningham o...@a-cunningham.com wrote: Hi, I have to make our Windows OSG app function in a reasonable manner under Microsoft Remote Desktop, which means OpenGL 1.1.0 In general it actually works pretty well but at each window refresh, I am getting a

Re: [osg-users] freetype fonts on Windows...

2010-02-23 Thread Simon Hammett
On 23 February 2010 23:17, Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC shayne.tuel...@hill.af.mil wrote: Mourad, Yes. We know the path setting is correct because we can use the other plugin dlls that reside in the folder without any problems. Thanks for the input. -Shayne FYI, my

Re: [osg-users] how to set osg::notify to a file

2009-05-11 Thread Simon Hammett
This works for me: #include iostream #include fstream static std::ofstreamg_log(c:\\Message.log); extern C int WINAPI _tWinMain(HINSTANCE /*hInstance*/, HINSTANCE /*hPrevInstance*/, LPTSTR /*lpCmdLine*/, int nShowCmd) { std::cout.rdbuf(g_log.rdbuf()); std::cerr.rdbuf(g_log.rdbuf());

Re: [osg-users] Repost: Top 10 debugging tips

2009-05-12 Thread Simon Hammett
Many, (most?) osg users are using windozes. So redirecting osg::notify messages should be in that list. (Plz somebody give me a job developing for *ix.!) 2009/5/12 Paul Martz pma...@skew-matrix.com: I've created the following list of debugging tips to help new OSG developers become productive

[osg-users] Camera view frustum to Polytope

2009-05-13 Thread Simon Hammett
Hi Everyone, Is there a quick and easy way to populate a osg::Polytope with a cameras view frustum? I've tried stepping though osg::Viewer::frame(), but there's so much code I've either not stepped into the right function or just missed it and searching the mail achieve just brings up too many

Re: [osg-users] Camera view frustum to Polytope

2009-05-14 Thread Simon Hammett
that there is a Polytope::transformProvidingInverse() method which you use (planes are transformed by multiplying by their inverse).  Polytope frustum;  frustum.setToUnitFrusmtum();  frustum.transformProvididingInvser(camera.getViewMatrix()); Robert. On Wed, May 13, 2009 at 9:20 PM, Simon Hammett

Re: [osg-users] Remote execution and OSG

2009-05-14 Thread Simon Hammett
Don't you have to grant access on your machine to remote connections? IIRC, try 'xhost +' on your machine before starting the program on the remote machine. 2009/5/14 paul1...@yahoo.com: Yes, I am using Redhat Linux with OSG 2.9.3. Using ssh -Y didn't help... Also, as I pointed out in my

Re: [osg-users] Remote execution and OSG

2009-05-14 Thread Simon Hammett
, osgcompositeviewer, osgsidebyside, osgtexture3D, osgslice,  and osgwindows that would cause them not to work but other do?  osgviewer --window seems to work fine..  Does this have something to do with the GraphicsContext? Paul P. - Original Message From: Simon Hammett s.d.hamm

Re: [osg-users] What is everyone doing for GUIs?

2009-05-16 Thread Simon Hammett
If you want a proper cross platform gui with all the bells and whistles, the three main choices are probably Qt, WxWidgets or Gtk. Qt is probably the most powerful and fully featured, but you have to use that dam MOC thing and the Qt framework. WxWidgets seems to give quite small programs, but

Re: [osg-users] moving the camera to predefined locations smoothly

2009-05-19 Thread Simon Hammett
2009/5/19 Ulrich Hertlein u.hertl...@sandbox.de: Hi Cory, On 18/5/09 8:43 PM, Cory Riddell wrote: changes. I don't know what the correct parametric equation for moving a camera between two points on the surface of a sphere is. I changed my code to move the camera along a chord from point A

Re: [osg-users] Picking and ignoring clipped parts of models?

2009-05-21 Thread Simon Hammett
2009/5/21 Paul Griffiths gaffe...@gmail.com: Paul Martz wrote: The scene graph that you perform the pick on doesn't have to be the same scene graph as the one you display, if that helps. No, my scene is a bit too complicated for that. It's for a new 3D gui system im creating called

Re: [osg-users] BoundingSphere and IntersectionTest

2009-05-22 Thread Simon Hammett
2009/5/21 Matthias Gabriel g3e...@hotmail.de: Hi, today i wanted to build my own LineSegmentIntersector - well some kind of... while doing this, i looked into the sourcecode of the LineSegmentIntersector. There I saw, that the tests in LineSegmentIntersector::intersects(..) refer to start and

Re: [osg-users] Compute axis aligned bounding box of a given size

2009-05-22 Thread Simon Hammett
2009/5/22 Paul Griffiths gaffe...@gmail.com: Hi, I wish to compute an axis aligned bounding box of a given size whos position is centered to a node. This node cound be scaled, translated or rotated. it must be axis aligned. I need to know this to test if a picked part of a node picked with

Re: [osg-users] Compute axis aligned bounding box of a given size

2009-05-22 Thread Simon Hammett
2009/5/22 Paul Griffiths gaffe...@gmail.com: Im clipping an osg::group with an osg::ClipNode so parts of it is invisible on screen but when i click on the invisible parts the picker is still picking the object . i dont want it like that, i want the invisible parts to be invisible to the

Re: [osg-users] Compute axis aligned bounding box of a given size

2009-05-22 Thread Simon Hammett
2009/5/22 Simon Hammett s.d.hamm...@googlemail.com: 2009/5/22 Paul Griffiths gaffe...@gmail.com: Im clipping an osg::group with an osg::ClipNode so parts of it is invisible on screen but when i click on the invisible parts the picker is still picking the object . i dont want it like that, i

Re: [osg-users] Compute axis aligned bounding box of a given size

2009-05-22 Thread Simon Hammett
2009/5/22 Paul Griffiths gaffe...@gmail.com: Ive came up with this but it returns outside true every time regardless: Code: bool outside = false; if (obj-getParentWidget() obj-getParentWidget()-getUsingClipBoundingBox()) {    osg::ref_ptrosg::ClipNode clipNode =

Re: [osg-users] Compute axis aligned bounding box of a given size

2009-05-22 Thread Simon Hammett
2009/5/22 Paul Griffiths gaffe...@gmail.com: Simon Hammett wrote: Okies, if memory serves me correctly, the clip planes aren't in world coordinates, I think they are in eye coordinates. So that would be take the local intersection coordinate and transform it using computeLocalToEye

Re: [osg-users] Compute axis aligned bounding box of a given size

2009-05-22 Thread Simon Hammett
2009/5/22 Simon Hammett s.d.hamm...@googlemail.com: 2009/5/22 Paul Griffiths gaffe...@gmail.com: Simon Hammett wrote: Okies, if memory serves me correctly, the clip planes aren't in world coordinates, I think they are in eye coordinates. Right I've had time to play with ClipNode, and what

Re: [osg-users] Compute axis aligned bounding box of a given size

2009-05-23 Thread Simon Hammett
Which way would be better, what i have now or what you just suggested? My rule of thumb is; unless you have a compelling reason (ie efficiency), you should always prefer your own solutions. That way if you have to bug fix it or improve it in 1,2,3 years time you might remember what you did.

Re: [osg-users] Single-sided ClipPlane?

2009-05-23 Thread Simon Hammett
2009/5/23 Paul Griffiths gaffe...@gmail.com: Enabling/disabling clipPlanes won't do the job, your looking at the side and into the scroll window at the same time. From what i can work out, clipPlanes slice all the way along the model and remove the outer half, so any clipping applied is

Re: [osg-users] Single-sided ClipPlane?

2009-05-24 Thread Simon Hammett
2009/5/24 Paul Martz pma...@skew-matrix.com: http://www.sstk.co.uk/portalRendering/portal.php Unless I'm missing something, couldn't you do this in OSG using an Occluder (for host-side culling) and the stencil buffer (to control screen rendering)? You don't even need that. Just set up the

Re: [osg-users] Single-sided ClipPlane?

2009-05-24 Thread Simon Hammett
2009/5/24 Paul Griffiths gaffe...@gmail.com: Just to let people know, portals is not quite what im looking for, its more of an extended type portal, i believe a portal is a plane with a texture of a scene applied to give to look of a scene within a scene, im looking for scenes within scenes

Re: [osg-users] Consistent lighting across different cameras

2009-07-06 Thread Simon Hammett
Just a quick guess, but are you putting rotation into your left right projection matrices? If so that's what's mucking up your lighting: http://sjbaker.org/steve/omniv/projection_abuse.html 2009/7/6 Julian Looser li...@roarmot.co.nz: Hi, I am using OSG in a multi-wall stereo rendering

Re: [osg-users] readNodeFile model not visible through a semi-transparent box

2009-07-12 Thread Simon Hammett
Depth sorting for transparency happens at a course level in osg. I think it uses the center of the bounding box of the geometry object. For your specific example you'll need to place the 6 cube faces into separate geometries to get the result you expect. If you want to make a complex model

Re: [osg-users] Help with CompositeViewer

2009-07-24 Thread Simon Hammett
You've forgotten to setup the viewport I think: view-getCamera()-setViewport(new osg::Viewport(0,0, traits-width/2, traits-height/2)); 2009/7/24 Vic Ace typedefinit...@gmail.com: And setting the clearcolor for the camera did not give the same effect. still just black. hmm.

Re: [osg-users] Help with CompositeViewer

2009-07-24 Thread Simon Hammett
That's how it should look. You've set the viewport up to take a quarter of the screen and you don't have a camera manipulator, so your camera will be in the default location, which usually means you aren't looking at anything. Remove the /2 in the viewport setup or add some more view ports to

Re: [osg-users] [build] Building a Simple Viewer

2009-08-03 Thread Simon Hammett
Set you include directories list to: C:\Praktikum\OpenSceneGraph\OSG\include\ C:\Praktikum\OpenSceneGraph\OSG\build\include\ Then it should work. You're going too far down in the directory hierarchy. 2009/8/3 David Goering dgoer...@gmail.com: Okay here is something interesting: I deleted all

  1   2   >