Am 30.08.10 09:47, schrieb HB-GRAL:
> Am 30.08.10 09:27, schrieb Erik Hofman:
>> On Mon, 2010-08-30 at 03:10 +0200, HB-GRAL wrote:
>>> Hey, this is to much for me. Can someone help? (I apologize in advance
>>> if this is a known issue and tree code is not finished yet, I couldn’t
>>> find any postings about.)
>>
>> I think the trees are rendered using a shader now. And for shaders the
>> texture file is defined in the effect configuration file.
>>
>> Erik
>
> In the effect file there is only
>
>     <name>Effects/tree</name>
>     <parameters>
>       <texture n ="0">
>       </texture>
>     </parameters>
>
> I guess the shader should work with the texture in materials.xml but it
> puts only one (or first?) texture to osg?
>

Here is mat.cxx:

   const SGPropertyNode* treeTexNode = props->getChild("tree-texture");
   if (treeTexNode) {
     string treeTexPath = props->getStringValue("tree-texture");
     tree_texture = osgDB::findDataFile(treeTexPath, options);
   }

-Yves




------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to