[osg-users] Rendering to texture 1 from texture 0 and switching the textures

2010-08-03 Thread Honnet Vincent
Hi, I'm a new in using OpenSceneGraph, so if this problem was already solved, please send me the link. But I didn't find anything that could help me from the archive. My problem is the following: I would like to: 1- initialize the texture 0 2- modify the texture 1 by using the data from

Re: [osg-users] Different textures on each face of a geometry?

2010-08-03 Thread Trajce (Nick) Nikolov
Hi Ku, well, you will only see one side of the face at a time - front or back. So to not go very complex, you can add cull callback where based on the face normal you change the texture and the uvs. I think this can work -Nick On Mon, Aug 2, 2010 at 1:18 PM, Ku Krapox kukra...@gmail.com wrote:

Re: [osg-users] Rendering to texture 1 from texture 0 and switching the textures

2010-08-03 Thread J.P. Delport
Hi, start with osggameoflife, it has a simple ping-pong example. jp On 03/08/10 12:30, Honnet Vincent wrote: Hi, I'm a new in using OpenSceneGraph, so if this problem was already solved, please send me the link. But I didn't find anything that could help me from the archive. My problem is

Re: [osg-users] OSG and QT example

2010-08-03 Thread Jan Klimke
Hi, is there meanwhile a sort of standard way of integration osg views as qt widgets in a way that allows to handle them like normal widgets on the qt side ? Thank you! Cheers, Jan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30486#30486

[osg-users] [build] Problem building OsgWorks on Ubuntu

2010-08-03 Thread Axel Spirtaat
Hi all, i'm a newbie of OSG and quite a newbie on Linux. I've to create a small project for my studies using OsgBullet. Reading about it i've seen that it depends on OpenSceneGraph, OsgWorks and Bullet. I installed OpenSceneGraph using apt-get, and then i tryed to build install OsgWorks by

[osg-users] Particles not working

2010-08-03 Thread Jean-Francois Severe
Hi, I'm trying to add some particle effects in my project. I took the spaceship model shipped with osg, when I load it in a viewer it works fine. When I load the same model in my project, the hull of the ship appears, but not the particle effect. I'm using SDL as a window, and my code is

Re: [osg-users] VBO's and geometry instancing [SEC=UNCLASSIFIED]

2010-08-03 Thread Paul Martz
Paul Pocock wrote: Hi, Are there any caveats to be mindful of when trying to implement instancing using VBO's? I'm using a static tri stored in a VBO - however I'm facing massive bottlenecks in the frag shader - with obvious fillrate issues dragging my frames down drastically. and I can't see

[osg-users] threading and captureCurrentState

2010-08-03 Thread PCJohn
Hi, I see a threading issue when capturing current attributes in cull phase. My code placed in my derived ShadowTechnique::cull(): void MyShadowVolume::cull( osgUtil::CullVisitor cv ) { ref_ptr StateSet currentState = new StateSet; cv.getState()-captureCurrentState( *currentState );

Re: [osg-users] [build] Problem building OsgWorks on Ubuntu

2010-08-03 Thread Axel Spirtaat
For precise, i add the result of make command: Code: Scanning dependencies of target osgwTools [ 3%] Building CXX object src/osgwTools/CMakeFiles/osgwTools.dir/AbsoluteModelTransform.cpp.o In file included from

Re: [osg-users] [build] Problem building OsgWorks on Ubuntu

2010-08-03 Thread Paul Martz
I'd suggest discussing this on the osgWorks Google Group. But it appears to be the case that your osgWorks makefiles are, for some reason, unable to find your OSG installation. Without information on how you've configured the osgWorks CMake, or where you've installed OSG, it'll be difficult to

[osg-users] osgAnimation w hardware skinning clears model-stateset

2010-08-03 Thread Rob Smith
Hi, I had some serious problems getting a hardware-skinned model texured because the skinning-shader overwrites the statesete of the model. With that all loaded textures and other material-stuff were deleted. So here's a tiny diff, that makes use of the existing stateset: Code: Index:

Re: [osg-users] Rendering to texture 1 from texture 0 and switching the textures

2010-08-03 Thread Jeremy Moles
On Tue, 2010-08-03 at 12:30 +0200, Honnet Vincent wrote: Hi, I'm a new in using OpenSceneGraph, so if this problem was already solved, please send me the link. But I didn't find anything that could help me from the archive. My problem is the following: I would like to: 1- initialize

Re: [osg-users] Some basic questions about OSG before integrating

2010-08-03 Thread Igor Lebedev
Hi, Oh, i can't get a VBO from a loaded file...I need an example, how to directly access the arrays. Kinda stuck trying now i'm trying like that: blahblahblag[0] = (float*)temp-asGeode()-getDrawable(0)-asGeometry()-getVertexAttribArray(0)-getDataPointer(); and it crashes osg. it may seem

Re: [osg-users] threading and captureCurrentState

2010-08-03 Thread Wojciech Lewandowski
Hi, I don't think its allowed to call captureCurrentState in Cull stage. I am not certain about this, but would expect that captureCurrentState would read OpenGL state and update osg::State accordingly. If this is the case then it does require valid OpenGL context, which is only guaranteed

Re: [osg-users] [forum] forum error?

2010-08-03 Thread Art Tevs
Hi Marc, yeah, I know that problem it happens sometimes when your message contains for example code structures. The parser parsing that code sometimes get irritated and think that you want to post links. Unfortunately I cannot provide a solution for this now. Cheers, Art --

[osg-users] picking the 3-D co-ordinates of the point

2010-08-03 Thread Vipin Panwar
Hi, i m working with 3-D point data. After displaying the point data on osg screen, i need to retrieve the 3-D co-ordinates of the point on mouse click. Till now, i am able to retrieve x, y co-ordinates of mouse click. After getting x, y, i tried with PolyTopeIntersector... but this code is not

[osg-users] [osgPlugins] osgb and external models

2010-08-03 Thread Morten Hauknes
Hi, I'm using the new native osg binary format (osgb), and I have noticed that compared to the old binary native ive format external files are not converted. Is this something that will be/is supposed to work? At present when loading a openflight terrain tile any building models is not

[osg-users] [ANN] ScenomePlatform

2010-08-03 Thread Mike Richardson
Scenomics LLC is excited to announce the release of ScenomePlatform. Designed for companies that develop OpenGL-based and OpenSceneGraph-based graphics applications for entertainment, visualization, and geographic information services, ScenomePlatform's infrastructure enables developers to

Re: [osg-users] StandardShadowMap on ATI

2010-08-03 Thread Bradley Baker Searles
Alright, so just wanted to post the code for the overrides I did, just in case anyone stumbles upon this forum entry and wants to see precisely what I did. It's a bit different than the example that Wojtek posted in this thread (as referenced above):

Re: [osg-users] OSG and QT example

2010-08-03 Thread Don Leich
The best overview comes from examples/osgQtWidgets/osgQtWidgets.cpp... //We would need to document the following somewhere in order to guide people on //what they need to use... // //-- //There are two angles to consider. // //1. If someone wants a

Re: [osg-users] VBO's and geometry instancing [SEC=UNCLASSIFIED]

2010-08-03 Thread Paul Pocock
Thanks for the reply Paul, Turns out my billboarding calculations in the vertex shader were screwing everything up. Works fine now. Regards On 08/03/2010 11:32 PM, Paul Martz wrote: Paul Pocock wrote: Hi, Are there any caveats to be mindful of when trying to implement instancing using

Re: [osg-users] [osgPlugins] osgb and external models

2010-08-03 Thread Wang Rui
Hi Morten, The osgb format is still in its early time so it may not support all the functionalities required by various developers. But it is always appreciated if somebody could provide suggestions and code to improve this new native format. It depends on wrappers of the