## Scene File Documentation-beginner queries

General discussion regarding exporter development in general.

Moderators: Ratow, coordinators

### Re: Scene File Documentation-beginner queries

Hi,

And make sure that the divide is done using floating point in case that matters.

Jeanphi
jeanphi

Posts: 6577
Joined: Mon Jan 14, 2008 7:21 am

### Re: Scene File Documentation-beginner queries

Cooking with gas now!!

basic material test

@Satva: yup it is based on 255. I wasnt thinking straight
@JeanPhi: my first test ended up black because I didnt take the floating point into account

Anyway I think a couple of little tweaks and basic material conversion will be working fine.

Thanks!!

Sheltem
Sheltem

Posts: 122
Joined: Sun Jun 15, 2008 11:06 am

### Re: Scene File Documentation-beginner queries

That looks great
May contain traces of nuts.

Lord Crc

Posts: 4454
Joined: Sat Nov 17, 2007 2:10 pm

### Re: Scene File Documentation-beginner queries

Seeing your exporter evolve is great, I can't wait to see it getting ready for use by ordinary users! And I'm sure I'm not the only one following your progress closely.

Abel

Posts: 1414
Joined: Sat Oct 20, 2007 8:13 am
Location: Helsinki, Finland

### Re: Scene File Documentation-beginner queries

Hi,

Great progress, keep it up!

Jeanphi
jeanphi

Posts: 6577
Joined: Mon Jan 14, 2008 7:21 am

### Re: Scene File Documentation-beginner queries

All,

thanks for the support, it's very much appreciated.

The current status of the exporter is as follow:

- no GUI...0%
- Geometry export 80% -> I am missing linked file geometry export and I ve got a nagging feeling there might be an issue with my approach to instancing
- Camera -> Axo view export works ... kinda , camera (perspective) not yet ...50%
- Material (on the fly conversion) 50%
- Lights... oh dear... 10%

My plan is to finish (in this order): material on the fly conversion, the geometry export,Camera and create a very minimal GUI before releasing the exporter and source code.
After that it will be a lot of GUI development, Lights and Materials...

Sheltem

P.s. I forgot to mention: this exporter will require Revit 2012 and newer....
Sheltem

Posts: 122
Joined: Sun Jun 15, 2008 11:06 am

### Re: Scene File Documentation-beginner queries

Hi,

If you need it at release time we can set up a mercurial repository for your exporter. Also when releasing, don't forget to define the license used

Jeanphi
jeanphi

Posts: 6577
Joined: Mon Jan 14, 2008 7:21 am

### Re: Scene File Documentation-beginner queries

Hi,

I spend the last couple of days reading up on Matrices and just want to check something before I go ahead and change the code:
I am currently supporting instancing of Revit Families (these are standalone elements you can insert from a library into your model). Revit keeps track of each location of each Instance of a family via a transformation class. This class exposes the following property: Base (amongst other things) If I am not completely of the mark this property defines a local coordinate system by providing a point on x,y,z axis of the local coordinate system relative to the world coordinate system.

Sooo If I want to use the transform command in Lux do I just use that information as described below??

Hmmmm looking at the wiki it appears the first three columns only deal with scaling ?
How does that deal with rotation?

Sheltem
Sheltem

Posts: 122
Joined: Sun Jun 15, 2008 11:06 am

### Re: Scene File Documentation-beginner queries

Hi,

The Transform statement works like you describe, the matrix form allows for both scaling and rotation through the first 3 columns.

Jeanphi
jeanphi

Posts: 6577
Joined: Mon Jan 14, 2008 7:21 am

### Re: Scene File Documentation-beginner queries

Hi,

Something is going wrong with my transform command:

Code: Select all
ObjectBegin "FamilyName: family2,FamilyType: family2,[moves with nearby elements : ][offset : 0.0][volume : 0.538 m³]"AttributeBegin  # Family2NamedMaterial "Default"Shape "plymesh""string filename" ["C:/temp/lux/workplane check/PLY/06744924-84b8-4b41-b110-8634267b9770-000202dd_0_0.PLY"]"string subdivscheme" ["loop"]"integer nsubdivlevels" [0]"bool dmnormalsmooth" ["false"]"bool dmsharpboundary" ["true"]"bool dmnormalsplit" ["false"]AttributeEnd #  ""ObjectEndAttributeBeginTransformBeginTransform [1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0 0 0 1]ObjectInstance "FamilyName: family2,FamilyType: family2,[moves with nearby elements : ][offset : 0.0][volume : 0.538 m³]"TransformEndAttributeEndAttributeBeginTransformBeginTransform [1.000000 0.000000 0.000000 -2.000000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0 0 0 1]ObjectInstance "FamilyName: family2,FamilyType: family2,[moves with nearby elements : ][offset : 0.0][volume : 0.538 m³]"TransformEndAttributeEnd

This is the geo file code of my test scene. For some reason I can see the first instance but not the second one ? Even though all I am doing is moving the second instance 2m to the right of the first one...(-2.0000 value )

Any thoughts of where my problem might be?

Cheers!

Sheltem
Sheltem

Posts: 122
Joined: Sun Jun 15, 2008 11:06 am

PreviousNext