Planetside Software Forums

General => Terragen Discussion => Topic started by: ozijon on February 12, 2007, 09:04:28 AM

Title: tgo plants
Post by: ozijon on February 12, 2007, 09:04:28 AM
Hi just wondering if there is a place or if there is someone out there making up more tgo plants as i cant get them obj ones to work for me in a fit i found some on here that someone made up
I used them in this pic worked verry well to and thank you for the zip and if there is a tgo plant maker out there i will be one of your ever returning customers ;D anyway i
I hope there is             
Title: Re: tgo plants
Post by: old_blaggard on February 12, 2007, 09:18:56 AM
Nice job!  Unfortunately, .tgo is TG2's own object system, and so there aren't many programs that export to it right now.
Title: Re: tgo plants
Post by: sonshine777 on February 12, 2007, 11:13:40 AM
Any of the imported object types that import into TG2 can be save as .tgo files by right clicking on the object in the node window.
I have had some success using the  Xfrog 3.5  30 day demo, (I will probably buy it when I get the money) it is fully functional and you can make modifications to the models that come with it to get a variety of a certain type of tree (this beats having a 1000 trees that are exact clones). Xfrog has a site that has some free trees and shrubs that can be downloaded.

http://web.inf.tu-dresden.de/ST2/cg/downloads/publicplants/

If you down load them in the Xfrog format (.xfr) they are editable in Xfrog 3.5. Once you get the tree/shrub modified the way you like it, you can export it to an object (.obj) and then bring it into TG2.

If you don't want to work with Xfrog you can download the trees at the above site in the .obj format.  Hope this is helpful 
Title: Re: tgo plants
Post by: old_blaggard on February 12, 2007, 12:00:58 PM
Just so you know, there are many problems with those trees in .obj format.  The .mtl files aren't written correctly, and the images used for textures often need heavy modification to make them work in TG2.
Title: Re: tgo plants
Post by: sonshine777 on February 12, 2007, 12:47:06 PM
Quote from: old_blaggard on February 12, 2007, 12:00:58 PM
Just so you know, there are many problems with those trees in .obj format.  The .mtl files aren't written correctly, and the images used for textures often need heavy modification to make them work in TG2.

I found that if you open the .png texture file for those plants in Photoshop and save it as a .tif "With Transparency" and re-associate it with the model it will work most of the time. If you modify the .xfr using Xfrog 3.5 it will fix the .mtl file on export
Title: Re: tgo plants
Post by: Costaud on February 14, 2007, 05:49:28 PM
Most of the time (for me) when a obj didn't work I opened the file in Blender or Wings or with Poseray (this one is very efficient) and resave the file in obj again. You may have to tweak the textures a little in Terragen.
Title: Re: tgo plants
Post by: Will on February 14, 2007, 06:11:39 PM
hmm I wonder if brining them into Zbrush would work.

regards,

Will
Title: Re: tgo plants
Post by: Costaud on February 14, 2007, 06:19:37 PM
Hmm if it's possible to open them in Zbrush and save them as obj you could do very interesting modifications to plant with Zbrush but I don't have Zbrush to try (it's too expensive), Blender have a sculpt mode a little Zbrush...hmmm.
Title: Re: tgo plants
Post by: Will on February 14, 2007, 06:20:54 PM
hmm, think of the morphing possablitys I'll try it.
Title: Re: tgo plants
Post by: Costaud on February 14, 2007, 09:47:06 PM
Hmmm ok let me know if it's possible.
Title: Re: tgo plants
Post by: moodflow on February 14, 2007, 10:33:42 PM
I can't get ANY of the .obj plants/trees to work.  I created some grass with bantam grass creator, and even plants with plant studio.  NONE of them work, and TG2 crashes each time.  I've even opened and then saved them as .obj files in wings3d.  Still no luck, TG2 crashes when I go to render.
Title: Re: tgo plants
Post by: old_blaggard on February 14, 2007, 11:22:53 PM
It's odd that the objs saved with wings3d would crash.  This should be fixed in the next update, however.
Title: Re: tgo plants
Post by: buzzzzz on February 14, 2007, 11:25:29 PM
Quote from: moodflow on February 14, 2007, 10:33:42 PM
I can't get ANY of the .obj plants/trees to work.  I created some grass with bantam grass creator, and even plants with plant studio.  NONE of them work, and TG2 crashes each time.  I've even opened and then saved them as .obj files in wings3d.  Still no luck, TG2 crashes when I go to render.

I got the free version of DAZ and it seems to convert obj's for Bryce ok  which load and render in TG so far so good. If that helps?
Title: Re: tgo plants
Post by: moodflow on February 14, 2007, 11:31:30 PM
I think I have it working now.   I did a cold boot on my machine.

However, I downloaded that huge pack of free trees from X-Frog, but I am unable to get them into wings 3D.  It simply locks up.  I've left it there for 15 minutes with no luck. 

Has anyone gotten these trees successfully converted to TG2 specs?
Title: Re: tgo plants
Post by: moodflow on February 14, 2007, 11:39:12 PM
I am hoping TG2 will eventually be able to open .obj (and other formats) without extra steps.
Title: Re: tgo plants
Post by: old_blaggard on February 14, 2007, 11:50:27 PM
The update will fix almost all obj stuff, and so they will be able to be imported without crashing.  I'm actually working on a project to convert all of the XFrog free trees to tgo objects, and I'm just waiting for the XFrog guy to tell me I can share them on the 'net so that I don't violate copyright.
Title: Re: tgo plants
Post by: helentr on February 15, 2007, 01:08:17 AM
Quote from: moodflow on February 14, 2007, 11:31:30 PM
I think I have it working now.   I did a cold boot on my machine.

However, I downloaded that huge pack of free trees from X-Frog, but I am unable to get them into wings 3D.  It simply locks up.  I've left it there for 15 minutes with no luck. 

Has anyone gotten these trees successfully converted to TG2 specs?

I have managed most up to about 50 Mb (OBJ size) - the larger ones take more than 30 minutes and/or kill Wings3D (CPU drops to 0%), but then I have only 1 Gb of memory and an old processor. Still, it may be a weakness of Wings3D with very high poly models. Have you used my tutorial? http://forums.planetside.co.uk/index.php?topic=575.msg4880#msg4880

Helen
Title: Re: tgo plants
Post by: Aenea on February 15, 2007, 04:53:07 AM
Hi there!

I also tried several things with the old xfrog obj. And I also used your tut Helen, but I wasn´t 100% successful. Just let me tell you what I did...

I imported the purple leaved plum (prunus cersifera nigra) obj into wings3d.
Then I followed the instructions in the tutorial.
I selected the trunk, the leaves, and strangely you were able to select two different types of branches too.
I saved them as new material and assigned a color.
Then I saved everything as new obj.

I got the obj and the mtl file and tried to import it into Terragen, what worked without problems.
I figured out that the mtl-file hadn´t the textures included, meaning, the saved images of trunk and leaves. I changed the png and rgb files into jpg files and put them into the same folder as the obj and mtl file. After I added the location of the image-files to the mtl-file, they all loaded in Terragen without problems, I found them all in the multishader.
So far so good.

I got a tree after the first render, but what I got wasn´t much satisfying. Somehow the leaves were green, they should be plum-colored like the image file of the leaves. Well, as well I couldn´t see any leaf-texture on the leaves. They were leave-shaped but had a bright-green colour - and now comes the clou. In the middle of the bright-green shapes leaves, there are smaller, dark-green leaves with texture.... ??? At least there is some texture, but again in the wrong colour...and why do they have this strange bright-green border (also leaf-shaped, but no text). It´a real riddle to me. Whatever I did with the image files, and the alhpa-image files...nothing seem to work.
The trunk as well is very square-cut and there´s also not the right texture on it.

I don´t have any clue where the problem is....maybe someone has some idea what else I can try to get a natural looking tree?
Maybe I did something wrong in the wings3d program? I´m not sure...cause when I added the colour in the program it seemed to keep exact this colour in Terragen...and I wasn´t able to change that (as pointed out above).
Maybe, when I´m home, I can add a picture so you can see more clearly what I was referring to...it´s always difficult to describe such things....a picture often says more than thousand words.

Maybe you have to add the right textures in 3dwings?
And what else wondered me a bit, when I changed the images, first the png: I followed again the instructions and in the end the leaf was white (only the shape remained) and then the background was all black. I saved it as jpg and was done. With the rgb file it was more difficult, because there wasn´t only the leaf, there was some strange texture in the background. I considered that to be the alpha-channel picture, cause when I finally succeeded in changing it the same way like the png, and wanted to save it as jpg, the program said that with saving the alpha-channel will be lost.
I also saved the original pictures as jpg and with the rgb it was again the same: the alpha-channel will be lost.
So I´m not sure if this has something to do with it. Any suggestions about that?

Hell, I hope I´m someday able to get these things right.....
Thanks in advance for ANY help on that...I´m really at a loss at the moment....

Aenea
Title: Re: tgo plants
Post by: helentr on February 15, 2007, 07:53:14 AM
Hi Aenea,

From the description you are giving, it seems like there is a problem with opacity.
As I am in the middle of a render right now, I can't test the tree you mention.
I would go to the multi shader for the tree, then the default shader for the leaf (or straight from the nodes: right click on the population/or object and go to the internal network). Then on the default shader, in the colour tab, choose the colour image and on the opacity tab the "-a" image. In the image projection I would leave the default "object UV". Then save as TGO and load that, as some OBJ files crash Terragen in the middle of rendering.
Do the images below work?

Helen
Title: Re: tgo plants
Post by: Aenea on February 15, 2007, 09:32:13 AM
wonderful Helen!

The leaves look somehow different then those I used till now...
I will try everything this evening and let you know...

thanks for your help!!!!!!!!!!!!!!!

Aenea
Title: Re: tgo plants
Post by: moodflow on February 15, 2007, 01:45:20 PM


I have managed most up to about 50 Mb (OBJ size) - the larger ones take more than 30 minutes and/or kill Wings3D (CPU drops to 0%), but then I have only 1 Gb of memory and an old processor. Still, it may be a weakness of Wings3D with very high poly models. Have you used my tutorial? http://forums.planetside.co.uk/index.php?topic=575.msg4880#msg4880

Helen
[/quote]

Hi Helen,

Yes I did read your tutorial, but have yet to give it an official try.  With the multiple steps involved, I know it will take some practice to get it right.  Hopefully TG2 will be able to seamlessly import the xfrog trees (and other 3d model styles), including their translucency, texturemaps, and other values.  For example, the xfrog trees rendered in Vue look amazing.  But Vue's interface is not near as powerful as TG2 in my opinion.
Title: Re: tgo plants
Post by: Aenea on February 15, 2007, 03:03:54 PM
Hi Helen!

I add this picture:

it´s even the same with your leaves...

I added the normal leaf file in the color section and the _a_file in the opacity section....it´s still the same...
I just add the mtl file, and the tgd where I tried to get this tree work....

Quote# Exported from Wings 3D 0.98.32a
newmtl asts
Ns 100.000
d 1.00000
illum 2
Kd 0.253333 1.33333e-2 1.33333e-2
Ka 1.00000 1.00000 1.00000
Ks 1.00000 1.00000 1.00000
Ke 0.00000e+0 0.00000e+0 0.00000e+0
map_Kd prunus_cerasifera_nigra_bark.jpg

newmtl leaf
Ns 100.000
d 1.00000
illum 2
Kd 0.313333 1.00000 0.113333
Ka 1.00000 1.00000 1.00000
Ks 1.00000 1.00000 1.00000
Ke 0.00000e+0 0.00000e+0 0.00000e+0
map_Kd prunus_cerasifera_nigra_leaf.jpg

newmtl small asts
Ns 100.000
d 1.00000
illum 2
Kd 0.260000 7.33333e-2 7.33333e-2
Ka 1.00000 1.00000 1.00000
Ks 1.00000 1.00000 1.00000
Ke 0.00000e+0 0.00000e+0 0.00000e+0
map_Kd prunus_cerasifera_nigra_bark.jpg

newmtl smallest asts
Ns 100.000
d 1.00000
illum 2
Kd 0.246667 3.33333e-2 3.33333e-2
Ka 1.00000 1.00000 1.00000
Ks 1.00000 1.00000 1.00000
Ke 0.00000e+0 0.00000e+0 0.00000e+0
map_Kd prunus_cerasifera_nigra_bark.jpg

newmtl trunk
Ns 100.000
d 1.00000
illum 2
Kd 0.433333 0.00000e+0 0.00000e+0
Ka 1.00000 1.00000 1.00000
Ks 1.00000 1.00000 1.00000
Ke 0.00000e+0 0.00000e+0 0.00000e+0
map_Kd prunus_cerasifera_nigra_bark.jpg

Title: Re: tgo plants
Post by: Costaud on February 15, 2007, 09:01:05 PM
I have posted a mapletree I have made with Blender at designpaths.com forum here the link http://www.designpaths.com/forums/thread.php?threadid=35&sid=  try it it's a gift.
Title: Re: tgo plants
Post by: old_blaggard on February 15, 2007, 09:31:06 PM
Thanks for sharing!
Title: Re: tgo plants
Post by: Aenea on February 16, 2007, 02:50:55 AM
thanks for sharing.... ;D

Reagarding my case....
I found out that I even have problems with the new xfrog plants....

It´s horrible, Í don´t get those textures to work....my plants all look as if only painted with normal colors.
I tried nearly everything. Maybe someone could post a tgd with a working tree???
A new xfrog and an old one?

Maybe so I can find out where the problem is?
That would be really really kind....
It´s at the moment a looking for a needle in a haysack.  :'( :'( :'(

Aenea

Title: Re: tgo plants
Post by: helentr on February 16, 2007, 07:52:24 AM
Quote from: Aenea on February 16, 2007, 02:50:55 AM
thanks for sharing.... ;D

Reagarding my case....
I found out that I even have problems with the new xfrog plants....

It´s horrible, Í don´t get those textures to work....my plants all look as if only painted with normal colors.
I tried nearly everything. Maybe someone could post a tgd with a working tree???
A new xfrog and an old one?

Maybe so I can find out where the problem is?
That would be really really kind....
It´s at the moment a looking for a needle in a haysack.  :'( :'( :'(

Aenea



Well, regarding your case ....
(Sorry for the delay, but the 36 hour render finished at last).
The TGD you posted has nothing wrong with it. The tree I have exported from Wings3D renders normally, as far as the textures go. Only problem, it looks huge; yours is tiny - you need to scale it to 100 to see it - did you scale it down in Wings3D?
The MTL file looks normal AFAIK, apart from the different choice of colors and high reflectivity and ambient light settings, which would make for a very bright and shiny tree. I usually turn ambient below the middle values and reflectivity to 0.
But these don't explain the appearance of the leafs.
If you want, I can send you the files in a ZIP by email (it is about 4.5 Mb, would make a 6 to 7 Mb email), so that you can compare the two and find the problem. Write to me at "helentr AT gmail.com" (remove the spaces and replace AT with @) with an email address that can accept large attachments.
BTW, this is how the tree looks to me.

Helen
Title: Re: tgo plants
Post by: Aenea on February 16, 2007, 07:57:41 AM
Thanks for the reply Helen.

*lol* I just sent you an pm regarding that....
The second pm includes also my email....
Thanks a bunch!!!!!!!!!!!!!!!!!!!

Aenea
Title: Re: tgo plants
Post by: moodflow on February 16, 2007, 09:21:42 AM
Would anyone mind trading a few foliage files that are already TG2 ready?  I can recieve large emails if needed.  I can also trade back.  I have tons of tileable textures I've made over the past few years, and most are high res.
Title: Re: tgo plants
Post by: Aenea on February 17, 2007, 04:11:49 PM
Thanks again for all the help-especially to you Helen!

I finally got it. The trees look like trees now---well, I still have the strange problem with the colours (send you an email about that Helen), but I tried everything with the normal new xfrog-files and now my birch looks like a birch.
Even the plum tree looks like a realistic tree now, although the colors are not correct, but I think we´ll figure that out soon....

So, I will sit down and write a tutorial, me thinks that there is surely some need. Be back with that asap.

So thanks again for all the help!

Aenea
Title: Re: tgo plants
Post by: Will on February 17, 2007, 04:14:56 PM
Good I'm glad everything is fixed, there is certinally a need for as meany tutreails as we can get since there is a constant amount of new users coming to terrage.

Regards,

Will
Title: Re: tgo plants
Post by: Aenea on February 18, 2007, 06:56:09 PM
I managed to write the first tutorial of a series:
I made an entry to the documentation section so anyone can find it there...

http://forums.planetside.co.uk/index.php?topic=849

Please feel free to make correction suggestions...as I am myself a newbie there might be some.

Aenea
Title: Re: tgo plants
Post by: Aenea on March 19, 2007, 05:17:04 AM
After I worked for as good as three weeks on plants, obj, etc....I will post the second tutorial in a few days.
This time it´s working with the importing of obj-files, mainly the old xfrog-objects...how we get them into terragen properly, showing the right textures and so on.

Think after the update we have much less problems with obj-files anyway. So far it works fantastic...


Til soon

Aenea