Skip to content

Commit

Permalink
MInor visuale change
Browse files Browse the repository at this point in the history
- Change camera view from default to from top for 3D boids analysis
- Reduce the duration fot he simulation for better rendering for Mondrian Model
- Change the light for the L-Tree
  • Loading branch information
agrignard committed May 8, 2022
1 parent c570b22 commit 96d937f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
Expand Up @@ -434,7 +434,7 @@ experiment "4 simulations" type: gui autorun: true {
species fruit aspect: default;
}

layout #split toolbars: false tabs: false parameters: false consoles: false navigator: false controls: false tray: false;
layout #split toolbars: false tabs: false parameters: false consoles: false navigator: false controls:false tray: false;
}

}
Expand Down
Expand Up @@ -105,6 +105,7 @@ species squares {
}

experiment MondrianGenerator type: gui {
float minimum_cycle_duration<-0.1;
parameter "Nb max of squares: " var: nb_max_squares;
parameter "Nb max of border: " var: nb_max_lines;
parameter "Nb max of columns: " var: nb_max_columns;
Expand Down
Expand Up @@ -384,14 +384,14 @@ experiment "Trajectory Analysis" type: gui {
float minimum_cycle_duration <- 0.05;
output {
layout #split;
display RealBoids type: opengl {
display RealBoids type: opengl{
image 'background' file: file_path_to_ocean;
species boids aspect: dynamicColor transparency: 0.5 position: {0, 0, 0.1};
species boids_goal transparency: 0.2 position: {0, 0, 0.1};
species obstacle position: {0, 0, 0.1};
}

display AggregatedBoidsTrajectory type: opengl {
display AggregatedBoidsTrajectory type: opengl{
image 'background' file: file_path_to_ocean;
species aggregatedboids aspect: base trace: 100 fading: true;
species boids_goal aspect: default;
Expand All @@ -405,33 +405,33 @@ experiment "Space & Time Cube" type: gui {
float minimum_cycle_duration <- 0.05;
output {
layout #split;
display RealBoids type: opengl {
display RealBoids type: opengl{
image 'background' file: file_path_to_ocean;
species boids aspect: dynamicColor transparency: 0.5 position: {0, 0, 0.1};
species boids_goal transparency: 0.2 position: {0, 0, 0.1};
species obstacle position: {0, 0, 0.1};
}

display SpaceTimeCubeAll type: opengl {
display SpaceTimeCubeAll type: opengl camera:#from_up_front{
image 'background' file: file_path_to_ocean refresh: false;
species boids trace: true {
species boids trace: 100 {
draw triangle(20) size: 15 rotate: heading color: hsb(float(heading) / 360.0, 1.0, 1.0) border: hsb(float(heading) / 360.0, 1.0, 1.0) depth: 5 at:
{location.x, location.y, location.z + time};
}

species boids_goal trace: true {
species boids_goal trace: 100 {
draw sphere(10) color: rgb('yellow') at: {location.x, location.y, location.z + time};
}

}

display SpaceTimeCubeAggregated type: opengl {
display SpaceTimeCubeAggregated type: opengl camera:#from_up_front{
image 'background' file: file_path_to_ocean refresh: false;
species aggregatedboids trace: true {
species aggregatedboids trace: 500 {
draw sphere(10) color: rgb('red') at: {location.x, location.y, location.z + time};
}

species boids_goal trace: true {
species boids_goal trace: 500 {
draw sphere(10) color: rgb('yellow') at: {location.x, location.y, location.z + time};
}

Expand All @@ -454,8 +454,8 @@ experiment "Multiple views" type: gui {
}

display ThirdPerson type: opengl antialias: false {
camera "default" dynamic: true location: {int(first(boids).location.x), int(first(boids).location.y), 2500} target:
{int(first(boids).location.x), int(first(boids).location.y), 0};
camera "default" dynamic: true location: {int(first(boids).location.x), int(first(boids).location.y), 500} target:
{int(first(boids).location.x), int(first(boids).location.y), 0};
image 'background' file: file_path_to_ocean;
species obstacle;
species boids aspect: dynamicColor transparency: 0.2;
Expand Down

0 comments on commit 96d937f

Please sign in to comment.