自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(111)
  • 资源 (40)
  • 收藏
  • 关注

原创 图形学网站

https://www.scratchapixel.comhttps://learnopengl.com/http://www.flipcode.com/archives/articles.shtmlhttps://github.com/McNopper/OpenGLhttps://stanford.edu/class/ee267/lectures/http://www.realtim...

2019-08-23 09:19:16 188

原创 调用youdao API

【代码】调用youdao API。

2024-04-19 22:41:54 16

原创 fullscreen_triangle_vs

【代码】fullscreen_triangle_vs。

2023-10-30 10:57:31 53

原创 gaussian 阴影

【代码】gaussian 阴影。

2023-05-30 23:15:35 82

原创 变长模板测试

【代码】变长模板测试。

2023-05-30 23:14:13 75

原创 Inheritance Is The Base Class of Evil

【代码】Inheritance Is The Base Class of Evil。

2023-05-30 23:12:29 60

原创 简单的数据读写 fstream

【代码】简单的数据读写 fstream。

2023-05-30 23:10:00 43

原创 大气渲染截图

2023-05-30 22:54:52 84

原创 object pool

【代码】object pool。

2023-05-29 23:06:52 156

原创 vulkan triangle

/** Vulkan Example - Basic indexed triangle rendering** Note:* This is a "pedal to the metal" example to show off how to get Vulkan up and displaying something* Contrary to the other examples, this one won't make use of helper functions or initia

2023-05-29 23:06:28 146

原创 granite node test

【代码】granite node test。

2023-05-29 23:04:49 33

原创 granite node test

【代码】granite node test。

2023-05-29 23:04:46 134

原创 大气渲染 scratchapixel

【代码】大气渲染 scratchapixel。

2023-05-29 23:03:46 156

原创 python class中插入代码

【代码】python class中插入代码。

2023-05-29 23:00:58 68

原创 ctr + s reload shader

【代码】ctr + s reload shader。

2023-05-27 16:05:46 41

原创 granite file system

2023-04-30 22:39:15 53

原创 vsg链接不过的问题

vsg

2022-11-01 11:08:43 71

原创 gdal工具函数

参考void setProjection(const std::string& sourceFile){ GDALAllRegister(); CPLSetConfigOption("SHAPE_ENCODING", ""); //解决中文乱码问题 CPLSetConfigOption("GDAL_FILENAME_IS_UTF8", "NO"); //解决中文路径崩溃 char* srs_str; OGRSpatialReference ogrSrs; ogrSrs.S

2020-07-30 16:00:53 390

原创 osg create line

inline osg::Geometry* createLine(const std::vector<osg::Vec3>& allPTs, osg::Vec4 color, osg::PrimitiveSet::Mode model = osg::PrimitiveSet::LINE_STRIP, float nWidth = 2){ int nCount = all...

2020-03-11 09:54:44 204

原创 osg 顶点属性

osg::Geometry* createLine2(const std::vector<osg::Vec3d>& allPTs, const std::vector<osg::Vec3d>& colors, osg::Camera* camera){ cout << "osg::getGLVersionNumber" << os...

2020-02-19 21:15:35 673

原创 itemgetter

from operator import itemgettercutting_dim = 1points = [(6,8), (1,2), (0, 0), (10, -5)]points.sort(key=itemgetter(cutting_dim))print(points) #[(10, -5), (0, 0), (1, 2), (6, 8)]

2019-10-14 13:00:55 2356

原创 三角形内,均匀生成点

算法来自于PBRT CH13 std::default_random_engine eng(time(NULL)); std::uniform_real_distribution<> urd(0., 1.); std::vector<osg::Vec3d> PTs2; for (int i = 0; i < 10000; i++) { doub...

2019-09-29 10:34:23 653

原创 shader snippets

shdrprecision highp float;uniform float time;uniform vec2 resolution;varying vec3 fPosition;varying vec3 fNormal;Wardfloat Ward(vec3 lightDir, vec3 viewDir, vec3 normal, float exponent){ ...

2019-09-24 09:55:20 150

原创 三角形插值

// 计算权重 CalculateWeightBOOL CalcWeight(const osg::Vec3d& p0, const osg::Vec3d& p1, const osg::Vec3d& p2, const osg::Vec3d& k, double& a, double& b, double& c){ double Ar...

2019-09-16 12:50:38 1131

原创 osg visitor 扩展

#include "stdafx.h"#include <iostream>#include <osg/NodeVisitor>#include <osg/Node>#include "osg/Group"#include "osgDB/readfile"#include <osg/Geode>using namespace std;...

2019-09-11 09:12:33 173

原创 string splite & create line

std::vector<std::string> Split(const string& src, const char& delim){ std::istringstream stream(src); std::string field; std::vector<std::string> result; while (std::getline(...

2019-08-28 14:27:42 149

原创 osg 图元重启

osg::Geometry* createLine2(const std::vector<osg::Vec3d>& allPTs, osg::Vec4 color){ int nCount = allPTs.size(); osg::ref_ptr<osg::Geometry> pGeometry = new osg::Geometry(); osg:...

2019-08-26 16:44:32 276 1

原创 osgearth StringUtils

/* -*-c++-*- *//* osgEarth - Geospatial SDK for OpenSceneGraph * Copyright 2019 Pelican Mapping * http://osgearth.org * * osgEarth is free software; you can redistribute it and/or modify * it un...

2019-07-31 09:48:43 156

原创 leetcode 94. 二叉树的中序遍历

class Solution: def inorderTraversal(self, root: TreeNode): if not root: return [] stk = [] res = [] cur = root while stk or cur: ...

2019-04-29 22:26:28 65

原创 python入门 装饰器

import timeimport mathdef print_time(func): def wrap(*args): # 为了能接收参数 t1 = time.time() res = func(*args) print("TIME", time.time() - t1) return res # 返回结果 ...

2019-04-22 22:55:34 89

原创 scipy 绘制B样条

import numpy as npimport pylab as plfrom scipy import interpolatex_end = 2*np.pix = np.linspace(0, x_end, 10000)y = np.sin(x)# y = np.array([0, .15, 1, .5, 0, 1])# print(type(x))x_new = np.li...

2019-04-21 19:43:05 1865

原创 python str操作

strVal = []strVal.append(('->'.join(str(x) for x in [1, 100, 200])))print(strVal)# ['1->100->200']

2019-04-16 14:19:39 197

原创 leetcode 211. 添加与搜索单词 - 数据结构设计

class Node: def __init__(self, c=''): self.is_end = False self.subNode = [] self.c = c def insert(self, word: str): next = None for sb in self.subNode:...

2019-04-16 13:45:19 144

原创 leetcode208. 实现 Trie (前缀树)

class Node: def __init__(self, c=''): self.is_end = False self.subNode = [] self.c = c def insert(self, word: str): flag = False next = None ...

2019-04-16 11:00:41 150

原创 python入门 property

class Test: """第一个类""" i = 123 def __init__(self): self.__pri_data = 21 @property def pri_data(self): return self.__pri_data @pri_data.setter def pri...

2019-04-14 09:56:34 132

原创 python入门 list

l = [i*i for i in range(1, 6)]print(l)def change(x): return x*10 + 1l = list(map(change, l))print(l)l = [i*i for i in range(1, 6)]l = list(map(lambda x: x*10 + 1, l))print(l)[1, 4, 9...

2019-04-13 15:16:06 97

原创 回溯模板

全排列def dfs(nums, d): if d == len(nums): print(nums) for i in range(d, len(nums)): nums[d], nums[i] = nums[i], nums[d] dfs(nums, d+1) nums[d], nums[i] = n...

2019-04-13 12:04:59 693

原创 learn python

#合并两个有序的链表a = [1, 3, 5, 7, 9]b = [2, 4, 6, 8, 10]def dfs(a, b): ret = [] if a and b: if a[0] < b[0]: ret.append(a[0]) del a[0] ret.extend(dfs(a, b)...

2019-04-13 00:04:38 101

原创 leetcode小函数, 根据字符串生成二叉树

根据"[1,2,3, null, null, 4, 5]"生成对应的二叉树,方便调试#include <sstream>#include <cstring>struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), ri...

2019-04-12 18:31:19 922 1

原创 二叉树分层遍历

class Solution{ public: bool isSymmetric(TreeNode* root) { if (!root) return true; vector<TreeNode*> vec; vec.push_back(root); int cur = 0; while (cur < vec.size()) { int ...

2019-04-11 18:22:54 339

stanford 图形学.7z

斯坦福图形学课程 ee267 PDF https://stanford.edu/class/ee267/lectures/

2020-07-31

QCodeEditor-master.zip

QCodeEditor-master.zip 支持代码高亮 自动补全 QT 代码编辑器 源码

2019-08-07

stl 相关的文章

a_little_order_delving_into_the_stl_sorting_algorithms__fred_tingaud__cppcon_2018.pdf C++ Costless Abstractions - the Compiler View - Serge Guelton - CppCon 2016.pdf Costless Software Abstractions for Parallel Architectures - Joel Falcou - CppCon 2014.pdf osgEarth_Document.pdf Parallel STL for CPU and GPU - Michael Wong, Gordon Brown, Ruyman Reyes, Christopher Di Bella - CppCon 2017.pdf state_machines_battlefield_naive_vs_stl_vs_boost__kris_jusiak__cppcon_2018.pdf STL Algorithms - Marshall Clow - CppCon 2016.pdf STL Features And Implementation Techniques - Stephan T. Lavavej - CppCon 2014.pptx

2019-08-02

KorFin Demo chi.zip

KorFin Demo chi

2019-08-02

scratchapixel.zip

scratchapixel 网站部分 文档 Global Illumination and Path Tracing 和蒙特卡洛

2019-08-02

Correlated Multi-Jittered Sampling.pdf

Correlated Multi-Jittered Sampling 多重抖动采样

2019-08-02

光线追踪与光子映射.zip

包含离线渲染常见的模型, sphere.obj rocker-arm.18k.obj kitten.50k.obj horse.fine.90k.obj fixed.perfect.dragon.100K.0.07.obj fandisk.18k.obj dinosaur.2k.obj cube.obj bunny.fine.obj Buddha.obj block.obj Arma.obj

2019-08-02

OpenGL44PipelineMap.pdf

opengl 4.4 管线 pipeline 很详细

2019-08-02

The Graphics Pipeline and OpenGL II: Lighting and Shading, Fragment Processing

斯坦福的图形学课件 The Graphics Pipeline and OpenGL II: Lighting and Shading, Fragment Processing

2019-08-02

C++ 最佳实践 cppbestpractices

cpp-best-practices , 老外总结的C++相关的经验,比较适合有经验的开发者, 更多C++文章可以去github上搜索cppcon

2018-12-03

CppCon2014-master

CPPCON的2014文章合集, 适合有经验的开发者 CppCon2014-master

2018-11-16

MadShaders_0.4.1_win64

一些牛人写的shader, 效果酷炫 lua python am_i_dreaming_gl2.xml angels_gl2.xml another_sun_gl2.xml antialiased_worms_gl2.xml bacterium_gl2.xml ball_of_fire_gl2.xml balls_and_occlusion_gl2.xml basic_fractal_gl2.xml bokeh_blur_gl2.xml bridge_gl2.xml britney_spaceship_gl2.xml buoy_gl2.xml carnival_ride_gl2.xml cell_gl2.xml cells_gl2.xml cellular_gl2.xml chain_reaction_gl2.xml circuits_gl2.xml cosmos_gl2.xml creepy_mountains_gl2.xml cubic_entanglement_gl2.xml de_dof_gl2.xml demo_2120_0_gl2.xml demo_2902_4_gl2.xml demo_3155_0_gl2.xml demo_3281_0_gl2.xml demo_6254_0_gl2.xml demo_7424_0_gl2.xml demo_7878_1_gl2.xml demo_8350_0_gl2.xml demo_8628_0_gl2.xml demo_9110_0_gl2.xml demo_9863_0_gl2.xml demo_10557_0_gl2.xml demo_10595_0_gl2.xml demo_11569_0_gl2.xml digital_brain_gl2.xml dodecahedron_gl2.xml dolphin_gl2.xml electron_gl2.xml elevated_gl2.xml energy_decelerator_gl2.xml ether_gl2.xml eye_of_sauron_gl2.xml fish_swimming_gl2.xml flame_gl2.xml flames_gl2.xml flaring_gl2.xml fractal_cartoon_gl2.xml fractraps3_gl2.xml fruxis_gl2.xml furball_gl2.xml generator_redux_gl2.xml glass_eel_gl2.xml grid_of_cylinders_gl2.xml hammer_2d_grid_gl2.xml hand_drawn sketch_gl2.xml hexagons_gl2.xml hot_shower_gl2.xml insect_gl2.xml jack-o-lantern_gl2.xml julia_gl2.xml magica_voxel_gl2.xml main_sequence_star_gl2.xml marble_gl2.xml mars_flight_gl2.xml metahexaballs_gl2.xml misty_lake_gl2.xml mobius_balls_gl2.xml monster_gl2.xml neptune_racing_gl2.xml oblivion_gl2.xml ocean_rescue_gl2.xml on_off_spikes_gl2.xml pangram_gl2.xml perlin_noise_sphere_gl2.xml piano_gl2.xml plasma_globe_gl2.xml polar_gl2.xml prairie_gl2.xml queasy_checkerboard_gl2.xml relentless_gl2.xml remnant_x_gl2.xml repelling_gl2.xml rounded_voxels_gl2.xml screen_space_bump_mapping_gl2.xml seascape_gl2.xml sierpkinki_3d_gl2.xml space_racing_lite_gl2.xml spiral_tiling_gl2.xml storm_gl2.xml tentacle_thing_gl2.xml the_inversion_machine_gl2.xml the_popular_shader_gl2.xml tileable_water_gl2.xml tiles_gl2.xml tissue_gl2.xml tokyo_gl2.xml torus_journey_gl2.xml truchet_tentacles_gl2.xml venus_gl2.xml voronoi_rocks_gl2.xml voxel_edges_gl2.xml voxel_pacman_gl2.xml wet_stone_gl2.xml xyptonjtroz_gl2.xml

2018-11-15

OpenGLInsights-SparseVoxelization

体素化 Octree-Based Sparse Voxelization Using the GPU Hardware Rasterizer

2018-11-15

GIVoxels-pg2011-authors

GIVoxels-pg2011-authors 全局光照 体素

2018-11-15

Real-Time Rendering --- Word版

Word版,

2017-08-11

GEOS 编译好

32位

2017-07-10

ColorPix颜色拾取工具

ColorPix 拾取颜色

2017-07-07

大规模地形场景实时绘制技术研究

地形 osg 论文

2017-07-07

osg 着色器

有人写的一些shader,适合初学者

2017-07-07

VirtualPlanetBuilder 编译好

VirtualPlanetBuilder 32 位 编译好

2017-04-12

Stanford CS248 .7z

Stanford CS248 计算机图形学 PDF 课件

2020-12-26

vulkan pdf 教程 英文.zip

Vulkan Programming Guide The Official Guide to Learning Vulkan Learning Vulkan by Parminder Singh (z-lib.org) C++ Game Development By Example Learn to build games and graphics with SFML, OpenGL, and Vulkan using C++ programming by Siddharth Shekar (z-lib.org) 来源 https://z-lib.org/

2020-07-30

course_notes_moving_frostbite_to_pbr_v32.pdf

course_notes_moving_frostbite_to_pbr_v32

2020-04-26

9927405hpcv-water-29-oct-2010.zip

hpcv-water-29-oct-2010 原始 未被修改 // // Fragment shader, Tiled Directional Flow // // (c) 2010 frans van hoesel, university of groningen //

2020-03-02

WorldComposer 1.61.7z

WorldComposer 1.61 WorldComposer 1.61

2019-11-29

global_illumination_using_photon_maps_egwr96.pdf

global_illumination_using_photon_maps_egwr96

2019-09-12

renderingequation.7z

渲染方程 rendering equation

2019-09-05

android_EffectsManager-master.zip

ClassManager ClassManager ClassManager

2019-08-29

A Parallel Algorithm for Polygon Rasterization.pdf

A Parallel Algorithm for Polygon Rasterization.pdf 论文

2019-08-12

MC Practice.zip sratchapixel

1)Monte Carlo Methods.pdf 2)Monte Carlo Simulation.pdf 3)Monte Carlo Integration.pdf 4)Monte Carlo in Rendering (A Practical Example).pdf 5)Generating Random Numbers.pdf 6)Variance Reduction Methods a Quick Introduction to Importance Sampling.pdf 7)Variance Reduction Methods a Quick Introduction to Quasi Monte Carlo.pdf 8)Source Code.pdf

2019-08-07

bounding_volume_hierarchies.pdf

BVH bounding_volume_hierarchies.pdf -

2019-08-07

carModel.zip 汽车模型 obj格式

carModel.zip 汽车模型 obj格式 carModel.zip 汽车模型 obj格式

2019-08-07

hpcv-water-29-oct-2010.zip osg shader 水

hpcv-water-29-oct-2010.zip osg shader 水

2019-08-07

Basic Principles of Surface Reflectance.pdf

Basic Principles of Surface Reflectance.pdf

2019-08-07

raytracinginoneweekend.zip

raytracinginoneweekend raytracingthenextweek raytracingtherestofyourlife 源码

2019-08-07

osgworks-master.zip

AbsoluteModelTransform.cpp CallbackSupport.cpp CameraConfigObject.cpp Capabilities.cpp CollapseLOD.cpp CountStateSets.cpp CountsVisitor.cpp DataLoader.cpp DecimatorOp.cpp FBOUtils.cpp FindNamedNode.cpp ForceFlattenTransforms.cpp GeometryModifier.cpp GeometryOperation.cpp InsertRemove.cpp LODCreation

2019-08-07

osg3DViewer.zip

osg3DViewer.zip main.cpp MainWindow.cpp xAppSettings.cpp xExtentsVisitor.cpp xFindNameListVisitor.cpp xLogHandler.cpp xObjectLoader.cpp xPickingHandler.cpp xPropertyWidget.cpp xSceneModel.cpp xSceneView.cpp xSearchLineEdit.cpp xSelectionDecorator.cpp xSelectionManager.cpp xShaderSelectionDecorator.cpp xShaderSettingDialog.cpp xThreadPool.cpp xTreeModel.cpp xTreeView.cpp

2019-08-07

antons_opengl_tutorials_book.zip

antons_opengl_tutorials_book.zip opengl 示例教程

2019-08-07

opengl demo GLUS.zip

opengl demo GLUS.zip

2019-08-07

QtPropertyBrowser-master.zip

QtPropertyBrowser-master.zip qt属性表 源码

2019-08-07

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除