OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Problem to load images


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
romulogcerqueira
Newbie


Joined: 11 Jun 2015
Posts: 18

PostPosted: Mon Aug 07, 2017 10:36 pm    Post subject:
Problem to load images
Reply with quote

Hi,

currently I have a problem to load and process image files in my OSG c++ code. I got the message:

Code:
Warning: Error in reading to "/home/romulo/textures/gray_texture_d.jpg".


However, this image exists and I can open it using:

Code:
$ osgviewer --image /home/romulo/textures/gray_texture_d.jpg


What might have been?

...

Thank you!

Cheers,
Rômulo[/code]
Back to top
View user's profile Send private message
boulbo (Nabil)
Newbie


Joined: 18 Jul 2017
Posts: 3

PostPosted: Tue Aug 08, 2017 7:40 am    Post subject:
Problem to load images
Reply with quote

Hello, you should add the osgdb_jpeg.dll to the exe folder.

On 8 August 2017 at 00:36, Rômulo Cerqueira < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi,

currently I have a problem to load and process image files in my OSG c++ code. I got the message:


Code:
Warning: Error in reading to "/home/romulo/textures/gray_texture_d.jpg".



However, this image exists and I can open it using:


Code:
$ osgviewer --image /home/romulo/textures/gray_texture_d.jpg



What might have been?

...

Thank you!

Cheers,
Rômulo[/code]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=71379#71379





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




--
Nabil Khalifa

------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message Send e-mail
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11021

PostPosted: Thu Aug 10, 2017 5:54 am    Post subject:
Problem to load images
Reply with quote

Hi Rômulo,


Given osgivewer --image is work then it suggests that the jpeg file itself is OK, and the the OSG's jpeg plugin is OK and being found on loading.


This suggests the error coming from your application for some reason.  Could you post a code snippet for others to review to see if we can spot the cause of the problem.


Also enable verbose debugging to see if this reveals anything i.e.


    export OSG_NOTIFY_LEVEL=DEBUG

    osgviewer --image /home/romulo/textures/gray_texture_d.jpg


Finally when posting error messages could you make sure you copy and paste them directly into the email to make it possible to grep the OSG sources for the error message.  This would help with pinpointing where the error message is being generated and might provide some additional clues.


Robert.





On 7 August 2017 at 23:36, Rômulo Cerqueira < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi,

currently I have a problem to load and process image files in my OSG c++ code. I got the message:


Code:
Warning: Error in reading to "/home/romulo/textures/gray_texture_d.jpg".



However, this image exists and I can open it using:


Code:
$ osgviewer --image /home/romulo/textures/gray_texture_d.jpg



What might have been?

...

Thank you!

Cheers,
Rômulo[/code]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=71379#71379





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Trajce Nikolov NICK
Guest





PostPosted: Thu Aug 10, 2017 2:35 pm    Post subject:
Problem to load images
Reply with quote

Hi Robert, Romulo,


I have the exact same behavior with 3.5.5 with png files. Curious what this can be


Nick


On Thu, Aug 10, 2017 at 7:53 AM, Robert Osfield < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi Rômulo,


Given osgivewer --image is work then it suggests that the jpeg file itself is OK, and the the OSG's jpeg plugin is OK and being found on loading.


This suggests the error coming from your application for some reason.  Could you post a code snippet for others to review to see if we can spot the cause of the problem.


Also enable verbose debugging to see if this reveals anything i.e.


    export OSG_NOTIFY_LEVEL=DEBUG

    osgviewer --image /home/romulo/textures/gray_texture_d.jpg


Finally when posting error messages could you make sure you copy and paste them directly into the email to make it possible to grep the OSG sources for the error message.  This would help with pinpointing where the error message is being generated and might provide some additional clues.


Robert.





On 7 August 2017 at 23:36, Rômulo Cerqueira < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi,

currently I have a problem to load and process image files in my OSG c++ code. I got the message:


Code:
Warning: Error in reading to "/home/romulo/textures/gray_texture_d.jpg".



However, this image exists and I can open it using:


Code:
$ osgviewer --image /home/romulo/textures/gray_texture_d.jpg



What might have been?

...

Thank you!

Cheers,
Rômulo[/code]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=71379#71379





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org






_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




--
trajce nikolov nick

------------------
Post generated by Mail2Forum
Back to top
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11021

PostPosted: Thu Aug 10, 2017 3:09 pm    Post subject:
Problem to load images
Reply with quote

Hi Nick,

On 10 August 2017 at 15:34, Trajce Nikolov NICK < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
I have the exact same behavior with 3.5.5 with png files. Curious what this can be







And.... any information to help us work out what it might be?? 



I can't help anyone with so little to go on.  Might as well kick tyres as it'll be just as useful.


So please, run OSG_NOTiFY_LEVEL=DEBUG and let us know what the output is.  Publish the problem image files and a code snippet that can reproduce the issue.  Also information on what OS/build tools/OSG version that work don't work as really useful.



Robert.

------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Trajce Nikolov NICK
Guest





PostPosted: Thu Aug 10, 2017 3:11 pm    Post subject:
Problem to load images
Reply with quote

Hi Robert,


I will ... I am in the middle of setting up my laptop with fresh install, once I am ready I will do so


On Thu, Aug 10, 2017 at 5:08 PM, Robert Osfield < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi Nick,

On 10 August 2017 at 15:34, Trajce Nikolov NICK < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
I have the exact same behavior with 3.5.5 with png files. Curious what this can be







And.... any information to help us work out what it might be?? 



I can't help anyone with so little to go on.  Might as well kick tyres as it'll be just as useful.


So please, run OSG_NOTiFY_LEVEL=DEBUG and let us know what the output is.  Publish the problem image files and a code snippet that can reproduce the issue.  Also information on what OS/build tools/OSG version that work don't work as really useful.



Robert.






_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




--
trajce nikolov nick

------------------
Post generated by Mail2Forum
Back to top
romulogcerqueira
Newbie


Joined: 11 Jun 2015
Posts: 18

PostPosted: Sun Aug 13, 2017 5:15 am    Post subject:
Reply with quote

Hi Trace and Nick,

this attachment is my output when I perform the following commands:

Code:
export OSG_NOTIFY_LEVEL=DEBUG
osgviewer --image gray_texture_d.jpg



...

Thank you!

Cheers,
Rômulo
Back to top
View user's profile Send private message
romulogcerqueira
Newbie


Joined: 11 Jun 2015
Posts: 18

PostPosted: Mon Aug 14, 2017 1:16 am    Post subject:
Reply with quote

Hi Nick and Robert,

the attached file is the output from my C++ program. Any suggestions to solve that?

Thanks in advance,

Rômulo Cerqueira
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11021

PostPosted: Mon Aug 14, 2017 6:49 pm    Post subject:
Problem to load images
Reply with quote

Hi Rômulo,

The only thing the debug output tells us is that your assert is failing, but not why the pointers you are testting are NULL.  You haven't posted the code that is meant to set these pointers so there is no way we can help you, we aren't omnipresent gods


Please post the code you are using to set up the pointers/read the images.


Robert.


On 14 August 2017 at 02:16, Rômulo Cerqueira < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi Nick and Robert,

the attached file is the output from my C++ program. Any suggestions to solve that?

Thanks in advance,

Rômulo Cerqueira

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=71407#71407




Attachments:
http://forum.openscenegraph.org//files/out_639.txt


_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
romulogcerqueira
Newbie


Joined: 11 Jun 2015
Posts: 18

PostPosted: Wed Aug 16, 2017 1:57 am    Post subject:
Reply with quote

Hi Robert,

thanks for your reply. Follows my code:
Code:

#define BOOST_TEST_MODULE "NormalMapping_test"
#include <boost/test/unit_test.hpp>

// OpenSceneGraph includes
#include <osg/Geode>
#include <osg/Group>
#include <osg/Image>
#include <osg/ShapeDrawable>
#include <osg/StateSet>
#include <osg/Texture2D>
#include <osgDB/ReadFile>
#include <osgViewer/Viewer>

// Rock includes
#include <normal_depth_map/NormalDepthMap.hpp>
#include <normal_depth_map/ImageViewerCaptureTool.hpp>

// OpenCV includes
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/contrib/contrib.hpp>

// C++ includes
#include <iostream>

using namespace normal_depth_map;

BOOST_AUTO_TEST_SUITE(NormalMapping)


// add one object to scene (sphere)
void addSimpleObject(osg::ref_ptr<osg::Group> root) {
    osg::ref_ptr<osg::Geode> geode = new osg::Geode();
    geode->addDrawable(new osg::ShapeDrawable(new osg::Sphere(osg::Vec3(0,0,-14), 5)));
    root->addChild(geode);
    root->getChild(0)->asGeode()->addDrawable(geode->getDrawable(0));
}

// define texture attributes
osg::ref_ptr<osg::StateSet> insertNormalMapTexture(osg::ref_ptr<osg::Image> diffuseImage, osg::ref_ptr<osg::Image> normalImage) {
    osg::ref_ptr<osg::Texture2D> diffuse = new osg::Texture2D();
    osg::ref_ptr<osg::Texture2D> normal = new osg::Texture2D();

    diffuse->setImage(diffuseImage);
    diffuse->setDataVariance(osg::Object::DYNAMIC);
    diffuse->setFilter(osg::Texture::MIN_FILTER, osg::Texture::LINEAR_MIPMAP_LINEAR);
    diffuse->setFilter(osg::Texture::MAG_FILTER, osg::Texture::LINEAR);
    diffuse->setWrap(osg::Texture::WRAP_S, osg::Texture::REPEAT);
    diffuse->setWrap(osg::Texture::WRAP_T, osg::Texture::REPEAT);
    diffuse->setResizeNonPowerOfTwoHint(false);
    diffuse->setMaxAnisotropy(8.0f);

    normal->setImage(normalImage);
    normal->setDataVariance(osg::Object::DYNAMIC);
    normal->setFilter(osg::Texture::MIN_FILTER, osg::Texture::LINEAR_MIPMAP_LINEAR);
    normal->setFilter(osg::Texture::MAG_FILTER, osg::Texture::LINEAR);
    normal->setWrap(osg::Texture::WRAP_S, osg::Texture::REPEAT);
    normal->setWrap(osg::Texture::WRAP_T, osg::Texture::REPEAT);
    normal->setResizeNonPowerOfTwoHint(false);
    normal->setMaxAnisotropy(8.0f);

    osg::ref_ptr<osg::StateSet> normalState = new osg::StateSet();
    normalState->setTextureAttributeAndModes(TEXTURE_UNIT_DIFFUSE, diffuse, osg::StateAttribute::ON);
    normalState->setTextureAttributeAndModes(TEXTURE_UNIT_NORMAL, normal, osg::StateAttribute::ON);
    return normalState;
}

// get texture files
void loadTextures(osg::ref_ptr<osg::Group> root, TextureImages textureId) {
    osg::ref_ptr<osg::Image> diffuseImage = osgDB::readImageFile("/home/romulo/dev.bir.master/simulation/normal_depth_map/textures/gray_texture_d.jpg");
    osg::ref_ptr<osg::Image> normalImage = osgDB::readImageFile("/home/romulo/dev.bir.master/simulation/normal_depth_map/textures/gray_texture_n.jpg");

    // texture properties
    osg::ref_ptr<osg::Geode> geode = new osg::Geode();
    geode->setStateSet(insertNormalMapTexture(diffuseImage, normalImage));
    root->addChild(geode);
}

// create scene with normal mapping and one object
osg::ref_ptr<osg::Group> createNormalMapSimpleScene() {
    osg::ref_ptr<osg::Group> root = new osg::Group();
    osg::ref_ptr<osg::StateSet> stateset = new osg::StateSet();
    stateset->addUniform(new osg::Uniform("diffuseTexture", TEXTURE_UNIT_DIFFUSE));
    stateset->addUniform(new osg::Uniform("normalTexture", TEXTURE_UNIT_NORMAL));
    stateset->setDataVariance(osg::Object::STATIC);
    root->setStateSet(stateset);

    loadTextures(root, TEXTURE_GRAY);
    addSimpleObject(root);
    return root;
}

// compute the normal depth map for a osg scene
cv::Mat computeNormalDepthMap(osg::ref_ptr<osg::Group> root, float maxRange, float fovX, float fovY) {
    uint height = 500;

    // normal depth map
    NormalDepthMap normalDepthMap(maxRange, fovX * 0.5, fovY * 0.5);
    ImageViewerCaptureTool capture(fovY, fovX, height);
    capture.setBackgroundColor(osg::Vec4d(0, 0, 0, 0));
    normalDepthMap.addNodeChild(root);

    // grab scene
    osg::ref_ptr<osg::Image> osgImage = capture.grabImage(normalDepthMap.getNormalDepthMapNode());
    osg::ref_ptr<osg::Image> osgDepth = capture.getDepthBuffer();
    cv::Mat cvImage = cv::Mat(osgImage->t(), osgImage->s(), CV_32FC3, osgImage->data());
    cv::Mat cvDepth = cv::Mat(osgDepth->t(), osgDepth->s(), CV_32FC1, osgDepth->data());
    cvDepth = cvDepth.mul( cv::Mat1f(cvDepth < 1) / 255);

    std::vector<cv::Mat> channels;
    cv::split(cvImage, channels);
    channels[1] = cvDepth;
    cv::merge(channels, cvImage);
    cv::cvtColor(cvImage, cvImage, cv::COLOR_RGB2BGR);
    cv::flip(cvImage, cvImage, 0);

    return cvImage.clone();
}

BOOST_AUTO_TEST_CASE(differentNormalMaps_TestCase) {
    float maxRange = 20.0f;
    float fovX = M_PI / 3;  // 60 degrees
    float fovY = M_PI / 3;  // 60 degrees

    osg::ref_ptr<osg::Group> normalRoot = createNormalMapSimpleScene();

    cv::Mat cvNormal = computeNormalDepthMap(normalRoot, maxRange, fovX, fovY);

    plotSonarTest(cvNormal, maxRange, fovX * 0.5);
}

BOOST_AUTO_TEST_SUITE_END()



...

Thank you!

Cheers,
Rômulo
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11021

PostPosted: Wed Aug 16, 2017 6:26 am    Post subject:
Problem to load images
Reply with quote

HI Rômulo,


I can't spot anything specific in your code that might cause a problem loading images.  It could be the paths to the files, personally I'd not hard-wire the filenames even for early code. The other thing is perhaps there is something odd about you are building/linking the OSG.

The best I can recommend is to create a small example code that you can test just the image loading code, once this is works compare it to the rest of your application.  The OSG examples might be something to use as a base.


Robert.


On 16 August 2017 at 02:58, Rômulo Cerqueira < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi Robert,

thanks for your reply. Follows my code:

Code:

#define BOOST_TEST_MODULE "NormalMapping_test"
#include <boost/test/unit_test.hpp>

// OpenSceneGraph includes
#include <osg/Geode>
#include <osg/Group>
#include <osg/Image>
#include <osg/ShapeDrawable>
#include <osg/StateSet>
#include <osg/Texture2D>
#include <osgDB/ReadFile>
#include <osgViewer/Viewer>

// Rock includes
#include <normal_depth_map/NormalDepthMap.hpp>
#include <normal_depth_map/ImageViewerCaptureTool.hpp>

// OpenCV includes
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/contrib/contrib.hpp>

// C++ includes
#include <iostream>

using namespace normal_depth_map;

BOOST_AUTO_TEST_SUITE(NormalMapping)


// add one object to scene (sphere)
void addSimpleObject(osg::ref_ptr<osg::Group> root) {
    osg::ref_ptr<osg::Geode> geode = new osg::Geode();
    geode->addDrawable(new osg::ShapeDrawable(new osg::Sphere(osg::Vec3(0,0,-14), 5)));
    root->addChild(geode);
    root->getChild(0)->asGeode()->addDrawable(geode->getDrawable(0));
}

// define texture attributes
osg::ref_ptr<osg::StateSet> insertNormalMapTexture(osg::ref_ptr<osg::Image> diffuseImage, osg::ref_ptr<osg::Image> normalImage) {
    osg::ref_ptr<osg::Texture2D> diffuse = new osg::Texture2D();
    osg::ref_ptr<osg::Texture2D> normal = new osg::Texture2D();

    diffuse->setImage(diffuseImage);
    diffuse->setDataVariance(osg::Object::DYNAMIC);
    diffuse->setFilter(osg::Texture::MIN_FILTER, osg::Texture::LINEAR_MIPMAP_LINEAR);
    diffuse->setFilter(osg::Texture::MAG_FILTER, osg::Texture::LINEAR);
    diffuse->setWrap(osg::Texture::WRAP_S, osg::Texture::REPEAT);
    diffuse->setWrap(osg::Texture::WRAP_T, osg::Texture::REPEAT);
    diffuse->setResizeNonPowerOfTwoHint(false);
    diffuse->setMaxAnisotropy(8.0f);

    normal->setImage(normalImage);
    normal->setDataVariance(osg::Object::DYNAMIC);
    normal->setFilter(osg::Texture::MIN_FILTER, osg::Texture::LINEAR_MIPMAP_LINEAR);
    normal->setFilter(osg::Texture::MAG_FILTER, osg::Texture::LINEAR);
    normal->setWrap(osg::Texture::WRAP_S, osg::Texture::REPEAT);
    normal->setWrap(osg::Texture::WRAP_T, osg::Texture::REPEAT);
    normal->setResizeNonPowerOfTwoHint(false);
    normal->setMaxAnisotropy(8.0f);

    osg::ref_ptr<osg::StateSet> normalState = new osg::StateSet();
    normalState->setTextureAttributeAndModes(TEXTURE_UNIT_DIFFUSE, diffuse, osg::StateAttribute:ShockedN);
    normalState->setTextureAttributeAndModes(TEXTURE_UNIT_NORMAL, normal, osg::StateAttribute:ShockedN);
    return normalState;
}

// get texture files
void loadTextures(osg::ref_ptr<osg::Group> root, TextureImages textureId) {
    osg::ref_ptr<osg::Image> diffuseImage = osgDB::readImageFile("/home/romulo/dev.bir.master/simulation/normal_depth_map/textures/gray_texture_d.jpg");
    osg::ref_ptr<osg::Image> normalImage = osgDB::readImageFile("/home/romulo/dev.bir.master/simulation/normal_depth_map/textures/gray_texture_n.jpg");

    // texture properties
    osg::ref_ptr<osg::Geode> geode = new osg::Geode();
    geode->setStateSet(insertNormalMapTexture(diffuseImage, normalImage));
    root->addChild(geode);
}

// create scene with normal mapping and one object
osg::ref_ptr<osg::Group> createNormalMapSimpleScene() {
    osg::ref_ptr<osg::Group> root = new osg::Group();
    osg::ref_ptr<osg::StateSet> stateset = new osg::StateSet();
    stateset->addUniform(new osg::Uniform("diffuseTexture", TEXTURE_UNIT_DIFFUSE));
    stateset->addUniform(new osg::Uniform("normalTexture", TEXTURE_UNIT_NORMAL));
    stateset->setDataVariance(osg::Object::STATIC);
    root->setStateSet(stateset);

    loadTextures(root, TEXTURE_GRAY);
    addSimpleObject(root);
    return root;
}

// compute the normal depth map for a osg scene
cv::Mat computeNormalDepthMap(osg::ref_ptr<osg::Group> root, float maxRange, float fovX, float fovY) {
    uint height = 500;

    // normal depth map
    NormalDepthMap normalDepthMap(maxRange, fovX * 0.5, fovY * 0.5);
    ImageViewerCaptureTool capture(fovY, fovX, height);
    capture.setBackgroundColor(osg::Vec4d(0, 0, 0, 0));
    normalDepthMap.addNodeChild(root);

    // grab scene
    osg::ref_ptr<osg::Image> osgImage = capture.grabImage(normalDepthMap.getNormalDepthMapNode());
    osg::ref_ptr<osg::Image> osgDepth = capture.getDepthBuffer();
    cv::Mat cvImage = cv::Mat(osgImage->t(), osgImage->s(), CV_32FC3, osgImage->data());
    cv::Mat cvDepth = cv::Mat(osgDepth->t(), osgDepth->s(), CV_32FC1, osgDepth->data());
    cvDepth = cvDepth.mul( cv::Mat1f(cvDepth < 1) / 255);

    std::vector<cv::Mat> channels;
    cv::split(cvImage, channels);
    channels[1] = cvDepth;
    cv::merge(channels, cvImage);
    cv::cvtColor(cvImage, cvImage, cv::COLOR_RGB2BGR);
    cv::flip(cvImage, cvImage, 0);

    return cvImage.clone();
}

BOOST_AUTO_TEST_CASE(differentNormalMaps_TestCase) {
    float maxRange = 20.0f;
    float fovX = M_PI / 3;  // 60 degrees
    float fovY = M_PI / 3;  // 60 degrees

    osg::ref_ptr<osg::Group> normalRoot = createNormalMapSimpleScene();

    cv::Mat cvNormal = computeNormalDepthMap(normalRoot, maxRange, fovX, fovY);

    plotSonarTest(cvNormal, maxRange, fovX * 0.5);
}

BOOST_AUTO_TEST_SUITE_END()





...

Thank you!

Cheers,
Rômulo

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=71422#71422





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Multi layer effect rendering problem ... not3not4 General 0 Wed Jul 19, 2017 9:44 am View latest post
No new posts problem with osgearth_pick.exe 徐志敏 General 0 Thu Jul 13, 2017 6:15 pm View latest post
No new posts A problem of depth on osgText::Text i... gyw General 4 Mon Jul 10, 2017 7:29 am View latest post
No new posts osg::Group Child Problem Latha Rani General 4 Tue Jun 13, 2017 1:16 pm View latest post
No new posts Diaplay problem of OSG 3.4.0 on WIN10 sangjingrui General 3 Sun Jun 11, 2017 8:02 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP