POV-Ray : Newsgroups : povray.binaries.images : lego collection Server Time
1 Aug 2024 10:11:30 EDT (-0400)
  lego collection (Message 1 to 6 of 6)  
From: jan dvorak
Subject: lego collection
Date: 6 Oct 2008 02:03:45
Message: <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.)?


Post a reply to this message


Attachments:
Download 'lego_img.jpg' (20 KB)

Preview of image 'lego_img.jpg'
lego_img.jpg


 

From: m a r c
Subject: Re: lego collection
Date: 6 Oct 2008 04:24:25
Message: <48e9cb39@news.povray.org>

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

From: Chris B
Subject: Re: lego collection
Date: 6 Oct 2008 05:32:34
Message: <48e9db32@news.povray.org>
"jan dvorak" <jan### [at] centrumcz> 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

From: Chris B
Subject: Re: lego collection
Date: 6 Oct 2008 06:28:18
Message: <48e9e842$1@news.povray.org>
"Chris B" <nom### [at] nomailcom> wrote in message 
news:48e9db32@news.povray.org...
>
> "jan dvorak" <jan### [at] centrumcz> 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

From: alphaQuad
Subject: Re: lego collection
Date: 6 Oct 2008 12:00:01
Message: <web.48ea3536508e1e07102049980@news.povray.org>
jan dvorak <jan### [at] centrumcz> 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

From: Alain
Subject: Re: lego collection
Date: 9 Oct 2008 13:33:49
Message: <48ee407d$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.