Page 1 of 5

Toyland to legoland conversion[WIP]

Posted: 11 Mar 2005 22:46
by Killer 11
2005.03.13
This set is now in progress and we need artists and coders and especialy aydan for rendering of lego models regular artis can do stuff to just post a message that showl include information of what will you do:
Drawing, Modeling, Rendering, Coding, Hosting of thew project site, etc.
This set is a TC(total conversion) so it will include lots of diferent stuff so you are free to contribute enything.



2005.03.11
I was thinking quite long and now when Aydan showed us that Povray can make things in ttd pallete too i remmembered that Ldraw(lego building program) files can be easily converted to Povray format and i decided to make a test car, a bulk cargo truck(coal iron ore etc.) i will post some pics and if Aydan will say yes then i will give him the .pov file and he will show us a lego car in ttd mode :)

The bulk cargo truck:

Posted: 12 Mar 2005 00:25
by BobDendry
heck, I'm all for having a lego TRAIN set. We could base it off the various locos lego has released over the years

Posted: 12 Mar 2005 01:38
by Aegir
Hey, why not turn it ALL into lego?

Great idea :lol: .

Posted: 12 Mar 2005 02:32
by BobDendry
lol actually not bad an idea at all

Posted: 12 Mar 2005 02:40
by Aegir
Indeed, if so I might have to 'aquire' this lego creator program.

EDIT: Ldraw, not Lego-creator. And Im downloading it now.

Posted: 12 Mar 2005 04:29
by Singaporekid
Looks cool
I wanna help too!

Posted: 12 Mar 2005 08:39
by Purno
Did you already try to make a LEGO car in TTD's scale? Because I think it's way too small :!:

Posted: 12 Mar 2005 08:49
by Killer 11
to help you need:
To know how to model things in Ldraw,
or
Have good expierience in Povray,
or
You must be able to draw lego stuff,
Also we will need people to make up some stats and people who could count sizes in metters for the lego stuff in ldraw so it will be correctly scaled in povray rendering.

You know Povray can render 3d objects in ttd pallete and can use these lego models too so it fits best.
The best way to get Povray bundled with Ldraw and convertion and opengl wievers is to download ldraw tools installer(win98 and above)

BTW here's a powray shot but in normal colors and not in ttd view:
and also i add it with changed pallete(jasc ps8)

Posted: 12 Mar 2005 08:56
by Aegir
Got all of that, I had a little toy around with the app, Ill make a few vehicles in real lego then make some digital clones in the right colors.

Well, I *may* do that, I have other things to do aswell.

Posted: 12 Mar 2005 08:59
by Purno
Can Povray render in isometric view too?

Posted: 12 Mar 2005 09:18
by Killer 11
yes you only have to set camera angles for that.
and i tried to make my car ttd size but not in povray but in Ldview but becouse lighting in Ldview just sucks it came out kinda flat but all details visible.

Posted: 12 Mar 2005 09:33
by Singaporekid
Can we draw them instead of rendering them?
I think it'll be faster

Posted: 12 Mar 2005 09:35
by Killer 11
yes you can

Posted: 12 Mar 2005 10:01
by Purno
Singaporekid wrote:Can we draw them instead of rendering them?
I think it'll be faster
That'll probably be better, when drawing you can draw any detail you wish, while with 3D rendering some details are probably too small for 1 pixel

Posted: 12 Mar 2005 14:38
by Aydan
I'm not rendering in TTD palette directly. For that I use PSP.
I tender the pics as 24Bit tga and then apply the palette.

For rendering i use orthographic camera and the following stuff:

Code: Select all

#ifndef (TTD_inc)
  #declare TTD_inc=true;
  
  #macro TTD(o,w) // pass object and spacing (i use 1.2 normally) to this macro and it will place all the views appropriately in a row
    union{
      #local i=0;
      #while (i<8)
        object{o 
          rotate y*i*45
          rotate -z*30
          //scale <.5,1,1> 
          translate (3.5-i)*z*w}
        #local i=i+1;
      #end
    }
  #end
  
  #macro Tiles(w) //with this macro you can create reference tiles
    union{
      #local i=0;
      #while (i<8)
        box{<1,.001,1>,<-1,0,-1> scale .5
          rotate y*45
          rotate -z*30
          //scale <.5,1,1> 
          translate (3.5-i)*z*w}
        #local i=i+1;
      #end
      pigment{color Green}
    }
  #end    
  
  #declare TTD_BG=Blue;
  #declare CC_0=rgb <100,172,224>/255;
  #declare CC_1=rgb <72,152,216>/255;
  #declare CC_2=rgb <56,120,188>/255;
  #declare CC_3=rgb <40,92,164>/255;
  #declare CC_4=rgb <28,68,140>/255;
  #declare CC_5=rgb <20,52,124>/255;
  #declare CC_6=rgb <12,36,104>/255;
  #declare CC_7=rgb <8,24,88>/255;
#end
that's my basic TTD scene:

Code: Select all

#version 3.5;

#include "colors.inc"
#include "transforms.inc"
#include "TTD.inc"

global_settings {
  assumed_gamma 1.0
}

// ----------------------------------------

#declare zoom=1; //standard zoom for 1:1 renders
//#declare zoom=10; //use this line to resize render for details
#declare base=<0,0,0>;
//#declare base=<0,1,1>; //used to focus on certain location
#declare v_pitch=sqrt(.5*.5*2); //vertical tile spacing
#declare TTD_multi=2.206875; //zoom multiplier so the output has exact TTD size (1 by 1 unit equals 1 tile)

camera{
  orthographic
  location <50,0,0>+base    // position & direction of view
  look_at  <0,0,0>+base
  right 1/zoom*y*image_width*TTD_multi/100            // horizontal size of view
  up 1/zoom*z*image_height*TTD_multi/100               // vertical size of view
  scale 1
}

light_source {
  <0, 0, 0>            // light's position (translated below)
  color rgb <1, 1, 1>*1.3  // light's color
  translate <300, 300, -300>
  //shadowless
}

// ----------------------------------------

sky_sphere {
  pigment {
    color Blue
  }
}

//here goes your object
/*
#declare o=object{somethinorother scale ...}
object{TTD(o,1.2) [translate ...]}
*/
have fun

Posted: 12 Mar 2005 15:21
by Aydan
Here's he truck. it doesn't come out too well, since it's rather detailed. The size seems about right though.

Posted: 12 Mar 2005 16:03
by Aydan
This one is 50% bigger. I had a look at the original vehicles and this size fits better.

Posted: 12 Mar 2005 17:51
by Purno
well, it could use some shading... although it is a toyland / lego vehicle :?

Posted: 12 Mar 2005 18:11
by Aydan
Played around with the lighting some.

Posted: 12 Mar 2005 18:15
by Purno
Is that company color blue?