Page 1 of 2

treegenerator - tree[d]

Posted: Thu Jun 26, 2014 10:28 pm
by Jorgensen
Hi

Just wanted to create some simple trees for use in Sketchup, and found this nice and simple generator tree[d] https://web.archive.org/web/20130915030 ... reed.about.

I have exported as OBJ, and used Content Menu > Octane Proxy > From .obj and imported into Sketchup. It all works fine, but the alphamap on the leaves. Can anyone see if there is something wrong the .png image?

I hoped to be able to use the exported .obj file without involving other programs.

Re: treegenerator - tree[d]

Posted: Thu Jun 26, 2014 10:41 pm
by FooZe
PNG looks fine, you just need to load it into the opacity input as well so it is used as an opacity mask (load it as an "Alpha Image").
opacity_mask.jpg

Re: treegenerator - tree[d]

Posted: Thu Jun 26, 2014 10:44 pm
by Jorgensen
Hi fooze

thanks for your fast feedback.

so I do need to go through standalone version before using in sketchup?

or can it be done just by modifying the .mlt file?

Re: treegenerator - tree[d]

Posted: Thu Jun 26, 2014 10:59 pm
by FooZe
Sorry, I missed that you were using sketchup plugin.
But the same applies, you should be able to set the octane materials opacity inside octane render for sketchup (opacity pin as seen here: http://render.otoy.com/manuals/Sketchup/?page_id=988)

Can you please post the .mtl file that gets generated?

Thanks
Chris.

Re: treegenerator - tree[d]

Posted: Fri Jun 27, 2014 4:36 am
by Jorgensen
Hi Fooze

Sorry, I forgot the .mtl file.

I use the tree as a proxy object in Sketchup, and I'm not sure that you can edit the materials of proxy objects.

Ps. I'm not allowed to upload .mtl files, so please simple rename the test_5.zip to test_5.mtl.

Re: treegenerator - tree[d]

Posted: Fri Jun 27, 2014 4:57 am
by FooZe
The .mtl file does not have the listing for the opacity map.
It needs a line:
map_d leaf08.png

to specify the opacity map.

If you manually edit the file to:
------------

newmtl wood03png
Ka 1 1 1
Kd 1 1 1
Ks 0 0 0
map_Kd wood03.png

newmtl leaf08png
Ka 1 1 1
Kd 1 1 1
Ks 0 0 0
map_Kd leaf08.png
map_d leaf08.png

-----------------
ie: add the map_d parameter for the leaf material, then the standalone at least will pick this up and just work.

So it's a problem with the obj generator, it needs to add this "map_d" line to specify the opacity map (maybe there are some settings you can change that will make it do it?)

Attached is a zip of the tweaked version that should work (obj, mtl and textures).
treetest.zip
(816.06 KiB) Downloaded 310 times

Re: treegenerator - tree[d]

Posted: Fri Jun 27, 2014 8:22 am
by Jorgensen
Hi FooZe

Thanks for your effort.

I'll have to see if tree[d] can add this by it self :-)

Thank you.

Re: treegenerator - tree[d]

Posted: Fri Jun 27, 2014 5:12 pm
by resmas
Jorgensen wrote:Hi FooZe

Thanks for your effort.

I'll have to see if tree[d] can add this by it self :-)

Thank you.

Hello Jorgensen I think you are misunderstand the proxies option inside Octane4Sketchup.

Sketchup cannot open/import .obj files.
But Fuzzy gave us the option to say to Sketchup that a lowpoly component that we have in the model can be read as a highpoly .Obj or .Ocs file inside the Octane Viewport.

Its not possible to SU to edit a .ocs or .obj file, it is only reading them inside the render engine.

To be able to use all the potential of this proxies system you need to create your library of models. For example this tree you created, you cannot open the .obj file inside Sketchup and edit the materials, its not possible. After creating your new tree open Octane StandAlone load the .obj file, aply the materials, save as a Tree.ocs then in Sketchup you select a component that you have in your model and choose "proxie" -- "from OCS", select your file and in the OctaneViewport you will see the tree that you edited inside Octane StandAlone.

has you can see in this example:

Image

Image

Image

Image

cheers
resmas

Re: treegenerator - tree[d]

Posted: Fri Jun 27, 2014 5:21 pm
by Jorgensen
Stunning work resmas.

Thanks for explaining.

Re: treegenerator - tree[d]

Posted: Fri Jun 27, 2014 5:47 pm
by resmas
Jorgensen wrote:Stunning work resmas.

Thanks for explaining.
Thank you mate.
Here is you tree as .ocs file, with your materials.

take a look

cheers
resmas