自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 1612

原创 Screen Based Ocean Rendering in oF

很有意思的海洋渲染方式,完全基于屏幕。渲染部分只有一个Pass,shader的话只用到fragment。更多内容

2013-09-25 16:58:45 910

转载 如何改变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 1996

原创 在OpenframeWorks for iOS app 创建文件然后到iTunes里面获得

iOS 基于沙盒环境,所以要保存文件必须要写入到App的 "documents" 文件夹里。photo.saveImage(ofxiPhoneGetDocumentsDirectory()+"IOS.png");同理,读取的话也要到 "documents" 里面获取。photo.loadImage(ofxiPhoneGetDocumentsDirectory()+"IO

2013-08-01 14:27:54 1214

转载 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 2782

原创 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 1188

原创 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 493

原创 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 618

原创 创建带有iphone gui的Openframeworks工程

ofw的package里面自带了一个 iphoneGUIExample的例子,不过并没有实际的教程告诉你如何添加一个iphoneGui,网上的一些说明都比较旧(还是Memo时期的),花了一天的时间,研究了一下如何在项目中添加xib,并使用xcode自带的 Interface builder。1. 使用ProjectGenerator创建一个工程2. 打开工程,cmd + N 添

2012-10-19 16:59:31 1011

原创 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 4276

原创 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 764

原创 渲染一个简单的房间

最近在看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 918

空空如也

空空如也

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

TA关注的人

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