[osg-users] Simulating Light Lobes with Projected Textures (Range mapping)
Hi Community, I have F+ lighting system and I am about to "integrate" projected textures to act as lights instead of the original physics based lighting. I have managed to have the projected textures to work nicely and the only thing left is light (the projected texture) attenuation to fully simulate lights. The shaders are very simple ( I can post them here if needed ). The thing that hurts my head is the construction of the texture matrix - I am updating it via uniform update callback where the computation is done, it is something like: osg::Matrixf m = osg::Matrixf::inverse(worldMatrix) * viewMatrix * osg::Matrixf::perspective(120, 1.0, 0.001, 10); For reasons I guess the far/near planes are not being taken into account, if that is the way of how this texture matrix calculus should work Anyway, I am struggling with this and will appreciate any hints or insights Thanks a bunch as always! Cheers, Nick -- trajce nikolov nick ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Potential fix for osgDB MSVC linkage issues (FORCE:MULTIPLE needed)
Hi, guys! The fix works! I had linker error at integration of MYGUI associated with fstream, now everything is all right. Thank you! Cheers, Nickolai -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=68352#68352 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Get monitor resolutions on extended desktops
@roberto Thanks for explaining. So maybe i cannot blame osg for this. Under Ubuntu xrandr and Nvidia X Server Settings gives me also one screen with 3840x1200 (1920x1200 * 2). Connected two monitors, one via DVI and one via DP. Im not an expert with this internal display behaviours and the linux api, so i have to hack around it. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=68348#68348 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org