$. mat = null Nope
UVW Remove Nope
Anything exported with .dae (Collada) is getting a "ColorEffectRXXXBXXXXGXXXXXX entry into the material ID in the editor of the game engine. I need a way to strip this as well as its trying to render collision meshes.
Replies
Can you find a better dae exporter?
Is dae a text format? Maybe hand editing is the way to go, a Python script could be used to strip it out after export.
Also did you check on the channel info dialog? probably you can clean it up from there too.
$.material = undefined
Unfortunately to autodesk one does strange things to imported files, which leaves just the official Collada one from their working group. I believe its a text file, maybe I can get the programmer to make such a script. In any case it would be inefficient having to rerun that script everytime I made a change.
Revel, hmm haven't checked the channel info, I'll give it a shot, but I'm pretty sure that's a no go since some of these collisions started out as Max simple objects and had no data.
Coven, the null bit does the same thing. It doesn't work.
I don't know what "official Collada one from their working group" means. I only know of Khronos Group's OpenCollada, and the built in Autodesk plugin. The image below is the built in one.
Even stripping the ColorEffectRGB from the Collada file will still import a material, it would be named ColorMaterial in that instance. Sooooo I got the below to work (lets hear it for Notepad++).
I did some playing around in the Collada file. Its this in particular in the triangle line that's causing it.
material="ColorMaterial"
So like this line? <triangles material="ColorMaterial" count="28">
If I strip that out of the collision meshes, it ignores the coloreffect under material and doesn't render.
I'm getting my Collada conversion from the github latest repos:
https://www.dropbox.com/sh/jssp45b88jkcoql/AAC3w7Uzphp_8hbOOXlu7UcFa?dl=0
Bugging my programmer to make the importer just auto do this now on when it sees that line, to ignore that material call.
Sry, american stzle keyboard....