[osg-users] SubloadCallback and PBO cleanup

2011-04-01 Thread Yurii Monakov
Hi all! In my OSG application I need to continuously update small parts of 2D texture. So I use osg::Texture2D::SubloadCallback: class MyCallback : public osg::Texture2D::SubloadCallback { /* initialize texture */ void load(const Texture2D texture,State state) const {

Re: [osg-users] SubloadCallback and PBO cleanup

2011-04-01 Thread Yurii Monakov
Hi Mikhail, Thank you for your answer. So I should inherit from osg::BufferObject class and implement compileObject() method? Yurii 2011/4/1 Mikhail I. Izmestev izmmish...@gmail.com: 01.04.2011 11:41, Yurii Monakov wrote: And everything works fine until the cleanup stage. In the code above

Re: [osg-users] SubloadCallback and PBO cleanup

2011-04-01 Thread Yurii Monakov
Thank you! Yurii. 2011/4/1 Mikhail I. Izmestev izmmish...@gmail.com: On 04/01/11 12:02, Yurii Monakov wrote: Hi Mikhail, Thank you for your answer. So I should inherit from osg::BufferObject class and implement compileObject() method? I think in your case you can try to use osg

Re: [osg-users] background visible on point sprite spheres

2010-12-17 Thread Yurii Monakov
writes during rendering. Best regards, Yurii Monakov 2010/12/16 Yurii Monakov monako...@gmail.com: Hi Don! I think that you can try enabling GL_BLEND mode in your StateSet (if it is not already enabled). Best regards, Yurii Monakov 2010/12/16 Don Leich d...@ilight.com: Hi all, I've got

Re: [osg-users] background visible on point sprite spheres

2010-12-16 Thread Yurii Monakov
Hi Don! I think that you can try enabling GL_BLEND mode in your StateSet (if it is not already enabled). Best regards, Yurii Monakov 2010/12/16 Don Leich d...@ilight.com: Hi all, I've got a problem that I haven't been able to find a solution for and could use some help.  I'm using

Re: [osg-users] Texture subloads

2010-12-15 Thread Yurii Monakov
need this callback to be called every frame regardless of parent node's spatial orientation. Thank you! Best regards, Yurii Monakov ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users

[osg-users] Texture subloads

2010-12-13 Thread Yurii Monakov
and glTexSubImage2D), but I can't figure out if there is a way do this with OSG? Maybe subclassing osg::Texture2D or something? Thank you! Best regards, Yurii Monakov ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org

Re: [osg-users] [build] undefined symbol: _ZN11OpenThreads6AtomicmmEv

2010-10-29 Thread Yurii Monakov
Hi Huron, I've experienced the same problems with unresolved symbols from OpenTreads. The problem was solved by full rebuild of OSG. Just delete CMake cache, reconfigure and build. Once I've fought unexpected runtime errors (segmentation faults) in simple OSG apps (even in examples) and they

Re: [osg-users] Drawing complex labels of 3D points in screen space

2010-10-22 Thread Yurii Monakov
...@csir.co.za: Hi, On 21/10/10 18:26, Yurii Monakov wrote: Hi All After some googling I've discovered an AutoTransform node )) When setting it's auto-rotate mode to ROTATE_TO_SCREEN and setAutoScaleToScreen(true) it gives me exactly what I want. The only problem is that after looking

Re: [osg-users] Drawing complex labels of 3D points in screen space

2010-10-21 Thread Yurii Monakov
Hi All After some googling I've discovered an AutoTransform node )) When setting it's auto-rotate mode to ROTATE_TO_SCREEN and setAutoScaleToScreen(true) it gives me exactly what I want. The only problem is that after looking at AutoTransform node I noticed that it does a lot of computation

[osg-users] Drawing complex labels of 3D points in screen space

2010-10-20 Thread Yurii Monakov
Hi All Consider we have a lot of points in 3D and we need to render some additional information around them in screen space. For example, for very 3D point we need to render rectangular panel (with dimensions Mpx x Npx), line from this panel to the point in 3D and some text on the panel. So we

Re: [osg-users] vsync false doesn't change frame rate

2010-09-05 Thread Yurii Monakov
Hi Thomas. VSync could be switched on explicitly in the driver settings overriding any application setting. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] happy to execute any little task, and glad to be of use; but he was in

2010-08-21 Thread Yurii Monakov
was stranded in the middle of a station with a trunk he could hardly http://sites.google.com/site/ligmllgqaiocaqtaajnf/koxnotgldjzkjaxkf ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] (no subject)

2010-07-24 Thread Yurii Monakov
http://sites.google.com/site/gGtjM8SvxU11/yhhyksvy ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] 1-bit texture for shader

2010-07-14 Thread Yurii Monakov
Hi! You can use 8-bit mask texture filled with zeros and 0xFF's (like your bitmask). Then just multiply texels of source texture and mask texture. Texture format could be GL_ALPHA and internal format - GL_ALPHA8. ___ osg-users mailing list

Re: [osg-users] New way to workaround MSVC False Positives

2009-07-31 Thread Yurii Monakov
, Yurii Monakov 2009/7/31 Torben Dannhauer z...@saguaro-fight-club.de Hi, My Workaround bases also on MFC, but seems to smaller: My standart project started as an empty console application without MFC. If I enabled only the memory leak detection, i get lots of memory leak notification because

Re: [osg-users] Website not reachable from france and austria

2009-05-31 Thread Yurii Monakov
And Russia :) 2009/6/1 Alan Purvis alanpur...@eircom.net And Ireland. On 31 May 2009, at 17:45, Sebastian Messerschmidt wrote: same for germany Hi, i can access: blog.openscenegraph.org forum.openscenegraph.org but not www.openscenegraph.org / openscenegraph.org Seems to be a

Re: [osg-users] The normal of my screen

2009-04-28 Thread Yurii Monakov
Computing (center - eye).normalize() we are doing unnecessary work. Look direction could be obtained directly from camera's matrix. 2009/4/28 Jean-Sébastien Guay jean-sebastien.g...@cm-labs.com Hi Mangu, If the the center is what I look at, so basically it's the normal of the plane (

Re: [osg-users] The normal of my screen

2009-04-27 Thread Yurii Monakov
I am not sure about matrix layout convention used in OSG, but if it uses OpenGL convention you can take third row of camera's view matrix (or third column otherwise). PS. Supposing that row (column) index starts with 1. 2009/4/27 Mangu Liok mangul...@yahoo.com Hi, If I want to know the

Re: [osg-users] osgdem write permission error

2009-04-20 Thread Yurii Monakov
, but we're all running VPB just fine so can't reproduce the problems you are seeing. Robert. On Thu, Apr 16, 2009 at 10:39 AM, Yurii Monakov monako...@gmail.comwrote: Hi All! I have a problem generating whole planet elevation database from SRTM 1 km source ( 43200x21600 ) and custom *.vrt

Re: [osg-users] osgdem write permission error

2009-04-19 Thread Yurii Monakov
Really I have no ideas... ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] osgdem write permission error

2009-04-16 Thread Yurii Monakov
Hi All! I have a problem generating whole planet elevation database from SRTM 1 km source ( 43200x21600 ) and custom *.vrt file: VRTDataset rasterXSize=43200 rasterYSize=21600 VRTRasterBand dataType=Int16 band=1 subClass=VRTRawRasterBand ColorInterpGray/ColorInterp ByteOrderMSB/ByteOrder