[osg-users] Coordinate System Help

2009-09-07 Thread David Goering
Hey, it's me... again... :D Since the osgART community seems to be pretty dead and I have found great support here, I thought I'd ask here again, since it is 50% OSG question ;) I have attached an image from the osgart documentation which shows how OSGART is connected to OSG. What I am

Re: [osg-users] Aligning Coordinate Systems

2009-09-07 Thread David Goering
Hey JP, sry I somehow missed your reply. Hope its not too late :-P Anyway, I am still battling this problem but I think I have a better understanding of it. I opened a new thread with a better description (at least I hope so): http://forum.openscenegraph.org/viewtopic.php?t=3577 So I'd say we

[osg-users] Matrix Multiplication - Coordinate Rotation

2009-09-10 Thread David Goering
Hello, Sorry for this dumb question, but somehow I cant find the answer in the archives or I am just searching for the wrong thing. Anyway, I want to transform my coordinates with a Matrix. I have a matrixTransform (lets call it T) and I need to multiply that with a MatrixTransform (lets call

Re: [osg-users] Matrix Multiplication - Coordinate Rotation

2009-09-10 Thread David Goering
Hey, thanks for the reply. So it is better to use Matrix than MatrixTransform good to know. Now if someone could give me an example or explain how the different rotation functions work that would be great, Ive searched arround, but somehow nothing seemed to work. (Id turn X,Y and Z into 0 ? )

Re: [osg-users] Matrix Multiplication - Coordinate Rotation

2009-09-10 Thread David Goering
Hey, thanks so much for the answer so far, I think I understand everything and will play arround with it tomorrow. In general I understand needing to use the inverse to go back to the source coordinates, when needed. But I didnt think Id need the inverse for the actual transformation. I will

Re: [osg-users] Matrix Multiplication - Coordinate Rotation

2009-09-11 Thread David Goering
Hey, I tried what you told me, here is the code: osg::Matrix rot = rot.rotate(osg::DegreesToRadians(45.0),1.0,0.0,0.0); osg::Matrix sca = sca.scale (1.0,1.0,1.0); osg::Matrix m = rot * sca; arTransform-setMatrix(m); osg::Vec3f vec = arTransform-getMatrix().getTrans(); double x = vec.x(); double y

Re: [osg-users] Matrix Multiplication - Coordinate Rotation

2009-09-11 Thread David Goering
Hey, Well my problem is this, I have a webcam and it looks on a table from a slant, and gives me coordinates of an object it finds (a marker). These coordinates are then sent to the TransformationMatrix arTransform in order for OpenSceneGraph zu render a Model on there. The problem is, if I

[osg-users] Having Problems getting the Cam Matrix

2009-09-17 Thread David Goering
Hey, I am trying to get the Cam Matrix and use it in calculations I do in an update Callback. One problem I am currently having is that I can't access the cam, and if I define the Cam as a global variable I get segmentation fualts... most likely because it hasn't been fully initialized yet ?

[osg-users] [build] Help building OSG 2.8.1 with CMAKE

2009-07-24 Thread David Goering
Hi, I am trying to get OpenSceneGraph running under Windows XP, and Visual Studio 2003 or 2005. My plan is to try and use OSGART which requires ARToolkit / Openscenegraph to be installed previously. I downloaded OpenSceneGraph-2.8.1.zip, installed Cmake 2.61 and opened the Cmakelist.txt with

Re: [osg-users] [build] Help building OSG 2.8.1 with CMAKE

2009-07-24 Thread David Goering
Hi Ümit, Thanks for the quick answer. I dont know how I managed to miss that site, because I really did click through the documentation. I hope I did everything right now and I am building the project now, but its taking like 45 Minutes already and is still building, is that normal ? :O Thanks

Re: [osg-users] [build] Help building OSG 2.8.1 with CMAKE

2009-07-24 Thread David Goering
Hey, Thanks a lot for your help, the examples work now, I downloaded the daa folder where the examplary models are stored and added that folder to the Path variable. But for some reason when I enter osgviewerd cow.osg he cant find the model... but if I write osgviewerd osgdir/data/cow.osg it

Re: [osg-users] [build] Help building OSG 2.8.1 with CMAKE

2009-07-24 Thread David Goering
I had one more quick question, I can load in osg files, but what about the lua files? And am I able to load any other 3D Models, like google Sketchup files or 3ds or obj files? Do I need to install some kind of plugin? And if yes which one and how? Thanks for the support! :) David

Re: [osg-users] [build] Help building OSG 2.8.1 with CMAKE

2009-07-24 Thread David Goering
Hey Skylark, Ah ok, so I created a new Variable named it OSG_FILE_PATH and gave it the value C:\Praktikum\OpenSceneGraph-2.8.1\Data is that what you meant? If yes it is still not working, it still says osgviewerd: No Data loaded Or did I missunderstand you? Thanks, David -- Read

Re: [osg-users] [build] Help building OSG 2.8.1 with CMAKE

2009-07-24 Thread David Goering
Hey, Thanks a lot for those tips, they were really helpfull... I got it set up now! Now I have to play arround a bit ;) Cya, David -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15381#15381 ___

[osg-users] [3rdparty] Installing OSGART

2009-07-27 Thread David Goering
Hi, I hope its okay to open an osgart related topic here, seems the only place still active where it could fit and Ive read about ppl using OSGART here. I have ARToolkit 2.72 and OSG 2.8.1 installed running under Windows XP and VS 2003. And both of those are running (as far as I can tell) now I

Re: [osg-users] Download Not Working

2009-07-27 Thread David Goering
Same problem here with Windows XP and Turtoise -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15486#15486 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] [3rdparty] Installing OSGART

2009-07-28 Thread David Goering
Hey, I reinstalled everything, ARToolkit, OSG and OSGART and made sure that I built everything as release (because I think I build some as release and some as debug) and now it works, so I fixed my problem, thanks anyway :D David -- Read this topic online here:

[osg-users] [build] Building a Simple Viewer

2009-07-28 Thread David Goering
Hey, I am following the OSGART tutorial and am trying to write my first OSG / OSGART app. it says this is the Code for a simple empty Viewer Window: Code: #include osgViewer/Viewer #include osgViewer/ViewerEventHandlers int main(int argc, char* argv[]) { // Create a viewer osgViewer::Viewer

Re: [osg-users] [build] Building a Simple Viewer

2009-07-30 Thread David Goering
Okay, I set up my OpenSceneGraph following this tutorial (which I found in these forums): http://www.skew-matrix.com/bb/viewtopic.php?f=8t=3 I now solved the problem turning off precompiled headers. Now I get this Error: C:\Praktikum\OpenSceneGraph\OSG\include\OpenThreads\Exports(17): fatal

Re: [osg-users] [build] Building a Simple Viewer

2009-07-30 Thread David Goering
Hey, Thanks for the quick answer... C:\Praktikum\OpenSceneGraph\OSG\include is already in the include Path which is why I dont understand why it doesnt find it... [Question] I now deleted the config file I had copied, and added the file to the include Path so now

Re: [osg-users] [build] Building a Simple Viewer

2009-07-30 Thread David Goering
Hey, Yes I built and Installed OpenSceneGraph. When I enter in osgversion in a Command Prompt it shows: OpenSceneGraph Library 2.9.6 as I said I am pretty sure I followed the Install Instructions from the skewed Matrix Forum to set up your system to build OpenSceneGraph applications thuroughly.

Re: [osg-users] [build] Building a Simple Viewer

2009-08-03 Thread David Goering
Hey, thanks for the answers so far, sry it took me a while to answer: Firstly, I just want to be clear that I didn't mean to be condescending I didnt take it in that way at all, and am thankful for any help. do you mean it didn't fix the error with Config or the C4541: 'dynamic_cast'

Re: [osg-users] [build] Building a Simple Viewer

2009-08-03 Thread David Goering
Okay here is something interesting: I deleted all of my includes to start linking to the includes from scratch and just continue until he finds all the files (that was my hope |-) ) anyway, I added in: C:\Praktikum\OpenSceneGraph\OSG\build\include\OpenThreads because he said he couldn't find

Re: [osg-users] [build] Building a Simple Viewer

2009-08-03 Thread David Goering
Hey, Thanks for your answers. That was really on of the problems, but there were quite a few more for some reason. A friend of mine helped me and added in missing libs and include files in VS, and got the Viewer working now. Now I will try and add the video feed to the Viewer based on the OSGART

[osg-users] [build] LNK2019: declspec(dllimport)

2009-08-03 Thread David Goering
Hey, its me... again... |-) I got the OpenSceneGraph Viewer Window working, now I added OsgArt libraries to the linker, in order to use the funcionality of OSGART, now I always get the following error: Code: OsgArtTest error LNK2019: Nicht aufgelöstes externes Symbol '__declspec(dllimport)

Re: [osg-users] [build] LNK2019: declspec(dllimport)

2009-08-04 Thread David Goering
Thanks for your reply, that seemed to be the problem it was set to SingleThreaded. Now I have the video Plugin running on OpenSceneGraph... thanks! David -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15763#15763

[osg-users] [3rdparty] Errors while adding OSGART Tracking function

2009-08-04 Thread David Goering
Hey, I have OSG 2.8.1 and OSGART 2.0 installed and working. I successfully added the Video Plugin following this tutorial: http://www.osgart.org/node/15 so now I have a live video feed from my webcam. I am trying to add tracking ability based on this tutorial: http://www.osgart.org/node/16 but am

[osg-users] Newb looking for tutorial

2009-08-10 Thread David Goering
Hey, I have been fooling arround with OpenSceneGraph and OSGART the last few weeks, and have very much benefited from your help so far, so thank you ;) Anyhow, I have now successfully added the tracking and video plugin from OSGART and it works nicely, now I was wondering if t here are any good

Re: [osg-users] [3rdparty] Errors while adding OSGART Tracking function

2009-08-13 Thread David Goering
Hey, Surprised that there hasnt been an answer yet, well anyway I think I found out that the tutorial I was following was outdated. What I did now was look at the orsgart examples (osgartsimple) and find out how the tracking works there. I dont know why I didnt think of it earlier... Anyhow,

[osg-users] Aligning Coordinate Systems

2009-08-13 Thread David Goering
Hey, excuse my newb questions, but I couldnt find anything with the search function and hope someone can help me out here. I am using OSGART with OSG, and if I understand correctly, ARToolkit has its own Coordinate System as does OSG. What is the easiest way to allign these two systems so that

[osg-users] Problem with lighting when scaled

2009-08-14 Thread David Goering
Hey I am playing arround with the OSG lighting functions, and am fairly new to it all. Anyway I am using OSGART with OSG which shouldnt make a difference. I have a MatrixTransform and its child is PositionAttitudeTransform and its child is a 3d Model. I have lighting as a child of the

Re: [osg-users] Problem with lighting when scaled

2009-08-14 Thread David Goering
Hey, Thanks for the quick answers. Now that I read them I remember that I have read this somewhere else, dont know why I forgot :o But thanks anyhow, helped me alot! David -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16277#16277

Re: [osg-users] Aligning Coordinate Systems

2009-08-16 Thread David Goering
Hey, I didnt mean to be annoying.. and I didnt want to repost the same question. I hope I didnt come across that way I just figured the problem was probably not very complex (maybe a wrong assumption) and so I thought it was possible that my description was flawed, or that it wasnt clear what I

Re: [osg-users] Aligning Coordinate Systems

2009-08-18 Thread David Goering
Even after trying to search the archives I couldnt find anything that helps me understand the problem, if you know of any threads specifically I would be thankful for a link, thanks, David -- Read this topic online here:

[osg-users] Inverting X Axis and possible Multithreading Problem

2009-08-27 Thread David Goering
Hey, I have two problems I hope someone can help me with, I will describe my setup first and then my two questions. Setup: I am not entirely sure if this question belongs here or in the plugin section, but here it goes anyway |-) My setup is this: OSG 2.8.1 and running OSGART. I am using a

Re: [osg-users] Inverting X Axis and possible Multithreading Problem

2009-08-31 Thread David Goering
Hey, thanks for your reply. I will try and find out what is going on there on my own, but I will have to do that later, let me break down my first problem into single questions, maybe it will be easier for me to work it out then. I have: osg::ref_ptrosg::MatrixTransform arTransform = new

Re: [osg-users] Inverting X Axis and possible Multithreading Problem

2009-08-31 Thread David Goering
Hey, thanks for the quick reply, that already helped me a lot, I will keep on playing arround and will bug you when I hit the next problem :P Thanks a bunch! David -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16869#16869

Re: [osg-users] Inverting X Axis and possible Multithreading Problem

2009-08-31 Thread David Goering
Well this was faster than I hoped, but maybe someone can cure my confusion :-* I have successfully updated the arTransform Matrix now. So when I move the marker to the left, the model moves to the left (although in the video the marker moves to the right and vice versa). That works now, the

[osg-users] Updating Rotation Matrix - Quaternion

2009-09-02 Thread David Goering
Hi, I know I have been asking a lot of questions lately, sry :D I try to access the rotation part of a Transformation Matrix by doing the following: osg::Quat rot = arTransform-getMatrix().getRotate(); I then try to access the values with this: osg::Vec4d vec = rot.asVec4(); int rx =