Skip to main content

How to make 3D image using Eagle3D and POV Ray


Download the Eagle3D software and Install it.
Open your board file in Eagle. Click on ‘ULP’ icon: A new window will open asking for a ‘.ulp’ file. Browse into your Eagle3D directory (where you installed it) and select the file '3d41.ulp'. Now select the language you want, and then browse for the output file.
Make sure your PCB layout contain ‘dimension’ else you will get en error message:


You can do this by clicking on ‘wire’ icon; select the dimension from drop down list (20) and draw a border across your layout.


If every thing goes right then a new window will pop up:


You can change camera angle, lights, colors etc. For now, just click on ‘create POV-File and Exit’ button. After some seconds it will ask various questions about your board components answer as best as you can.

Now you will have a ‘.pov’ file. Download and Install the 32-bit version POV-Ray software.Click on the ‘Open’ file icon, and locate your .pov file created in the previous step. We need to point POV-Ray to the ‘.inc’ files for Eagle3D. These files define the 3D electronics components, to do this:
Click Tools => Edit master POVRAY.INI

A notepad file will open. At the bottom of it, add this line:

Library_Path="C:\Program Files\Eagle\ulp\Eagle3D\povray"

Make sure the directory points to where you installed Eagle3D. Now save and close the file. In POV-Ray, click the ‘Ini’ icon and select an image size from the drop down list.


Now push the ‘Render’ button. Error messages will pop-up. Just push OK and ignore it. It won't happen again.

If you did everything right, an image should appear.


Not all components have shown up on the board. This is where it gets tricky and so I'll do my best to help you out.

  • First, click the ‘Open’ file button in POV-Ray. Locate and open the file ‘user.inc’ in the Eagle3D\povray folder.
  • Next, click Open again, and change Files of type: to All Files (*.*). Locate and open the file ‘3dusrpac.dat’ in your Eagle3D folder.
By default, both of the files should be blank.

  • In the file 3dusrpac.dat, add this line:
PACKAGE_NAME:0:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:MACRO_NAME(::

To find the PACKAGE_NAME, go back to your board file, click on ‘info’ icon, and then click on a component that is missing in the 3D image.


  • Replace PACKAGE_NAME with the Package value. In this case it is ‘HSIP17-P-2.00’.
  • Next, you need to find a MACRO_NAME to match your missing part as closely as possible. To do this download the Eagle3D image library and unzip it into a folder.
Let’s say you select ‘BL_1×17’ which looks something like this:

  • Now in POV-Ray, go into your Eagle3D\povray and locate the file ‘connector.inc’ because you needed a connector. If you needed a capacitor instead, you would use ‘capacitor.inc’. Etc.
After searching the part name you will find this:
#macro BL_1X17()
object{BL_GRND(17,1)}
#end

  • Copy this code exactly and paste it in the ‘user.inc’ file. And add the word ‘value’ in the parenthesis and the union{} like this:
#macro BL_1X17(value)
union{
object{BL_GRND(17,1)}
}
#end

  • Now go back to the 3dusrpac.dat and replace the package name and macro-name with HSIP17-P-2.00 and BL_1×17 respectively.
  • Now recreate the .pov file, and render your image again. If you did everything right, your new component should appear.

you can increase the image size for better resolution.


Comments

Popular posts from this blog

A basic Arduino Solar PV Monitor

I have just recently had solar pv installed, mainly to future proof my energy costs, I do not expect it to be like drilling for oil in my back garden, however the return looks to be encouraging. The install gives you another single unit meter, from this you will see the total amount the panels produce, but that is about it. I wanted to know how much the production was as it was happening, I discovered the light blinks on the front of the meter will flash 1000 times for each kWh of electricity which passes through. The rate of the flashing of the LED tells you how much power is currently passing through the meter. [ ]

Build a Key Operated Gate Locking System Circuit

This simple key-operated gate locking system allows only those persons who know the preset code to open the gate. The code is to be entered from the keypad within the preset time to operate the motor fitted in the gate. If anyone trying to open the gate presses a wrong key in the keypad, the system is disabled and, at the same time, sounds an alarm to alert you of an unauthorized entry. Figs 1 and 2 show the block and circuit diagrams of the key-operated code locking system, respectively. Connect points A, B, C, D, E, F and ground of the circuit to the respective points of the keypad. Keys S7, S16, S14 and S3 are used here for code entry, and the remaining keys are used for disabling the system. It is very important to press the keys in that order to form the code. To start the motor of the gate, press switches S7, S16, S14 and S3 sequentially. If the keys are pressed in a different order from the preset order, the system will lock automatically and the motor will not start. Fig. 1: Bl...

Apple releases TV spot for new iPods

Apple has just released a fun commercial to showcase its new line of iPod players and the various colours they come in. The TV spot titled ‘Bounce’, has a bunch of colourful iPod touch, iPod nano and iPod shuffles er…bouncing to music. With all that colour and dancing and bouncing, you may forget that Apple’s latest gen line of iPods has some other awesome features. For instance, the fifth gen iPod touch comes with Siri, 4-inch retina display and an A5 chipset. Maybe the next ad will showcase some of these features with less bouncing.link