Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 15-07-2007, 03:15 PM   #1
AberAber
Registered User
 
Join Date: Jul 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Adding Material with Diffuse Color + Texture to .obj file

I need to apply a material to my model, except that the material needs to support diffuse color *and* a texture. In Maya, when I make a material, I can change the diffuse color simply by editing the Color. However, once I drag a texture and connect it to the Color, I can't modify the Color anymore, and inside the texture there are some color commands but none of them modify the Diffuse component anymore.

The problem is that this diffuse color now default to 0,0,0. I am exporting the model to .obj format, and Kd exports as 0,0,0, but should at the least be 1,1,1, or other valid values. If it's 0,0,0 as Maya exports, the object becomes black. I've tried layered shaders, but they don't export properly nor do they give the expected effect.

Thanks.
AberAber is offline   Reply With Quote
Old 16-07-2007, 05:35 AM   #2
Falott
Registered User
 
Falott's Avatar
 
Join Date: Jan 2005
Location: vienna
Posts: 1,095
Thanks: 3
Thanked 20 Times in 18 Posts
Default

for which software do you export as an obj? and -> why confuse yourself with getting the shader right inside maya? whatever software it is Ithink it will be better to put up a shader there.
__________________
everything starts and ends in the right place at the right time.
Falott is offline   Reply With Quote
Old 18-07-2007, 09:06 AM   #3
AberAber
Registered User
 
Join Date: Jul 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It's not for a model editor, but implemented in another program (not an editor). I need both modes, because sometimes I will render it without the textures, and sometimes with, and also the color seems to affect the texture. Is there any way to do this in Maya? It seems like there definitely should be, since it always outputs Kd anyways. The Kd is used in DirectX, with FVF as coords + color.

I export it to .obj using Maya's (V7) export to .obj feature.

Last edited by AberAber : 18-07-2007 at 09:09 AM.
AberAber is offline   Reply With Quote
Old 18-07-2007, 01:37 PM   #4
Weyu
Registered User
 
Weyu's Avatar
 
Join Date: Nov 2006
Location: Sweden
Posts: 482
Thanks: 0
Thanked 2 Times in 3 Posts
Default

Yeah that´s a good question, what format supports uv maps/textures shades etc. OBJ. only supports the model itself or?
Weyu is offline   Reply With Quote
Old 18-07-2007, 01:57 PM   #5
Falott
Registered User
 
Falott's Avatar
 
Join Date: Jan 2005
Location: vienna
Posts: 1,095
Thanks: 3
Thanked 20 Times in 18 Posts
Default

newmtl blinn1SG
illum 4
Kd 0.00 0.00 0.00
Ka 0.00 0.00 0.00
Tf 1.00 1.00 1.00
map_Kd test.jpg
Ni 1.00
Ks 0.50 0.50 0.50

i guess this code from the .mtl-file of the objExport is what you was talking about. as I am no programmer and give geometries as well as animation data straight away, I can´t tell exactly - but I once watched a friend modifieing this code with some lines for his engine.

everybody I worked with did put up shaders in their own program. be it Quest3D or some selfcoded graphics Engine. I usually export directX_files from 3dsMax cause maya ever since has problems with doing it right. UVs are stored correctly in this fileformat. but I´m looking forward to try okinoPolytrans. to get better results then I do with just transferring from maya to max to directX.

other than that it is all just I dont really know m8!
__________________
everything starts and ends in the right place at the right time.
Falott is offline   Reply With Quote
Old 19-07-2007, 12:00 AM   #6
AberAber
Registered User
 
Join Date: Jul 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Such a simple thing, frustrating.
AberAber is offline   Reply With Quote
Old 19-07-2007, 01:10 AM   #7
Falott
Registered User
 
Falott's Avatar
 
Join Date: Jan 2005
Location: vienna
Posts: 1,095
Thanks: 3
Thanked 20 Times in 18 Posts
Default

obj-format stores UVs only if you export with a texture. when exported with a colorshader only the UVs seem to get lost...
__________________
everything starts and ends in the right place at the right time.
Falott is offline   Reply With Quote
Old 23-07-2007, 02:42 PM   #8
AberAber
Registered User
 
Join Date: Jul 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Originally posted by Falott
obj-format stores UVs only if you export with a texture. when exported with a colorshader only the UVs seem to get lost...
Right, but I need the Kd color when I export with the texture. It just makes it 0,0,0.
AberAber is offline   Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open a Lightwave file in Maya 2011 radiant777 Maya Basics & Newbie Lounge 2 04-12-2010 03:45 AM

Thread Tools





A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.