[Plugin] RayTrace & RaySpray

Re: [Plugin] RayTrace & RaySpray

Postby lincol » Thu May 06, 2010 1:44 pm

I cannot find any link to this. It would be really handy to me for roughing up mirror lenses. Where is link
0

lincol 
 

Re: [Plugin] RayTrace & RaySpray

Postby thomthom » Thu May 06, 2010 2:21 pm

lincol wrote:I cannot find any link to this. It would be really handy to me for roughing up mirror lenses. Where is link

First post on the first page of this thread.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] RayTrace & RaySpray

Postby lincol » Thu May 06, 2010 3:59 pm

thanks - I didnt have proper access - something to do with new subscription
lin
0

lincol 
 

Re: [Plugin] RayTrace & RaySpray

Postby mus257 » Mon May 10, 2010 7:31 pm

This is really interesting. I look forward to sifting through the code.

As a sound and video designer, I can say this could be very handy. It does however have some issues for practical use as it stands.

When using spray, all sources must be assumed as omnidirectional. It would great to be able to show just a 50 degree spray and specify the focus. As it stands you have to show spray as "flat", i.e. no tilt in the XYZ axes. This prevents you from, say, angling a speaker down. I do use more advanced sound software like EASE for this normally, but I think Sketchup could work better for showing raytracing to a client than EASE.

In trace mode, it would be cool to be able to just show source and direction and the first reflection angle is calculated when it encounters a face. I have coverage angles I use in Sketchup and used them to illustrate. Right now, if I click on the origin, then the end of the coverage line, it calculates the reflection off the end of the line, not off the face it's aimed at.

Just some thoughts if you keep modifying the script. Thanks for the awesome work.
0

mus257 
 

Re: [Plugin] RayTrace & RaySpray

Postby mus257 » Mon May 10, 2010 7:32 pm

raytrace test.skp
rayspray test.skp
This is really interesting. I look forward to sifting through the code.

As a sound and video designer, I can say this could be very handy. It does however have some issues for practical use as it stands.

When using spray, all sources must be assumed as omnidirectional. It would great to be able to show just a 50 degree spray and specify the focus. As it stands you have to show spray as "flat", i.e. no tilt in the XYZ axes. This prevents you from, say, angling a speaker down. I do use more advanced sound software like EASE for this normally, but I think Sketchup could work better for showing raytracing to a client than EASE.

In trace mode, it would be cool to be able to just show source and direction and the first reflection angle is calculated when it encounters a face. I have coverage angles I use in Sketchup and used them to illustrate. Right now, if I click on the origin, then the end of the coverage line, it calculates the reflection off the end of the line, not off the face it's aimed at.

Just some thoughts if you keep modifying the script. Thanks for the awesome work.
0

mus257 
 

Re: [Plugin] RayTrace & RaySpray

Postby mus257 » Tue May 18, 2010 6:31 pm

Hi TIG,

I got back to playing with the rayspray last night and was using it for a noise study at my apartment. (We have a Kragen parking lot next to the patio.) :( Anyway, I tried using the spray and deleting coverage that wasn't helpful. Then I realized it was much easier to just put a dome over the spray and adjust that to coverage that I cared about. i.e., I'm not looking at the noise flying up into the sky. Worked pretty well, an example is attached. It's a great tool, thanks. Though if you ever figure out how to aim a controlled spray or, say, 2 rays with a specific degree spread between them, this would be even more powerful for sound and light coverage.

Thanks again
Joe
0

mus257 
 

Re: [Plugin] RayTrace & RaySpray

Postby Lobster » Mon Oct 25, 2010 1:24 pm

Thanks Tig,

Will be useful to me i am sure.

Regards

Sam
0

Lobster 
 

Re: [Plugin] RayTrace & RaySpray

Postby TIG » Mon Oct 25, 2010 1:32 pm

In v8 the 'raytest' method is flaky and it is used by these tools... BUT a fix is promised for MR1...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] RayTrace & RaySpray

Postby flowheimer » Mon Jan 10, 2011 5:25 pm

I just discovered RayTrace/Spray today; I was searching for a plugin with just this sort of functionality and this appears to be the only one of its kind.

If I may offer some feedback:

I'm using it in Sketchup 8.0.3117 and am encountering some odd behaviour.
For some reason, using RayTrace, sometimes a ray will bounce, and sometimes it just stops short of the next plane, even within a fully enclosed volume. As far as I can tell there is no consistency to this behaviour and thus no telling how many bounces (if any) a ray will perform before abruptly terminating mid-flight.

Any ideas?
0

flowheimer 
 

Re: [Plugin] RayTrace & RaySpray

Postby thomthom » Mon Jan 10, 2011 5:28 pm

Does it happen in SU7?
There is a bug in the raytracing function in SU8.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] RayTrace & RaySpray

Postby flowheimer » Mon Jan 10, 2011 6:04 pm

thomthom wrote:Does it happen in SU7?
There is a bug in the raytracing function in SU8.

It seems to work in SU7.
Guess I'll use 7 till it works in 8.

Thanks!


fH
0

flowheimer 
 

Re: [Plugin] RayTrace & RaySpray

Postby TIG » Tue Jan 11, 2011 12:31 am

An impending maintenance release for v8 might help with ray-tracing...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] RayTrace & RaySpray

Postby mjm6x9 » Mon Mar 07, 2011 6:12 am

This is just the plugin I've been looking for!
I work for a dedicated acoustic consultancy firm and this is incredibly useful for small room acoustics projects.
I've several ideas on improvements, but just want to know if you are going to be developing this further in the near future?
Or what would be the possibility of buying the existing code from you and looking to develop it further ourselves??

The things I'd like to see developed are:

1. Specification of number of reflections in RaySpray (1st, 2nd, 3rd order etc)
2. Different coloured lines to display reflection order (e.g. 1st reflection blue, 2nd reflection green)
3. limit RaySpray to particular rotation angle, i.e. currently it runs through 360 degrees but could it be set to only run through 90 degrees)
4. Would it be possibly to highlight the reflecting surface when using RayTrace in order to easily establish which surface you are reflecting off (this is difficult to visualise currently)
5. Possible option of setting specific reflecting surface (maybe using Layers) so that reflections only occurred off these surfaces when using RaySpray

Look forward to hearing from you
0

mjm6x9 
 

Re: [Plugin] RayTrace & RaySpray

Postby BrooksL » Tue May 22, 2012 9:29 pm

Wow TIG - I've been looking all over for a tool like this for a couple weeks! [I avoided the keywords ray trace because it turns up lots of results for rendering]

I need such to tool to look at angles of reflection and reflected angles for laser beam vision systems with mirrors - because figuring the angles manually can get quite tedious! Thanks!

A few bug/issues I'm finding with V1.2 20100326 - using in SketchUp 8 Pro 8.0.11752 -
Sometimes a ray will not reflect; the second point selection was an intersection of guidelines on a plane, but it wasn't reflecting from that point until I deleted the existing guides and guidepoints in that area and re-drew them (the original guides and points were indeed on the plane).
I don't see the magenta preview ray.
Seems to use a lot of CPU resources to during point selection - noticeable lag in following the mouse, but maybe that's just the SketchUp api.

With RaySpray;
The cursor inference point indicator is not showing up.
Some of the rays _do_ reflect -- and stop when they hit an original sprayed ray -- and original rays stop when they hit a reflected ray. (sample file attached)

Still, this is a REALLY helpful plugin! Thanks, TIG!

[to help others find these helpful plugins, some additional keywords: Reflected Angle, Reflected Ray, Angle of Reflection, Beam Reflection, Beam Reflect, Reflection Guide ]
0

BrooksL 
 

Re: [Plugin] RayTrace & RaySpray

Postby lydfa » Wed Dec 14, 2016 3:16 pm

Great plugin!
Thank you very much.

Cheers,
Dennis
0

lydfa 
 

Re: [Plugin] RayTrace & RaySpray

Postby zlitalien » Mon Mar 18, 2019 5:37 pm

TIG, this has been a great tool to use! I'm wondering if there's a way to make the ray auto adjust in real time if you move the object its reflecting off of?
0

zlitalien 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Previous


 

Return to Plugins

Who is online

Users browsing this forum: emirglumimarlik and 8 guests

Visit our sponsors: