Skip to content

mieki256/pseudo3droadsample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pseudo3droadsample

Description

Pseudo-3D road drawing sample using C language and OpenGL.

  • 02_ps3d : Draw a pseudo-3D road using only lines
  • 03_ps3d_tex : Drawing pseudo-3D roads with texture and single color fill
  • 04_ps3d_bb : Adding billboards and drawing pseudo-3D roads

Screenshots

02_ps3d

02_ps3d_ss.png

03_ps3d_tex

03_ps3d_tex_ss.png

04_ps3d_bb

04_ps3d_bb_ss.png

04_ps3d_bb_ss2.png

04_ps3d_bb_ss3.png

04_ps3d_bb_ss4.png

Environment

Windows

Ubuntu Linux

  • Ubuntu Linux 20.04/22.04 LTS
  • gcc 9.4.0 (Ubuntu Linux 20.04 LTS) / gcc 11.4.0 (Ubuntu Linux 22.04 LTS)
  • OpenGL
  • glfw 3.3.2 (libglfw3-dev)
  • glfw 3.3.6 (libglfw3-dev)
  • SOIL 1.07 (libsoil-dev)
sudo apt install libgl1-mesa-dev libglu1-mesa-dev
sudo apt install libglfw3-dev
sudo apt install libsoil-dev

Build

cd 02_ps3d
make
02_ps3d.exe
cd 03_ps3d_tex
make
03_ps3d_tex.exe
cd 04_ps3d_bb
make
04_ps3d_bb.exe

Note

04_ps3d_bb.exe accepts shortcut keys.

  • T key : Toggle tree drawing
  • S key : Toggle slope drawing
  • F key : Change the frame rate to 60 fps, 30 fps, and 20 fps, in that order.

License

CC0 / Public Domain

Author

mieki256

Background images source

About

Pseudo-3D road drawing sample using C language and OpenGL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published