Hi Gianluca,
> The _attributeMap actually contains as MATERIAL attribute exactly the pointer
> to the osg::Material property that I created.
> But in the attribute stack it appears as the ‘last_applied_attribute’, and
> ‘changed’ is set to true.
> For all other attributes the pointers stored
Thanks Sebastian,
I'm simply trying to get the alpha value of the diffuse component of the
material properties, because I have to pass it to an underlying
graphic library that I use for rendering that custom drawable.
BTW, I further investigated.
In the following function:
State::captureCurrentS
Hi Gianluca,
Have you tried using "getLastAppliedAttribute" on the osg::State object?
const osg::Material* mat = dynamic_cast(state.getLastAppliedAttribute(osg::StateAttribute::MATERIAL));
if(mat)
{
// do something with material
}
I've used this method to access attributes from the current s
Thanks Sebastian,
I'm simply trying to get the alpha value of the diffuse component of the
material properties, because I have to pass it to an underlying
graphic library that I use for rendering that custom drawable.
BTW, I further investigated.
In the following function:
State::captureCurrentS
Hi,
I think you can get the current material like this : (didn't compiled but
maybe as a hint)
osg::State* state = renderInfo.getState();
osg::State::AttributeMap& attrMap = state->getAttributeMap();
osg::StateAttribute::TypeMemberPair typeMember =
std::make_pair(osg::StateAttribute::MATERIAL,0);
Am 23.06.2015 18:05, schrieb Gianluca Natale:
Hi all,
I'm using OSG 3.0.1.
I have an issue when I try to retrieve the material properties from
the rendering info, in my custom drawable.
To be clearer:
I have a custom drawable, for which I implemented a
myDrawable::drawImplementation(osg:
Hi all,
I'm using OSG 3.0.1.
I have an issue when I try to retrieve the material properties from the
rendering info, in my custom drawable.
To be clearer:
I have a custom drawable, for which I implemented a
myDrawable::drawImplementation(osg::RenderInfo& osgRenderInfo).
When I try to get the ma
Ohhk. So this is it, Thanks Sir for your help. I'll be in touch with you.
--
Regards
Hitesh Singhal
Electrical Engineering
+91-8386837430
On Tue, Jun 23, 2015 at 5:58 PM, Jan Ciger wrote:
> On Tue, Jun 23, 2015 at 2:20 PM, HITESH Singhal
> wrote:
> > I was asking all that because I'm working
On Tue, Jun 23, 2015 at 2:20 PM, HITESH Singhal wrote:
> I was asking all that because I'm working on a software named VIZARD and it
> supports only OSG files. I have no option using any file other then OSG. So
> where can I find 3d Shopping Mall model in osg files directly. Any
> suggestion?
>
Y
Try sketchup with the export plugin https://github.com/rpavlik/sketchupToOSG
You may find sample models on the 3D Warehouse that can be exported easily. But
as Jan said, you may need to tweak a thing or two.
--Danilo
De: osg-users em nome de HITESH
Singhal
E
I was asking all that because I'm working on a software named VIZARD and it
supports only OSG files. I have no option using any file other then OSG. So
where can I find 3d Shopping Mall model in osg files directly. Any
suggestion?
--
Regards
Hitesh Singhal
Electrical Engineering
+91-8386837430
On Tue, Jun 23, 2015 at 1:32 PM, HITESH Singhal wrote:
> Hi,
> Thanks for your help. I've converted my model in .osgb but it is missing
> various textures and materials, It is not in the same form. How can I get
> the model exact in osgb, without any loss.
>
Generally speaking, you can't. 3DS Max
Hi,
Thanks for your help. I've converted my model in .osgb but it is missing
various textures and materials, It is not in the same form. How can I get
the model exact in osgb, without any loss.
--
Regards
Hitesh Singhal
Electrical Engineering
+91-8386837430
On Tue, Jun 23, 2015 at 1:56 PM, Jan
Hi,
I found the solution on my own. For anyone who is interested in the topic, here
is the solution:
The problem was that i checked the option "BUILD_OPENTHREADS_WITH_QT" in the
cmake options. If that option is not set active and everything is recompiled,
the error does not appear anymore.
..
Hi Elias,
Seems like you are after a change of coordinate frame (e.g. which axis
is front/up etc.)
From my experience: don't ...
What I usually do ist to transform at the interface by using a
permutation matrix.
So for instance if you want
x = x´
y = -z
z = y
then multiply your incoming pos
Hi Elias,
It seems to me that you are confusing local, world and eye coordinate
frames.
I really don't know why you are discussing NodeTrackerManipualtor in this
context, it's a camera manupulator for setting the view matrix of the
viewer's Camera to follow a Node in the scene graph. The manipul
Hello, Robert!
Thanks for the quick reply.
It seems i wasn't able to clarify my question. I dont use MatrixTransform or
PositionAttitudeTransform here because i don't want to transform my target node
relate to others. I want to change local XYZ in that node itself, not the
position of my node re
Actually that wouldn't work - Powershell doesn't find binaries in the
current directory (intentional security feature copied from Unix). You
need to type:
.\osgconv C:\MyPathToTheModel\model.3ds C:\MyPathToTheModel\model.osgb
J.
On Tue, Jun 23, 2015 at 9:06 AM, Trajce Nikolov NICK
wrote:
> For
Hi Elias,
The osg::Transform is the base class for creating transforms in the scene
graph, there are a collection of subclasses that you can use,
osg::MatrixTransform and osg::PositionAttitudeTransform being the most
commonly used, either of these can work for you. Have a look at the
osganimation
For this I would look up on web, how to update PATH environment variable in
Windows. For temporary use it might be something like
set PATH = %PATH%;C:\Users\Hiteshsinghal\Desktop\OpenSceneGraph-3.0.1-
VS9.0.30729-x86-release-12741\bin;
or
go to that bin folder and run it from there, but you have
Ya i have that but how to get this folder in my PATH environment??
--
Regards
Hitesh Singhal
Electrical Engineering
+91-8386837430
On Tue, Jun 23, 2015 at 12:26 PM, Trajce Nikolov NICK <
trajce.nikolov.n...@gmail.com> wrote:
> do you have
> C:\Users\Hiteshsinghal\Desktop\OpenSceneGraph-3.0.1-
21 matches
Mail list logo