Hello Ricardo,
On 12/12/2011 03:57 AM, Ricardo Schrumpf wrote:
> I store texture coordinates in a certain slot. Now if i add a texture
> chunk by using addchunk( tc, slot ), nothing happens, if the slot is
> greater than 3. If i assign it to a texture unit 3 or smaller,
> everything works fine. I've checked all my texture coordinates for
> errors and all seems to be correct.
>
> Example
> #####
> geo->setTexCoords3( tcc );
> cm->addChunk( tc, 3 );
> --> works fine
>
> #####
> geo->setTexCoords4( tcc );
> cm->addChunk( tc, 4 );
> --> not working
>
> Where is the problem? I hope you can help me.
is your geometry multi-indexed? If yes, you also have to adjust the
index mapping, so that the i-th index value is used as offset into tex
coords 4:
MFUInt16 *im = geo->editMFIndexMapping();
// i-th index does not apply to tex coords 3 any more
(*im)[i] &= ~Geometry::MapTexCoords3;
// i-th index now applies to tex coords 4
(*im)[i] |= Geometry::MapTexCoords4;
If that is not the case, can you provide more information about your
geometry or do you have a small program that demonstrates the problem?
Can you give more details on what happens when it is "not working"?
Cheers,
Carsten
------------------------------------------------------------------------------
Learn Windows Azure Live! Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for
developers. It will provide a great way to learn Windows Azure and what it
provides. You can attend the event by watching it streamed LIVE online.
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users