Scene File Documentation-beginner queries

General discussion regarding exporter development in general.

Moderators: Ratow, coordinators

Re: Scene File Documentation-beginner queries

Postby jeanphi » Tue Aug 30, 2011 8:14 am

Hi,

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

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

Re: Scene File Documentation-beginner queries

Postby Sheltem » Tue Aug 30, 2011 4:11 pm

Cooking with gas now!!

colors.png
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 :oops:

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

Postby Lord Crc » Tue Aug 30, 2011 4:27 pm

That looks great :)
May contain traces of nuts.
User avatar
Lord Crc
Developer
 
Posts: 4454
Joined: Sat Nov 17, 2007 2:10 pm

Re: Scene File Documentation-beginner queries

Postby Abel » Tue Aug 30, 2011 4:29 pm

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. :)
User avatar
Abel
Developer
 
Posts: 1414
Joined: Sat Oct 20, 2007 8:13 am
Location: Helsinki, Finland

Re: Scene File Documentation-beginner queries

Postby jeanphi » Tue Aug 30, 2011 4:30 pm

Hi,

Great progress, keep it up!

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

Re: Scene File Documentation-beginner queries

Postby Sheltem » Tue Aug 30, 2011 6:06 pm

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

Postby jeanphi » Wed Aug 31, 2011 2:04 am

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
Developer
 
Posts: 6577
Joined: Mon Jan 14, 2008 7:21 am

Re: Scene File Documentation-beginner queries

Postby Sheltem » Mon Oct 03, 2011 10:12 pm

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??

4 BY 4 MATRIX.PNG


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

Any comments are much appreciated!!

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

Re: Scene File Documentation-beginner queries

Postby jeanphi » Tue Oct 04, 2011 1:49 am

Hi,

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

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

Re: Scene File Documentation-beginner queries

Postby Sheltem » Tue Oct 04, 2011 6:28 am

Hi,

Something is going wrong with my transform command: :roll:

Code: Select all
ObjectBegin "FamilyName: family2,FamilyType: family2,[moves with nearby elements : ][offset : 0.0][volume : 0.538 m³]"
AttributeBegin  # Family2
NamedMaterial "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 #  ""
ObjectEnd

AttributeBegin
TransformBegin
Transform [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³]"
TransformEnd
AttributeEnd

AttributeBegin
TransformBegin
Transform [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³]"
TransformEnd
AttributeEnd


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

Return to General

Who is online

Users browsing this forum: No registered users and 0 guests