Hi, do not use x^2 but instead, use x**2, in Ruby the ^ operator is a binary xor. See the operator list for Ruby...
https://www.tutorialspoint.com/ruby/ruby_operators.htm
Try this formula...
((x-y)**2)/20
Hi, do not use x^2 but instead, use x**2, in Ruby the ^ operator is a binary xor. See the operator list for Ruby...
https://www.tutorialspoint.com/ruby/ruby_operators.htm
Try this formula...
((x-y)**2)/20
oh I see what you mean. You have a face (a wall) with a texture on it and then you have another face with the transparent PNG that you want to put on the wall, making it look like it's painted on the textured wall. Then yes, Numberobis is correct, you need to offset that other face because if they both occupy the exact same space, how can Skp or Raylectron know which is priority or not? It can't. It's not a bug. Offset by just even 1mm should be good enough, OpenGL in Skp may not show you it is when you orbit but in Raylectron, it'll render properly and you won't get any shadows from it being offset.
I was looking at SU3.jpg and it's not a PNG. Someone else posted one, TuNA so I didn't bother with that one. which one is it? Better yet, can you post the PNG and what it looks like in Raylectron? along with the Raylectron settings for that material?
Make sure your PNG has a transparent background, looking at the post above, it appear not to have a transparent background. You can use Photoshop, Gimp or similar software to remove the background, save it and problem solved.
Make sure the bitmap is 24bit and that it doesn't include color space information.
@cas_123 said:
I did but it doesn't work
Make sure that the fur_en folder and the fur_en.rb file is in your ..*Sketchup\Plugins* folder and re-start Sketchup if it was already opened.
if that doesn't work still, then let me ask.. what doesn't work? The fur plugin? or it's not in your Plugin menu? Give me some clues.
@cas_123 said:
Thank you, I downloaded it via IE. I put this unwrapped folder 'fur_en15a' in folder 'Plugins' in SketchUp files but it doesn't work. What should I do?
You must unzip it to that folder.
rps_texturewrite.rb is not part of Raylectron, it's from Renderplus, so you may want to contact them.
The Raylectron texture exporter is very fast, and, you can select the format you want to save the images as, and where to save them, and, it's easier to use, with a nice GUI.
wow! that is weird! but thanks to let me know how you fixed it. I wouldn't have though of a reboot to fix it!
I can't make it to do that! I've tried everything, even loading another model without exiting SU, and it comes up everytime! Maybe the window has moved behind the SU window?
Yes, indeed. But this is not the problem. The real problem is, the grass generation is not evenly distributed (sometimes). There is more grass on some areas (looks like big triangles). It does this with the green dots, and also when making the fur.
I have a suggestion. Can you implement clipping for the crowd? If we use a wide object instead of a tall object (like people), they go over the face edges. It would be nice if they clip, or moves inside so they don't go over the edges.
BTW, Thanks for this fantastic plugin, I love it.
@fgomes said:
ok ... half the problem solved. Actually appeared in the preview only half the area covered, but after making the fur, the distribution was throughout the area.
However, the distribution was not homogeneous. There are areas with more grass than others.
This is strange... everyone does fantastic grass with theis plugin... I only encounter problems!
I have the same issue with the green dots and the distribution. You're not the only one.
@brookefox said:
Thanks, Raylectron. I have not installed, and am math-poor, but looks interesting. And thanks for posting the examples. I hope there will be more from wherever. For me, hidden geometry displayed in the absence of other materials is most revealing and helpful, but I understand not all share my view. Some actually render.
You are welcome
You don't need to know math, really, just modify the ones that comes with the plugin and see what it does. There is an Undo button to easily undo the mesh, so you can change the formula quickly on every turn. You can go the "View" menu and turn on "Hidden Geometry". My examples above have a material to them, but the plugin doesn't do that, it only create a mesh.
Here is one with the Hidden Geometry...
@thomthom said:
No - the best thing is to not use global variables! Ever! Play nice with the environment your plugin live in and wrap everything in your own unique namespace module. No global variables and no global methods or constants that gets added to the Object class and inherited throughout every other class.
I wrote down some guidelines for avoiding clashes with other plugins etc: http://www.thomthom.net/thoughts/2012/01/golden-rules-of-sketchup-plugin-development/
TT, I was pointing out the possible problem and a simple fix using search/replace rather then changing the whole code!
@d_e_x said:
LightUp / SketchUpBIM conflict has been reported by some other users as well. We will investigate this issue, and get in touch with the LightUp team to fix this issue. Apologies for the inconvenience. We'll have this fixed in the upcoming release.
Dex
The problem is usually with your global variables. If you use $pluginDir = "c:/BIM" and another plugin uses $pluginDir = "c:/Other" then the last one who load will change the variable $pluginDir in all loaded plugins. So make sure you name your global variables accordingly. For example, use $bim_pluginDir instead of $pluginDir
SketchyMesh is an easy terrain and shape builder. It is based on the formula z=f(x,y) for a grid where you enter your own ruby formula using x and y. You can download it from http://Raylectron.com it is free with source code but is (c)2012 SoftByte Labs Inc.
Here are some screen shots of the GUI and formulas used...
I have written a plugin to export all of the textures from your models. It's very fast and not coded in Ruby. It's freeware and you can get it from http://Raylectron.com
Please let me know how it work for you?
I'm a year an a half off on this topic, but if anyone cares, I have written a plugin to export all of the textures from your models. It's very fast and not coded in Ruby. It's freeware and you can get it from http://Raylectron.com
Please let me know how it works for you?
Care to also list Raylectron?
Thanks!
http://Raylectron.com
@zoom123 said:
Is this what Raylectron is using?
I had a quick look and it looks interesting:
http://software.intel.com/en-us/articles/embree-photo-realistic-ray-tracing-kernels/
No, but we are investigating the possibility and legality. It is very interesting!