Commit e3fed933 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

WIP

parent 8309c838
......@@ -58,7 +58,7 @@ catch
end
k = 2 * pi * freq ./ c;
k = 2 * pi * f ./ c;
%% Example for a synchronized scene update & audio processing simulation/auralization
......@@ -126,8 +126,7 @@ for n = 1:length( x )
apex = w.get_aperture_point( source_pos, receiver_pos );
detour = norm( source_pos - apex ) + norm( apex - receiver_pos );
H_diffracted = ita_diffraction_utd( w, source_pos, receiver_pos, f, c );
[ ~, D, A ] = ita_diffraction_utd( w, source_pos, receiver_pos, f, c );
[ H_diffracted, D, A ] = ita_diffraction_utd( w, source_pos, receiver_pos, f, c );
rho = norm( apex - source_pos );
prop_path_diffracted = struct();
......@@ -177,13 +176,13 @@ for n = 1:length( x )
%% Update wave fronts in renderer
paths_update = struct();
if direct_field_component || direct_field_only
if free_field_only || direct_field_component
paths_update.direct_path = prop_path_direct;
end
if ~direct_field_only && diffracted_field_component
if ~free_field_only && diffracted_field_component
paths_update.diffracted_path = prop_path_diffracted;
end
if ~direct_field_only && reflected_field_component
if ~free_field_only && reflected_field_component
paths_update.reflected_path = prop_path_reflected;
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment