Hi,
I am using the OSG, but I unable to set the viewport or view backgraund
color as transparent.
Please help me to resolve this issue.
Thanks
Vishwa
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo
Hi,
I am trying to implement the 3D overlay above current view. I am trying to
set the camera background color as transparent. I am using following code.
osg::Node* node= osgDB::readNodeFile( "Models/cessna.osg");
osg::Camera* camera = new osg::Camera;
camera->setViewport( 0, 0, 200, 200 );
camer
Hi Vishwa,
today when I was updating my OSG I just realized that I was using a modified
version of GraphicsWindowIOS... that's why transparency was working with that
code.
You can achieve the same result with the original GraphicsWindowIOS by calling
this code before setting the traits:
Code
Hello Vishwa,
Can you please elaborate what you are trying to achieve?
You can set the viewers camera's clear color with an alpha value less
than one. (.setClearColor(r,g,b,a))
But I (and possibly others) don't understand what you are trying to do
with this, as the background is basically drawn
Hi Shekhar,
to set a transparent background you have to enable alpha when you set your
traits
When you set the graphic context traits
osg::ref_ptr traits = new
osg::GraphicsContext::Traits;
you can just add the line to your configuration:
traits->alpha = 1;
after you create a graphicc
Hi Shekhar,
On 2 June 2012 12:30, shekhar vishwa wrote:
> I am using the OSG, but I unable to set the viewport or view backgraund
> color as transparent.
Do you actually mean that you want it completely transparent? As in
disable the clear of the colour buffer completely? If so then use the
Cam
Hi,
Thanks for help. Now I can make the camera background as transparent. What
parameters need to set the camera background as semi-transparent.
Please help me.
Thanks
Vishwa
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.op
Hi Vishwa,
On 4 June 2012 20:49, shekhar vishwa wrote:
> Thanks for help. Now I can make the camera background as transparent. What
> parameters need to set the camera background as semi-transparent.
What do you mean by semi-transparent background? Everyone has given
you as much guidance as can
Hi,
I want to show the models on semi-transparent backgroud color. I have
implemented following code
camera1->setViewport( 0, 0, 200, 200 );
camera1->setClearColor( osg::Vec4(0.0f, 1.0f, 1.0f, 0.5f) );
camera1->setRenderOrder( osg::Camera::POST_RENDER );
camera1->setAllowEventFocus( true );
Hi Draw semitransparent quad in ortho projection before your models. With clear color disabled. Cheers. 05.06.2012, 08:01, "shekhar vishwa" :Hi, I want to show the models on semi-transparent backgroud color. I have implemented following codecamera1->setViewport( 0, 0, 200, 200 );camera1->setClearC
Hi Vishwa,
You still don't explain what you mean by a semi-transparent background
colour, given what replies you've already had and you've tried it
suggest to me that you really are talking about something different as
what you are asking really doesn't make sense in an normal graphics
application
I thin you can try to set the clear mask alpha channel to a value of 0.5
cheers,
John
On Jun 4, 2012, at 9:49 PM, shekhar vishwa wrote:
> Hi,
>
> Thanks for help. Now I can make the camera background as transparent. What
> parameters need to set the camera background as semi-transparent.
>
I think Vishwa wants to do something similar to what I am currently doing in
iOS. I set transparent background in order to see some layer that is below,
which in my case is the image coming from the videocamera. Anyway it would be
helpful if Vishwa you can explain us better the purpose of your a
Hi,
I am trying to implement the multiple views in same window. Each view
render the diffrent models.User can set the view position at run time by
mouse dragging. If dragged view is overlapped with any view then dragged
view backgroud should be semi-trasparent.
Please suggest me to resolve this.
Hi Vishwa,
On 6 June 2012 05:46, shekhar vishwa wrote:
> I am trying to implement the multiple views in same window. Each view render
> the diffrent models.User can set the view position at run time by mouse
> dragging. If dragged view is overlapped with any view then dragged view
> backgroud sho
Hi Vishwa,
the only way I can help you is giving you my code of initialization:
Try to adapt it for non your platform.
variables of instance:
osg::ref_ptr _viewer;
osg::ref_ptr _root;
- (osg::ref_ptr)createGraphicContext
{
//create our graphics context directly so we can pass our own window
Hi,
I have implemented above code but it does not make the viewport background
transparent. I want to see the underlying views being the viewport.
Thanks
Vishwa
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.o
17 matches
Mail list logo