[osg-users] Polytope from view frustum

2016-11-01 Thread Trajce Nikolov NICK
Hi Community,

anyone knowing how to achieve this and with will to share?

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


[osg-users] Trouble Drawing Text in Arabic

2016-11-01 Thread Erik Hensens
Hello!

I am having some trouble drawing text correctly in Arabic. I can get the Arabic 
letters themselves to show up correctly, but the letters do not connect 
together as they should.

I am not an Arabic speaker, but my understanding is that when letters in Arabic 
are adjacent to each other within a word, the letters take different shapes and 
connect to each other, similar to cursive English.

As a sanity check, I used the exact same TTF font and showed the same Arabic 
string on a 2D drawing area using Gtk. This 2D drawing area window shows the 
text correctly rendered with the letters connected properly.

Here is the code I am using to display the 3D Arabic text:



Code:
// Create the text drawable
osg::ref_ptr < osgText::Text > pTextDrawable = new osgText::Text;

// Set the font to use
pTextDrawable->setFont("/usr/share/fonts/truetype/scheherazade/ScheherazadeRegOT.ttf");

// Set the text to show
pTextDrawable->setText(std::string(szArabicText), 
osgText::String::ENCODING_UTF8);

// Set up the appearance of the text
pTextDrawable->setCharacterSize(30.0f);
pTextDrawable->setAxisAlignment(osgText::TextBase::XY_PLANE);
pTextDrawable->setPosition(osg::Vec3(640.0f, 360.0f, 0.0f));
pTextDrawable->setColor(osg::Vec4(1.0f, 1.0f, 1.0f, 1.0f));
pTextDrawable->setMaximumWidth(1000.0f);
pTextDrawable->setLayout(osgText::Text::RIGHT_TO_LEFT);
pTextDrawable->setAlignment(osgText::TextBase::CENTER_TOP);

// Create the text geode
osg::ref_ptr pTextGeode = new osg::Geode;

// Add the text drawable to the text geode
pTextGeode->addDrawable(pTextDrawable);

// Add the text geode to the heads-up camera
pHeadsUpCamera->addChild(pTextGeode);




I am attaching both the 2D drawing area text screen capture (white text on gray 
background) with the text correctly rendered, as well as a screen capture of 
the 3D text with the individual letters drawn in the correct order but not 
properly connected together (white text on red background). Again, these are 
both using the same font (Scheherazade) and the same text string.

How can I get OSG to render these Arabic letters properly?

Thank you very much!

Cheers,
Erik

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



___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] R3D/PRO-1000 knowledge (Chris Hanson)

2016-11-01 Thread Mark Hurry
h.org/atta
chments/20161031/1c74aa4c/attachment-0001.htm>

--

Message: 4
Date: Tue, 01 Nov 2016 06:46:14 +0100
From: "Uma Devi Selvaraj" <umaselvam1...@gmail.com>
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] osg130-osgutil.dll access violatioln error
Message-ID: <1477979174.m2f.69...@forum.openscenegraph.org>
Content-Type: text/plain; charset="utf-8"

Hi all,
 
I have created simple GUI using Qt and OSG which renders 3d model. I
tired to load .ply model. I am getting access violation error for
osg130-osgutil.dll. I am using osg3.4.0 in vs2013 . I have executed my code
in Release mode. Attached the screenshot of error message below. 

I have also tried to render the same 3d model using the cmd "osgviewer 3d
Model.ply" in cmd prompt. I am getting same error.

I have also attached the model I used.





... 

Thank you!

Cheers,
Uma

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



-- next part --
A non-text attachment was scrubbed...
Name: 3D Model.7z
Type: application/octet-stream
Size: 2589952 bytes
Desc: not available
URL:
<http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/atta
chments/20161101/f7fbed58/attachment.obj>
-- next part --
A non-text attachment was scrubbed...
Name: dll_error.png
Type: image/png
Size: 28929 bytes
Desc: not available
URL:
<http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/atta
chments/20161101/f7fbed58/attachment.png>

--

Subject: Digest Footer

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


--

End of osg-users Digest, Vol 113, Issue 1
*

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osg130-osgutil.dll access violatioln error

2016-11-01 Thread Sebastian Messerschmidt

Hi Uma,

You've asked as similar question a while ago (vector subscript out of 
range). I see the crash too using an older 3.4.0, but I don't have a 
3.4.0 with debug symbols ready to debug... I might have time to debug 
this afternoon.


Have you tried a newer OSG-version?
And: Have to tried to debug the problem yourself?

Cheers
Sebastian




Hi all,

I have created simple GUI using Qt and OSG which renders 3d model. I tired 
to load .ply model. I am getting access violation error for osg130-osgutil.dll. 
I am using osg3.4.0 in vs2013 . I have executed my code in Release mode. 
Attached the screenshot of error message below.

I have also tried to render the same 3d model using the cmd "osgviewer 3d 
Model.ply" in cmd prompt. I am getting same error.

I have also attached the model I used.





...

Thank you!

Cheers,
Uma

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Mouse Picking with Oculus Viewer

2016-11-01 Thread matt kennett
Hi,

... 
I'm just trying to adapt a typical 2d version of a Fitts Law (reciprocal 
tapping task) experiment for a 3d presentation using a VR headset (oculus rift 
dk2). 

I would like to compare performance in the same kind of task using both a 
flatscreen and the VR headset, so would like to be able to click on spheres 
(ray-cast through them?) in the VR condition with a mouse pointer, to replicate 
the same task on the flat-screen. Is this possible? If so, does anyone have any 
ideas how? 

Essentially, I just want to be able show a movable mouse pointer, get the 'xy' 
coordinates of where the tip of it is when the participant clicks, and have the 
depth of the plane the mouse pointer travels over equal to nearest edge of the 
spheres (or could just use flat discs as targets if this makes it easier).

Have attached a snippet of my code so far if this helps. 

Cheers,
matt

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




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


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osg130-osgutil.dll access violatioln error

2016-11-01 Thread Robert Osfield
Hi Uma,

I have just ran your model on my Linux system with osgviewer (from a
recent branch from git master) and it loads right away and works
correctly.  I wouldn't expect OSG-3.4 to be different, but can't rule
this out.

In previous threads where you've hit up against similar problems
others have been able to load models that you have had problems with,
often the suggestion has been to look at the build parameters you are
using for building the OSG vs your own application, this can be a
common gotcha when using VisualStudio/Windows, it's just something you
have to learn and work with - others can't sit on your shoulder and do
your work for you.

Another approach you could take is to use Linux as a development
platform as there are less issues with mixing libs and applications.

Robert.



On 1 November 2016 at 05:46, Uma Devi Selvaraj  wrote:
> Hi all,
>
> I have created simple GUI using Qt and OSG which renders 3d model. I 
> tired to load .ply model. I am getting access violation error for 
> osg130-osgutil.dll. I am using osg3.4.0 in vs2013 . I have executed my code 
> in Release mode. Attached the screenshot of error message below.
>
> I have also tried to render the same 3d model using the cmd "osgviewer 3d 
> Model.ply" in cmd prompt. I am getting same error.
>
> I have also attached the model I used.
>
>
>
>
>
> ...
>
> Thank you!
>
> Cheers,
> Uma
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=69190#69190
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org