View Full Version : Graphic Help
Death Engineer
10-14-2003, 02:00 PM
I need some help from some of you graphics gurus. I am in a computer graphics class and have made a tree using recursive logic. Attached is a picture of such a tree.
Here's the part I need help with: I need to put the tree in a picture with other trees. A landscape kind of setting.
Now I know the tree isn't perfect, but our project was very limiting. No calls to glTranslate, glRotate or any of that. Had to push and pop the matrices on the stack using our own routines. So I don't need to hear about how the tree doesn't look real. I just need help throwing it in a nice looking background. I'd appreciate anyone's help. :thumbs:
Let me know if you need a better quality image. I can MSN or AIM it to you.
DE
PS. If someone could tell me how to use Layers with PSP, I might be able to figure this out on my own. I'm using version 6.
http://www.ece.utexas.edu/~wsean/Image2.jpg
OUTLAWS The Machine
10-14-2003, 02:01 PM
:blink: :wacko:
SALvation
10-14-2003, 02:04 PM
Is recursive logic the name of the program? If not, what are you using?
Death Engineer
10-14-2003, 02:19 PM
I am using a neat program called C++. Maybe you've heard of it. :P /sarcasm off
Using MS Visual C++ 6.0 specifically for the compiler. The recursive part is the nature of the drawing function call. It calls itself to draw more and more branches depending on the depth of the recursion using openGL.
I could send you the code if you want. I haven't patented it yet. :P
SALvation
10-14-2003, 02:39 PM
Sorry, I flunked C++. :)
Yellow[GummiBear]
10-14-2003, 02:55 PM
I don't know how to do it in PSP but I may be able to help in PhotoShop. Maybe it'll be slightly interchangable.
Anyway, there's a function in PS where you can get rid of the background completely (not just make it black or white) but totally get rid of it. I think all ya gotta do is go to background color and choose it.
Now for your picture, I don't think the Black will be considered the background color because you are importing the tree with the black background already there. That shouldn't be a problem either though. You can just use the Magic Wand or Lasso to select the tree and then delete the black once the tree is selected. Then, just set your background to nothing and you should be left with just the tree itself with no background at all. It'll be the silhouette and everything inside of it.
Using Mask functions often times makes separating things like that very easy. Unfortunately I've only done something like this once so it's hard for me to go into greater detail.
Good luck!!
Death Engineer
10-14-2003, 03:05 PM
I can make the background (black) transparent without degrading the tree. My problem is how do I add that to another picture without reintroducing the background? Seems like PSP adds it back in when I copy and paste.
DE
JIMINATOR
10-14-2003, 03:38 PM
dunno about psp. in photoshop, i would get rid of the black (so that all showed
up as transparent) then copy, & paste into a landscape pic (and resize the original
& repeat if necessary)
Fantum309
10-14-2003, 05:07 PM
Are you talking about something like this?
Fantum309
10-14-2003, 05:08 PM
Or this?
merkwannabe
10-14-2003, 05:44 PM
*Claps*For Fantum!!!!
Photoshop is pretty easy.. If you make the background nothing like someone said, then you can just drag the picture of the tree into another opened photoshop document and volia. But you need to be careful with the layers and stuff. To drag it use the compass looking arrow. :unsure:
Fantum309
10-14-2003, 06:38 PM
Originally posted by merkwannabe@Oct 14 2003, 01:44 PM
*Claps*For Fantum!!!!
Photoshop is pretty easy..* If you make the background nothing like someone said, then you can just drag the picture of the tree into another opened photoshop document and volia.* But you need to be careful with the layers and stuff.* To drag it use the compass looking arrow.* :unsure:
It might be easy for you, but I am still learning how to open up a document in Photoshop. As you can see, something went wrong with my second example and I am clueless as to why it won't show up! :bandhead:
I think that tree is awesome just the way it is. I wish I was creative enough to do that kind of work. I need a class. I've come to realize over the past year that there are a lot of talented people in these forums, many of which are willing to share their knowledge. I just don't seem to have that kind of time anymore.
solid snake295
10-14-2003, 09:06 PM
the easiest way i know (in PSP) is go to selections then select all. then selections again >modify> transperant color. since the background is already black it makes it a whole lot easier. you just set the transperant color as black then set the tolerance, you can keep changing the tolerance number untill you get it just right. now that will make your selection around everything thats not black (the tree) now all you have to do is copy then paste it into a forrest picture! :sorcerer: YAY! :w00t:
solid snake295
10-14-2003, 09:08 PM
oops, forgot to add pic :oooo:
Death Engineer
10-14-2003, 09:12 PM
Originally posted by Fantum309@Oct 14 2003, 12:07 PM
Are you talking about something like this?
Fantum... That rock!! Thanks so much. Can I count on you to do this again sometime late tomorrow afternoon? I'm going to make a few improvements. Smoothing out the branches to look more round, make the leaves look less flat, etc.
As far as the creative side goes, I'm anything but creative. I'm more logical. The whole tree is made based on recursive logic and random variables. I'd give the credit to my good ol' Athlon for the creative part. :P
Solid Snake -- I did this before I posted because this was my original idea of how this worked. However, when you post the copied section of the image, it adds the background back in. :( I don't have photoshop, but I can do almost anything else with PSP. I'll have to take another look at it. Perhaps upgrade to the latest version.
solid snake295
10-14-2003, 09:15 PM
it shouldnt post the background with it, after you copy it (or cut) open up a new picture (your tree will still be in the clipboard) then you just go paste> as new layer. it really should work, i do it all the time :sorcerer:
solid snake295
10-14-2003, 09:48 PM
:wootrock:
Death Engineer
10-14-2003, 11:50 PM
Here's the newer image:
http://www.ece.utexas.edu/~wsean/Image1.jpg
Herbus Maximus
10-15-2003, 12:07 AM
That's a very nice tree you have there....but I think the original one you posted was better. You've lost the depth perspective in the branches with the last one.
How long did it take to create?
Death Engineer
10-15-2003, 12:17 AM
Uhm. About 2 weeks to figure out how to code it. About 25 microseconds to be drawn on my screen. :cool:
merkwannabe
10-15-2003, 02:19 AM
Originally posted by solid snake295@Oct 14 2003, 02:48 PM
:wootrock:
Your the bestest!!@!
Maybe Fantum, you, and me, (as your manager :shifty: ) can form a graphics business.. Its what I plan on doing after high school, btw I have no experience.. :w00t:
solid snake295
10-15-2003, 02:35 AM
:w00t: as long as you can make dinner, your hired! :rofl:
Yellow[GummiBear]
10-15-2003, 03:12 PM
I actually like the first one better too... likewise I think the 3-dimensionalism of the second picture was lost somehow
Death Engineer
10-15-2003, 03:23 PM
Hmmm. Well, alrighty then. I'll be turning this in later this afternoon. If you have any other backgrounds to put the first tree on, by all means, lets see them. :P
DE
JIMINATOR
10-15-2003, 03:41 PM
oh, for extra credit, you may want to thicken each parent based on the number
of children, and also it doesn't seem like a very random distribution of nodes
(where parents have 0, 1 or 2 children, % shifting from 2 to 0, the more
generations away from the root parent...)
:D
Just pulling your chain man! :thumbs:
Fantum309
10-15-2003, 03:52 PM
How's this?
Fantum309
10-15-2003, 03:52 PM
Or this?
PimpDaddy
10-19-2003, 12:26 AM
nighttime
PimpDaddy
10-19-2003, 12:44 AM
at the waterfalls
Death Engineer
10-19-2003, 10:47 PM
I just had to do this. :cool:
merkwannabe
10-19-2003, 11:59 PM
Wow.. Nice work guys..
@Death :lol:
PimpDaddy
10-20-2003, 12:03 AM
More scenery :rofl:
Fantum309
10-20-2003, 12:11 AM
Very nice! :shifty:
merkwannabe
10-20-2003, 12:14 AM
Originally posted by Fantum309@Oct 19 2003, 05:11 PM
Very nice! :shifty:
:sorcerer:
Powered by vBulletin® Version 4.1.9 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.