diff --git a/.one_sphere_plane.rt.swp b/.one_sphere_plane.rt.swp new file mode 100644 index 0000000..b52e5f8 Binary files /dev/null and b/.one_sphere_plane.rt.swp differ diff --git a/config.rt b/config.rt index ea44613..277dac3 100644 --- a/config.rt +++ b/config.rt @@ -6,7 +6,7 @@ # By: yantoine +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2025/02/13 19:27:37 by yantoine #+# #+# # -# Updated: 2025/02/17 23:33:44 by yantoine ### ########.fr # +# Updated: 2025/02/17 23:45:52 by yantoine ### ########.fr # # # # **************************************************************************** # @@ -14,7 +14,7 @@ A 0 255,255,255 # Camera : position à (0,0,20) et orientée vers (0,0,-1) avec un FOV de 70° -C 10,0,-30 0,0,1 70 +C 0,0,0 0,0,1 70 # Light : source lumineuse forte placée au-dessus de la scène L 11,40,-30 1 255,255,255 diff --git a/miniRT b/miniRT new file mode 100755 index 0000000..1d50855 Binary files /dev/null and b/miniRT differ diff --git a/miniRT.h b/miniRT.h index e28fe4e..65ff7fb 100644 --- a/miniRT.h +++ b/miniRT.h @@ -6,7 +6,7 @@ /* By: yantoine +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/02/13 20:02:36 by yantoine #+# #+# */ -/* Updated: 2025/02/17 23:35:34 by yantoine ### ########.fr */ +/* Updated: 2025/02/17 23:42:16 by yantoine ### ########.fr */ /* */ /* ************************************************************************** */ @@ -94,6 +94,8 @@ typedef struct s_camera t_vec3 camDir; t_vec3 right; t_vec3 up; + float rot_speed; + float move_speed; float fov; float yaw;// vue de gauche a droite float pitch; // vue de haut en bas en radians diff --git a/obj/array.o b/obj/array.o new file mode 100644 index 0000000..68af980 Binary files /dev/null and b/obj/array.o differ diff --git a/obj/calcul_de_vecteur.o b/obj/calcul_de_vecteur.o new file mode 100644 index 0000000..3eda3d7 Binary files /dev/null and b/obj/calcul_de_vecteur.o differ diff --git a/obj/calcul_de_vecteur2.o b/obj/calcul_de_vecteur2.o new file mode 100644 index 0000000..8fe6e90 Binary files /dev/null and b/obj/calcul_de_vecteur2.o differ diff --git a/obj/check.o b/obj/check.o new file mode 100644 index 0000000..8631553 Binary files /dev/null and b/obj/check.o differ diff --git a/obj/config.o b/obj/config.o new file mode 100644 index 0000000..e09396b Binary files /dev/null and b/obj/config.o differ diff --git a/obj/frame.o b/obj/frame.o new file mode 100644 index 0000000..bf915b8 Binary files /dev/null and b/obj/frame.o differ diff --git a/obj/ft_atof.o b/obj/ft_atof.o new file mode 100644 index 0000000..53ffc1d Binary files /dev/null and b/obj/ft_atof.o differ diff --git a/obj/main.o b/obj/main.o new file mode 100644 index 0000000..4208d3d Binary files /dev/null and b/obj/main.o differ diff --git a/obj/parsing_ambiant.o b/obj/parsing_ambiant.o new file mode 100644 index 0000000..0f0f6e6 Binary files /dev/null and b/obj/parsing_ambiant.o differ diff --git a/obj/parsing_camera.o b/obj/parsing_camera.o new file mode 100644 index 0000000..03c6211 Binary files /dev/null and b/obj/parsing_camera.o differ diff --git a/obj/parsing_color.o b/obj/parsing_color.o new file mode 100644 index 0000000..1d49860 Binary files /dev/null and b/obj/parsing_color.o differ diff --git a/obj/parsing_cylinder.o b/obj/parsing_cylinder.o new file mode 100644 index 0000000..21db8e3 Binary files /dev/null and b/obj/parsing_cylinder.o differ diff --git a/obj/parsing_cylinder_utils.o b/obj/parsing_cylinder_utils.o new file mode 100644 index 0000000..8227845 Binary files /dev/null and b/obj/parsing_cylinder_utils.o differ diff --git a/obj/parsing_light.o b/obj/parsing_light.o new file mode 100644 index 0000000..4e4b517 Binary files /dev/null and b/obj/parsing_light.o differ diff --git a/obj/parsing_plane.o b/obj/parsing_plane.o new file mode 100644 index 0000000..d8f2284 Binary files /dev/null and b/obj/parsing_plane.o differ diff --git a/obj/parsing_sphere.o b/obj/parsing_sphere.o new file mode 100644 index 0000000..c84215c Binary files /dev/null and b/obj/parsing_sphere.o differ diff --git a/obj/parsing_utils.o b/obj/parsing_utils.o new file mode 100644 index 0000000..9de2243 Binary files /dev/null and b/obj/parsing_utils.o differ diff --git a/obj/parsing_vector.o b/obj/parsing_vector.o new file mode 100644 index 0000000..679a1f4 Binary files /dev/null and b/obj/parsing_vector.o differ diff --git a/obj/peripherique.o b/obj/peripherique.o new file mode 100644 index 0000000..9a85b03 Binary files /dev/null and b/obj/peripherique.o differ diff --git a/obj/print.o b/obj/print.o new file mode 100644 index 0000000..ac27464 Binary files /dev/null and b/obj/print.o differ diff --git a/obj/render.o b/obj/render.o new file mode 100644 index 0000000..bae1ffd Binary files /dev/null and b/obj/render.o differ diff --git a/obj/scene.o b/obj/scene.o new file mode 100644 index 0000000..36f8527 Binary files /dev/null and b/obj/scene.o differ diff --git a/obj/shadows.o b/obj/shadows.o new file mode 100644 index 0000000..02d77de Binary files /dev/null and b/obj/shadows.o differ diff --git a/obj/trace.o b/obj/trace.o new file mode 100644 index 0000000..73a01de Binary files /dev/null and b/obj/trace.o differ diff --git a/obj/update_camera.o b/obj/update_camera.o new file mode 100644 index 0000000..d3db7fa Binary files /dev/null and b/obj/update_camera.o differ diff --git a/one_sphere_plane.rt b/one_sphere_plane.rt new file mode 100644 index 0000000..c0f3e99 --- /dev/null +++ b/one_sphere_plane.rt @@ -0,0 +1,27 @@ +# **************************************************************************** # +# # +# ::: :::::::: # +# one_sphere_plane.rt :+: :+: :+: # +# +:+ +:+ +:+ # +# By: yantoine +#+ +:+ +#+ # +# +#+#+#+#+#+ +#+ # +# Created: 2025/02/13 19:27:37 by yantoine #+# #+# # +# Updated: 2025/02/17 23:48:57 by yantoine ### ########.fr # +# # +# **************************************************************************** # + +# Ambient lighting (ratio et couleur) +A 0 255,255,255 + +# Camera : position à (0,0,20) et orientée vers (0,0,-1) avec un FOV de 70° +C 0,0,0 0,0,0 70 + +# Light : source lumineuse forte placée au-dessus de la scène +L 11,40,50 1 255,255,255 + +sp 0,0,-20 10 0,0,100 + +# Plane : un plan vert servant de sol, passant par (0,-5,0) et avec une normale vers le haut +pl 0,-5,0 0,1,0 100,55,0 + + diff --git a/one_sphere_plane_contre_jour.rt b/one_sphere_plane_contre_jour.rt new file mode 100644 index 0000000..b2248bd --- /dev/null +++ b/one_sphere_plane_contre_jour.rt @@ -0,0 +1,27 @@ +# **************************************************************************** # +# # +# ::: :::::::: # +# one_sphere_plane.rt :+: :+: :+: # +# +:+ +:+ +:+ # +# By: yantoine +#+ +:+ +#+ # +# +#+#+#+#+#+ +#+ # +# Created: 2025/02/13 19:27:37 by yantoine #+# #+# # +# Updated: 2025/02/17 23:48:13 by yantoine ### ########.fr # +# # +# **************************************************************************** # + +# Ambient lighting (ratio et couleur) +A 0 255,255,255 + +# Camera : position à (0,0,20) et orientée vers (0,0,-1) avec un FOV de 70° +C 0,0,0 0,0,0 70 + +# Light : source lumineuse forte placée au-dessus de la scène +L 11,40,-30 1 255,255,255 + +sp 0,0,-20 10 0,0,100 + +# Plane : un plan vert servant de sol, passant par (0,-5,0) et avec une normale vers le haut +pl 0,-5,0 0,1,0 100,55,0 + + diff --git a/tags b/tags index 8fe8b16..a93b1a7 100644 --- a/tags +++ b/tags @@ -550,6 +550,7 @@ mouse_sens miniRT.h /^ float mouse_sens;$/;" m struct:s_app typeref:typename:flo mouse_win1 minilibx-linux/test/main.c /^int mouse_win1(int button,int x,int y, void *p)$/;" f typeref:typename:int mouse_win2 minilibx-linux/test/main.c /^int mouse_win2(int button,int x,int y, void *p)$/;" f typeref:typename:int mouse_win3 minilibx-linux/test/main.c /^int mouse_win3(int x,int y, void *p)$/;" f typeref:typename:int +move_speed miniRT.h /^ float move_speed;$/;" m struct:s_camera typeref:typename:float n miniRT.h /^ t_vec3 n;$/;" m struct:s_calc typeref:typename:t_vec3 name minilibx-linux/mlx_int.h /^ char *name;$/;" m struct:s_col_name typeref:typename:char * name minilibx-linux/mlx_int.h /^ int name;$/;" m struct:s_xpm_col typeref:typename:int @@ -617,6 +618,7 @@ render_pixel render.c /^static void render_pixel(t_app *app, int x, int y)$/;" f render_scene render.c /^void render_scene(t_app *app)$/;" f typeref:typename:void right miniRT.h /^ t_vec3 right;$/;" m struct:s_camera typeref:typename:t_vec3 root minilibx-linux/mlx_int.h /^ Window root;$/;" m struct:s_xvar typeref:typename:Window +rot_speed miniRT.h /^ float rot_speed;$/;" m struct:s_camera typeref:typename:float s_ambient miniRT.h /^typedef struct s_ambient$/;" s s_app miniRT.h /^typedef struct s_app$/;" s s_calc miniRT.h /^typedef struct s_calc$/;" s