
GameEngine
文章平均质量分 95
DXT00
这个作者很懒,什么都没留下…
展开
-
Real-time RTX RayTracing 1
Ray tracing 加速结构:转载 2020-06-08 15:29:33 · 364 阅读 · 0 评论 -
[BlackPearl引擎开发记录 6] --ImGui
完整代码:https://github.com/DXT00/LearnOpenGL_study/tree/1977d59c505868f63f718cb7d8d22c3f5176cd69ImGui selectable 菜单:const char* entityItems[] = { "Empty","PointLight","SpotLight","IronMan","Cube" ...原创 2019-10-30 17:04:03 · 1629 阅读 · 0 评论 -
[BlackPearl引擎开发记录 4] ---dynamic_pointer_cast 必须是多态类才能转换
类之间必须具有多态属性:即至少含有一个虚函数(非析构虚函数)!!错误例子:#include<iostream>#include<memory>#include<vector>#include<string>class Manager{public: Manager(); ~Manager();private:};...原创 2019-10-29 16:57:54 · 303 阅读 · 0 评论 -
[BlackPearl引擎开发记录 3] -- 对象析构注意点
记录一下今天写的bug = =:析构顺序不正确导致abort()异常 (析构了栈上的变量,这个变量含有生命周期比他长的类的成员变量)代码如下:class EntityTestLayer :public BlackPearl::Layer {public: EntityTestLayer(const std::string& name, BlackPearl::SystemM...原创 2019-10-24 16:05:21 · 249 阅读 · 0 评论 -
[BlackPearl引擎开发记录 0]LearnOpenGL_study -- 游戏引擎编译与链接 ,添加ImGui
完整代码:https://github.com/DXT00/LearnOpenGL_study/tree/dda2e1477666b16cb0d7e3428f68303450103ff4修改Project名字为BlackPearl --->static lib 作为游戏引擎添加游戏Demo :SandBox调用 BlackPearl添加 Layer层,Sanbox游...原创 2019-10-12 17:17:33 · 284 阅读 · 0 评论 -
LearnOpenGL_study -- 平行光,点光源,聚光源
平行光只需要定义方向,不存在位置的问题,所有的物体都会接收到点光源只需要定义位置,方向由点光源位置减去物体位置决定。注意:点光源存在衰减问题,漫反射,镜面反射,环境光三个分量都需要乘以衰减系数!下面这个表格显示了模拟一个(大概)真实的,覆盖特定半径(距离)的光源时,这些项可能取的一些值。第一列指定的是在给定的三项时光所能覆盖的距离。这些值是大多数光源很好的起始点,它们由Ogre3D的W...转载 2019-09-21 14:09:49 · 822 阅读 · 0 评论 -
Haxel Engine learning 23 --- Transform
Cherno 视频:https://www.youtube.com/watch?v=2k5FjtMNQsM&list=PLlrATfBNZ98dC-V-N3m0Go4deliWHPFwT&index=39代码:https://github.com/DXT00/Hazel_study/tree/a6b65fa3835791f13e1566e84b094d0708a9f2e6/Ha...转载 2019-08-15 14:53:16 · 197 阅读 · 0 评论 -
Haxel Engine learning 10 -- Imgui
Imgui : https://github.com/TheCherno/imgui转载 2019-07-16 14:55:51 · 465 阅读 · 0 评论 -
Haxel Engine learning 25 -- Shader Asset Files
Cherno Video:https://www.youtube.com/watch?v=8wFEzIYRZXg&list=PLlrATfBNZ98dC-V-N3m0Go4deliWHPFwT&index=45&t=7sMycode :https://github.com/DXT00/Hazel_study/tree/043f14b8acecdb7064edbf72...转载 2019-09-16 11:02:44 · 236 阅读 · 0 评论 -
Haxel Engine learning 20-- OrthographicCamera
完整代码:https://github.com/DXT00/Hazel_study/tree/31a50ebca4a91220d1149858e0f1590d7000b303/HazelUniform is per DrawCall每次改变Camera的Position和rotation 都要更新 ViewMatrix注意:ViewMatrix是 Camera的transform...转载 2019-07-24 11:07:58 · 174 阅读 · 0 评论 -
Haxel Engine learning 11 -- Imgui Event
完整代码:https://github.com/DXT00/Hazel_study/tree/38b3f02de84de73435b89bbca3fa3ae85ce730a9/Hazel为 ImGuiLayer添加event处理函数ImGuiLayer.cpp void ImGuiLayer::OnEvent(Event& e) { EventDispatcher di...转载 2019-07-17 10:17:10 · 782 阅读 · 0 评论 -
Haxel Engine learning 15 --change Hazel to Static library
修改premake filehttps://github.com/premake/premake-core/wiki/staticruntime修改4个premake文件:改为静态的 staticruntime :onHazel\premake5.luaworkspace "Hazel" architecture "x64" startproject "Sandb...转载 2019-07-19 14:39:20 · 301 阅读 · 0 评论 -
Haxel Engine learning 14 -- ImGui Docking and Viewports + Introduction to Rendering
docking imgui:https://github.com/TheCherno/imgui/tree/docking完整代码:https://github.com/DXT00/Hazel_study/tree/4a155df403a50ecb9700aa7b941ae8411da2edc9存在这样一个问题:ImGui是静态lib-->Hazel是dll---->Sa...原创 2019-07-19 11:17:02 · 732 阅读 · 0 评论 -
Haxel Engine learning 19-- Camera
完整代码:https://github.com/DXT00/Hazel_study/tree/cc47879c0c24156514b93c9dcdcdc23cf46bc4ac/HazelCamera属性:position(x,y,z),rotation(a1,a2,a3)Field of view(FOV) respect ratioposition,rotation :...转载 2019-07-23 20:21:24 · 214 阅读 · 0 评论 -
Haxel Engine learning 9-- Modern OpenGL (Glad)
Cherno视频:https://www.youtube.com/watch?v=HFyHIc89z1g&t=498s下载Glad:修改Hazel\premake5.lua,把Glad链接进Hazelworkspace "Hazel" architecture "x64" configurations{ "Debug", "Release", "Dis...转载 2019-07-16 09:46:49 · 304 阅读 · 0 评论 -
Haxel Engine learning 8 -- Layer
完整代码:https://github.com/DXT00/Hazel_study/tree/master/Layeroverlay must after the layerrendering -->从layer到overlayevent 处理-->从overlay 到 layerLayer.h#pragma once#include"Hazel/...转载 2019-07-15 20:51:22 · 324 阅读 · 1 评论 -
Haxel Engine learning 4 -- Event System
完整代码:https://github.com/DXT00/Hazel_study/tree/master/Event%20System创建Event文件夹,包含4个.h文件Event.h#pragma once#include "Hazel/Core.h"#include<string>#include<functional>nam...转载 2019-07-12 14:30:20 · 455 阅读 · 0 评论 -
Hazel Engine learning 1-- Entry Point
youtube视频:https://www.youtube.com/watch?v=meARMOmTLgE&list=PLlrATfBNZ98dC-V-N3m0Go4deliWHPFwT&index=5完整代码:https://github.com/DXT00/Hazel_studyHazel-->Game EngineSandBox-->Game...原创 2019-06-28 10:41:41 · 911 阅读 · 0 评论 -
Hazel Engine learning 3 -- Premake
Cherno youtube视频:https://www.youtube.com/watch?v=sULV3aB2qeU&list=PLlrATfBNZ98dC-V-N3m0Go4deliWHPFwT&index=7premake:https://github.com/premake/premake-core完整代码:https://github.com/DXT00/Ha...原创 2019-07-02 15:57:14 · 552 阅读 · 0 评论 -
Haxel Engine learning 12 -- Input Polling
完整代码:https://github.com/DXT00/Hazel_study/tree/43029244f0870d32f021dda6ac2d0e42f8563dc6/Hazel除了ImGuiLayer需要事件响应外,Hazel也需要记录按下了哪一个键并做程序上的处理:创建一个Input类---》static (整个Hazel只有一个Input Manager)Input.h...转载 2019-07-17 12:28:55 · 270 阅读 · 0 评论 -
Haxel Engine learning 13 -- Mouse and Key Codes
为Hazel 添加KeyCodes.h和MouseCodes.h这样客户端使用Hazel时就不需要调用glfw3.h库了完整代码:https://github.com/DXT00/Hazel_study/tree/714bfe2563f7049665ce74d6c67fd7e0ecb0a065KeyCodes.h#pragma once//From glfw3.h#def...转载 2019-07-17 15:30:41 · 194 阅读 · 0 评论 -
Haxel Engine learning 21-- Moving to Sandbox
Cherno视频:https://www.youtube.com/watch?v=4zj-0FQ7Xbg&list=PLlrATfBNZ98dC-V-N3m0Go4deliWHPFwT&index=36完整代码:https://github.com/DXT00/Hazel_study/tree/cd781b6ae9883f0884ccbf06bc0b5fa789fcdd1b/H...转载 2019-07-24 17:52:58 · 219 阅读 · 0 评论 -
Haxel Engine learning 24 -- Shader Abstraction and Uniforms
Cherno视频:https://www.youtube.com/watch?v=d5wL6eZnWMU&list=PLlrATfBNZ98dC-V-N3m0Go4deliWHPFwT&index=40完整代码:https://github.com/DXT00/Hazel_study/tree/b1eb8187441f9699e7d887490a53c0044f399638/H...转载 2019-09-01 17:04:58 · 206 阅读 · 0 评论 -
游戏开发中的ECS模式
游戏开发中的ECS设计模式初探转自:https://blog.youkuaiyun.com/yuliying/article/details/48625257所谓的ECS模式全称就是Entity-Component-System模式。很早就听说过unity等引擎中广泛地使用了这样的模式,没有细查。今天看了几篇文章之后有了些许了解,故记叙此文作为笔记。一、问题提出之前在写STG框架的时候遇到了...转载 2019-08-15 11:15:36 · 3290 阅读 · 0 评论 -
Haxel Engine learning 22 --- time step
代码:https://github.com/DXT00/Hazel_study/tree/f064a34112e7d7d3fcc03ab9d2f089a2da663df8/Hazel不同的机器帧率不同,如果没帧都走1单元的话,就会导致:400帧每秒 的机器---> 走400单元60帧每秒 的机器 ---> 走60单元会导致很大的差距。我们希望的是一秒中所有的...转载 2019-08-15 10:00:51 · 238 阅读 · 0 评论 -
Haxel Engine learning 18 -- Renderer Flow and Submission
Cherno视频:https://www.youtube.com/watch?v=akxevYYWd9g&list=PLlrATfBNZ98dC-V-N3m0Go4deliWHPFwT&index=33完整代码:https://github.com/DXT00/Hazel_study/tree/c63132b50cd6a94d151cab2faff84b9ec15c310b...转载 2019-07-23 15:34:58 · 202 阅读 · 0 评论 -
Haxel Engine learning 17 -- Vertex Array
Cherno 视频:https://www.youtube.com/watch?v=rkxrw8dNrvI&list=PLlrATfBNZ98dC-V-N3m0Go4deliWHPFwT&index=32完整代码:https://github.com/DXT00/Hazel_study/tree/80b37eba735ebbd73d9131779e0200ccaeb11267/...转载 2019-07-23 10:00:27 · 257 阅读 · 0 评论 -
Haxel Engine learning 16 -- Vertex Buffer Layouts
Cherno 视频:https://www.youtube.com/watch?v=jIJFM_pi6gQ&list=PLlrATfBNZ98dC-V-N3m0Go4deliWHPFwT&index=31完整代码:https://github.com/DXT00/Hazel_study/tree/e129b773d1feb24e44b73bd4967471d886dcf025...转载 2019-07-22 19:44:11 · 333 阅读 · 0 评论 -
Hazel Engine learning 2-- Logging
youtube视频:https://www.youtube.com/watch?v=dZr-53LAlOw&list=PLlrATfBNZ98dC-V-N3m0Go4deliWHPFwT&index=6完整代码:https://github.com/DXT00/Hazel_study/tree/master/Logging使用第三方库gabime/spdlog:http...原创 2019-07-02 10:41:34 · 495 阅读 · 0 评论