Hi Luca,

I've just committed support for the material description strings. Each
material will have its own description string added to the root node. Here
is a sample description:

# osgmaxexp material data
Name Basketball
Map Diffuse 0 1 images\bball_diffuse.jpg
Map Bump 1 0.3 images\bball_normal.jpg

Try it out and let me know if you encounter any issues.

Cheers,
Farshid


On Wed, May 18, 2011 at 8:15 AM, Farshid Lashkari <[email protected]> wrote:

> Hi Luca,
>
> On Wed, May 18, 2011 at 8:02 AM, Luca Vezzadini 
> <[email protected]>wrote:
>>
>> I'm suggesting that we have one line per each map; so if you have 5
>> materials each with 3 maps you'll see 15 description lines in total. And
>> each line should include the material ID it refers to so it's
>> straightforward to parse (each line carries all the info you need,
>> regardless of other strings).
>>
>> Then, as each node (so, in our case, the root node) can have multiple
>> description strings (it's a vector), we can choose if we pack all the lines
>> as a single string, if we group them by materials or if we have one string
>> per line. Maybe we can make a few tests and see what is easier to read; but
>> they are functionally equivalent anyway.
>
>
> I'm going to start playing around with this today. I'm leaning towards each
> material having its own description string. I'll let you know when I get
> something working.
>
> Cheers,
> Farshid
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to