AlgebraMaster

Modern C++ 创造非凡 . 改变世界 一起铲除毒瘤KPI

导航

随笔分类 -  C++

1 2 下一页

C++ TD
Houdini18 HDK Offline Test
摘要:cmake_minimum_required(VERSION 3.5) project(Triangle) set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) # OPENGL find_package(OpenGL REQU 阅读全文

posted @ 2020-04-30 14:32 gearslogy 阅读(1059) 评论(2) 推荐(0)

-OPENGL-
摘要:PACKAGES MAY BE USED GL3W - For modern OpenGL methods GLFW - Window creation and management GLM - Maths calculations stb_image - Image loading TinyOBJ 阅读全文

posted @ 2018-11-01 15:54 gearslogy 阅读(496) 评论(0) 推荐(0)

OSL
摘要:1,SimpleColorShader: Katana启动时候会自动编译: Arnold里bin文件夹里有oslc编译osl文件。但是在centos的GLIB不是2.14,所以单独运行不行。 但是在Katana启动调用时候为何自动编译,猜测是Arnold bin文件夹里已经把GLIB2.14一些符号 阅读全文

posted @ 2018-10-09 11:23 gearslogy 阅读(1927) 评论(0) 推荐(0)

Rasterization 学习笔记
摘要:Barycentric interpolation <1>2d/3d Check point in triangle test float areas(vector p1;vector p2;vector p3) { return length(cross(p1-p2,p3-p2)) * 0.5f; 阅读全文

posted @ 2017-09-30 19:41 gearslogy 阅读(461) 评论(0) 推荐(0)

QML 从入门到放弃 第二卷
摘要:第二卷如何更快速的放弃,注重的是C++和QML的交互 <1>记事本。。 (1) 先测试下不在QML创建C++对象,仅仅在main.cpp添加一个属性函数供调用. 注意只使用槽函数来做到。 TextStreamLoader.h #ifndef TEXTSTREAMLOADER_H #define TE 阅读全文

posted @ 2017-04-04 02:06 gearslogy 阅读(3158) 评论(0) 推荐(0)

C++ 模式设计
摘要:只写了MinGw/Linux API部分。所有相关的代码都是参考C++ API C++ 11智能指针参考http://blog.csdn.net/zy19940906/article/details/50470087 <1>Pimpl pointer to the implementation 计算 阅读全文

posted @ 2017-03-26 17:32 gearslogy 阅读(482) 评论(1) 推荐(0)

VDB R&D
摘要:VDB Data value visualize: 结论从houdini得知. API常用文字: interior:内部 Narrow-band:窄带 background:窄带外 SDF: XY plane Data visualize: { (1)用法:vdb sdf levelset球,采样其 阅读全文

posted @ 2017-03-13 17:26 gearslogy 阅读(2580) 评论(0) 推荐(0)

json parse
摘要:https://github.com/nlohmann/json 分界线 <1> 展开json ./out >> test.txt 展开如下。 如何把flat的json转换给当前标准json,并且修改值 输出结果为: 分界线 <2>JSON Array 操作: ./out >> test.txt 分 阅读全文

posted @ 2017-02-28 17:03 gearslogy 阅读(1551) 评论(0) 推荐(0)

C++ 11 snippets , 2
摘要:<1>auto ,initializer_list<T>,auto指向函数指针的简易,和typdef 定义的类型执行函数指针有多复杂。 #include <iostream> #include <initializer_list> #include <string> using namespace 阅读全文

posted @ 2016-11-20 23:16 gearslogy 阅读(362) 评论(0) 推荐(0)

QFile QDataStream QTextStream
摘要:#include <QCoreApplication> #include <QMap> #include <QFile> #include <QDir> #include <QDebug> #include <QTextStream> #include <QDataStream> #include 阅读全文

posted @ 2016-08-02 16:48 gearslogy 阅读(654) 评论(0) 推荐(0)

Templates<2>
摘要:Part:template specialized Part1:template specialized #include <iostream> #include <stdio.h> using namespace std; template <typename To,typename From> 阅读全文

posted @ 2016-07-05 15:27 gearslogy 阅读(320) 评论(0) 推荐(0)

C 和 C++ 一些基础
摘要:位运算: Part1: #include <iostream> using namespace std; int main(int argc, char *argv[]) { //unsigned char per byte that contain 00000000 - 11111111 unsi 阅读全文

posted @ 2016-05-16 23:29 gearslogy 阅读(291) 评论(0) 推荐(0)

Write Your software base on plugin(C/C++ ABI)
摘要:一个软件,如果把所有的功能写进C++源码,维护,扩展,编译都特别麻烦。 共享库后缀名。Linux -> .so Windows -> .dll 关于动态符号显示问题,具体可以看系统的API,现在做了个只支持Linux. Linux 查看一个动态库的符号 nm -D plugin.so 注意Linux 阅读全文

posted @ 2016-05-10 17:35 gearslogy 阅读(457) 评论(0) 推荐(0)

Interpolation particles In Katana
摘要:I write the sphere radius interpolation for katana plugin that can transfer attributes,render attributes ,render velocity motion blur directly. --GLY_ 阅读全文

posted @ 2016-04-22 13:50 gearslogy 阅读(468) 评论(0) 推荐(0)

Arnold AtArray API Test
摘要:#include #include #include #include #include using namespace std; void print_the_type() { printf("AI_TYPE_BYTE %5d \n",AI_TYPE_BYTE); //0 printf("AI_TYPE_INT %5d \n",AI_TYPE_INT)... 阅读全文

posted @ 2016-04-19 21:57 gearslogy 阅读(584) 评论(0) 推荐(0)

Linux C 学习
摘要:格式输出浮点 整数空格输出 ,下面控制前面5个空格 如果是%-5d,就是右对齐。上面的float输出也是一样的 进程fork: #include <stdio.h> #include <unistd.h> #include <sys/types.h> /* // THIS PROGRAM WILL 阅读全文

posted @ 2016-04-18 22:10 gearslogy 阅读(599) 评论(0) 推荐(1)

Create Your Tab and LayerTabMenu In Katana
摘要:感谢 http://tool.lu/pyc/ 这个牛逼的网站能反编译pyc...他妈的Katana太他妈无耻了,竟然不让自定义加Node Tab Content....只能反编译他的东西了。。。 研究了下Katana的开发文档,做几个比较帅的事情。。。。 自定义Content 自定义LayerTab 阅读全文

posted @ 2016-03-23 01:52 gearslogy 阅读(460) 评论(0) 推荐(2)

Linux C Programing - Arguments(2)
摘要:#include #include #include //printf #include //extern char **environ using namespace std; #include #define _GNU_SOURCE #include // THIS PROGRAM CAN ./program --env=HOME // ./program -e HOME ... 阅读全文

posted @ 2016-03-18 14:06 gearslogy 阅读(253) 评论(0) 推荐(0)

Linux C Programing - Terminal(1)
摘要:#include //getchar() putchar() printf() gets() puts() sprintf() #include //exit() rand () srand() system() free() malloc() //int getchoice (char *greet , char *choices[]); int getchoice (char *gr... 阅读全文

posted @ 2016-03-18 14:04 gearslogy 阅读(244) 评论(0) 推荐(0)

dynamics_cast<>
摘要:1 #include 2 3 class A 4 { 5 public: 6 A(){} 7 ~A(){} 8 virtual int data(){return 1;} 9 };10 class B:public A11 {12 public:13 B(){}... 阅读全文

posted @ 2015-09-04 01:09 gearslogy 阅读(283) 评论(0) 推荐(0)

1 2 下一页