Page 1 of 1

ArchiCAD lamp objects - emitter problem

Posted: Mon Oct 21, 2013 4:47 pm
by derekjackson
Hi,
I'm trying to code some ArchiCAD lamp objects which will have an emitter material applied (amongst others), so automatically emit light when arriving in Maxwell.

However, I'm hitting the 'Triangles associated with emitter material' issue when it gets exported to Maxwell.

I've thought of a possible workaround but not sure how to best implement it:
Some objects seems to export as a single Maxwell object with multiple materials.

Others, however, arrive in Maxwell as a group of Maxwell objects within a containing folder.

Tests show me that Maxwell doesn't have a problem with one of the objects in the folder being an emitter.

Exporting an object which arrives as a group of elements with one element being an emitter works fine.

If I can get my GDL lamp object to arrive in Maxwell as a series of separate elements rather than as one multi-material object, then problem solved.

Does anyone know what determines how Maxwell breaks up or combines the various object parts? It doesn't seem to be whether or not they're touching in 3D space. Must be something in the way they're GDL coded?

Thanks,

Derek

Re: ArchiCAD lamp objects - emitter problem

Posted: Mon Oct 21, 2013 5:11 pm
by Marton Day8
Hi Derek,

Separation is normally determined by how Maxwell receives the object from the ArchiCAD API.

In case of Lamps, the plugin tries to separate the emitter part of the lamp object from the non-emitter part, so it shouldn't cause this error.

Maybe you are using more different emitter materials on the same object?


Márton

Re: ArchiCAD lamp objects - emitter problem

Posted: Mon Oct 21, 2013 5:15 pm
by derekjackson
Thanks Marton, but it's a very simple object - two cylinders which use user-determined materials, and a sphere which uses a single premade Archicad emitter material.

Here's my 3D GDL code:
Code: Select all
HOTSPOT 0,0,0

ADDz fixing_height
ROTy 180

HOTSPOT 0,0,0

MATERIAL mat_fixing
CYLIND 0.01, 0.05

ADDz 0.01

MATERIAL mat_cable
CYLIND (cable_length-0.001), 0.005

ADDz (cable_length + (sphere_diam / 2))

MATERIAL "* LSI Max Emitter - Pendant"
SPHERE (sphere_diam / 2)
HOTSPOT 0,0,0	

DEL 4
Any ideas?

(I also have the subtype set to Electrical Element / Light, so it knows it's a lamp object)

Re: ArchiCAD lamp objects - emitter problem

Posted: Mon Oct 21, 2013 7:26 pm
by Marton Day8
Hi Derek,

Could you send me a simple scene?

Márton

Re: ArchiCAD lamp objects - emitter problem

Posted: Tue Oct 22, 2013 10:42 am
by derekjackson
Thanks Marton - PM sent.

Re: ArchiCAD lamp objects - emitter problem

Posted: Tue Oct 22, 2013 2:34 pm
by derekjackson
Thanks to Marton, we narrowed down the problem. I had the 2.7.3 plugin. Once I've updated to 2.7.5, the problem is sorted - the lamp exports to become two separate elements in Maxwell. :)

Re: ArchiCAD lamp objects - emitter problem

Posted: Fri Oct 25, 2013 2:55 pm
by derekjackson
Right, this is weird - the problem is back.

Using the new exporter, the lamp object that exported fine before is now throwing up the error again.

I've also made two other lamp objects from scratch, all with different code (one for a spotlight, one for a striplight), and all three give the error.

Anyone had any further thoughts about why the exporter can't separate the emitter material? Any help on this would be great!

Re: ArchiCAD lamp objects - emitter problem

Posted: Fri Oct 25, 2013 3:09 pm
by Marton Day8
Hello Derek,

Please send me the scene to check.

Márton

Re: ArchiCAD lamp objects - emitter problem

Posted: Fri Oct 25, 2013 4:36 pm
by derekjackson
Hi Marton, I've tried sending a PM but it's sitting in my Outbox and not sending, so posting link to ZIP file here instead:

http://www.lsiarchitects.co.uk/Emitter%20Issue.zip

Thanks,

Derek