Getting objs into Q3A with Maya

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
Bliccer
Posts: 341
Joined: Thu Nov 26, 2009 4:27 pm

Getting objs into Q3A with Maya

Post by Bliccer »

I have a complete model here in Maya in front of me. Problem is, that I can't export it with textures on. Radiant as well as Q3A don't recognize the texture connected to the lambert shader group in Maya. I get a blue shader notex instead. Are there any mean steps you have to take, but haven't thought about?
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: Getting objs into Q3A with Maya

Post by obsidian »

What model format are you exporting to? ASE? OBJ? LWO?

I'm not sure how Maya's materials are handled, but if it's anything like 3ds Max, you have to name your material with the actual shader name of the texture (ie. models/bliccer/crates/crate1).
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
Bliccer
Posts: 341
Joined: Thu Nov 26, 2009 4:27 pm

Re: Getting objs into Q3A with Maya

Post by Bliccer »

Ah, sorry. It will be an *.obj.
I can't type it like this (textures/blic....), since Maya is rewriting it for me into _ (textures_blic...). g0th said I should do this, too, but it just won't work.
corsair
Posts: 972
Joined: Fri May 18, 2001 7:00 am

Re: Getting objs into Q3A with Maya

Post by corsair »

Open the file with wordpad: The materials in an .obj file are defined by "usemtl YOURMATERIAL"

I haven't tried it, but I expect you can change it to include the tokens you want.
Bliccer
Posts: 341
Joined: Thu Nov 26, 2009 4:27 pm

Re: Getting objs into Q3A with Maya

Post by Bliccer »

It says "mtl lambert2SG" the shading group. But although if I rename the shading group to Ice_007M (like my texture) or using the path textures\blic_icecathedral_wall\ice_007M it still doesnt work.
corsair
Posts: 972
Joined: Fri May 18, 2001 7:00 am

Re: Getting objs into Q3A with Maya

Post by corsair »

It could be that your texture should be in the same directory as your model. Otherwise, did you already add the shader in the shaderlist?
Bliccer
Posts: 341
Joined: Thu Nov 26, 2009 4:27 pm

Re: Getting objs into Q3A with Maya

Post by Bliccer »

I will try this again. The obj modification as above is correct? How do you name it?
As for the shader: It has to be a shader? I only wanted to put a normal texture on the model w/o any effects.
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: Getting objs into Q3A with Maya

Post by obsidian »

It could be a normal texture or shader, but they would both have a "shaderpath" that points to the texture file or shader name. It's how Q3 will read the model file to know where the texture for it is located.

A few things to try:
  1. Try using FORWARD SLASHES. Quake 3 always uses forward slashes for texture paths and shader names. "textures/blic_icecathedral_wall/ice_007M"
  2. Add "blic_icecathedral_wall" to your shaderlist.txt. Q3Map2 may not know to use it unless you do.
  3. If that still doesn't work, do as corsair recommends and copy the texture to where your model is and change the path to point to it. It should be close to as follows:
    models/blic_icecathedral_wall/ice_007M
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
Bliccer
Posts: 341
Joined: Thu Nov 26, 2009 4:27 pm

Re: Getting objs into Q3A with Maya

Post by Bliccer »

I named the shader in Maya like the shadername: cavewall. -> tested, no success
I edited the obj and included the rest: textures/blic_icecathedral_wall/cavewall -> tested, no success
I left everything like it was after obj export and added a _remap key to the shadertexture (see above) -> tested, no success...
I also copied the file into models/mapobjects/blic_icecathedral/ICE etc., -> tested, no success.

The shader is of course added, I also tried it on normal brushes, it works there.
There must be something what works :(
Bliccer
Posts: 341
Joined: Thu Nov 26, 2009 4:27 pm

Re: Getting objs into Q3A with Maya

Post by Bliccer »

AHA it was _remap *;textures etc...
Now it works. But weird it doesn't work with just naming the texture. And furthermore I can't go on in 1.4 anymore, since it always breaks down when I want to load the map with *;...
Post Reply