【L24】计算机图形学:复现三维场景 我的世界

2022-01-11 09:52:42      索炜达电子      360     

文件编号:L24

文件大小:7.9M

代码行数:256行(主程序)

开发环境:VS2019、OpenGL

猿创承诺:该源码均通过亲自测试可正常运行

简要概述:使用:c++、openGL 3+、sfml、glm、parallel_hash_map、FastNoise。

操作说明:

 【L24】计算机图形学:复现三维场景 我的世界

特征:

-无限世界(从零到数十亿)

“活”水

-阴影

-改变太阳位置的能力

运行效果:

【L24】计算机图形学:复现三维场景 我的世界

目录│文件列表:

 ├ 代码演示

 │  └ openglCraftx64

 │     │ Minecraft.exe

 │     │ openal32.dll

 │     │ vcruntime140_1.dll

 │     ├ resources

 │     │  │ arial.ttf

 │     │  │ atlas.png

 │     │  │ natlas.png

 │     │  ├ audio

 │     │  │  │ wood1.ogg

 │     │  │  └ wood4.ogg

 │     │  └ textures

 │     │     └ gui

 │     │        │ cross.png

 │     │        │ curr_tool.png

 │     │        └ tool_bar.png

 │     └ shaders

 │        │ block_wrapper.frag.glsl

 │        │ block_wrapper.vert.glsl

 │        │ shader.frag.glsl

 │        │ shader.vert.glsl

 │        │ shadow.frag.glsl

 │        │ shadow.vert.glsl

 │        │ water.frag.glsl

 │        └ water.vert.glsl

 └ 项目源码

    └ Minecraft

       │ Minecraft.sln

       ├ Dependicies

       │  ├ include

       │  │  ├ GLEW

       │  │  │  └ GL

       │  │  │     │ eglew.h

       │  │  │     │ glew.h

       │  │  │     │ glxew.h

       │  │  │     └ wglew.h

       │  │  └ SFML

       │  │     │ Audio.hpp

       │  │     │ Config.hpp

       │  │     │ GpuPreference.hpp

       │  │     │ Graphics.hpp

       │  │     │ Main.hpp

       │  │     │ Network.hpp

       │  │     │ OpenGL.hpp

       │  │     │ System.hpp

       │  │     │ Window.hpp

       │  │     ├ Audio

       │  │     │  │ AlResource.hpp

       │  │     │  │ Export.hpp

       │  │     │  │ InputSoundFile.hpp

       │  │     │  │ Listener.hpp

       │  │     │  │ Music.hpp

       │  │     │  │ OutputSoundFile.hpp

       │  │     │  │ Sound.hpp

       │  │     │  │ SoundBuffer.hpp

       │  │     │  │ SoundBufferRecorder.hpp

       │  │     │  │ SoundFileFactory.hpp

       │  │     │  │ SoundFileFactory.inl

       │  │     │  │ SoundFileReader.hpp

       │  │     │  │ SoundFileWriter.hpp

       │  │     │  │ SoundRecorder.hpp

       │  │     │  │ SoundSource.hpp

       │  │     │  └ SoundStream.hpp

       │  │     ├ Graphics

       │  │     │  │ BlendMode.hpp

       │  │     │  │ CircleShape.hpp

       │  │     │  │ Color.hpp

       │  │     │  │ ConvexShape.hpp

       │  │     │  │ Drawable.hpp

       │  │     │  │ Export.hpp

       │  │     │  │ Font.hpp

       │  │     │  │ Glsl.hpp

       │  │     │  │ Glsl.inl

       │  │     │  │ Glyph.hpp

       │  │     │  │ Image.hpp

       │  │     │  │ PrimitiveType.hpp

       │  │     │  │ Rect.hpp

       │  │     │  │ Rect.inl

       │  │     │  │ RectangleShape.hpp

       │  │     │  │ RenderStates.hpp

       │  │     │  │ RenderTarget.hpp

       │  │     │  │ RenderTexture.hpp

       │  │     │  │ RenderWindow.hpp

       │  │     │  │ Shader.hpp

       │  │     │  │ Shape.hpp

       │  │     │  │ Sprite.hpp

       │  │     │  │ Text.hpp

       │  │     │  │ Texture.hpp

       │  │     │  │ Transform.hpp

       │  │     │  │ Transformable.hpp

       │  │     │  │ Vertex.hpp

       │  │     │  │ VertexArray.hpp

       │  │     │  │ VertexBuffer.hpp

       │  │     │  └ View.hpp

       │  │     ├ Network

       │  │     │  │ Export.hpp

       │  │     │  │ Ftp.hpp

       │  │     │  │ Http.hpp

       │  │     │  │ IpAddress.hpp

       │  │     │  │ Packet.hpp

       │  │     │  │ Socket.hpp

       │  │     │  │ SocketHandle.hpp

       │  │     │  │ SocketSelector.hpp

       │  │     │  │ TcpListener.hpp

       │  │     │  │ TcpSocket.hpp

       │  │     │  └ UdpSocket.hpp

       │  │     ├ System

       │  │     │  │ Clock.hpp

       │  │     │  │ Err.hpp

       │  │     │  │ Export.hpp

       │  │     │  │ FileInputStream.hpp

       │  │     │  │ InputStream.hpp

       │  │     │  │ Lock.hpp

       │  │     │  │ MemoryInputStream.hpp

       │  │     │  │ Mutex.hpp

       │  │     │  │ NativeActivity.hpp

       │  │     │  │ NonCopyable.hpp

       │  │     │  │ Sleep.hpp

       │  │     │  │ String.hpp

       │  │     │  │ String.inl

       │  │     │  │ Thread.hpp

       │  │     │  │ Thread.inl

       │  │     │  │ ThreadLocal.hpp

       │  │     │  │ ThreadLocalPtr.hpp

       │  │     │  │ ThreadLocalPtr.inl

       │  │     │  │ Time.hpp

       │  │     │  │ Utf.hpp

       │  │     │  │ Utf.inl

       │  │     │  │ Vector2.hpp

       │  │     │  │ Vector2.inl

       │  │     │  │ Vector3.hpp

       │  │     │  └ Vector3.inl

       │  │     └ Window

       │  │        │ Clipboard.hpp

       │  │        │ Context.hpp

       │  │        │ ContextSettings.hpp

       │  │        │ Cursor.hpp

       │  │        │ Event.hpp

       │  │        │ Export.hpp

       │  │        │ GlResource.hpp

       │  │        │ Joystick.hpp

       │  │        │ Keyboard.hpp

       │  │        │ Mouse.hpp

       │  │        │ Sensor.hpp

       │  │        │ Touch.hpp

       │  │        │ VideoMode.hpp

       │  │        │ Window.hpp

       │  │        │ WindowHandle.hpp

       │  │        └ WindowStyle.hpp

       │  ├ includeFull

       │  │  ├ fast_noise

       │  │  │  │ FastNoise.cpp

       │  │  │  └ FastNoise.h

       │  │  ├ glm

       │  │  │  │ CMakeLists.txt

       │  │  │  │ common.hpp

       │  │  │  │ exponential.hpp

       │  │  │  │ ext.hpp

       │  │  │  │ fwd.hpp

       │  │  │  │ geometric.hpp

       │  │  │  │ glm.hpp

       │  │  │  │ integer.hpp

       │  │  │  │ mat2x2.hpp

       │  │  │  │ mat2x3.hpp

       │  │  │  │ mat2x4.hpp

       │  │  │  │ mat3x2.hpp

       │  │  │  │ mat3x3.hpp

       │  │  │  │ mat3x4.hpp

       │  │  │  │ mat4x2.hpp

       │  │  │  │ mat4x3.hpp

       │  │  │  │ mat4x4.hpp

       │  │  │  │ matrix.hpp

       │  │  │  │ packing.hpp

       │  │  │  │ trigonometric.hpp

       │  │  │  │ vec2.hpp

       │  │  │  │ vec3.hpp

       │  │  │  │ vec4.hpp

       │  │  │  │ vector_relational.hpp

       │  │  │  ├ detail

       │  │  │  │  │ compute_common.hpp

       │  │  │  │  │ compute_vector_relational.hpp

       │  │  │  │  │ func_common.inl

       │  │  │  │  │ func_common_simd.inl

       │  │  │  │  │ func_exponential.inl

       │  │  │  │  │ func_exponential_simd.inl

       │  │  │  │  │ func_geometric.inl

       │  │  │  │  │ func_geometric_simd.inl

       │  │  │  │  │ func_integer.inl

       │  │  │  │  │ func_integer_simd.inl

TAG我的世界
  • 5 次
  • 680 分