![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Hello,
I'm creating some lego brick template macros.
What are the conventions I should follow when submitting to the object
collection (macro names, global variables etc.)?
Post a reply to this message
Attachments:
Download 'lego_img.jpg' (20 KB)
Preview of image 'lego_img.jpg'
![lego_img.jpg](/povray.binaries.images/attachment/%3C48e9aa41%40news.povray.org%3E/lego_img.jpg?ttop=443866&toff=3000&preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
48e9aa41@news.povray.org...
> Hello,
> I'm creating some lego brick template macros.
> What are the conventions I should follow when submitting to the object
> collection (macro names, global variables etc.)?
I have no answer to your question but I too have one to ask :
Do Lego sell so sweet-coloured brick nowadays?
If they do, maybe I'll get considering to play again :-)
Marc
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"jan dvorak" <jan### [at] centrum cz> wrote in message
news:48e9aa41@news.povray.org...
> Hello,
> I'm creating some lego brick template macros.
> What are the conventions I should follow when submitting to the object
> collection (macro names, global variables etc.)?
It's mainly only naming conventions, in order to circumvent:
- conflicts with other stuff used in a persons scene
- operating system/file transfer issues.
You need to prefix names of everything (files, macros, functions, global and
local variables) with the contribution name followed by an underscore
(though the underscore is dropped if nothing significant follows the
contribution name). You can optionally choose a shorter prefix to use as
well, so, if you chose a name of 'KidsBricks' and a short name of 'KB' you
could name a variable 'KB_Width' or 'KidsBricks_Width'.
File names should be all in lowercase. There are a couple of files that need
to be named fairly precisely if you want the website to pick them up and
display them. For example the thumbnail image and a larger image file (e.g.
'kidsbricks.jpg' and 'kidsbricks.gif') and optionally a supporting html file
(e.g. 'kidsbricks.html').
There's a table showing examples on the help page at
http://lib.povray.org/usersguide/04contributing.html#prep.
Although the help page doesn't mention it; even local variables need the
prefix because, as someone recently pointed out, a local variable in a macro
or an include file could clash with a macro name someone chooses to use in
their own scene definitions.
p.s. It's probably best to avoid the name 'lego' as I believe this is a
registered trademark (unless you've sought their consent), but there are
various brands of kids building blocks and a generic kids building block
macro would be great.
Regards,
Chris B.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Chris B" <nom### [at] nomail com> wrote in message
news:48e9db32@news.povray.org...
>
> "jan dvorak" <jan### [at] centrum cz> wrote in message
> news:48e9aa41@news.povray.org...
>> Hello,
>> I'm creating some lego brick template macros.
>> What are the conventions I should follow when submitting to the object
>> collection (macro names, global variables etc.)?
Oh! and the other significant thing is that you need to add the line:
// This file is licensed under the terms of the CC-LGPL
into each POV and INC file you submit.
Regards,
Chris.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
jan dvorak <jan### [at] centrum cz> wrote:
> Hello,
> I'm creating some lego brick template macros.
> What are the conventions I should follow when submitting to the object
> collection (macro names, global variables etc.)?
watch lego start makin' pastel bricks now, doh! they need jan for the good
ideas.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
m_a_r_c nous illumina en ce 2008-10-06 04:24 -->
> I have no answer to your question but I too have one to ask :
> Do Lego sell so sweet-coloured brick nowadays?
> If they do, maybe I'll get considering to play again :-)
> Marc
>
>
Yes they do, or they did some times ago. You can find them in some "girls"
oriented sets.
--
Alain
-------------------------------------------------
A wise and frugal government, which shall leave men free to regulate their
own pursuits of industry and improvement, and shall not take from the mouth
of labor and bread it has earned - this is the sum of good government.
Thomas Jefferson
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |