The error was another thing, the problem was I forget to do this:

 iSFS->SetIntegerMap(strings->Request("materialmap"), matmap);

I change the material palette into an indexed image and I put the correct
numbers of materials in the palette but the problem now is that only shows
the last material pushed. The materialmap has to be the same size than the
heightmap?

Thanks

> The problem is that your material palette is not an indexed image. I
> see at least three colors in it: pure black (0,0,0), nearly black
> (1,1,1), and white (255,255,255). You should make sure it contains
> only 2 colors (for two material palette entries) and also make sure
> that it is indexed.
>
> Greetings,
>
> On 7/23/06, Manuel Padrón Martínez <[EMAIL PROTECTED]> wrote:
>> Hi:
>>
>> I'm trying to use the material map on the terrain from C++, I did a very
>> simple example based on simple1 tutorial (code attached). But when I run
>> it I get
>> "simpleterrain: plugins/mesh/terrain/brute/brute.cpp:249: void
>> CS::Plugin::BruteBlock::csTerrBlock::SetupMesh():`alphadata != 0'."
>> from the assert.
>>
>> If I remove one material from the palette it runs ok but don't use the
>> material map. (I attach the materialmap image that I'm using too)
>>
>> I don't know why, I tried to follow the steps of walktest into terrain
>> plugin but I get no clues about the problem. Anyone could help me?
>>
>> Thanks
>>
>>
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys -- and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>
>> _______________________________________________
>> Crystal-main mailing list
>> Crystal-main@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/crystal-main
>> Unsubscribe:
>> mailto:[EMAIL PROTECTED]
>>
>>
>>
>>
>
>
> --
> Project Manager of Crystal Space (http://www.crystalspace3d.org)
> and CEL (http://cel.crystalspace3d.org)
> Support Crystal Space. Donate at
> https://sourceforge.net/donate/index.php?group_id=649
>
>



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Crystal-main mailing list
Crystal-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to