Quote:
|
Quote:
1. Copy the script into a text editor. 2. Save the script to a file. Name it "perspective_grid.bash" -- take note of the directory the file is saved in (e.g. /home/<username>/Documents) 3. Open a terminal (e.g. alt+f2 and type "gnome-terminal" in the prompt) - you should get a new window that allows you to type commands 4. Verify that gnuplot is installed by typing "which gnuplot" as a command in the new terminal window. You should see output similar to what I showed at the end of one of my earlier replies. 5. Type "cd /home/<username>/Documents" as a command in the new terminal window -- this is the same directory mentioned in step #2 and <username> should be replaced with whatever you saw previously. Also, just in case, directory names in Linux are case-sensitive. In other words "documents" is not the same as "Documents" 6. Type "ls -l" as a command in the terminal window. You should see a text listing of all the files in the directory. Confirm that "perspective_grid.bash" is listed 7. Type "chmod u+x perspective_grid.bash" as a command in the terminal window. You won't see any output--just another prompt. 8. Type "./perspective_grid.bash -point 4 4" as a command in the terminal window. The script will print some information, and if all goes well, a new file should be created called "perspective_grid.png" 9. Use a graphical file manager to view your Documents directory. Double-click the icon for "perspective_grid.png" and it should open in your default image viewer program. You should be able to print/shrink/stretch/whatever through that program's tools. 10. To create another image, go back to the terminal and type "./perspective_grid.bash <options>" where <options> is replaced by the sequence of items you want (e.g. different vanishing points, angles, paper dimensions, etc.)--as described by the comments in the script. 11. Once you think the script can handle what you need, then we can talk about getting it so you can run it straight from the alt+f2 prompt. |
sounds good, but what is a text editor? where do i find it?
|
Look through your programs menu. Look for an "accessories" sub group. There should be an entry titled "gedit Text Editor" or something similar.
Alternatively, you can use alt+f2 again. If you use alt+f2, then type "gedit" as the command. A new window should open that will allow you to type or copy-paste text into a new document and save it. |
Quote:
reply to which gnupol is :"/usr/bin/gnuplot" then i dont get:"cd /home/<username>/Dokumente" , whats the username? the documents name? my name? do i write these ">" as well? |
Quote:
I only use the '<' and '>' to help signify that a specific portion of the instructions should be replaced with whatever matches your setup. You would not type them as part of the command. EDIT: But again, I used that as an example of what is normal on systems I have used. The main thing is, it should match the directory that you saved the script to. If you have trouble finding the file, go to the terminal window and type exactly this (you should be able to copy-paste it into your terminal): Code:
cd $( dirname $( find ${HOME} -name "perspective_grid.bash" | head -n 1 ) ) |
Quote:
(_)-(_) wallride@wallride-MXC062 ~ $ which gnuplot /usr/bin/gnuplot wallride@wallride-MXC062 ~ $ cd /home/rob/Documents bash: cd: /home/rob/Documents: No such file or directory wallride@wallride-MXC062 ~ $ cd /home/rob/Dokumente bash: cd: /home/rob/Dokumente: No such file or directory wallride@wallride-MXC062 ~ $ cd /home/ROB/Dokumente bash: cd: /home/ROB/Dokumente: No such file or directory wallride@wallride-MXC062 ~ $ cd /home/ROB/Documents bash: cd: /home/ROB/Documents: No such fi |
ok, made it so far:
(__)\ )\/\ ||----w | || || wallride@wallride-MXC062 ~ $ which gnuplot /usr/bin/gnuplot wallride@wallride-MXC062 ~ $ cd /home/wallride/Dokumente wallride@wallride-MXC062 ~/Dokumente $ Is -I Is: command not found wallride@wallride-MXC062 ~/Dokumente $ IS-I IS-I: command not found wallride@wallride-MXC062 ~/Dokumente $ ls -l total 8 -rw-r--r-- 1 wallride wallride 6326 2011-12-15 23:35 grid wallride@wallride-MXC062 ~/Dokumente $ chmod u+x grid wallride@wallride-MXC062 ~/Dokumente $ ./grid -point 4 4 Perspective point: ( 4, 4) Line every 5 degrees GNUPlot exited cleanly. See "perspective_grid.png" for image wallride@wallride-MXC062 ~/Dokumente $ whats that:"graphical file manager"? |
1 Attachment(s)
yoew!!
|
Made it through I see.
So now you can play around with it some. For instance, try this: Code:
./grid -point 12 5 -angle 1 -point -2 5 -angle 1 I've already improved the script to allow vertical lines and start/stop angles. I'll post the updated script once I work out one or two more bugs. |
Quote:
there are 1,2 and 3 point perspectives, 1 and 2 point perspectives are placed on the horizont line, the third point is placed above ( or under the horizont-line ). allright mate,im off to sleep, i wish you a good evening, and greetings from central europe. tomorow were suposed to have storms here. later dude, and thamks a lot! zenbo ps. ill be back tomorow |
i guess ill have more questions to you, hopefully i ll see ya tomorow or soon back online!!
|
I'm pasting the revised script. Just open up your text editor again, copy-paste it, etc. like before.
If you overwrite the previous copy, you shouldn't need to do the chmod command again. Code:
#!/bin/bash To draw a two-point perspective grid of a "floor" you could do this (with the revised script): Code:
./grid -point 1 4.5 -radials 30 -anglestart 180 -point 10 4.5 -radials 30 -anglestart 180 |
Quote:
Because if it is to draw skyscrapers, houses etc. in perspective, as you say, fire up Blender, build the skyscrapers, houses etc., place the camera at the angle you need to get the perspective you want and take a picture (render the scene). You can make your buildings as complicated or as simple as you want. If it's for a presentation, you can go professional polish all the way. You can make your buildings of futuristic metal, plastic or alien goo, in any color you want. Or you can just pop some cubes on a plane. There is no limit to what you can do in Blender. And the best thing is that Blender does all the perspective calculations for you. But then maybe that is not the end purpose of your need. |
Quote:
|
All times are GMT -5. The time now is 12:01 AM. |