[osg-users] Declaring and using Vec3d and other.

2009-11-07 Thread Danny Riflko
Hi,

If I use in the main:
Vec4d C1 = Vec4d (1, 1,1, 1);
Then the vector has garbage in it.

But if I declare Vec4d C1 = Vec4d(); before main, then I can use the setter in 
the main to put some values in it, and it works.

Why is that? How does that work?


Thank you!

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





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


Re: [osg-users] Declaring and using Vec3d and other.

2009-11-07 Thread Robert Osfield
Hi Danny,

I'm not aware of any bugs related to copying Vec4d's - doing what you
quote has been done for many years without problems, I would recommend
that you double check your own code and your build to see if something
has gone amiss.

Robert.

On Sat, Nov 7, 2009 at 9:36 AM, Danny Riflko do_th...@luukku.com wrote:
 Hi,

 If I use in the main:
 Vec4d C1 = Vec4d (1, 1,1, 1);
 Then the vector has garbage in it.

 But if I declare Vec4d C1 = Vec4d(); before main, then I can use the setter 
 in the main to put some values in it, and it works.

 Why is that? How does that work?


 Thank you!

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





 ___
 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


Re: [osg-users] Declaring and using Vec3d and other.

2009-11-07 Thread Chris 'Xenon' Hanson
Robert Osfield wrote:
 Hi Danny,
 I'm not aware of any bugs related to copying Vec4d's - doing what you
 quote has been done for many years without problems, I would recommend
 that you double check your own code and your build to see if something
 has gone amiss.

  Yeah, what you're doing should be fine. If it's not working, provide more 
info an a very
simple, compilable example. And what platform/compiler you're working on.

-- 
Chris 'Xenon' Hanson, omo sanza lettere  Xenon AlphaPixel.com
PixelSense Landsat processing now available! http://www.alphapixel.com/demos/
There is no Truth. There is only Perception. To Perceive is to Exist. - Xen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Declaring and using Vec3d and other.

2009-11-07 Thread Danny Riflko
Hello, it seems the error I was referring to was simply because I debugged 
(Step Into) with release mode in Visual C++ 2008 Express Edition.

Here is a screenshot. The content of C12 is garbage. So it was a noob question.

robertosfield, could you remove my e-mail from the post? The bots can pick it 
for spamming.

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



attachment: harjoitus1.PNG___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Declaring and using Vec3d and other.

2009-11-07 Thread Danny Riflko
Can't you simply edit the post and delete the e-mail.

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





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


Re: [osg-users] Declaring and using Vec3d and other.

2009-11-07 Thread Jan Ciger
Danny Riflko do_th...@luukku.com wrote:
 Can't you simply edit the post and delete the e-mail.

No, because the forum is actually attached to a mailing list where your posts 
are re-posted automatically. We wouldn't be able to reply back to you without 
the e-mail.

Regards,

Jan


signature.asc
Description: This is a digitally signed message part.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org