You can only open 3D Studio material library files with lib3ds.
3dsmax.mat looks like a 3dsmax libary.
Post by Adrian BedeauHi,
Thank Jan you for your reply. I think your idea is great so I went and
tried it out right away. I tried to load the file 3dsmax.mat (that
comes with 3DS max - I copied the file to C:\temp) using the following
Lib3dsFile* matLib=lib3ds_file_open("C:\\temp\\3dsmax.mat");
but matLib is NULL.
Has anyone tried doing this before? Have I done something wrong? Your
thoughts would be much appreciated!
Thank you,
Adrian
On Thu, Jul 31, 2008 at 1:13 PM, Kyprianidis, Jan Eric
Load the mat file with lib3ds. Search for the material. Copy it and put
the material in the 3ds file you are writing out..
Post by Adrian BedeauThank you Jan for your reply.
So I assume that there is no way to programmatically apply a
material
Post by Adrian Bedeauin a .mat file to an object when writing out a 3ds file. The
only way
Post by Adrian Bedeauyou can apply a material in a .mat file to an object would be to
do it
Post by Adrian Bedeauin 3ds Max. Am I correct?
Thanks very much!
Adrian
On Thu, Jul 31, 2008 at 11:07 AM, Kyprianidis, Jan Eric
Hi,
the 3ds file format only allows to specify images for
texture maps
Post by Adrian Bedeau(and
SXP plugins).
Jan Eric
Post by Adrian BedeauHi again,
I have a 3dsMax material library file (.mat file)
"gems.mat" which
Post by Adrian BedeauPost by Adrian Bedeaucontains materials named "diamond," "gold," etc. I am using
lib3ds to
Post by Adrian Bedeaucreate a cube and would like to map the material "diamond"
onto the
Post by Adrian BedeauPost by Adrian Bedeaufaces of my cube. I have tried doing
strcpy(material->texture1_map.name
<http://texture1_map.name> <http://texture1_map.name>
Post by Adrian Bedeau<http://texture1_map.name>, "diamond");
Post by Adrian Bedeauand set Lib3dsFace.material field to the index of
"material" for the
Post by Adrian BedeauPost by Adrian Bedeaufaces of my cube. I then added the directory containing
"gems.mat" to
Post by Adrian Bedeauthe user path for external files in 3ds Max. However when I
render my
Post by Adrian Bedeauobject, I do not see the diamond mapped on to the faces. This
makes me
Post by Adrian Bedeauwonder if it is possible to set texture map name to a material
in .mat
Post by Adrian Bedeaufile using lib3ds, or I can only set texture map name to an
image file
Post by Adrian Bedeauwhich is not contained in a .mat file? If anyone knows
about this,
Post by Adrian BedeauPost by Adrian Bedeauwill you please enlighten me?
Thanks again!
Adrian
------------------------------------------------------------------------
-------------------------------------------------------------------------
Post by Adrian BedeauPost by Adrian BedeauThis SF.Net email is sponsored by the Moblin Your Move
Developer's challenge
Post by Adrian BedeauBuild the coolest Linux based applications with Moblin SDK
& win
Post by Adrian Bedeaugreat prizes
Post by Adrian BedeauGrand prize is a trip for two to an Open Source event anywhere
in the world
Post by Adrian Bedeauhttp://moblin-contest.org/redirect.php?banner_id=100&url=/
<http://moblin-contest.org/redirect.php?banner_id=100&url=/>
Post by Adrian Bedeau<http://moblin-contest.org/redirect.php?banner_id=100&url=/
<http://moblin-contest.org/redirect.php?banner_id=100&url=/>>
------------------------------------------------------------------------
Post by Adrian BedeauPost by Adrian Bedeau_______________________________________________
lib3ds-devel mailing list
https://lists.sourceforge.net/lists/listinfo/lib3ds-devel
-------------------------------------------------------------------------
Post by Adrian BedeauThis SF.Net email is sponsored by the Moblin Your Move
Developer's
Post by Adrian Bedeauchallenge
Build the coolest Linux based applications with Moblin SDK & win
great prizes
Grand prize is a trip for two to an Open Source event
anywhere in
Post by Adrian Bedeauthe world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
<http://moblin-contest.org/redirect.php?banner_id=100&url=/>
Post by Adrian Bedeau<http://moblin-contest.org/redirect.php?banner_id=100&url=/
<http://moblin-contest.org/redirect.php?banner_id=100&url=/>>
Post by Adrian Bedeau_______________________________________________
lib3ds-devel mailing list
https://lists.sourceforge.net/lists/listinfo/lib3ds-devel
------------------------------------------------------------------------
-------------------------------------------------------------------------
Post by Adrian BedeauThis SF.Net email is sponsored by the Moblin Your Move
Developer's challenge
Post by Adrian BedeauBuild the coolest Linux based applications with Moblin SDK & win
great prizes
Post by Adrian BedeauGrand prize is a trip for two to an Open Source event anywhere
in the world
Post by Adrian Bedeauhttp://moblin-contest.org/redirect.php?banner_id=100&url=/
<http://moblin-contest.org/redirect.php?banner_id=100&url=/>
------------------------------------------------------------------------
Post by Adrian Bedeau_______________________________________________
lib3ds-devel mailing list
https://lists.sourceforge.net/lists/listinfo/lib3ds-devel
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
<http://moblin-contest.org/redirect.php?banner_id=100&url=/>
_______________________________________________
lib3ds-devel mailing list
https://lists.sourceforge.net/lists/listinfo/lib3ds-devel
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
------------------------------------------------------------------------
_______________________________________________
lib3ds-devel mailing list
https://lists.sourceforge.net/lists/listinfo/lib3ds-devel