Re: [osg-users] How to know if polygon is about to be draw onscreen?

2008-12-02 Thread Robert Osfield
Hi Oren, The OSG *does* cull drawables. I don't know what gave you the impression it doesn't. Robert. On Mon, Dec 1, 2008 at 10:16 PM, [EMAIL PROTECTED] wrote: Hi Robert, Sorry for the mess, maybe it seems to you to be the same question, but after a week of research (thanks for the help) I

Re: [osg-users] current svn compile error

2008-12-02 Thread Robert Osfield
Hi Paul, JS has sent me a fix (see previous thread) that is now checked in. Robert. On Tue, Dec 2, 2008 at 1:30 AM, Paul Martz [EMAIL PROTECTED] wrote: Hi Robert -- I'm getting this will trying to build the osg library. Updated about 01:00 GMT... BufferObject.cpp

Re: [osg-users] msvc90 dependencies

2008-12-02 Thread Robert Osfield
Hi Mattias, That's for the further note about your binaries. I have on my TODO list setting up svn branch for dependencies and binaries - I'm slowly getting there. Getting yourself write access to this would be appropriate. In the meantime I can add a link to your zip. Could members of the

Re: [osg-users] Disabling small feature culling for a subgraph

2008-12-02 Thread Per Fahlberg
Hi, Perhaps I wasn't clear in my question so I will try once more, is there a way to disable small feature culling for just a subgraph not the entire scene? Regards, Per Per Fahlberg wrote: Hi, I'm trying to disable small feature culling for a subgraph, but so far I have not been able to

Re: [osg-users] Attaching Nodes (Characters Objects)

2008-12-02 Thread Gordon Tomlinson
HI You can use transforms to this can chain them together, I would suggest a search through the osg mailing archives there has been several discussion in the past the discuss this and also 3rd party plug-ins that support key frame animation etc .

Re: [osg-users] Disabling small feature culling for a subgraph

2008-12-02 Thread Robert Osfield
Hi Per, On Tue, Dec 2, 2008 at 11:34 AM, Per Fahlberg [EMAIL PROTECTED] wrote: Perhaps I wasn't clear in my question so I will try once more, is there a way to disable small feature culling for just a subgraph not the entire scene? The only way is is use a cull callback to cache the previous

[osg-users] Problem updating uniforms

2008-12-02 Thread Engvall Åsa
Hi osg-users! I have a shader attached to a subgraph. The shader uses a uniform which needs to be updated in every frame. The uniform is related to the modelviewmatrix, and should thus get a different value for every node in the subgraph. I have tried to use a osg::Uniform::Callback, but the

Re: [osg-users] Problem updating uniforms

2008-12-02 Thread Robert Osfield
Hi Asa, I was strongly recommend trying to use compute what you need from variables already available to your in the shader, do a per drawable binding of an uniform would awkward to implement and provide poor performance. Please note that you have gl_ModeViewMatrix and osg_ViewMatrix available

[osg-users] Performance of dynamic_cast vs. virtual call

2008-12-02 Thread Sukender
Hi all, Has anyone *benchmarked* the difference between a dynamic_cast and a virtual call to identify the type of a class? Before my benchmark, I guessed the virtual call was cheaper, but how much? I just knew it depends a lot on how types are related for the dynamic_cast. Example: if

Re: [osg-users] osgAudio/OpenAL/osgAL

2008-12-02 Thread Sukender
Just for precision: Mac OSX users are welcome to *TEST* OpenAL-Soft, but *any* developper is welcome to work on or discuss osgAudio, osgAL and OpenAL-Soft. And if you want to test osgAL, I already compiled the following dependencies for VC8 SP1: - OpenAL-Soft - FreeALUT (acutally a binary

Re: [osg-users] Problem updating uniforms

2008-12-02 Thread Robert Osfield
Hi Asa, Have a look at the osgParticle::PreciptionEffect as it caches the previous frames modelview matrix to enable it to compute motion blurr of the rain particles. This is done just for the precipitation effect drawables though. Robert. On Tue, Dec 2, 2008 at 2:08 PM, Engvall Åsa [EMAIL

Re: [osg-users] 《OSG编程入门指南》

2008-12-02 Thread Wang Rui
Hi Xiao Peng (FlySky), Congratulations! It's nice to see more programming guides and more developers of OSG*. *The english name of the book may be *Getting Started with OpenSceneGraph. *I'm lucky to be Chinese, too. :-) Wang Rui 2008/12/2 FlySky [EMAIL PROTECTED] Hello,everyone. I have

Re: [osg-users] osgAudio/OpenAL/osgAL

2008-12-02 Thread Stephan Maximilian Huber
Sukender schrieb: Hi all, This is only partially related to OSG, so I'll make it short: In order to make an osgAudio layer and a corresponding plugin based on OpenAL-Soft and osgAL, there is some need for testing and/or development. 1. Anyone that can help testing OpenAL-Soft on

Re: [osg-users] some question about OSG

2008-12-02 Thread Robert Osfield
Hi Andy, On Tue, Dec 2, 2008 at 2:11 AM, li chao [EMAIL PROTECTED] wrote: 1. how to add two OSG files into one viewer and the two things can view? Have you looked at any of the examples? Lots of them collate different models together in different ways. Try osganimate. Also practicing your

Re: [osg-users] osgAudio/OpenAL/osgAL

2008-12-02 Thread Sukender
Hi Stephan, Thanks a lot for testing. I'll ask the OpenAL-soft author about what you say and give you feedback. However, if you can say where (= line code) the problem arises, that would be very useful I think. Yes, OpenAL is part of the system, but the main goal here (about using OpenAL-Soft

Re: [osg-users] Problem updating uniforms

2008-12-02 Thread Engvall Åsa
Thank you, I will do that! Asa -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Robert Osfield Skickat: den 2 december 2008 15:15 Till: OpenSceneGraph Users Ämne: Re: [osg-users] Problem updating uniforms Hi Asa, Have a look at the

Re: [osg-users] msvc90 dependencies

2008-12-02 Thread Jean-Sébastien Guay
Hi Gordon, Mattias You can edit the wiki page .. :) Search the wiki site for the password its on there Nope, the downloads page is locked and can only be edited by an admin. J-S -- __ Jean-Sebastien Guay[EMAIL PROTECTED]

Re: [osg-users] msvc90 dependencies

2008-12-02 Thread Lionel Lagarde
Hi, C++ object/static library/dynamic library are not compatible across compilers because the standard does not define a mangling format. The C standard defines the way to name the variables and the functions in object files. C++ doesn't. So there is one mangling format per compiler. Gordon

Re: [osg-users] msvc90 dependencies

2008-12-02 Thread Jean-Sébastien Guay
Hi Sukender, IMHO your tone is too confrontational. Nothing is gained from this tone, as no one here as far as I know has any control over these issues. Stupid question #1: Why use VC9? For me there is *absolutely no improvements* that I'll use. May we wait for VC10? If you don't need it

Re: [osg-users] osgAudio/OpenAL/osgAL

2008-12-02 Thread Ümit Uzun
Hi Sukender, I want to be member of osgAudio work. I am new OpenAL and studying for 3 days and learning OpenAL. But unfortunately I am using WindowsXP platform for now. Hope we could share much of thing about Audio. regards. 2008/12/2 Sukender [EMAIL PROTECTED] Hi all, This is only

Re: [osg-users] problem with GPU draw time

2008-12-02 Thread Robert Osfield
Hi Forest, The GPU draw time is just that the GPU draw time, it is unrelated to anything on the CPU unless the OpenGL fifo is full, and if this is the case then the draw dispatch will block and then CPU draw dispatch and GPU draw times will be rather similar, but this isn't the case - you are

Re: [osg-users] How to know if polygon is about to be draw onscreen?

2008-12-02 Thread Paul Melis
Robert Osfield wrote: Hi Oren, The OSG *does* cull drawables. I don't know what gave you the impression it doesn't. Maybe he means that the OSG doesn't cull on the polygon level (i.e. within what the OSG calls a 'drawable'). Paul Robert. On Mon, Dec 1, 2008 at 10:16 PM, [EMAIL

Re: [osg-users] DatabasePager and memory

2008-12-02 Thread Robert Osfield
Hi Brad, On Mon, Dec 1, 2008 at 11:37 PM, Brad Colbert [EMAIL PROTECTED] wrote: I completely agree. We were under a time crunch for a demonstration and where unable to rebuild the database (3 days). The thought was that we could get it to limp along in the really dense areas. You could try

Re: [osg-users] msvc90 dependencies

2008-12-02 Thread Tomlinson, Gordon
I stand corrected :), ( sitting actually ) Gordon __ Gordon Tomlinson Product Manager 3D Email : gtomlinson @ overwatch.textron.com __ (C): (+1) 571-265-2612 (W): (+1)

[osg-users] Win32 implementation of OpenThreads::Thread::testCancel raises exception

2008-12-02 Thread Gino van den Bergen
Hi All, The Win32 implementation of OpenThreads::Thread::testCancel terminates the current thread (setCancelModeDeferred) by raising an exception. This is not a big issue but merely annoying while debugging. I'm wondering whether raising an exception is the best way to terminate a thread under

Re: [osg-users] osgAudio/OpenAL/osgAL

2008-12-02 Thread Ümit Uzun
Hi Sukender, I have tried to compile openal-soft but there is strange error about #define AL_PRINT(...) do { pattern. Do you think it's right declaration? It is seen me odd. Errors are : error C2010: '.' : unexpected in macro formal parameter list error C2065: '__VA_ARGS__' : undeclared

Re: [osg-users] 《OSG编程入门指南》

2008-12-02 Thread Ümit Uzun
Hi FlySky, I tried to look website but unfortunately I don't understand any word :) I think there is only Chinese edition. And I believe that, Chinese edition can be read by much more people than English all over the world :) But we can't ;( Regards. 2008/12/2 Wang Rui [EMAIL PROTECTED] Hi

Re: [osg-users] Attaching Nodes (Characters Objects)

2008-12-02 Thread Smeenk, R.J.M. (Roland)
Rusty, is your animated human using skinned mesh animation (with a bone hierarchy deforming a skin geometry) or is it composed of separate geometries (linked together by a hierarchy of osg::Transforms)? -- Roland From: [EMAIL PROTECTED]

Re: [osg-users] osgAudio/OpenAL/osgAL

2008-12-02 Thread Ümit Uzun
Hi Sukender, But why do you say unfortunately I am using WindowsXP? Are you talking about testing under Mac OSX? I'm under Win32 too (I also work from time to time using a Ferodra linux distro, but I just don't have enough time). I thought you especially want contributers who is using MacOSX,

[osg-users] 4m 36 seconds!

2008-12-02 Thread Robert Osfield
Hi All, Got you're attention with a totally cryptic subject line :-) I've just rebuilt a computer for my dev work. The new components are: Intel Core i7-920 2.6GHz P6T Deluxe X58 Motherboard 6GB DRR3 It has a rather old Gefore 7800GT it for now, will soon be putting in my other

Re: [osg-users] osgAudio/OpenAL/osgAL

2008-12-02 Thread Sukender
Hi Ümit, That's good news! I'm new too to OpenAL such, but acutally I don't care since I only want to adapt osgAL so that it fits what Robert said: decoupling the interface (to osgAudio) and the implementation (to a plugin). But why do you say unfortunately I am using WindowsXP? Are you

Re: [osg-users] 《OSG编程入门指南》

2008-12-02 Thread Wang Rui
Hi Ümit, Why not start to learn Chinese. I believe there are many Getting Started with Chinese books. :-D Best Wishes Wang Rui 2008/12/2 Ümit Uzun [EMAIL PROTECTED] Hi FlySky, I tried to look website but unfortunately I don't understand any word :) I think there is only Chinese edition. And

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

2008-12-02 Thread Paul Melis
Robert Osfield wrote: Got you're attention with a totally cryptic subject line :-) I've just rebuilt a computer for my dev work. The new components are: Intel Core i7-920 2.6GHz P6T Deluxe X58 Motherboard 6GB DRR3 Nice one :) It has a rather old Gefore 7800GT it for now, will

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

2008-12-02 Thread Tomlinson, Gordon
Dang that's a lot faster than Windoze ... On detecting HT try pinging an ex-colleague of mine Ted Yezek Tyezek AT comcast DOT net He is a low level genius and knows all the ins and out of finding info out about the processor and what it can and cannot do/support etc Gordon

Re: [osg-users] 《OSG编程入门指南》

2008-12-02 Thread Ümit Uzun
Hi Rui. You are right :) I would learn most spoken Language all over the World which is Chinese! But at the mean time I think that, it's so easier writing this book in my own language Turkish than learning Chinese :) However thanks so much for your advice ;) Regards. 2008/12/2 Wang Rui [EMAIL

Re: [osg-users] Set projection matrix, opengl style?

2008-12-02 Thread Raymond de Vries
Hi Robert, Wow, thanks for you *very* quick respons. It works indeed, thanks. Cheers Raymond Robert Osfield wrote: Hi Raymond, You'll be able to pass them in unchanged. Robert. On Mon, Dec 1, 2008 at 4:17 PM, Raymond De Vries [EMAIL PROTECTED] wrote: Hi all, I think I have a simple

Re: [osg-users] osgAudio/OpenAL/osgAL

2008-12-02 Thread Sukender
Hi Ümit, This is a variadic macro. This is not in the C++ standard, as far as I know. I use VC8 (2005) Express and have no problem with it. This macro seems tu be used only for debugging (?), so maybe this could be removed on compilers that don't support it? Anyway, you should use VC8 since

Re: [osg-users] 《OSG编程入门指南》

2008-12-02 Thread FlySky
  Hi,Umit.   This book is written only in Chinese.If you is interested in Chinese,it is a good chances for learning Chinese:):):).   Thank you for reading the information of the book.   Good Luck!!! Write by

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

2008-12-02 Thread Wang Rui
Hi Robert, There is one article described the HT-support of Windows: http://www.microsoft.com/whdc/system/sysinternals/ht-windows.mspx You will find a download link at the right and section 6 of the document (Application Use of the Hyper-Threading Features in Windows) may help. Wang Rui

Re: [osg-users] VBOs Shared Geometry

2008-12-02 Thread Robert Osfield
Hi Sean, osg::Geometry provides an automatic VBO setup for you when you setUseVertexBufferObjects(true), but this is only done on a per Geometry basis, the code assumes that there is just one geometry in play. If you want to use assign VBO's to Array's individually then you'll need to assign the

Re: [osg-users] msvc90 dependencies

2008-12-02 Thread Brian Stewart
Hi Mattias, I have been meaning to do exactly what you have done, but have not gotten around to it. According to Microsoft, if your libraries have only plain C interfaces, and don't use STL internally, then you can get away with mixing libraries from different versions of their compiler. When I

Re: [osg-users] osgAudio/OpenAL/osgAL

2008-12-02 Thread Ümit Uzun
Hi Sukender, Thanks for your researching. As you say, I will install express edition visual studio 2005. Regards, 2008/12/2 Sukender [EMAIL PROTECTED] Hi Ümit, This is a variadic macro. This is not in the C++ standard, as far as I know. I use VC8 (2005) Express and have no problem with it.

Re: [osg-users] msvc90 dependencies

2008-12-02 Thread Sukender
Hi JS, IMHO your tone is too confrontational. Nothing is gained from this tone, as no one here as far as I know has any control over these issues. Wow... this was absultely *not* intentional; sorry if you found it that way. I was just aking some questions that maybe other share... Stupid

Re: [osg-users] msvc90 dependencies

2008-12-02 Thread Jean-Sébastien Guay
Hi Sukender, Wow... this was absultely *not* intentional; sorry if you found it that way. I was just aking some questions that maybe other share... OK, good to know. I may have misunderstood as well, but it did seem that way to me. Well, I was talking about Express (free) versions. I

Re: [osg-users] Spam: Re: msvc90 dependencies

2008-12-02 Thread Tanguy Fautre
Hi Brian, Are you sure about Boost 1.36 defining _SCL_SECURE=0 and _HAS_ITERATOR_DEBUGGING=0? I just made a search with _SCL_SECURE on Boost 1.36 sources and came up with nothing. Our experience with Visual Studio 2005 and higher is the following. By default, in Debug, VC defines:

[osg-users] Depth/Cull question

2008-12-02 Thread Vincent Bourdier
Hi, Still me and my rendering problems : I just need to set a node to be always rendered (or not). It needs to not depend on the Zbuffer/culling. Maybe I am confuse, but I have tried this : *osg::ref_ptrosg::StateSet state = node-getOrCreateStateSet();* *state-setMode(GL_CULL_FACE,

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

2008-12-02 Thread Robert Osfield
Hi Ferdi, On 12/2/08, Ferdi Smit [EMAIL PROTECTED] wrote: I thought a hyper-threaded CPU was simply exposed as two distinct CPUs, i.e. an intel i7 would show up as 8 CPUs? The flags in /proc/cpuinfo show ht for hyper-threading. No idea about windows. OpenThreads/OSG is reported 8 CPU's right

Re: [osg-users] flt-exporter: Index out of range in VertexPaletteManager

2008-12-02 Thread Andreas Goebel
Paul Martz schrieb: This is a missing feature. The FLT exporter doesn't support the use of deprecated VertexIndices. It looks at your DrawArrays PrimitiveSet and assumes there are 96 vertices, but there are only 25, so it flags this as an error. You are welcome to add support for VertexIndices

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

2008-12-02 Thread Robert Osfield
Follows in my cheat sheet that I just put together for installing all the necessary bits on a clean install like this on - just install an Debian based OS then open up a win-term and copy and paste and go. I am in awe of just how seamless packaging under Linux has become, it's simple, robust,

[osg-users] depth map calculation error

2008-12-02 Thread bouvier
Hi everyone, i have a question wich follows the thread Near and far calculation and depth maps (and a question about WoWvx). (http://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg16530.html) I meet the same problem as Chris Denham with a bad depth map calculation, so i try the fix

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

2008-12-02 Thread Ferdi Smit
As far as I know, the ht entry in the flags listing stands for hyper-threading support; however, it appears other CPUs also set this flag (my core 2 dual does, for example). The siblings and cpu cores fields are important then. Here it says 4 cores and 8 siblings, that is 2 virtual cores on

[osg-users] problems with CompositeViewer

2008-12-02 Thread David Oyarzun
Hi all, I think I have a problem with the render order of the CompositeViewer. I am trying to program a osg-based windowed application that shows a 3D animated object centered in the right middle of the window. Moreover, it has a background image that fills all the window, including the

Re: [osg-users] msvc90 dependencies

2008-12-02 Thread Mattias Helsing
Hi Brian, Sukender, all, Nice to see the response I expected when posting the first notice about this in sept. Either that post was a) in my imagination b) lost in space or c) not very clear ;) Sukender: #1 I didn't need VC90 (Express). My customers did and thats all the motivation I need #2

Re: [osg-users] flt-exporter: Index out of rangein VertexPaletteManager

2008-12-02 Thread Paul Martz
... sigh ... I didn´t know that this is deprecated. I just recently introduced the drawArrays, as I thought it was a good idea to share some vertices. DrawArrays are good things -- but not when the owning Geometry is configured to use VertexIndices/ColorIndices/NormalIndices/etc. They

Re: [osg-users] osgAudio/OpenAL/osgAL

2008-12-02 Thread Sukender
Just a quick note: if you use VC8, you'll need the Platform SDK (free). I'm not sure but I guess VC9 does not need it since it's included (to be confirmed). Sukender PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ Le Tue, 02 Dec 2008 16:55:00 +0100, Ümit Uzun

Re: [osg-users] problems with CompositeViewer

2008-12-02 Thread Robert Osfield
Hi David, The Camera::setRenderOrder(..) method is used to control order in which the cameras on a GraphicsWindow are rendered. In you application the wish to have a background image is not served well by creating a separate view for it. A far better solution would be to insert a Camera into

[osg-users] zNear and zFar making no difference

2008-12-02 Thread Jefferson Pinheiro
For performance reasons, I want to render only that which is close to my camera. I tried changing zNear and zFar, but they make absolutely no effect (I tried values such as 100,200; 10,20; 0.01;0.02). However, for instance, changing the FOV (which is 80 now), does changes the FOV. My world

Re: [osg-users] flt-exporter: Index out of rangein VertexPaletteManager

2008-12-02 Thread Robert Osfield
Hi Paul, On 12/2/08, Paul Martz [EMAIL PROTECTED] wrote: And what about the ShapeDrawables? Unlike Geometry, there is no way to get vertices from a ShapeDrawable. This inherent limitation makes it impossible to export a ShapeDrawable to FLT (or any other format that I'm aware of). I'd like

Re: [osg-users] zNear and zFar making no difference

2008-12-02 Thread Robert Osfield
HI Jefferson, The OSG by default doesn't enable the near and far planes for culling purposes, as doing so would require end users to accurately manage their near/far plane. To enable the near/far culling simple do: viewer-getCamera()-setCullingMode(osg::CullSettings::VIEW_FRUSTUM_CULLING |

Re: [osg-users] zNear and zFar making no difference

2008-12-02 Thread Jefferson Pinheiro
Ah, thanks, that solved the problem. However, there is now a new problem: is it possible to change this view distance for everything, except the skybox (so that the skybox is always rendered)? My skybox, currently, is on a Group, that is child of root. On Tue, Dec 2, 2008 at 5:05 PM, Robert

Re: [osg-users] flt-exporter: Index out of rangeinVertexPaletteManager

2008-12-02 Thread Paul Martz
ShapeDrawable does support the PrimitiveFunctor which makes it possible to get the vertex/primitive data out - this is how the intersection code is able to intersect with geometry. It's not computationally efficient as the vertex data is generated on demand, but it does at least enable

Re: [osg-users] [osg-submissions] osgdb_curl.dll does notcompile without wldap32.lib

2008-12-02 Thread Paul Martz
(Searching the osg-users archives for wldap32 revealed almost nothing, so cross posting to osg-users in case others are bitten by this...) Hi all -- I have just reviewed this entire thread, and apparently I'm the only one encountering a problem with the osgdb_curl's new wldap32 dependency. I'm

[osg-users] osgviewerWX vs. osgPython 2.2.0

2008-12-02 Thread Randolph Fritz
When I try to run this (new) example with this (old) library under IDLE, I get the following error in line 67: AttributeError: 'PySwigObject' object has no attribute 'windowResize' Followed by a crash Line 67 is: self.graphicswindow.getEventQueue().windowResize(0, 0, w, h) Far

Re: [osg-users] [osg-submissions] osgdb_curl.dll does notcompilewithout wldap32.lib

2008-12-02 Thread Paul Martz
I'm using VS 2008 and I've confirmed that wldap32.lib is indeed installed in the directory C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib. I should mention I have two Windows systems with VS8. Only one has the above-mentioned directory, and it is a system upon which I temporarily

Re: [osg-users] Attaching Nodes (Characters Objects)

2008-12-02 Thread Ryan Morris
It's a skinned mesh with bones. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] Siggraph Asia somebody there?

2008-12-02 Thread Art Tevs
Hi folks, will somebody of you be at the Siggraph Asia next week? cheers, Art ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] KDTree Picking (at an angle)

2008-12-02 Thread Sean Spicer
Hi Gang, I'm working on improving picking performance via KDTree, but I'm hitting an issue that is driving me nuts: If I pick a node from directly above (e.g. + Z axis) everything works great, and picking is *very* fast. If I pick at an angle, (e.g. from eye(1,1,1)) then picking is fast, but not

Re: [osg-users] msvc90 dependencies

2008-12-02 Thread Sukender
Hi JS, Thanks for detailed explanation. I had spoted that the previsous version link appeared on the VS9 web page. Sorry again for having overreacted... No problem. Moreover you started your sentence with IMHO :) . Well, this can easily happen with mails, since we often write quite quickly

Re: [osg-users] VPB: Partial terrain with vpbmaster, why?

2008-12-02 Thread Alejandro Aguilar Sierra
Hi Robert, I tried but no clue yet. How is going the VPB documentation project? Regard, -- A. On Sat, Nov 29, 2008 at 5:41 AM, Robert Osfield [EMAIL PROTECTED] wrote: HI Alejandro, Thanks for the test files. I can recreate the problem which is the good news. The bad news is that I don't

Re: [osg-users] Depth/Cull question

2008-12-02 Thread Ulrich Hertlein
Hi Vincent, Quoting Vincent Bourdier [EMAIL PROTECTED]: I just need to set a node to be always rendered (or not). It needs to not depend on the Zbuffer/culling. ... *osg::ref_ptrosg::StateSet state = node-getOrCreateStateSet();* *state-setMode(GL_CULL_FACE, osg::StateAttribute::ON);*

Re: [osg-users] Performance of dynamic_cast vs. virtual call

2008-12-02 Thread Ulrich Hertlein
Hello Sukender, Quoting Sukender [EMAIL PROTECTED]: Has anyone *benchmarked* the difference between a dynamic_cast and a virtual call to identify the type of a class? Before my benchmark, I guessed the virtual call was cheaper, but how much? I just knew it depends a lot on how types are