- 博客(12)
- 收藏
- 关注
原创 用FreeImage在图片中添加简单注释
// Read File FIBITMAP * bmp = NULL; FREE_IMAGE_FORMAT fif = FIF_UNKNOWN; fif = FreeImage_GetFileType(fileName.c_str(), 0); if(fif == FIF_UNKNOWN) { // or guess via filename fif =
2013-11-25 15:07:29
1671
原创 Screen Based Ocean Rendering in oF
很有意思的海洋渲染方式,完全基于屏幕。渲染部分只有一个Pass,shader的话只用到fragment。更多内容
2013-09-25 16:58:45
953
转载 如何改变Visual Assist数据库文件路径(How do I change where VA stores its database?)
原文链接By default Visual Assist X stores its symbol database in the following directory tree:Under Windows 2000 and Windows XP:C:\Documents and Settings\%USERNAME%\Local Settings\Application Da
2013-09-13 14:46:31
2045
原创 在OpenframeWorks for iOS app 创建文件然后到iTunes里面获得
iOS 基于沙盒环境,所以要保存文件必须要写入到App的 "documents" 文件夹里。photo.saveImage(ofxiPhoneGetDocumentsDirectory()+"IOS.png");同理,读取的话也要到 "documents" 里面获取。photo.loadImage(ofxiPhoneGetDocumentsDirectory()+"IO
2013-08-01 14:27:54
1246
转载 Open Source Rendering Library
Open sourceOpenVDB, Alembic, OpenExr 2, Open Shader Language (OSL), Cortex and other open source initiatives have really taken off in the last few years. For some companies this is a great opportuni
2013-07-19 15:43:38
2861
原创 Cinder 中文显示二三事
1. 字符串转换首先要把 wstring 转换成 utf8-string(cinder在之后又会把utf8转换成utf16)wstring s = L"是大地的泪点,使她的微笑保持着青春不谢。\nIt is the tears of the earth that keep here smiles in bloom.";string utf8str =
2013-07-02 12:58:58
1237
原创 Shape - "Alignment"
#include "ofxSVG.h"ofxSVG* currentShape;vector shapes;int tileCount = 5;float tileWidth, tileHeight;float shapeSize = 50;float newShapeSize = shapeSize;float shapeAngle = 0;ofCo
2013-01-09 17:29:35
524
原创 Shape - "Hello,Shape"
/* * MOUSE * position x : length * position y : thickness and number of lines * drag : draw */ofColor col;bool bClear = false;//------------------------------------
2012-11-07 17:01:46
656
原创 创建带有iphone gui的Openframeworks工程
ofw的package里面自带了一个 iphoneGUIExample的例子,不过并没有实际的教程告诉你如何添加一个iphoneGui,网上的一些说明都比较旧(还是Memo时期的),花了一天的时间,研究了一下如何在项目中添加xib,并使用xcode自带的 Interface builder。1. 使用ProjectGenerator创建一个工程2. 打开工程,cmd + N 添
2012-10-19 16:59:31
1063
原创 OpenGL Insights 一本不错的新书
OpenGL InsightsOpenGL, OpenGL ES, and WebGL community experiences Assembling contributions from experienced developers, hardware vendors, researchers, and educators, OpenGL Insights pr
2012-09-03 14:57:39
4373
原创 OpenSubdiv - Pixar的开源细分库
git地址:https://github.com/PixarAnimationStudios/OpenSubdiv相关:http://www.opensubdiv.com/?p=193 (介绍视频 )http://www.4gamer.net/games/017/G001762/20120813035/ ( 头疼的日文)...http://www.square
2012-08-16 13:25:48
839
原创 渲染一个简单的房间
最近在看Eye2012的代码,决定一点一点转到Openframeworks里面。那么第一步,就要建立一个房间了。房间就是一个6面体,这个没什么,用一个 ofMesh 就可以了。可以参考下面的代码建立一个Box/* construct room mesh */ float X = dims.x; float Y = dims.y; float Z = dims
2012-07-03 16:01:20
955
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人