Hello Victor,

On 04/26/2012 03:26 AM, Victor Haefner wrote:
> I attached a simple textured cube from blender collada exporter, OpenSG
> doesn't load it:
> WARNING: ColladaGeometry::handleBindMaterial: Failed to resolve
> <bind_vertex_input> inSemantic [TEXCOORD] inSet [0] semantic [UVMap].
>
> I am not sure if it is on the blender or OpenSG side..

hmm, always tricky to say with Collada ;) I'll take a look.

> I just recently started with OSG 2.x, so I have some smaller porting issues:
>
> OSGSimpleAttachments.h seams to be deprecated, but it is still in the
> OpsnSG2.0 tutorials
> http://www.opensg.org/wiki/Tutorial/OpenSG2/NodeCores
> I suppose it should be
> OSGNameAttachment.h

yes, fixed, thanks.

> When I switch the parent node I used to addRefCP the child node, how am
> I supposed to proceed now?

Keep a NodeRefPtr to the child, it will keep the child alive.

> and do I still need:
> ract->setLocalLights(true);

don't think so, the function does not exist any longer ;)

> some issues with chunk materials:
> ChunkMaterialRecPtr mat =
> dynamic_cast<ChunkMaterial*>(getMesh()->getMaterial());
> mat->getChunks(0);
>
> getChunks is private, is there an alternative to get the chunks of the
> material?

yes, getMFChunks() to get (a pointer to) the whole field or getChunk(i) 
to get the i-th chunk.

        Cheers,
                Carsten

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to