Re: [osg-users] OSG 3.2 and GLSL 330 light and shadows

2014-07-03 Thread Jaime Cerv
Hi Solkar, I don't know how to do it; but sorry for the offtopic, have you been able to do custom shaders with shadows?? I want to combine bump mapping, specular and opacity with shadows. I tried it, but I couldn't. Thanks. -- Read this topic online here:

Re: [osg-users] Differences between applying setStateSet in a Node and a Drawable?

2014-06-26 Thread Jaime Cerv
Any ideas??? Also, if I apply the shader to the drawable, it has double face. But, if I apply it to node, it only has one face. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=59909#59909 ___

Re: [osg-users] Differences between applying setStateSet in a Node and a Drawable?

2014-06-26 Thread Jaime Cerv
Xatpy wrote: Any ideas??? Also, if I apply the shader to the drawable, it has double face. But, if I apply it to node, it only has one face. Edit: SOLVED! I had to enable cull face: stateset-setMode( GL_CULL_FACE, osg::StateAttribute::ON ); -- Read this topic online here:

Re: [osg-users] Changing image in texture2d

2014-06-18 Thread Jaime
How can I rotate and osg::ImageSequence??? I tried with this UpdateCallback: virtual void operator()(osg::Node* node, osg::NodeVisitor* nv) { osg::MatrixTransform* mtLeft = dynamic_castosg::MatrixTransform*( node ); osg::Matrix mR;

[osg-users] Changing image in texture2d

2014-06-17 Thread Jaime
Hi, I have a texture2D, and I want to change its image dynamically. How can I do it? I tried: Create()=== osg::ref_ptrosg::Geode geode = new osg::Geode; geode-addDrawable( osg::createTexturedQuadGeometry(osg::Vec3(), osg::Vec3(40.0,0.0,0.0), osg::Vec3(0.0,0.0,40.0)) );

Re: [osg-users] hello all, find osg is very powerful after learned five months

2014-06-17 Thread Jaime
Good example! Congratulations! Are you going to share the code? It would be great! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=59784#59784 ___ osg-users mailing list

Re: [osg-users] hello all, find osg is very powerful after learned five months

2014-06-17 Thread Jaime
Yeah, I mean sharing the source code of your demo. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=59786#59786 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Disable light in shaders?

2014-06-16 Thread Jaime
is applied or not. Robert. On 12 June 2014 10:21, Jaime wrote: Hi, I want to disable specific lights with OSG, and it affects models with shaders. How can I do it? What I have now, it is not working. I apply shaders with: osg::StateSet* stateset = new osg::StateSet

[osg-users] Disable light in shaders?

2014-06-12 Thread Jaime
Hi, I want to disable specific lights with OSG, and it affects models with shaders. How can I do it? What I have now, it is not working. I apply shaders with: osg::StateSet* stateset = new osg::StateSet; [...load shader...] stateset-setAttributeAndModes(programObject, osg::StateAttribute::ON

Re: [osg-users] Advanced rendering effects you'd like to see in OSG

2014-05-16 Thread Jaime
I agree on improving shadows. For example, 'advance' shaders (using attrib vertex) with shadows. Nick and I were talking about this a few time ago. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=59456#59456

Re: [osg-users] OSG and Spark Particle Engine

2014-05-16 Thread Jaime
Finally I solved it! I linked with last version in Spark SVN (https://svn.code.sf.net/p/sparkengine/code/), using SPARK Engine CORE DLL.lib and SPARK Engine GL DLL.lib. The problem were in: - osgspark.cpp (line 50) === //SPK::randomSeed = static_castunsigned int( time(NULL) ); I had to

Re: [osg-users] Adding uniforms to shaders that are part of the osgShadow::MinimalShadowMap

2014-05-13 Thread Jaime
Thanks Nick! Yes, I think it is an important issue. For example, a shadowed scene with bump mapping in the road. It would be great if we could solve this! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=59397#59397

[osg-users] Differences between applying setStateSet in a Node and a Drawable?

2014-05-09 Thread Jaime
What are the differences between applying setStateSet in a Node and in a Drawable?? I have a shader (BumpSpecularOpacity). If I set the stateset to a Node, it works correctly. But, if I set to a drawable it doesn't work. The stateset applied is the same. Any suggestions? Thanks!

Re: [osg-users] Differences between applying setStateSet in a Node and a Drawable?

2014-05-09 Thread Jaime
Thanks Robert for your response. So, I don't know why it isn't working. This is the way that I configure the shader: stateset-setTextureAttribute(0, m_vGeoms[iContDrawable]-m_tDiffuse); stateset-setTextureAttribute(1, m_vGeoms[iContDrawable]-m_tNormal);

Re: [osg-users] Android osgPlugins

2014-05-07 Thread Jaime
nathan wrote: Hi strean, I didn't resolve this, but I'm back looking at building OSG for Android, so I'll let you know how I get on. Cheers, Nathan Please, tell us how it is going. I am interested too in compile osg for Android. It would be great if you could give us some tips.

[osg-users] OSG and Spark Particle Engine

2014-05-05 Thread Jaime
downloaded the version 1.5.5 from http://sourceforge.net/projects/sparkengine/ However, this version doesn't work: ERROR LINK. So, I guess it is not the correct version...perhaps this is so actual. So, I wanna know how can I compile and use Spark. Thanks! ... Thank you! Cheers, Jaime

Re: [osg-users] Best way balance tree??

2014-04-24 Thread Jaime
Thanks for your response! I have a lot (5000 aprox) of trees in my example scene. Each tree has got two planes and textures. However, my terrain geometry is relatively simple. I think that the terrain is not the problem. And there are some buildings in some places. Also, there are cars and

Re: [osg-users] How to use Font^ as a variable in a C++ program ?

2014-04-24 Thread Jaime
Hi UtherPendragon17 (), Look in the OSG examples folders. ($OSG)\examples\osgtext\ There is a project that teachs you to use osg text and fonts. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=59140#59140

Re: [osg-users] Best way balance tree??

2014-04-24 Thread Jaime
Trajce Nikolov NICK wrote: Hi Jaime, what is the format of your terrain model (the file extension)? Nick On Thu, Apr 24, 2014 at 11:38 AM, Sebastian Messerschmidt () wrote: Hi Jaime, Thanks for your response! I have a lot (5000 aprox) of trees in my example

Re: [osg-users] How to use Font^ as a variable in a C++ program ?

2014-04-23 Thread Jaime
I think that what you should use is osgText::Text. There, you can do -setFont(font). font is the name of the font that you want to use. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=59112#59112 ___

[osg-users] Best way balance tree??

2014-04-23 Thread Jaime
Hi, I am developing a car simulator, and our scene is very big (100 km. aprox). What do you think is the best way to balance the osg tree?? LOD?? Thanks! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=59113#59113

Re: [osg-users] Best way balance tree??

2014-04-23 Thread Jaime
Thanks Sebastian. What about 'pools'? We have been thinking about having a pool system to manage trees (lamps, cars, etc.). We would render only the objects that are near the player. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=59116#59116

Re: [osg-users] ShadowMap + Other shaders (bump, specular, etc) example???

2014-04-14 Thread Jaime
Thanks kornerr. I was checking your code, but the problem is that I don't want deferred shading, because I need transparency too. I think I should use LightSpacePerspectiveShadowMap because there I can use setShadowVertex/FragementeShader. Nick helped me with his code (thanks again Nick!),

[osg-users] ShadowMap + Other shaders (bump, specular, etc) example???

2014-04-11 Thread Jaime
Hi, Does anybody have any example where I could find any solution to combine shadow maps and other shaders, specially bump mapping?? Thanks! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=58876#58876

Re: [osg-users] ShadowMap + Other shaders (bump, specular, etc) example???

2014-04-11 Thread Jaime
Thanks for your response Nick. Yes, I have my bump shader. But I don't know how to combine. Please, could you give me an example with code?? Thanks! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=58878#58878

Re: [osg-users] Uniform Matrix arrays for shaders

2014-04-09 Thread Jaime
And how can you update it?? I am trying to id tiwh ModelViewMatrix and ModelViewPerspectiveMatrix and I can't. Thank you! Cheers, Jaime -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=58785#58785

[osg-users] Matrix uniforms glsl

2014-04-09 Thread Jaime
Hi, I want to use matrix uniforms with GLSL shaders. I want to use MVM (modelview matrix) , MVP (modelviewprojection matrix) and NormalMatrix. How can I update it? Thank you! Cheers, Jaime -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=58783

[osg-users] Why isn't OSG popular and used?

2014-04-09 Thread Jaime
in the subject...why is not OSG popular and used?? If I look for information, there are not so much. Also, all the info is very very old. What do you think about it? Do you think that OSG has a potential power future, specially with video games? Thanks for your answers! Cheers, Jaime

Re: [osg-users] [build] Problems with planet game.

2010-05-06 Thread Jaime Home
Hey guys, I've only got until tomorrow, so if anyone can throw me a bone I'd be greatful. I'm going to quit the course but I need to present this. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=27613#27613

Re: [osg-users] [build] Problems with planet game.

2010-05-06 Thread Jaime Home
Thanks for your help. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=27625#27625 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] [build] Problems with planet game.

2010-05-05 Thread Jaime Home
Hi guys, I'm new to OpenSceneGraph, I'm doing a Uni course and I need some help. Here's my code. Code: #include iostream #include ctime #include cstdlib #include osg/Group #include osg/Geode #include osg/Geometry #include osg/ShapeDrawable #include osg/MatrixTransform #include

Re: [osg-users] [build] Problems with planet game.

2010-05-05 Thread Jaime Home
Hi, well during the time that past since I made this thread, I got it down to 3 errors, they are. Code: 1-- Build started: Project: Planets, Configuration: Release Win32 -- 1Compiling... 1MainThread.cpp 1.\MainThread.cpp(106) : error C2061: syntax error : identifier 'text'