On Wednesday, December 9, 2020 at 9:03:47 PM UTC-5 mirr...@gmail.com
> wrote:
>
>> env is win10 osg3.6.4 GTX1660
>> [image: QQ图片20201210095944.jpg]
>>
>> osg::ref_ptr createProgram()
>> {
>> osg::Program *program = new osg::Program();
>>
sys win10 osg3.6.4
--
You received this message because you are subscribed to the Google Groups
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to osg-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
Win10 GTX3.x osg3.6.4
--
You received this message because you are subscribed to the Google Groups
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to osg-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
win10 gtx1080 osg3.6.4
osg::ref_ptr image =
osgDB::readImageFile( "picture.bmp" );
osg::ref_ptr texture = new osg::Texture2D;
texture->setImage( image.get() );
--
You received this message because you are subscribed to the Google Groups
"OpenSceneGraph Users" group.
To unsubscribe from
void pick(const osgGA::GUIEventAdapter& ea, osgViewer::Viewer* viewer)
{
osgUtil::PolytopeIntersector* picker;
double mx = ea.getXnormalized();
double my = ea.getYnormalized();
double w = 0.05;
double h = 0.05;
Thank you very much, but this method only works for four point texture
coordinates
在2021年1月19日星期二 UTC+8 下午10:32:48 写道:
> This should do a 180 rotation:
> image->flipVertical();
> image->flipHorizontal();
> Laurens.
>
>
> On Tue, Jan 19, 2021 at 1:21 PM mirr...@gmai
W10 gtx3.x OSG3.6.4
osgGA::NodeTrackerManipulator::TrackerMode trackerMode =
osgGA::NodeTrackerManipulator::NODE_CENTER_AND_AZIM;
osgGA::NodeTrackerManipulator::RotationMode rotationMode =
osgGA::NodeTrackerManipulator::TRACKBALL;
osg::ref_ptr glider =
Win10 GTX3.x osg3.6.4
// test for read image
osg::ref_ptr texture2d = new osg::Texture2D;
osg::ref_ptr img = new osg::Image;
img=osgDB::readImageFile("C:\\Users\\Public\\Pictures\\Sample
Pictures\\Tulips.jpg");
osg::ref_ptr img2 = new osg::Image;
Thank you for your question and answer.I have tested Geode to add OSG
::Geometry and this error will also occur?
在2021年3月8日星期一 UTC+8 下午5:25:41 写道:
> Hi ?
>
> There isn't any way to know what settings are provoking these errors, the
> best thing you can do is compile a debug version of the OSG
win10
//
osg::Matrixd proj = osg::Matrixd::identity();
proj.makePerspective(60, frustumAspectWidth/frustumAspectHeight,
frustumNear, frustumFar);
//
const double mynear = proj(3, 2) / (proj(2, 2) - 1.0);
const double myfar = proj(3, 2) / (1.0 + proj(2, 2));
//
win10
BoundingBox bb;
bb._min = osg::vec3d(0,0,0);
bb._max = osg::vec3d(1000,1000,1000);
Polytope poly;
poly.setToBoundingBox(bb);
//
osg::ref_ptr picker = new
osgUtil::PolytopeIntersector(osgUtil::Intersector::VIEW,poly);
picker->setPrecisionHint(osgUtil::Intersector::USE_DOUBLE_CALCULATIONS);
Sorry, I don't have Internet in my work environment.Unable to provide
complete test information
在2021年3月16日星期二 UTC+8 下午5:20:25 写道:
> Do you not wonder yourself, why hardy anyone answers to you?
>
> If you put a bit more work into your messages, then this might change
> quite a bit, because
win10
//
osg::Matrixd proj = osg::Matrixd::identity();
proj.makePerspective(60, frustumAspectWidth/frustumAspectHeight,
frustumNear, frustumFar);
//
const double mynear = proj(3, 2) / (proj(2, 2) - 1.0);
const double myfar = proj(3, 2) / (1.0 + proj(2, 2));
//
const
win10
--
You received this message because you are subscribed to the Google Groups
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to osg-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
win10
--
You received this message because you are subscribed to the Google Groups
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to osg-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
win10
--
You received this message because you are subscribed to the Google Groups
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to osg-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
()
{
OpenThreads::ScopedReadLock locker(_osgMutex);
if (_isFirstFrame) {
_isFirstFrame = false;
m_renderer->getCamera()->getGraphicsContext()->setDefaultFboId(defaultFramebufferObject());
}
m_renderer->frame();
}
在2021年2月8日星期一 UTC+8 下午9:30:15 写道:
> On Mon, 8 Feb 2021 at 13:21, mirr...@g
17 matches
Mail list logo