Re: [osg-users] How to make sure that both the back and the front side of a polygon are lit...

2010-06-29 Thread Alberto Luaces
Hi Sunil, Sunil S Nandihalli writes: Hello everybody,  I would like to have both the front and the back side of the polygons I draw lit. Right now I have specified the normals and only the side which is on the same side as that of the normals is being lit.. Should I render the

Re: [osg-users] Future of osgIntrospection + genwrapper, volunteers required.

2010-06-29 Thread Wang Rui
Hi Mike, It would be appreciated if you and others can contribute to the 'newborn' osgIntrospection project. I've just finished updating all the cmake scripts and a new example which explains how to use the wrappers to construct and view a simple scene. Now people who use osgIntrospection in

[osg-users] OT: Magic Planet

2010-06-29 Thread J.P. Delport
Hi all, has anyone used something like this before? http://www.globalimagination.com/products.html jp -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found

Re: [osg-users] How to make sure that both the back and the front side of a polygon are lit...

2010-06-29 Thread Tony Horrobin
Hi Sunil, Just to be clear, you also need to specify a two-sided light model to make OpenGL apply both front and back materials. The osg::LightModel class allows this. Cheers, -Tony ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Plugin to Node Kit?

2010-06-29 Thread Robert Osfield
Hi Brad, The plugins are designed to be entirely encapsulated within themselves and not to export any symbols, save for any C function entry points for enabling static linking of plugins. This decoupled approach does mean that you don't have any public interface to access internals

Re: [osg-users] Shader composition, OpenGL modes and custom modes

2010-06-29 Thread Mathias Fröhlich
Hi Robert, On Monday 28 June 2010, Robert Osfield wrote: Yes, even if we tweak the API a bit in StateSet any new elements will sorted virtue of being in StateSet. Whatever we do StateSet's will remain the container for all things state in the scene graph, and the what basis of coarsed

Re: [osg-users] Future of osgIntrospection + genwrapper, volunteers required.

2010-06-29 Thread Robert Osfield
Hi Wang Rui, Good to see osgIntrospection updates coming through ;-) On Tue, Jun 29, 2010 at 8:51 AM, Wang Rui wangra...@gmail.com wrote: To submit changes, just start new threads on the osg-users (or osg-submissions? Is it permitted, Robert?). It would be fine to keep discussions of

Re: [osg-users] Shader composition, OpenGL modes and custom modes

2010-06-29 Thread Robert Osfield
Hi Mathias, 2010/6/29 Mathias Fröhlich m.froehl...@science-computing.de: So, what I think is that we need minimize shader compilation as well as shader *linking* as much as possible. If the implementation you have in mind really does this, then fine. If you intent to relink on about every

Re: [osg-users] Shader composition, OpenGL modes and custom modes

2010-06-29 Thread Robert Osfield
I've not at the computer full time for the last couple of days so haven't been able to push the shader composition implementation on yet. Design wise I've been doing bits here and there. My latest thought is that we probably need to encapsulate the component that will go to make up shader

Re: [osg-users] [osgPlugins] OBJ plugin loader places model at wrong position and with wrong attitude

2010-06-29 Thread Gianni Ambrosio
Hi, is there a way to set noRotation option again to the default value? Regards Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29479#29479 ___ osg-users mailing list

[osg-users] setting a color to material

2010-06-29 Thread Nitin Rangari
hi all, can i set a both color array and material in one geometry? thanks, Nitin ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] setting a color to material

2010-06-29 Thread Trajce (Nick) Nikolov
yes. You can set the color directly for the Geometry and the Material as a State -Nick On Tue, Jun 29, 2010 at 5:37 PM, Nitin Rangari rangari.niti...@gmail.comwrote: hi all, can i set a both color array and material in one geometry? thanks, Nitin

Re: [osg-users] [osgPlugins] OBJ plugin loader places model at wrong position and with wrong attitude

2010-06-29 Thread Alberto Luaces
Gianni Ambrosio writes: Hi, is there a way to set noRotation option again to the default value? I don't know if it is possible from the command line. You could osgconvert the files that are in odd orientations. Programmatically, just don't use the same osgDB::Options object in the next read.

Re: [osg-users] [vpb] terrain cracks

2010-06-29 Thread issam boughanmi
sorry for the late reply ! i build another terrain with other dem and imagery and it worked fine i don't know why ... -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29483#29483 ___ osg-users

Re: [osg-users] [osgPlugins] OBJ plugin loader places model at wrong position and with wrong attitude

2010-06-29 Thread Gianni Ambrosio
Alberto Luaces wrote: Programmatically, just don't use the same osgDB::Options object in the next read. Yes Alberto, I mean programmatically. What do you mean by that? What if I would like to use the existing osgDB::ReaderWriter::Options as is but just without the noRotation setting? If

Re: [osg-users] Shader composition, OpenGL modes and custom modes

2010-06-29 Thread Mathias Fröhlich
Hi Robert, On Tuesday 29 June 2010, Robert Osfield wrote: I believe we'll all be in agreement here. This is certainly what I'm aiming for, all the designs I'm working on use a program cache as a fundamental part of the design, with state changes minimized. I don't see it all as much

[osg-users] setFont

2010-06-29 Thread Gianni Ambrosio
Hi All, I looked at the OSG examples in vain to understand how to load a font properly. OSG examples work fine if started from my dev environment (VS) but setFont(fonts/blablabla.ttf) does not work if I run my app normally double clicking on the .exe file. The osgtext example have the same

Re: [osg-users] [osgPlugins] OBJ plugin loader places model at wrong position and with wrong attitude

2010-06-29 Thread Alberto Luaces
Hi Gianni, Gianni Ambrosio writes: Alberto Luaces wrote: Programmatically, just don't use the same osgDB::Options object in the next read. Yes Alberto, I mean programmatically. What do you mean by that? What if I would like to use the existing osgDB::ReaderWriter::Options as is but

Re: [osg-users] setFont

2010-06-29 Thread Alberto Luaces
Gianni Ambrosio writes: Is there a way in OSG to load fonts without copying the ttf file in the exe dir or set the file in the resources? Setting the environment variable OSG_FILE_PATH. -- Alberto ___ osg-users mailing list

Re: [osg-users] setFont

2010-06-29 Thread Jean-Sébastien Guay
Hello Gianni, I looked at the OSG examples in vain to understand how to load a font properly. OSG examples work fine if started from my dev environment (VS) but setFont(fonts/blablabla.ttf) does not work if I run my app normally double clicking on the .exe file. The osgtext example have the

[osg-users] Rotating a vector by a quat

2010-06-29 Thread John Galt
Hi, I am looking for an easy way to rotate a vec3d by a quat(roll, pitch, yaw). So if my vector is defined by (x,y,z) how do I figure out what the resultant of a spatial rotation of (roll, pitch, yaw) would be? I have calculated the final position of the vector using math but is there any

Re: [osg-users] setFont

2010-06-29 Thread Gianni Ambrosio
OK, so there isn't a special way to handle fonts in OSG. Thanks, Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29491#29491 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Transform Feedback

2010-06-29 Thread Ethan Kerzner
Hi, I guess my first question was too vague. Sorry about that. I am still trying to use transform feedback on an entire scene inside osg. I have created a CustomDrawable class with a drawImplementation that can perform transform feedback on anything drawn inside it. I am now trying to draw

Re: [osg-users] Plugin to Node Kit?

2010-06-29 Thread Brad Huber
Robert, Here is what I would like to do: We have an existing app that has a GUI which builds a directshow graph including selecting a capture device and properties on that capture device and building the necessary intermediate filters. If I can pass a Directshow Pin (or pointer to pin) into the

Re: [osg-users] [osgPlugins] OBJ plugin loader places model at wrong position and with wrong attitude

2010-06-29 Thread Gianni Ambrosio
Hi Alberto, Alberto Luaces wrote: remove noRotation probably my question is too stupid ... how can I remove it? I tried with: osgDB::ReaderWriter::Options* options = osgDB::Registry::instance()-getOptions(); options-removePluginData(noRotation) but it does not seem to work. I mean the

Re: [osg-users] [osgPlugins] OBJ plugin loader places model at wrong position and with wrong attitude

2010-06-29 Thread Gianni Ambrosio
OK, I think I didn't get the usage of the option string. I thought I could set a single option but it seems I have to set the whole option string again. So I have to parse the string to remove the noRotation substring ... if so, from my point of view it is not a user friendly API. Regards

Re: [osg-users] Plugin to Node Kit?

2010-06-29 Thread Stephan Maximilian Huber
Hi Brad, if the only thing you want is to pass paramters / objects to the plugin, so it sets up its stuff accordingly you can use ReaderWriter::Options::setPluginData and extend the DirectoShow-Plugin to use these plugin-data if available. So you can feed you directshow-pin to the plugin and set

Re: [osg-users] Plugin to Node Kit?

2010-06-29 Thread Brad Huber
Stephan, Excellent idea. I'm still cutting my teeth on this stuff. I'll pursue this option. I'll see if I can find some examples of passing non-primitive types through the plugin options. Thanks -Brad -Original Message- From: osg-users-boun...@lists.openscenegraph.org

Re: [osg-users] Shader composition, OpenGL modes and custom modes

2010-06-29 Thread Bruce Wheaton
Very excited about the new features Robert, sounds like you're really cracking on. I had two thoughts I hope you'll consider integrating: One is that GLSL is quite poor for initialization. The main problem with this is if you were to enable a shader with, say, 8 uniforms, there wasn't, until

[osg-users] Load of 8 bits image for creating texture

2010-06-29 Thread Adrien Chassard
Hi, I try to load a 8bits image and create an osg::Texture2D with it. I search all the day but without sucess. It seems that the image load by osgDB::readImageFile(...) is transform in a 32 bits image. Is it possible to load it as 8bits image with an associated look up table ? (I didn't find

[osg-users] Graphical issues with display lists on ATI 5870 cards

2010-06-29 Thread Andy Peruggi
Hi everyone, My company has been developing products using OSG for a few years now, and recently we've noticed some rendering issues on two machines that are both running ATI 5870 cards using the latest ATI drivers (Catalyst 10.6). We wanted to know if anyone running similar hardware has seen

Re: [osg-users] Shader composition, OpenGL modes and custom modes

2010-06-29 Thread Roland Smeenk
Hi Robert and others, unfortunately I am experiencing some stressfull time at work which does not really allow me to contribute to this thread as much as I would like to. I am trying to keep up with the posts, but not all posts are clear to me. robertosfield wrote: 1) Provide a way of

[osg-users] Understanding Transparent Textures with an transparent image with alpha channels

2010-06-29 Thread Tim Larson
I am attempting to utilize a transparent image as a texture map. I can successfully display the transparent image as a texture on a simple rectangular geometry. But, I would like to be able to see through to the background wherever the image is transparent. I've utilized the osgHelp program

Re: [osg-users] Graphical issues with display lists on ATI 5870 cards

2010-06-29 Thread Wojciech Lewandowski
Hi Andy, I have seen some funky effects recently on Radeon 5970 4890. I was not able to install 10.6 on Windows 7 64 bit on 5970. Driver kept crashing with classic BSOD. But texture corruption you mention was present in 10.5 on Radeon 4890 as well. In both cases we switched back to

[osg-users] moving object along rotated vector

2010-06-29 Thread Sanat Talmaki
Hi, I am attaching a screenshot of what I am trying to do. In the screenshot you can see 2 objects placed on a terrain. The lower one is rotated about Z axis and I use the keyboard UP and DOWN keys to move the object along the Y-axis in the terrain. However even after I have rotated the