[Plugin] 3D Tree Maker - New version 1.10.14

Re: [Plugin] Tree Maker

Postby Chris Fullmer » Sun May 26, 2013 9:32 am

driven wrote:PM Chris Fullmer re the scaling, I think he may have an answer...


Tis True! This is a known bug introduced in 7.1. Scaling globally by applying a scale factor to the 16th matrix position is bugged. So instead of

t = Geom::Transformation.scaling(scale_factor)

Do this:

t = Geom::Transformation.scaling(scale_factor,scale_factor,scale_factor)

That way it won't write the scale value to the 16th position, but will in fact do the math and distribute it across the entire matrix.

If you need a code snippet to reset the scale of a component to a bug-free transformation matrix, I could post that as well.

Besides the fact that some renderer's don't take this global scale feature into account, a lot of video cards also do not. We've had reports that fog will not work correctly on components with the global scale, and face-me components also do not account for it. So if the leaves are set to face-me, it can cause a lot of craziness :)

I guess we can take this discussion over to the developers forum if you want to talk more about it. Looks like an awesome plugin!

Chris
0
Last edited by Chris Fullmer on Sun May 26, 2013 9:40 am, edited 1 time in total.
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Tree Maker

Postby ppoublan » Sun May 26, 2013 9:32 am

Krisidious wrote:On SU 2013 Win, I'm getting this error on startup.

no such file to load -- 3darcstudio/3darcstudiotree.rbs
Error Loading File 3darcstudiotreeloader.rb
no such file to load -- 3darcstudio/3darcstudiotree.rbs

The file is in the location specified.


Hi,
I just downloaded and installed SU 2013 Make on Windows 7. And copied the 3darcstudio zip content to the plugin directory.
Seems to work fine.
Are you really sure you copied the subdirectory "3darcstudio" into the SU 2013 Plugins (not the Google old one)?
0
User avatar
ppoublan 
Premium Member
Premium Member
 

Re: [Plugin] Tree Maker

Postby ppoublan » Sun May 26, 2013 9:37 am

Chris Fullmer wrote:So instead of

t = Geom::Transformation.scaling(scale_factor)

Do this:

t = Geom::Transformation.scaling(scale_factor,scale_factor,scale_factor)

That way it won't write the scale value to the 16th position, but will in fact do the math and distribute it across the entire matrix.

Chris


Thanks Chris, I will change the code according to your sample.
0
User avatar
ppoublan 
Premium Member
Premium Member
 

Re: [Plugin] Tree Maker

Postby ppoublan » Sun May 26, 2013 9:46 am

solo wrote:
Pixero wrote:
solo wrote:This is awesome, sure there are a few small things but wow! this is going to be a zinger of a plugin.

Anyway to get a console/applet for modifying the parameters and an update button?


If you rightclick on the tree you can change parameters. Is that what you wanted?


I saw that, what I'd like is a console/applet where I can do all the changes and update without clicking out to see results then right clicking to make more changes.


I think I understand this request. I was myself really disappointed when I wanted to add more input parameters with the poor input types that can be used with UI class.
It will take some time to build it as I'm really a beginner with html and applets. Does someone could confirm SU 2013 has or not better features to build user input data interfaces ? Or should I go any way with Applets and html code ?

Yours
Pascal
1
User avatar
ppoublan 
Premium Member
Premium Member
 

Re: [Plugin] Tree Maker

Postby Krisidious » Sun May 26, 2013 9:50 am

everything seems to be in it's rightful place.

Capturetreemaker.JPG
0
By: Kristoff Rand
Home Designer
Unique House Plans
User avatar
Krisidious 
 

Re: [Plugin] Tree Maker

Postby TIG » Sun May 26, 2013 10:00 am

Do you have FULL security permissions to the Plugins folder AND all of its contents - files and subfolders...
v2013 will be installed with the defaults, not how you might have adjusted the settings for v8 Plugins...
I'm wondering if you don't have permission to 'read' from the subfolder in v2013... :?

Another possibility is that the subfolder/files are NOT actually where you think they are - the dreaded 'VirtualStore' issue... Windows over zealously protecting you from yourself without telling you what it's done...
Look in C:/Users/UserName/AppData/Local/VirtualStore
If there are any subfolders matching the SketchUp 2013 Plugins folder, then your security permissions are definitely skewed... :roll:
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Tree Maker

Postby ppoublan » Sun May 26, 2013 10:06 am

driven wrote:hi


One request I would have is to allow loading from other Folders/Directories, it appears to be hard coded to Plugins Folder.

john


Hi John,
Could you explain what do you means by "allow loading from other Folders/Directories". Is it to be able to save and load tree templates from other dirs ? I'm building my "todo" list but for this feature I do not know how to manage PC and Mac files and directories from the same code. This is easy with builtin sketchup plugin directories. Will have a look.
0
User avatar
ppoublan 
Premium Member
Premium Member
 

Re: [Plugin] Tree Maker

Postby Krisidious » Sun May 26, 2013 10:36 am

TIG wrote:Do you have FULL security permissions to the Plugins folder AND all of its contents - files and subfolders...
v2013 will be installed with the defaults, not how you might have adjusted the settings for v8 Plugins...
I'm wondering if you don't have permission to 'read' from the subfolder in v2013... :?

Another possibility is that the subfolder/files are NOT actually where you think they are - the dreaded 'VirtualStore' issue... Windows over zealously protecting you from yourself without telling you what it's done...
Look in C:/Users/UserName/AppData/Local/VirtualStore
If there are any subfolders matching the SketchUp 2013 Plugins folder, then your security permissions are definitely skewed... :roll:


that virtual folder did exist and there were file from Version 8 in it... some en files, a template and some appliance components. but no files from 2013.

as for permissions... CREATOR/OWNER has none, and when I try to set them it just re-sets to blank. User and Trusted installer, has all permissions, administrators has them all checked and greyed out.
0
By: Kristoff Rand
Home Designer
Unique House Plans
User avatar
Krisidious 
 

Re: [Plugin] Tree Maker

Postby ppoublan » Sun May 26, 2013 10:42 am

Krisidious wrote:
TIG wrote:Do you have FULL security permissions to the Plugins folder AND all of its contents - files and subfolders...
v2013 will be installed with the defaults, not how you might have adjusted the settings for v8 Plugins...
I'm wondering if you don't have permission to 'read' from the subfolder in v2013... :?

Another possibility is that the subfolder/files are NOT actually where you think they are - the dreaded 'VirtualStore' issue... Windows over zealously protecting you from yourself without telling you what it's done...
Look in C:/Users/UserName/AppData/Local/VirtualStore
If there are any subfolders matching the SketchUp 2013 Plugins folder, then your security permissions are definitely skewed... :roll:


that virtual folder did exist and there were file from Version 8 in it... some en files, a template and some appliance components. but no files from 2013.

as for permissions... CREATOR/OWNER has none, and when I try to set them it just re-sets to blank. User and Trusted installer, has all permissions, administrators has them all checked and greyed out.


To be sure if it has to do with folder rights and virtual store, try starting Sketchup with admin rights (right click on sketchup icon and choose run as admin..."), and see if the error still occurs.
0
User avatar
ppoublan 
Premium Member
Premium Member
 

Re: [Plugin] Tree Maker

Postby pilou » Sun May 26, 2013 10:48 am

Can be apply other things than trunck ? (as textures/material or as components)
Can be apply other things than branch ? (as textures/material or as components)
Can be apply other things than leaf ? (as textures/material or as components)
0
Last edited by pilou on Sun May 26, 2013 10:52 am, edited 1 time in total.
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Tree Maker

Postby Krisidious » Sun May 26, 2013 10:50 am

starting Sketchup with admin rights (right click on sketchup icon and choose run as admin..."), and see if the error still occurs.


Tried and still the same error.
0
By: Kristoff Rand
Home Designer
Unique House Plans
User avatar
Krisidious 
 

Re: [Plugin] Tree Maker

Postby ppoublan » Sun May 26, 2013 10:56 am

Pilou wrote:Can be apply other things than trunck ? (as textures or as components)
Can be apply other things than branch ? (as textures or as components)
Can be apply other things than leaf ? (as textures or as components)


Hi Pilou,
If your question is how to add your own textures and leaves/flowers types, here is how it works now :
- textures available are all "*.jpg" files that exists in the 3darcstudio plugin dir.
- leaves/flowers components are all "*.skp" files that exists in the 3Darcstudio plugin dir.
So you can easily add your own by copying your files into this dir.
Be careful when defining your own components to make the origin of the component at the beginning of the leaf, and the leaf pointing to the sky (z direction), with size arrong 10 cms long.
0
User avatar
ppoublan 
Premium Member
Premium Member
 

Re: [Plugin] Tree Maker

Postby ppoublan » Sun May 26, 2013 11:01 am

Tried and still the same error.[/quote]

Arghh...! do not understand why. Maybe try to delete files and copy them again to be sure file has not been corrupted. Does it work with SU8 ?
0
User avatar
ppoublan 
Premium Member
Premium Member
 

Re: [Plugin] Tree Maker

Postby Krisidious » Sun May 26, 2013 11:07 am

No, it doesn't work on either 8 or 13... Tried deleting. nothing changes.

Just my luck.
0
By: Kristoff Rand
Home Designer
Unique House Plans
User avatar
Krisidious 
 

Re: [Plugin] Tree Maker

Postby pilou » Sun May 26, 2013 11:08 am

So you can easily add your own by copying your files into this dir.


Cool! :enlight:

;)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Tree Maker

Postby TIG » Sun May 26, 2013 11:18 am

Let's try some testing with the Ruby Console...
Copy paste these lines + <enter>
path='C:/Program Files (x86)/Sketchup/Sketchup 2013/Plugins/3darcstudio/3darcstudiotree.rbs'
Then this
File.exist?(path)
which will return 'true' or 'false'...
If 'false' that's plain weird as you can 'see' it !?
Check the exact spellings, compared to the error messages etc the 'loader text is '3darcstudio/3darcstudiotree.rbs'
If it's 'true' then try...
load path
which will return 'true' or 'false'...
If it's 'true', then the code in the rbs file has loaded and the menu/toolbar etc should be available, as if the Extension had been loaded and activated...
What happens ?
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Tree Maker

Postby Krisidious » Sun May 26, 2013 11:50 am

TIG wrote:Let's try some testing with the Ruby Console...
Copy paste these lines + <enter>
path='C:/Program Files (x86)/Sketchup/Sketchup 2013/Plugins/3darcstudio/3darcstudiotree.rbs'
Then this
File.exist?(path)
which will return 'true' or 'false'...

True
TIG wrote:If it's 'true' then try...
load path
which will return 'true' or 'false'...


I get. on Load Path

Error: #<SyntaxError: (eval):155:in `load': C:/Program Files (x86)/Sketchup/Sketchup 2013/Plugins/3darcstudio/3darcstudiotree.rbs:1: no .<digit> floating literal anymore; put 0 before dot
RBS1.0...
^
C:/Program Files (x86)/Sketchup/Sketchup 2013/Plugins/3darcstudio/3darcstudiotree.rbs:1: syntax error, unexpected tINTEGER
RBS1.0...
^
C:/Program Files (x86)/Sketchup/Sketchup 2013/Plugins/3darcstudio/3darcstudiotree.rbs:1: Invalid char `\010' in expression>
(eval):155
(eval):155
0
By: Kristoff Rand
Home Designer
Unique House Plans
User avatar
Krisidious 
 

Re: [Plugin] Tree Maker

Postby kaas » Sun May 26, 2013 12:20 pm

Hello Pascal,

Just had a go with the plugin. It works really fine already!

My 2 cts:
1. if I right-click and adjust any part of a tree it also generates new elements for every other part of the tree. I understand changing the branches should also change the position of the leaves but changing the leaves atm also changes the trunk, not really what you want if you're fine tuning a tree

2. i might be a nice feature if one could control the size / length of the branches (size decrease or increase by x %) depending on the position on the tree (higher up the tree = make branches less long by 50% etc).

3. ditto for the leaves - for instance smaller leaves near the end of a branch.

edit: 4. adjusting a tree reloads all materials and textures. If you-re fine-tuning a tree and already edited one of your materials you have to do that again and again.

edit: 5. the textures for the bark must be located in the 3d arcstudio directory. The same for the models of the leaves. Many people have all their content on (shared and backupped) network drives. It would be great if one could make a redirection to external folders for the textures and a different one for the leaf-models.

Greetings,

Max
0
Last edited by kaas on Sun May 26, 2013 12:46 pm, edited 1 time in total.

kaas 
 

Re: [Plugin] Tree Maker

Postby ppoublan » Sun May 26, 2013 12:45 pm

kaas wrote:Hello Pascal,

Just had a go with the plugin. It works really fine already!

My 2 cts:
1. if I right-click and adjust any part of a tree it also generates new elements for every other part of the tree. I understand changing the branches should also change the position of the leaves but changing the leaves atm also changes the trunk, not really what you want if you're fine tuning a tree

2. i might be a nice feature if one could control the size / length of the branches (size decrease or increase by x %) depending on the position on the tree (higher up the tree = make branches less long by 50% etc).

3. ditto for the leaves - for instance smaller leaves near the end of a branch.

edit: 4. adjusting a tree reloads all materials and textures. If you-re fine-tuning a tree and already edited one of your materials you have to do that again and again.

Greetings,

Max


The tree is entirely rebuilt each time a single parameter is changed (as almost all parameters have impacts on others"). Something I do not know how to fix.
But the lenght of the brenches in fact are varying based on their position on the tree as you are asking for. This is managed by the "tree shape" parameter (pyramidal, spherical, ...) . See the pdf doc for this parameter.
0
User avatar
ppoublan 
Premium Member
Premium Member
 

Re: [Plugin] Tree Maker

Postby ppoublan » Sun May 26, 2013 12:58 pm

Krisidious wrote:I get. on Load Path

Error: #<SyntaxError: (eval):155:in `load': C:/Program Files (x86)/Sketchup/Sketchup 2013/Plugins/3darcstudio/3darcstudiotree.rbs:1: no .<digit> floating literal anymore; put 0 before dot
RBS1.0...
^
C:/Program Files (x86)/Sketchup/Sketchup 2013/Plugins/3darcstudio/3darcstudiotree.rbs:1: syntax error, unexpected tINTEGER
RBS1.0...
^
C:/Program Files (x86)/Sketchup/Sketchup 2013/Plugins/3darcstudio/3darcstudiotree.rbs:1: Invalid char `\010' in expression>
(eval):155
(eval):155


Strange. Really seams the file is corrupted. Could you try deleting all local files from 3darcstudio, and downloading it again after emptying your browser cache from the web site (http://www.3darcstudio.com)

Looks like Sketchup unable to read/interpret source code rbs file :
- the script start with : =begin and =end remarks lines so they should be ignored
- no "." dot character used without the number 0 before, maybe wrong interpretation of the decimal point

exact size of rbs file on my computer is 193 410 octets
0
User avatar
ppoublan 
Premium Member
Premium Member
 

Re: [Plugin] Tree Maker

Postby Krisidious » Sun May 26, 2013 1:23 pm

no, that didn't work either...
file.
size - 188 KB (193,410 bytes)
size on disk - 192 KB (196,608 bytes)
0
By: Kristoff Rand
Home Designer
Unique House Plans
User avatar
Krisidious 
 

Re: [Plugin] Tree Maker

Postby kaas » Sun May 26, 2013 1:45 pm

ppoublan wrote:But the lenght of the brenches in fact are varying based on their position on the tree as you are asking for. This is managed by the "tree shape" parameter (pyramidal, spherical, ...) . See the pdf doc for this parameter.

As always, I did not spend enough time reading the manual. I will read it.

I ran into another small issue: I made my own leaf-component and textured both front and backside of the faces. If I run the tree plugin the mapping coordinates of the backfaces of those leafs get messed up.

It's easy to fix by right clicking on a component and reload the original leaf-file but a bit strange.

Still, compliments on the plugin! Having great fun with it the last couple of hours :thumb: :thumb: :thumb:
0

kaas 
 

Re: [Plugin] Tree Maker

Postby massimo » Sun May 26, 2013 5:11 pm

Played a bit with an olive tree. :)
olive_2.jpg

olive_02.jpg
0
User avatar
massimo 
 

Re: [Plugin] Tree Maker

Postby leminilab » Sun May 26, 2013 6:27 pm

massimo wrote:Played a bit with an olive tree. :)

Amazing plug-in... :o
How heavy is this file Massimo?
0
- "Live every day as if it were your last and then some day you'll be right."
- "ThomThom rules!!!"

leminilab 
Premium Member
Premium Member
 

Re: [Plugin] Tree Maker

Postby massimo » Sun May 26, 2013 6:33 pm

Only purged (and not tried yet with cleanup), 3,5Mb.
0
User avatar
massimo 
 

Re: [Plugin] Tree Maker

Postby tomasz » Sun May 26, 2013 7:12 pm

ppoublan wrote:Does someone could confirm SU 2013 has or not better features to build user input data interfaces ? Or should I go any way with Applets and html code ?

No improvements whatsoever.

You can try a library Aerilius-onscreen-gui. That is what He has doneto improve things.
0

tomasz 
SU2TH & SU2KT Developer
 

Re: [Plugin] Tree Maker

Postby olishea » Sun May 26, 2013 8:09 pm

massimo wrote:Only purged (and not tried yet with cleanup), 3,5Mb.


how many faces? this is the important thing. leaves should be substituted for quad face PNGs.
0
oli
User avatar
olishea 
Premium Member
Premium Member
 

Re: [Plugin] Tree Maker

Postby massimo » Sun May 26, 2013 8:16 pm

This is after running cleanup.
Cattura.JPG
0
User avatar
massimo 
 

Re: [Plugin] Tree Maker

Postby leminilab » Sun May 26, 2013 8:30 pm

olishea wrote:
massimo wrote:Only purged (and not tried yet with cleanup), 3,5Mb.


how many faces? this is the important thing. leaves should be substituted for quad face PNGs.

Sorry for the following dumb question but I didn't take the time to read all the post or even try the plug-in yet...
:? All the leaves are components?
0
- "Live every day as if it were your last and then some day you'll be right."
- "ThomThom rules!!!"

leminilab 
Premium Member
Premium Member
 

Re: [Plugin] Tree Maker

Postby CadFather » Sun May 26, 2013 8:32 pm

yes
0
User avatar
CadFather 
PluginStore Author
PluginStore Author
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

PreviousNext


 

Return to Plugins

Who is online

Users browsing this forum: Lalonganiza and 7 guests

Visit our sponsors: