To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 9094
9093  |  9095
Special: 
[DAT] (requires LDraw-compatible viewer)
Subject: 
Re: Repository of .dat files with inline POV-Ray code... any interest?
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 29 Jul 2003 21:30:44 GMT
Viewed: 
4129 times
  
In lugnet.cad.dev, Tony Hafner wrote:
> In lugnet.cad.dev, Steve Bliss wrote:
> > In lugnet.cad.dev, Tony Hafner wrote:
> > 
> > > What's the current plan for POV-Ray code in official parts?  I have
> > > been out of the loop for a while, but my last understanding was that
> > > parts with inline POV-Ray code don't have any chance of getting
> > > certified on the parts tracker.  Is this still the case?
> > 
> > Yes, it's pretty much still the case.  I would really prefer to not
> > have any POV code in the parts library at all.  But if there must be
> > some, I think it should stay in the primitive files.
> > 
> > > I am specifically referring to cases where primitive substitution
> > > causes gaps around curved surfaces.  The ldraw code looks fine in
> > > the usual tools (ldraw, MLCAD, L3Lab), and the extra code makes the
> > > parts render without gaps in POV-Ray.
> > 
> > I think a better solution is to work on POV versions of part files.
> > Generally, writing POV code is easier than LDraw code.  So if you
> > can make an LDraw version of a file, you can make a POV version.
> 
> Okay... then I'd like to open this up to a question for the community:
> 
> Is anyone interested in working on a single shared repository of
> ldraw-compatible parts with inlined POV-Ray code?  How many authors out there
> are comfortable with both POV-Ray and ldraw code and interested in this?
> 
> I'm picturing files that are essentially official parts with some added inline
> code.  And when ldraw releases updates, we'd attempt to POV-Ray fix all parts
> that need it and we'd update all of the POV-Ray parts with the new ldraw code
> when parts are officially re-released.  The deliverables would be parts
> downloads similar to the official releases, and a user would just install this
> over the official release.
> 
> Note that a good number of parts could be fixed with just a line or two of code
> and some new primitives.  Imagine a primitive that is a true disc minus a
> 16-segment disc- how many parts would that fix?  20?  More?
> 
> And if we did this, could ldraw.org host the downloads?  I doubt that I could
> afford the bandwidth to host them on my site for very long.
> 
> --
> Tony Hafner
> www.hafhead.com

Here is my $0.01....

This is how I have started handling Ldraw/PoV parts:

The 3626bp6f.dat is availabe on the parts tracker here:
http://www.ldraw.org/cgi-bin/ptdetail.cgi?f=parts/3626bp6f.dat

Paul



(There is some line wrapping happening here, I will need to fix it later)

0 Minifig Head with Female Eyes with Red Lips Pattern - POV
0 Name: 3626bp6f.ldp
0 Author: Paul Easter
0 Unofficial Element

0 L3P IFNOTPOV

0 BFC CERTIFY CW
1 16 0 0 0 1 0 0 0 1 0 0 0 1 3626bp6f.dat
0
0 L3P ELSEPOV
0 #if (STUDS)
0 object { stud2_dot_dat matrix <1,0,0,0,1,0,0,0,1,0,0,0> }
0 #end
0 object { ring3_dot_dat matrix <2,0,0,0,1,0,0,0,2,0,0,0> }
0 object { ring2_dot_dat matrix <2,0,0,0,1,0,0,0,2,0,4,0> }
0 object { _4_dash_4cyli_dot_dat matrix <6,0,0,0,20,0,0,0,6,0,4,0> }
0 object { ring3_dot_dat matrix <2,0,0,0,1,0,0,0,2,0,24,0> }
0 object { _4_dash_4cyli_dot_dat matrix <8,0,0,0,3,0,0,0,8,0,21,0> }
0 cylinder{<0,0,0>,<0,17,0>,13.001
0 clipped_by{
0        union{
0                prism {linear_sweep linear_spline 0,14,38,
0
<-1.25,10.5>,<-1.62,9.38>,<-2.13,8.62>,<-2.87,8.13>,<-3.62,7.75>
0
<-4.62,7.38>,<-4.975,7.3>,<-6.13,7.13>,<-8.13,6.87>,<-8.75,6.75>
0
<-8.25,7.13>,<-7.87,7.38>,<-7.38,7.5>,<-7.38,7.75>,<-7.38,7.75>
0                 <-7.75,7.87>,<-7.38,8>,<-7.25,8.75>,<-6.75,9.75>,<-6.5,9.75>
0                 <-6.13,9.87>,<-6.38,9.25>,<-6.38,8.62>,<-6.25,8>,<-4.975,8.46>
0
<-4.25,8.75>,<-4.55,8.94>,<-4.88,9.43>,<-4.975,10.01>,<-4.88,10.5>
0
<-4.55,11.06>,<-4.07,11.39>,<-3.5,11.5>,<-2.93,11.39>,<-2.44,11.06>
0                 <-2.11,10.58>,<-2,10>,<-1.38,10.62>
0                        }
0                } rotate <-90,0,0>
0
0        }
0 #if (version >= 3.1) material #else texture #end { Color0 }
0 }
0 cylinder{<0,0,0>,<0,17,0>,13.001
0 clipped_by{
0        union{
0                prism {linear_sweep linear_spline 0,14,38,
0                 <1.25,10.5>,<1.62,9.38>,<2.13,8.62>,<2.87,8.13>,<3.62,7.75>
0                 <4.62,7.38>,<4.975,7.3>,<6.13,7.13>,<8.13,6.87>,<8.75,6.75>
0                 <8.25,7.13>,<7.87,7.38>,<7.38,7.5>,<7.38,7.75>,<7.38,7.75>
0                 <7.75,7.87>,<7.38,8>,<7.25,8.75>,<6.75,9.75>,<6.5,9.75>
0                 <6.13,9.87>,<6.38,9.25>,<6.38,8.62>,<6.25,8>,<4.975,8.46>

0                 <4.25,8.75>,<4.55,8.94>,<4.88,9.43>,<4.975,10.01>,<4.88,10.5>
0                 <4.55,11.06>,<4.07,11.39>,<3.5,11.5>,<2.93,11.39>,<2.44,11.06>
0                 <2.11,10.58>,<2,10>,<1.38,10.62>
0                        }
0                } rotate <-90,0,0>
0        }
0
0 #if (version >= 3.1) material #else texture #end { Color0 }
0 }
0
0 cylinder{<0,0,0>,<0,17,0>,13.001
0 clipped_by{
0        union{
0                prism {linear_sweep linear_spline 0,14,13,
0                 <0,15.38>,<-.5,15.13>,<-1.38,14.87>,<-2.26,14.75>,<-2.88,14.5>
0                 <-.38,14.62>,<0,14.75>,<.38,14.62>,<2.88,14.5>,<2.26,14.75>
0                 <1.38,14.87>,<.5,15.13>,<0,15.38>
0                        }
0                } rotate <-90,0,0>
0
0        }
0 #if (version >= 3.1) material #else texture #end { Color6 }
0 }
0
0 cylinder{<0,0,0>,<0,17,0>,13.001
0 clipped_by{
0        union{
0                prism {linear_sweep linear_spline 0,14,17,
0                 <0,14.13>,<-.5,13.75>,<-1.13,13.75>,<-2.88,14>,<-3.75,14.38>
0                 <-3.75,14.5>,<-3.26,15.25>,<-2,16.13>,<-.75,16.5>,<0,16.5>
0                 <0,15.38>,<-.5,15.13>,<-1.38,14.87>,<-2.26,14.75>,<-2.88,14.5>
0                 <-.38,14.62>,<0,14.75>
0                        }
0                } rotate <-90,0,0>
0
0        }
0 #if (version >= 3.1) material #else texture #end { Color4 }
0 }
0
0 cylinder{<0,0,0>,<0,17,0>,13.001
0 clipped_by{
0        union{
0                prism {linear_sweep linear_spline 0,14,17,
0                 <0,14.13>,<.5,13.75>,<1.13,13.75>,<2.88,14>,<3.75,14.38>
0                 <3.75,14.5>,<3.26,15.25>,<2,16.13>,<.75,16.5>,<0,16.5>
0                 <0,15.38>,<.5,15.13>,<1.38,14.87>,<2.26,14.75>,<2.88,14.5>
0                 <.38,14.62>,<0,14.75>
0                        }
0                } rotate <-90,0,0>
0
0        }
0 #if (version >= 3.1) material #else texture #end { Color4 }
0 }
0
0       torus{9,4 clipped_by{difference{box{<-13,4,-13>,<13,-4,13>}
0         cylinder{<0,0,0>,<0,4,0>,9} plane{y,0}}}translate <0,17,0>}
0       plane{y,21 clipped_by{difference{sphere{<0,21,0>,9}
sphere{<0,21,0>,8}}}}
0
0       torus{9,4 clipped_by{difference{box{<-13,-4,-13>,<13,4,13>}
0         cylinder{<0,0,0>,<0,-4,0>,9} plane{-y,0}}}translate <0,4,0>}
0       plane{y,0 clipped_by{difference{sphere{<0,0,0>,9} sphere{<0,0,0>,8}}}}
0
0       cylinder{<0,4,0>,<0,17,0>,13}
0 L3P ENDPOV
0



Message is in Reply To:
  Repository of .dat files with inline POV-Ray code... any interest?
 
(...) Okay... then I'd like to open this up to a question for the community: Is anyone interested in working on a single shared repository of ldraw-compatible parts with inlined POV-Ray code? How many authors out there are comfortable with both (...) (23 years ago, 29-Jul-03, to lugnet.cad.dev)

18 Messages in This Thread:






Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR