[osg-users] Billbord zooming

2010-10-11 Thread Nitin Rangari
HI all,

I am using Billboard for adding small images.
Its Working but I want constant  Image it should not Scale while
zooming.

-- 
Nitin Rangari
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] adding a grid to another plane

2010-09-29 Thread Nitin Rangari
hi all,

i want to draw grid  for that i am using osg::HeightField but it is
drawing only in xy Plane.
is it possible to draw in another plane?..

thanks and regard
Nitin Rangari
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Problem regarding apply Light with material

2010-08-31 Thread Nitin Rangari
hi All,

  I am trying apply light in scene but it appearing White
  My question is that
 1) Do I need to turn off  off the default light does it make
any difference
  2) is apply material to body make any difference in lighting.


   Thanks in advance

cheers,
Nitin Rangari
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] What is setRenderBinDetails ................

2010-07-20 Thread Nitin Rangari
Hi All,

   i have very simple  question i want to know What is
setRenderBinDetails
   when its use..

regards,
Nitin
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[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


[osg-users] Reduce size of Texture with respect to Viewport

2010-06-09 Thread Nitin Rangari
Hi All,

   How Can I display image or texture  very small
   with respect  to  viewport Size .

regards,
Nitin
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] problem in changing view from perspective to orthographic

2010-05-31 Thread Nitin Rangari
hi all,

i am trying to change Projection matrix from perspective to
Orthographic
i am not finding proper way to do that..
i am trying..

 void GraphicsScene::makeOrtho()
   {
osg::BoundingSphere bs = mRootNode-getBound();
   double h= _gw-getTraits()-height;
  double w= _gw-getTraits()-width;
   double aspectratio=w/h;

  double width = bs.radius()* 1.2;
   double height = bs.radius()*1.2;
 i   f(widthheight)
  {
  aspectratio=width/height;

 
getCamera()-setProjectionMatrixAsOrtho(-width*aspectratio,width,-height*aspectratio,height,1.0,1.0);
   }
  else
 {
   aspectratio=height/width;

  
getCamera()-setProjectionMatrixAsOrtho(-width*aspectratio,width*aspectratio,-height,height,1.0,1.0);
   }
 }
regards ,
Nitin
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Problem on Scaling with TrackBall Manipulator using Orthographic Projection

2010-05-20 Thread Nitin Rangari
Hi all,

 I am trying to use TrackBallManipulator  with Orthographic Projection
 but When i try to Zoom  its not Working.
 Thank you,

cheers,
Nitin
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Hidden Line Removal

2010-05-12 Thread Nitin Rangari
   Hi all,

  I am trying hidden line removal with setRenderBinDetails
  I have two Node

  1)mGeode  having triangulation data
  2)mLineGeode having line data

  i have written this for Hidden line removal,

   * osg::ref_ptrosg::StateSet ss = mGeode-getOrCreateStateSet();*
* **ss-setAttributeAndModes( new
osg::ColorMask(false,false,false,false),osg::StateAttribute::ON);*
* **ss-setBinName(RenderBin);*
* **ss-setBinNumber(1);*
* **ss-setRenderBinDetails(1,RenderBin);*
* **ss =mLineGeode-getOrCreateStateSet();*
* **ss-setBinName(RenderBin);*
* **ss-setBinNumber(2);*
* **ss-setRenderBinDetails(2,RenderBin);*
* **ss-setMode(GL_POLYGON_OFFSET_FILL,osg::StateAttribute::ON);*
* **osg::PolygonOffset *po = new osg::PolygonOffset(10.0f,10.0f);*
* **ss-setAttributeAndModes(po,osg::StateAttribute::ON);*

  it working fine but problem is that line which rendering it coming *dash
line or we can say stiple line*
*  insted of solid line...*

cheers,
Nitin
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Add Text in texture in OSG

2010-05-08 Thread Nitin Rangari
Hi all,

I want to add my Own text in Texture within particular  Location in
Texture
where I click mouse cursor.
Is there anyone have any idea regarding same

Cheers,
Nitin
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Setting 2D Camera in scene

2010-05-06 Thread Nitin Rangari
hi All,

I am trying to set 2D Camera in scene

 i have write code for that

 pScene-getCamera()-setProjectionMatrixAsOrtho2D(-1,1,-1,1);

  but its coming 3D.

regards,
Nitin
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Bounding Box ratio

2010-05-06 Thread Nitin Rangari
Hi All,

 I have 2 Bounding Box one is having Texture and other is having Geometry
node

i want render geometry data in texture

for that i want 2 compare 2 bounding box  and scale according to that

how can i get ratio of 2 bounding box.

regards,
Nitin
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Can, t Set Home Position using Spherical Manipulator...............

2010-04-29 Thread Nitin Rangari
Hi All,
  I am using Spherical Manipulator since its suit for cad application
  but I am not able to set  Home Position in Spherical
Manipulator.

regards,
Nitin
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] ConvexHull

2010-04-14 Thread Nitin Rangari
I have created class AXConvexHull derive from  osg::TriangleMesh

class AXConvexHull:public osg::TriangleMesh
{
public:

public:

AXConvexHull() {}

   /* AXConvexHull(const AXConvexHull mesh,const CopyOp
copyop=CopyOp::SHALLOW_COPY):
Shape(mesh,copyop),
_vertices(mesh._vertices),
_indices(mesh._indices) {}
META_Shape(osg, AXConvexHull);*/


void setVertices(osg::Vec3Array* vertices) { _vertices = vertices; }
 osg::Vec3Array* getVertices() { return _vertices.get(); }
const osg::Vec3Array* getVertices() const { return _vertices.get();
}

void setIndices(osg::IndexArray* indices) { _indices = indices; }
osg::IndexArray* getIndices() { return _indices.get(); }
const osg::IndexArray* getIndices() const { return _indices.get(); }

void setNormals(osg::Vec3Array* normals) { _normals = normals; }
osg::Vec3Array* getNormals() { return _normals.get(); }

protected:

virtual ~AXConvexHull(){}
osg::ref_ptrosg::Vec3Array _vertices;
osg::ref_ptrosg::IndexArray _indices;
osg::ref_ptrosg::Vec3Array _normals;
};

but when i do

osg::ref_ptrosg::Geode geode=new osg::Geode();
 adaptive3d::AXGraphicsMesh* patch =dynamic_castAXGraphicsMesh*(gObject);
if(patch!=NULL)
{
 myMesh-setIndices(patch-getIndicesData());
myMesh-setVertices(patch-getVerticesData());
myMesh-setNormals(patch-getNormalData());
}
   currentShapeDrawable = new osg::ShapeDrawable(myMesh);
 geode-addDrawable(currentShapeDrawable);
rootgNode-addChild(geode.get());
its not showing anything
.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osg-users Digest, Vol 33, Issue 72

2010-03-31 Thread Nitin Rangari
)\CMake 2.8\bin\cmake.exe
  -DBUILD_TYPE=Release -P cmake_install.cmake
  3C:\Program Files
  (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):
 error
  MSB3073: :VCEnd exited with code 1.
  == Build: 2 succeeded, 1 failed, 77 up-to-date, 0 skipped
  ==
 
 
 
  On Tue, Mar 30, 2010 at 7:00 PM, Jean-S?bastien Guay 
  jean-sebastien.g...@cm-labs.com wrote:
 
  Hi Anders,
 
 
   What about the install of OpenThreads, anyone seen it before?
 
 
  Nope, I always run the INSTALL target after building (on VS2005 and
 VS2008
  though) and have never seen that. In my case the file it's trying to
 find
  exists...
 
  Were there any errors when building OpenThreads (maybe buried in the
  output so you didn't see it)? The only reason why it shouldn't be there
 is
  if it wasn't built, and sometimes the INSTALL target runs even if
 dependent
  projects failed to build (which doesn't make sense to me, but that's how
  CMake does it)...
 
  J-S
  --
  __
  Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
http://www.cm-labs.com/
 http://whitestar02.webhop.org/
 
  ___
  osg-users mailing list
  osg-users@lists.openscenegraph.org
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 
 
 
 
 
 -- next part --
 An HTML attachment was scrubbed...
 URL: 
 http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20100330/44ca42d5/attachment.html
 

 --

 Message: 2
 Date: Tue, 30 Mar 2010 13:50:55 -0500
 From: Cory Riddell c...@codeware.com
 To: OpenSceneGraph Users osg-users@lists.openscenegraph.org
 Subject: [osg-users] stereo mode for part of a scene graph?
 Message-ID: 4bb2480f.7060...@codeware.com
 Content-Type: text/plain; charset=ISO-8859-1

 In my scene graph, I have a static image for the background (a
 white-blue gradient). When I turn on stereo mode, I get a red stripe on
 the right and a blue stripe on the left side of the window. I thought I
 was drawing my background the same way statistics are drawn, but
 apparently I'm not (btw, stats draw just fine - no red/blue).

 What controls if something is subject to stereo separation?

 Thanks,
 Cory


 --

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


 End of osg-users Digest, Vol 33, Issue 72
 *




-- 
Nitin Rangari
Member of Technical Staff(CAD)
Centre for Computational Technologies Pvt. Ltd.
Mobile: +91-9975453673
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org