.NET

Reply
Valued Contributor
base2
Posts: 80
Registered: ‎04-20-2005
Message 1 of 3 (135 Views)

Material Object (render) with c#

135 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
base2
Posts: 80
Registered: ‎04-20-2005
Message 2 of 3 (135 Views)

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
jstergar
Posts: 2
Registered: ‎08-30-2007
Message 3 of 3 (135 Views)

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.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community