Re: [osg-users] osgTerrain Problem

2008-12-22 Thread Robert Osfield
Hi Ryan, You make no mention of what type of file you are trying to load. Only a small number of the OSG plugins support reading form heightfield, only two of which read height fields directly - these are the gdal and ive plugins. Robert. On Mon, Dec 22, 2008 at 12:29 AM, Ryan Morris

[osg-users] rotation problem

2008-12-22 Thread hemanth korrapati
hi all, I want to rotate a point which is on x-axis by 45 degrees w.r.t z-axis and 45 degrees w.r.t x-axis. So I am using the following code

[osg-users] is possible to display a Bounding Sphere?

2008-12-22 Thread Francesco Argese
Hi all, i have a doubt: is it possilble to display a bounding sphere in wireframe mode? I have seen that the class Bounding Sphere doesn't iherite from osg::Node so i don't know how to add it to the scenegraph. Thanks in advance Francesco Argese ___

Re: [osg-users] rotation problem

2008-12-22 Thread Vincent Bourdier
Hi, It sound normal for me to have a y rotation for result. Make a little drawing, you will see that. Vincent. 2008/12/22 hemanth korrapati hemanthkorrap...@gmail.com hi all, I want to rotate a point which is on x-axis by 45 degrees w.r.t z-axis and 45 degrees w.r.t x-axis. So I am using

Re: [osg-users] is possible to display a Bounding Sphere?

2008-12-22 Thread Vincent Bourdier
Hi, Bounding sphere is not a drawable, but an osg::Sphere exist, so with you BS radius and center, you can create a new Sphere to visualize your BS. Careful to the transformation matrices when getting the center and radius. Vincent. 2008/12/22 Francesco Argese kekk...@gmail.com Hi all, i

[osg-users] error in quick start guide taken from lulu

2008-12-22 Thread Francesco Argese
Hoping that this information could be useful, I write to signal an error in the book OpenScenegraph Quick Start Guide (black and white version) available on lulu [1]. The problem is in the index (page vi and age viii) that stop indexing at page 38. In fact from 2.2 chapter it signal that all the

Re: [osg-users] rotation problem

2008-12-22 Thread hemanth korrapati
Hi I am expecting my code to first rotate the point along y-axis and then rotate the resultant point across x-axis. but only the rotation along z is happening but not along x. but its happening when i use a code like this: --- osg::Matrixd mat,mat1;

Re: [osg-users] is possible to display a Bounding Sphere?

2008-12-22 Thread Gordon Tomlinson
Hi A bounding sphere is not there to be displayed it is there to be used for quick culling operations, it is NOT a scene graph component, it describes a loose bounding sphere around that encompasses the node and an children of the node, it basically an XYZ and a radius. If you want to display

Re: [osg-users] rotation problem

2008-12-22 Thread J.P. Delport
Hi, hemanth korrapati wrote: Hi I am expecting my code to first rotate the point along y-axis and then rotate the resultant point across x-axis. but only the rotation along z is happening but not along x. The order you are expecting and the order in the code might not match. Try swapping the

[osg-users] World to Local Coordinates

2008-12-22 Thread Renan Mendes
Hi, I wanted to have the position of a certain shape of my scene in relation to another shape's coordinate system. As I read in the documentation, there is a member function of MatrixTransform that computes WorldToLocalMatrix, but I'm not sure on how to use it properly. This function has two

[osg-users] OT : Merry Christmas

2008-12-22 Thread Gordon Tomlinson
Merry Christmas to one and all, may the holidays bring joy and good health Another Cracking year for The OpenSceneGraph. I would like to thank one and all for the contributions to the project and to the mailing list , every contribution counts however small or big and is highly

Re: [osg-users] World to Local Coordinates

2008-12-22 Thread Vincent Bourdier
Hi, I cannot answer you about WorldToLocalMatrix, but something can help you maybe : each node can call getWorldMatrices() wich return a matrix to apply to the node referenced coordinates to have the world coordinates. Example : to get the world coordinate of the center of a node I use :*

[osg-users] model creation

2008-12-22 Thread hemanth korrapati
Hi, How can we save all the objects in a scene as a single model ? Thanks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] rotation problem

2008-12-22 Thread hemanth korrapati
Thank you, that was refreshing On Mon, Dec 22, 2008 at 3:15 PM, J.P. Delport jpdelp...@csir.co.za wrote: Hi, hemanth korrapati wrote: Hi I am expecting my code to first rotate the point along y-axis and then rotate the resultant point across x-axis. but only the rotation along z is

Re: [osg-users] model creation

2008-12-22 Thread Vincent Bourdier
Hi, You read/write .osg (ASCII) or .ive (binary) files from the scene. see osgDB::WriteNodeFile(...) Regards, Vincent. 2008/12/22 hemanth korrapati hemanthkorrap...@gmail.com Hi, How can we save all the objects in a scene as a single model ? Thanks

Re: [osg-users] osgTerrain Problem

2008-12-22 Thread FlySky
  Hi,Ryan   Can you tell me the type of file what you load?readHeightFieldFile is mainly based on GDAL plugins.You can have a good knowledge of GDAL in http://www.gdal.org. The website lists a lot of file types what can be read/written. 在2008-12-22,Ryan Morris russell.co...@gmail.com 写道:

Re: [osg-users] model creation

2008-12-22 Thread Gordon Tomlinson
osgDB::writeNodeFile( ptrToYourRootNode, MyScene.osg )) osgDB::writeNodeFile( ptrToYourRootNode, MyScene.ive )) osgDB::writeNodeFile( ptrToYourRootNode, MyScene.flt )) etc.. Capture the magic of Christmas this year

[osg-users] Compile errors and warnings in mdl plugin

2008-12-22 Thread Jean-Sébastien Guay
Hi all, Current SVN has errors when compiling the mdl plugin. All the errors are related to the use of the u_char type. Here are the files/lines where it reports errors: VVDReader.h:57 - u_char num_bones; MDLReader.h:130-132 - u_char const_direction_light_dot;

Re: [osg-users] OT : Merry Christmas

2008-12-22 Thread FlySky
  Thank you!   The same to you.Merry Christmas and a Happy and Prosperous New Year ! 在2008-12-22,Gordon Tomlinson gor...@gordon-tomlinson.com 写道: Merry Christmas to one and all, may the holidays bring joy and good health Another Cracking year for The OpenSceneGraph. I would like to

Re: [osg-users] model creation

2008-12-22 Thread FlySky
  Hi,You can use getscenedata() and writenodefile() to save the scene! 在2008-12-22,hemanth korrapati hemanthkorrap...@gmail.com 写道: Hi, How can we save all the objects in a scene as a single model ? Thanks ___ osg-users mailing list

Re: [osg-users] OT : Merry Christmas

2008-12-22 Thread Can T. Oguz
Merry Christmas to all :) Can 2008/12/22 Gordon Tomlinson gor...@gordon-tomlinson.com Merry Christmas to one and all, may the holidays bring joy and good health Another Cracking year for The OpenSceneGraph. I would like to thank one and all for the contributions to the project and

[osg-users] state of a point

2008-12-22 Thread hemanth korrapati
Hi, If we want to know whether a given point is in free space or inside an obstacle, can we know that ?. thanks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] model creation

2008-12-22 Thread hemanth korrapati
thank you that worked. 2008/12/22 FlySky zz...@163.com:   Hi,You can use getscenedata() and writenodefile() to save the scene! 在2008-12-22,hemanth korrapati hemanthkorrap...@gmail.com 写道: Hi, How can we save all the objects in a scene as a single model ? Thanks

Re: [osg-users] OT : Merry Christmas

2008-12-22 Thread Vincent Bourdier
Merry Christmas to all , Happy new year, good Holidays, Happy Halloween (why not ^^ ) Thanks a lot for your help all along this year. Vincent. 2008/12/22 Can T. Oguz cto...@gmail.com Merry Christmas to all :) Can 2008/12/22 Gordon Tomlinson gor...@gordon-tomlinson.com Merry Christmas

Re: [osg-users] state of a point

2008-12-22 Thread Vincent Bourdier
Hi, Bounding Sphere implement an intersect() method to test if two bounding sphere are intersecting ... if one is in the other one, it is considered as an intersection. You can create a BS for your point with a little radius, and test the intersection with the other BS you want. Maybe you can

[osg-users] custom drawImplementation with multiple shaders

2008-12-22 Thread Poirier, Guillaume
Hello, I have a class deriving from Drawable. In the drawImplementation(), I'd like to render 2 objects, with 2 different programs (and different textures, uniforms). What is the best way to do this ? I tried: pProgram1-apply(state); // draw something pProgram2-apply(state); // draw

[osg-users] Forum with Mailing list connection (Christmas Gift ; ) )

2008-12-22 Thread Art Tevs
Hi folks, I am glad to present a small christmas gift to the community. After two days and one night of hard work I was able to install, and configure a forum which has a direct connection to the mailing list. The forum software is phpBB2 with Mail2Forum MOD and a lot of modifications from my

Re: [osg-users] Forum with Mailing list connection (Christmas Gift ; ) )

2008-12-22 Thread Vincent Bourdier
Hi Art ! What a nice Christmas gift ! Very impressive ! I would be very useful for beginners not familiar with the mailing list, or to read the complete discussion. I don't know if I will continue to use list or change to forum ... maybe both ! Congratulations ! Regards, Vincent.

Re: [osg-users] World to Local Coordinates

2008-12-22 Thread Renan Mendes
Vincent, Thanks for your help, but what I want is exactly the opposite. To transform from world to local... Does anybody know the answer to my last email? Thank you. Renan M Z Mendes ___ osg-users mailing list

Re: [osg-users] Forum with Mailing list connection (Christmas Gift ; ) )

2008-12-22 Thread Art Tevs
Thanks. :D Yes and the nice thing is - one can use both mailing list and the forum!!! I do like a forum more, because it is just a modern art to bring a community together, I think. For beginners it is also a very nice opportunity to have everything in one place in a sense they are familar

Re: [osg-users] World to Local Coordinates

2008-12-22 Thread Vincent Bourdier
Why not just inverse this matrix ? Not sure, but it can be the solution. Vincent. 2008/12/22 Renan Mendes renanmzmen...@gmail.com Vincent, Thanks for your help, but what I want is exactly the opposite. To transform from world to local... Does anybody know the answer to my last email?

[osg-users] Collada plugin and multi-texturing (a Christmas cracker)

2008-12-22 Thread Roger James
I looking for help and inspiration on this one. Collada experts please note that this email contains some huge simplifications and generalisations. Even within the confines of the common profile material effects in Collada can define the use of more than one texture. Collada geometries can

Re: [osg-users] state of a point

2008-12-22 Thread Robert Osfield
Hi Hemanth? (Please sign with the name you wish to be addressed as to avoid confusion, thanks). There are lots of ways, which way depends upon you exact intersection needs and they type of model you have. One place to start would the IntersectionVisitor/LineSegmentIntersector or

Re: [osg-users] custom drawImplementation with multiple shaders

2008-12-22 Thread Robert Osfield
Hi Bill, Just use attach your Drawable the scene graph without a StateSet, then use two Geode's that decorate your Drawable, each Geode will have a StateSet with program one and the second will have program two. This mechanism is far more flexible that embedded state into Drawables, and it also

Re: [osg-users] Forum with Mailing list connection (Christmas Gift ; ) )

2008-12-22 Thread Gordon Tomlinson
Great Stuff Art Capture the magic of Christmas this year see http://www.capturethemagic.com __ Gordon Tomlinson gor...@gordontomlinson.com IM:

Re: [osg-users] Forum with Mailing list connection (Christmas Gift ; ) )

2008-12-22 Thread Robert Osfield
Hi Art, On Mon, Dec 22, 2008 at 4:33 PM, Art Tevs stud_in...@yahoo.de wrote: I am glad to present a small christmas gift to the community. After two days and one night of hard work I was able to install, and configure a forum which has a direct connection to the mailing list. The forum

Re: [osg-users] Forum with Mailing list connection (Christmas Gift ; ) )

2008-12-22 Thread GordonTomlinson
Nice Nice Nice This was something I was going get to do finally in the new year, but your beat me to it I'm like you prefer a forum to the mailing list 8) Gordon -- Read this topic online here: http://osgforum.tevs.eu/viewtopic.php?p=3790#3790

Re: [osg-users] Forum with Mailing list connection (Christmas Gift ; ) )

2008-12-22 Thread Art Tevs
Hi Robert, glad to hear that you also like it ;) The current script can handle either POP3 connections or direct MBox file parsing to get the emails from. I haven't cleaned up my mailbox since 2 months, hence I was able to import them ;) As to the mailman, with the current implementation it

Re: [osg-users] Forum with Mailing list connection (Christmas Gift ; ) )

2008-12-22 Thread Art Tevs
Oh yeah, I forgot, one of the main features one has to implement now is a scan of all old messages and compare the sender names with registered user names (of course real names of the users) so that users registering on the forum get links to their posts ;) -- Read this topic

Re: [osg-users] custom drawImplementation with multiple shaders

2008-12-22 Thread Poirier, Guillaume
Thanks Robert. Yes I understand why using a state set is better. Would it also be possible to use state.pushStateSet(prog1SS) and popStateSet(prog1SS) in a drawImplementation() function or this is not intended to be used like that ? regards, bill

Re: [osg-users] Forum with Mailing list connection (Christmas Gift ; ) )

2008-12-22 Thread Peter Wraae Marino
Hi Art, great job you've done. now I don't want to be a party pooper,.. but without categories the forum isn't that powerful. having posts in the right categories is where the power of the forum comes into play. or do you have plans on solving that? Right now you only have General but I do

Re: [osg-users] Forum with Mailing list connection (Christmas Gift ; ) )

2008-12-22 Thread Art Tevs
Yes, I know. The problem lies in the Mail2Forum script, which can connect only one to one, hence one forum/category to one mailinglist. Having a general mailing list which isn't splitted up into sublists would make it difficult to find out which messages belong into which cateogry on the

Re: [osg-users] Forum with Mailing list connection (Christmas Gift ; ) )

2008-12-22 Thread Gordon Tomlinson
I think we might get a lot of miss categorized acting of key words alone, a lot emails could end up in multiple categories or the wrong ones depending on key words filter alone Sorry not meaning to be negative, just thinking out loud and what might go wrong Thanks again for setting this up

Re: [osg-users] Forum with Mailing list connection (Christmas Gift ; ) )

2008-12-22 Thread Jean-Sébastien Guay
Hi Art, Nice job on the forum, with a bit more tweaking this will eliminate another FAQ :-) Oh yeah, I forgot, one of the main features one has to implement now is a scan of all old messages and compare the sender names with registered user names (of course real names of the users) so that

Re: [osg-users] OT : Merry Christmas

2008-12-22 Thread Jean-Sébastien Guay
I'd like to echo the sentiment in this thread. Merry Christmas to everyone, and a happy new year. Looking forward to another great OSG year to come. With a great community like this one, how can it not be? J-S -- __ Jean-Sebastien Guay

Re: [osg-users] custom drawImplementation with multiple shaders

2008-12-22 Thread Robert Osfield
Hi Bill, If you do use push and popStateSet then you'll need to do any apply as well, or you could just do an State::apply(StateSet*). Robert. On Mon, Dec 22, 2008 at 6:57 PM, Poirier, Guillaume guillaume.poir...@nrc-cnrc.gc.ca wrote: Thanks Robert. Yes I understand why using a state set is

[osg-users] Using TerraPage database and osgSim::LineOfSight for non-displayed scene graph - how to get nodes to page in?

2008-12-22 Thread I-Nixon, Anthony D
Hello everyone: I'm trying to compute LOS on a scene graph that is not being displayed (this is for offline analysis). Code looks a bit like this: osgDB::FilePathList filePath(osgDB::Registry::instance()-getDataFilePathList()); filePath.push_front(dirContainingTerrain);

Re: [osg-users] Forum with Mailing list connection (Christmas Gift ; ) )

2008-12-22 Thread John Montgomery
Yes, Thanks for this Art. I prefer to browse by threaded topic. 8) John Montgomery, Glassel, Scotland. -- Read this topic online here: http://osgforum.tevs.eu/viewtopic.php?p=3804#3804 ___ osg-users mailing

Re: [osg-users] Forum with Mailing list connection (Christmas Gift ; ) )

2008-12-22 Thread FlySky
  If someone is interested in Chinese,you can visit OsgChina(http://www.OsgChina.org) or OsgChinaBBS(http://bbs.OsgChina.org) .The forum is also good for many osg-users. 在2008-12-23,John Montgomery j.t.montgom...@abdn.ac.uk 写道: Yes, Thanks for this Art. I prefer to browse by threaded

Re: [osg-users] Forum with Mailing list connection (Christmas Gift ; ) )

2008-12-22 Thread Paul Speed
This one always confuses me. Are there really still e-mail clients out there that don't thread messages? There is value to a forum, I suppose but when people argue that they prefer having messages threaded, it always makes me scratch my head. :) -Paul John Montgomery wrote: Yes, Thanks

[osg-users] Reassigning of your mails to forum posts

2008-12-22 Thread Art Tevs
Ok folks, I do have a possibility to reassign your posts from the mailing list to your user registered at the forum. If you want your messages to be assigned to you back, you have to write me an email, like this: - Hey, could you please assign my messages to the user:

Re: [osg-users] Forum with Mailing list connection (Christmas Gift ; ) )

2008-12-22 Thread Art Tevs
The question is not if there are still such mail clients exists, it is more do you like to use mail clients? As for me I am working with OSG on three different machines, hence setting up mail client on each of this machine isn't that, that I really want to do (moving to GoogleMail or similar

Re: [osg-users] Forum with Mailing list connection (Christmas Gift ; ) )

2008-12-22 Thread John Montgomery
What Art says. .. and, Merry Christmas Paul. 8) John Montgomery, Glassel, Scotland. -- Read this topic online here: http://osgforum.tevs.eu/viewtopic.php?p=3809#3809 ___ osg-users mailing list

Re: [osg-users] osgTerrain Problem

2008-12-22 Thread Ryan Morris
Thanks guys for the quick responses! This is the kind of information you can't really come by going through the ref docs. I didn't know you could only use certain plugins could be used as heightfields. I assumed it was like blender where you can load a bw image and it will create a height map.

[osg-users] Texture Image Size

2008-12-22 Thread Ryan Morris
I've been looking through the mailing list and tutorials and I can't seem to find something that fits my issue. I've got a large node (.osg) exported with Blender and I can load it and apply a texture (.rgb image) to it but I can't seem to get the image to cover the whole node. I can set it to

Re: [osg-users] Texture Image Size

2008-12-22 Thread Gordon Tomlinson
If you want an image to be cover all of a model then the best place to do this assignment is in your modeling package, Multigen Creator has a texture tools called Surface project and Spherical Project Textures which would take one image and apply to the polygons selected which correct set all the