摘要:cmake_minimum_required(VERSION 3.5) project(Triangle) set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) # OPENGL find_package(OpenGL REQU
阅读全文
摘要:PACKAGES MAY BE USED GL3W - For modern OpenGL methods GLFW - Window creation and management GLM - Maths calculations stb_image - Image loading TinyOBJ
阅读全文
摘要:1,SimpleColorShader: Katana启动时候会自动编译: Arnold里bin文件夹里有oslc编译osl文件。但是在centos的GLIB不是2.14,所以单独运行不行。 但是在Katana启动调用时候为何自动编译,猜测是Arnold bin文件夹里已经把GLIB2.14一些符号
阅读全文
摘要: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;
阅读全文
摘要:第二卷如何更快速的放弃,注重的是C++和QML的交互 <1>记事本。。 (1) 先测试下不在QML创建C++对象,仅仅在main.cpp添加一个属性函数供调用. 注意只使用槽函数来做到。 TextStreamLoader.h #ifndef TEXTSTREAMLOADER_H #define TE
阅读全文
摘要:只写了MinGw/Linux API部分。所有相关的代码都是参考C++ API C++ 11智能指针参考http://blog.csdn.net/zy19940906/article/details/50470087 <1>Pimpl pointer to the implementation 计算
阅读全文
摘要:VDB Data value visualize: 结论从houdini得知. API常用文字: interior:内部 Narrow-band:窄带 background:窄带外 SDF: XY plane Data visualize: { (1)用法:vdb sdf levelset球,采样其
阅读全文
摘要:https://github.com/nlohmann/json 分界线 <1> 展开json ./out >> test.txt 展开如下。 如何把flat的json转换给当前标准json,并且修改值 输出结果为: 分界线 <2>JSON Array 操作: ./out >> test.txt 分
阅读全文
摘要:<1>auto ,initializer_list<T>,auto指向函数指针的简易,和typdef 定义的类型执行函数指针有多复杂。 #include <iostream> #include <initializer_list> #include <string> using namespace
阅读全文
摘要:#include <QCoreApplication> #include <QMap> #include <QFile> #include <QDir> #include <QDebug> #include <QTextStream> #include <QDataStream> #include
阅读全文
摘要:Part:template specialized Part1:template specialized #include <iostream> #include <stdio.h> using namespace std; template <typename To,typename From>
阅读全文
摘要:位运算: Part1: #include <iostream> using namespace std; int main(int argc, char *argv[]) { //unsigned char per byte that contain 00000000 - 11111111 unsi
阅读全文
摘要:一个软件,如果把所有的功能写进C++源码,维护,扩展,编译都特别麻烦。 共享库后缀名。Linux -> .so Windows -> .dll 关于动态符号显示问题,具体可以看系统的API,现在做了个只支持Linux. Linux 查看一个动态库的符号 nm -D plugin.so 注意Linux
阅读全文
摘要:I write the sphere radius interpolation for katana plugin that can transfer attributes,render attributes ,render velocity motion blur directly. --GLY_
阅读全文
摘要:#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)...
阅读全文
摘要:格式输出浮点 整数空格输出 ,下面控制前面5个空格 如果是%-5d,就是右对齐。上面的float输出也是一样的 进程fork: #include <stdio.h> #include <unistd.h> #include <sys/types.h> /* // THIS PROGRAM WILL
阅读全文
摘要:感谢 http://tool.lu/pyc/ 这个牛逼的网站能反编译pyc...他妈的Katana太他妈无耻了,竟然不让自定义加Node Tab Content....只能反编译他的东西了。。。 研究了下Katana的开发文档,做几个比较帅的事情。。。。 自定义Content 自定义LayerTab
阅读全文
摘要:#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 ...
阅读全文
摘要:#include //getchar() putchar() printf() gets() puts() sprintf() #include //exit() rand () srand() system() free() malloc() //int getchoice (char *greet , char *choices[]); int getchoice (char *gr...
阅读全文
摘要: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(){}...
阅读全文