Re: [osg-users] Problem with deferred rendering

2011-12-08 Thread Micael Levesque
Hi, Thanks for the quick answers :D So the first thing I did was to setup two cull callbacks, the first one sets the camera inverse view matrix to a uniform for the geometry pass like this (camera-getRenderTargetCamera()-getInverseViewMatrix()) and is attached to the g-buffer camera. The

[osg-users] Problem with deferred rendering

2011-12-06 Thread Micael Levesque
Hi, I recently have been trying to get a deferred rendering system to work using osg. First of all in almost all the tutorials I've seen so far, the normal vector was multiplied by the normal matrix (gl_NormalMatrix), but when I did so in my geometry vertex shader, I had strange results

Re: [osg-users] Unable to find glTexSubImage2D alternative

2011-11-03 Thread Micael Levesque
Hi Robert, I knew that by creating an osg::Texture2D::SubloadCallback I could have control over the image loading but I need to be able to pick the luxels data and past it over the lightmap sample multiple time after load time, can I call the subload function multiple time? ... and since it's

[osg-users] Unable to find glTexSubImage2D alternative

2011-11-02 Thread Micael Levesque
Hi, I'm working on implementing VBSP lightmaps to OSG but I've come across a problem, I'm not able to copy the image data the way I used to in this function: Code: Vector2 insert(int id, const Vector2 size, const BSPFile::LightmapLuxel* luxels) { BSPLightmapNode*

[osg-users] Enable antialiasing in osgviewerWX example

2011-07-25 Thread Micael Levesque
Hi, I've been looking to integrate wxWidgets to my engine but I'm unable to get the antialiasing to work. Is it possible or is it a wxWidgets limitation :? Thank you! Cheers, Micael -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41617#41617

Re: [osg-users] [osgPlugins] VFS (PhysFS) support for .ive plugin

2011-06-15 Thread Micael Levesque
Alright here's my fix: Plugin Header: Code: #ifndef READERTERRAINLOD_H_ #define READERTERRAINLOD_H_ #include Common.h #include StreamBuf.h #include osgDB/Registry #include osgDB/FileNameUtils #include osgDB/FileUtils #include osgDB/ImageOptions class ReaderTerrainLOD : public

[osg-users] FBO Only render on certain angles

2011-06-14 Thread Micael Levesque
Hi, I've been stuck with this issue for a while now and I really have no idea what is causing it. I have a really basic scene that render just fine using the basic OpenGL rendering pipeline but when I enable the osg::Camera::FRAME_BUFFER_OBJECT tag with any osgPPU shader this is the result I

[osg-users] [osgPlugins] VFS (PhysFS) support for .ive plugin

2011-06-14 Thread Micael Levesque
Hi, I'm looking for a way to load both the Virtual Planet Builder main .ive file and the tiles .ive from a VFS (Virtual file system). I already have a VPB terrain running and a functional VFS system that works by adding .physfs at the end of a filepath like this

Re: [osg-users] [osgOcean] osgOcean with Silverlining

2011-06-14 Thread Micael Levesque
Would this work with osgPPU as well? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40057#40057 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] [osgPlugins] upgrades to osgdb_bsp

2011-06-14 Thread Micael Levesque
Where could I find the source of this? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40056#40056 ___ osg-users mailing list osg-users@lists.openscenegraph.org