ARToolKit | Mailing List Archive |
![]() |
From: | Denis Mohnhaupt <demohn@g .....> | Received: | Nov 7, 2001 |
To | artoolkit@h .................. | ||
Subject: | VRML-Models are not showed in ARTK 2 | ||
Hi, Mark, Andreas, thanks for your suggestions, I checked the models and they are ok. The problem is another one: I (we actually) use pretty large models, for example a chair which has the same size as a real chair when the RL-chair and the marker have the same distance. No i figured out, that when I moved the chair's marker away from the camera, let's say about 50 cm (to a total distance of 150 cm), the virtual chair starts to fade out. It seems, that there is a maximum distance where objects are drawn. This (I think) was the reason why the models were not shown, they where beyond this range. I dont know if this is an openGL option or somewhat else, or where and how this must be changed (only when initializing or for each frame etc). For the moment we use smaller models and make ARTK believe, that the markers are only one tenth of the distance away, which they really are. But this could cause perspective problems and is only a temporary solution. Hope someone can help me with that Regards, Denis Mohnhaupt -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net |
From: | Hirokazu Kato <kato@s ........................> | Received: | Nov 8, 2001 |
To | Denis Mohnhaupt <demohn@g .....> | ||
Subject: | Re: VRML-Models are not showed in ARTK 2 | ||
Hi, >The problem is another one: I (we actually) use pretty large models, for >example a chair which has the same size as a real chair when the RL-chair >and >the marker have the same distance. No i figured out, that when I moved the >chair's marker away from the camera, let's say about 50 cm (to a total >distance >of 150 cm), the virtual chair starts to fade out. It seems, that there is a >maximum distance where objects are drawn. >This (I think) was the reason why the models were not shown, they where >beyond this range. Please look at lib/SRC/Gl/gsub.c #define GNEAR 100.0 #define GFAR 2000.0 You can find something like above description in the file. This specifies front and back clipping plane to draw objects. This case, objects which are within 100mm or farther than 2000mm are not displayed. So you may change these values and compile again to draw big objects like #define GNEAR 1000.0 #define GFAR 10000.0 -- ------------------------------------------------------------------ Hirokazu Kato Faculty of Information Sciences Hiroshima City University Phone: 082-830-1705 Email: kato@s ........................ Fax: 082-830-1435 URL: http://www.sys.im.hiroshima-cu.ac.jp/people/kato/ |