.NET

Reply
Valued Contributor
80 Posts
0 Kudos
Registered: ‎04-20-2005
Post 1 of 3

Material Object (render) with c#

150 Views, 2 Replies
12-18-2006 10:49 AM
Hi guys..
I'm going to build with code a material..in c#.

I have a serious problem with the diffuse assignment...
MaterialMap constructor assigned with "New" don't run correctly...IMHO.

please take a look at the material3.jpg !
Here the constructor MaterialMap with the parameters "source = 1" (file) perform the constructor...and the result is source = "scene" (0)

So i'm not able to use a texture for the Diffuse material's component :smileysad: :smileysad:

What can I do ?

is there a my wrong ? where is it ? I ' can't see it!
what
Valued Contributor
80 Posts
0 Kudos
Registered: ‎04-20-2005
Post 2 of 3

Re: Material Object (render) with c#

12-18-2006 10:51 AM in reply to: base2
please take a look here! this is my debug window
New Member
2 Posts
0 Kudos
Registered: ‎08-30-2007
Post 3 of 3

Re: Material Object (render) with c#

08-30-2007 10:43 PM in reply to: base2
This is kindof late, however, somebody searching for the answer in the future could make use of this:

Don't use MaterialTexture, use:

GraphicsInterface.ImageFileTexture

if the diffuse source is from an image file. You would use the MarbleTexture class for marble, and WoodTexture class for wood.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post