Re: [osg-users] [Win32] Export texture from a 3D model
Ok, I create a *.ive file and I think it contains textures (because of the size of the file). But, when I convert .ive to .osg (osgconv *.ive *.osg?), and when I see into this file, the absolute path is keep :? How can I avoid this? Cheers, Loic -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=28414#28414 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [Win32] Export texture from a 3D model
Hum, actually the path into the osg model is absolute and therefore bad. The osg model comes from 3ds model, and maybe when it's converted, I must force to create relative path rather than absolute. Otherwise, it seems that is working with osgconv. I will try it :) Cheers, Loic -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=28406#28406 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [Win32] Export texture from a 3D model
Check my email :) (imerir? ;) ) Thank you! Cheers, Loic -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=28400#28400 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] [Win32] Export texture from a 3D model
Hi, I have some question about texture into OSG. I would like to save the 3D model by serialization. All it works except the texture. Indeed, I don't know how get and export texture and after import in order to loading my model. And if it's impossible, I just want the name and the path of the texture and then I will save it manually. But I can't find this information into the structure of OSG (node, geode, image?). The last question is: can I give the texture to my model manually? Thank you in advance, and sorry for my poor english :-* Cheers, Loic -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=28396#28396 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Question about OSG scene loading
Hi everybody, I bring some news: I use a custom class derived from openthread::thread, an I use it to create my osg viewer. It works, and because I'm using Qt, I made a QTimer to prevent when isRunning is false. But I realized that my thread take all the focus of my application. It means that my QTimer start after the thread finish. Thus, when my QTimer start, it means that my osg are loaded... I think it isn't a good solution ("Do-it-yourself" method...) but it works... -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16958#16958 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Question about OSG scene loading
If I use reimplementation of thread class, I must use: Code: virtual void OpenThreads::Thread::run() and put my code in, I think. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16920#16920 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Question about OSG scene loading
Alberto Luaces wrote: > Hi Loic, > > you can try to follow this tutorial: > > http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/LoadingProgress > > Regards, > > Alberto > Hi Alberto, I think it could be a solution, but the creator use an old version of osg, and I have so many problem to use it... :( (Especially for osgDB class). [quote=Paul Martz] You can assign a callback to the Registry to be notified when a read completes. Alternatively, you could derive a class from OpenThreads::Thread to do the read in a thread, and you'll know it's complete when isRunning() returns false. Neither of these will really help you with making a progress bar, though, which requires "percent complete" as an input. [/quote] Hi Paul Martz, I think I will try your solution, maybe I will derive a class from OpenThread. But, i don't understand when you say that I can assign a callBack to the Registry [Question] Thanks in advance, regards. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16919#16919 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Question about OSG scene loading
Hi all, On my program, I use setSceneData(...) to load an heavy osg model (more than 10mo). I would like to know if I could be alerted when OSG have finished loading a model. My application is blocked while this time, and I want to make a progressBar to indicate loading progress. Thank you! Regards, Loic. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16912#16912 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [Qt] Zbuffer errors while rotation
Yeah ! I found the solution :D I don't know why, but the coordinate system was created with vector's values like 3000 :/ Maybe to fix a problem in ortho mode. It's wokrs now :) And surfaces doesn't blinking anyway ;) Thanks a lot. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16815#16815 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [Qt] Zbuffer errors while rotation
Hum, I try to test the near and far values, with getProjectionMatrixAsPerspective and no setComputeNearFarMode. I have values like 1.29547e+08(Near) and 2.36171e+08(far). I think it's really strange, it isn't it? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16814#16814 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [Qt] Zbuffer errors while rotation
I have seen on another forum: > > osg_viewer->getCamera()->setProjectionMatrixAsPerspective(90.0, 1.333, 0.001, > 100); > > the FOV and aspect ratio parameters are working, but no matter the values i > write in the last two parameters, the clip planes distance remains the same. > any idea? > > Try: > > osg_viewer->getCamera()->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR); > I didn't know that :o And if I try this, my coordinate system disappear whatever the values of near and far :/ Do you know why? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16812#16812 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [Qt] Zbuffer errors while rotation
As I said it at the beginning, I didn't make the osg code, that explain maybe I have miss something. :-* How can I make sure that the camera position corresponds to my model? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16811#16811 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [Qt] Zbuffer errors while rotation
Hum, it's seems it works better ! My model disappear with setProjectionMatrixAsPerspective, but I also a coordinate system wich it's displayed. And with it, the mouse interactive works perfectly (I mean left, right and middle clic). I really don't know why my model isn't visible... -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16801#16801 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [Qt] Zbuffer errors while rotation
Thanks for reply Jason Daly, I will try to use setProjectionMatrixAsPerspective with corrects values. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16799#16799 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [Qt] Zbuffer errors while rotation
Anyone have a solution, just a start of thing? :-* -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16796#16796 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] [Qt] Zbuffer errors while rotation
Hi all, I'm a real beginner on OSG and I want use it with Qt 4.5 on Win32. I have to export an activeX based on OSG (dev. with VS) on a Qt application. The main purpose it's to display an osg model, and to interactive with it (mouse and keyboard). I already use the adapterWidget class, that I found on example/osgViewerQt source browser. If I just use this class, my application run properly, but, this example use setSceneData() and only this method. I must use setSceneData() and addChild/removeChild methods in my application because I need show/hide some part of osg model when the user will want it. And if I use this method, I get some graphics bug when I rotate the model with mouse. Indeed, some surfaces disappear to the view, and if I rotate my model it gives an impression of blinking. Also some parts of my model are shown over other parts, while they shouldn't. It's seem to be a zBuffer problem (frustum?). I use setProjectionMatrixAsOrtho instead setProjectionMatrixAsFrustum. If I use frustum my model disappear... With setProjectionMatrixAsOrtho, I can change near & far values, but it doesn't change anything... I will put 3 screen-shots to show in picture my problem: [Image: http://www.monsterup.com/upload/1251290190840.png ] (http://www.monsterup.com) [Image: http://www.monsterup.com/upload/1251290190788.png ] (http://www.monsterup.com) [Image: http://www.monsterup.com/upload/1251290191958.png ] (http://www.monsterup.com) Thank in advance, and sorry for my English level, I'm French :| Cheers, cayou -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16772#16772 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org