LDView 4.2 Beta 1 Released


Re: LDView 4.2 Beta 1 Released
#21
Travis, I've spotted another thing I feel missing:

exported .pov files contain these lines at their beginning:
Code:
#declare LDXQual = 3;    // Quality (0 = Bounding Box; 1 = No Refraction; 2 = Normal; 3 = Stud Logos)
#declare LDXSW = 0.5;    // Seam Width (0 for no seams)
#declare LDXStuds = 1;    // Show studs? (1 = YES; 0 = NO)
#declare LDXRefls = 1;    // Reflections? (1 = YES; 0 = NO)
#declare LDXShads = 1;    // Shadows? (1 = YES; 0 = NO)
#declare LDXFloor = 1;    // Include Floor? (1 = YES; 0 = NO)
But edges can not be turned on and off this easy.
You declare a macro LDXEdges always in that case:
Code:
#declare LDXEdges = union
{
    EdgeLine(<-160,1,48>,<-155,0,48>,EdgeColor)
        ...
}
...
object { LDXEdges }
Note the missing #if around the last object instruction.
I would like to be able to easily turn on and off such edges the same way as the other switches above.
This can easily be achieved by changing the above snippet to:
Code:
#if (LDXEdges > 0)
#declare LDXEdgesObject = union
{
    EdgeLine(<-160,1,48>,<-155,0,48>,EdgeColor)
        ...
}
#end
...
#if (LDXEdges > 0)
   object { LDXEdgesObject }
#end
which I would like much better.
However, that would break existing files which might rely on that the object variable currently is named LDXEdges.
So probably the ideal solution would be to keep the current name LDXEdges for the edges object,
and invent a new name for the boolean toggle.

In case that in LDView's export options edge export is turned off,
the code above should read:
Code:
#if (LDXEdges > 0)
   #ifndef LDXEdgesObject
      #error "This file got exported from LDRAW without edges. Either define your own ones in object LDXEdgesObject, or re-export it from LDView with edges turned on."
   #end
#end
...
#if (LDXEdges > 0)
   object { LDXEdgesObject }
#end
Reply
« Next Oldest | Next Newest »



Messages In This Thread
LDView 4.2 Beta 1 Released - by Travis Cobbs - 2012-04-08, 20:59
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-10, 18:48
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-10, 22:07
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-14, 12:23
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-14, 14:24
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-14, 17:05
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-14, 20:40
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-14, 22:10
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-15, 1:59
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-15, 10:08
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-25, 12:22
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-14, 22:14
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-14, 21:03
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-14, 22:34
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-15, 1:59
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-21, 12:28
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-21, 22:25
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-23, 15:38
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-23, 21:58
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-29, 23:09
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-05-01, 11:53
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-30, 17:18
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-23, 22:30
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-23, 23:12
errors in 8464.mpd - by Steffen - 2012-04-25, 7:44
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-25, 12:53
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-25, 12:57
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-25, 13:49
Re: LDView 4.2 Beta 1 Released - by Steffen - 2012-04-26, 21:48
Re: LDView 4.2 Beta 1 Released - by MoonMan - 2012-05-07, 13:42
Re: LDView 4.2 Beta 1 Released - by MoonMan - 2012-05-08, 2:32
Re: LDView 4.2 Beta 1 Released - by MoonMan - 2012-05-11, 0:31
Re: LDView 4.2 Beta 1 Released - by Steffen - 2013-12-30, 12:59
Part loading problem - by Christoph Mierowski - 2013-12-29, 22:55
Re: Part loading problem - by Travis Cobbs - 2013-12-30, 5:40
Re: Part loading problem - by Magnus Forsberg - 2013-12-30, 21:59
Re: Part loading problem - by Steffen - 2013-12-31, 5:24
Re: Part loading problem - by Tim Gould - 2014-01-03, 7:27

Forum Jump:


Users browsing this thread: 6 Guest(s)