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

3 Channels Audio Splitter Amplifier Circuit Diagram using TL084

This is the schematic diagram of 3 channels audio splitter amplifier circuit which built using op-amp IC TL084. The 3 channels amplifier output distribution applies a single TL084.   3 Channels Audio Splitter Amplifier Circuit Diagram The very first step is to capacitive coupling having a p. 1.0 ~ electrolytic capacitor. The entries are railways Vee Y2 or 4.5 V. This enables working with an individual 9V power source. A voltage gain of 10 (1 M?/100 Kohm) is obtained in the first stage, as well as the other three floors are connected as a unity gain voltage followers. Every single output stage drives independently through an amplifier output 50 pF capacitor towards the resistance of 5.1 k ohm load. The response range is flat from 10 Hz to 30 kHz.

Simple Automatic Street Light

There have been lot of problems in street lights. Major problem in some places is every evening a person has to come and switch ON the street light and it should be again switched off in morning. Yes, this may not be the situation in everywhere but exists in many places. So this problem can be overcome by using a simple circuit. Below shown circuit will be automatically switched ON and OFF during night and morning times respectively. Circuit diagram : Simple Automatic street light Circuit Diagram In above circuit R1 can be used to adjust the sensitivity. And the working of the circuit is very simple. The LDR will have very low resistance during day time so the transistor Q1 will be in OFF condition. And during night time the resistance will be very high so automatically the transistor Q1 will be ON. The Q1 is PNP transistor and the emitter of Q1 is given to base of Q2. So the Q2 transistor will be ON only if the transistor Q1 is ON. The TRIAC is used in the circuit to make is circ...

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. [ ]