- Delta3d 简单的控制物体例子
Sunday
Delta3D
//Inthistutorial,youwillchangethepreviousHelloWorldapplicationto//furtheryourunderstandingofmotionmodels.Previouslyyoulearnedhowtoplacea//camerainasceneandmovethecamerapositionviamouseandkeyboardinput
- Delta3D(3)教程介绍
deverwh
Delta3DDelta3D
从这里开始,按照官方的英文文档开始了Delta3D的教程部分。这部分的教程将会通过很多Delta3D工程的方方面面指导你学习Delta3D。这些教程的主要目的是指导那些具备基本C++知识的人,怎么使用基于游戏的仿真引擎-Delta3D来开发虚拟的仿真应用。更多的例程在delta3d/examples中,并且还有超过20000行的单元测试代码。怎么开始由于项目里有很多教程、Demo应用、测试示例等,
- Delta3d 2.8 Island Demo
风萧尘
Delta3D
Delta3d2.8IslandDemo的效果H键为帮助键123456为不同的漫游模式按键C可以编辑一些场景的参数,调整光照,例子效果,时间
- arduino平台的3D打印机学习笔记
Mist_Orz
delta3D打印
❤2018.8.22开了个新坑,其实也不算是新坑,毕竟3d打印机的设想早已有之,只是一直缺少实(ma)践(ni),现在有时间有闲钱,所以就开始着手了。我的计划是:1、查找资料,熟悉marlin固件;2、先用买来的控制板实现对现有的delta平台的控制,能够实现动作;3、搭建完整的delta3D打印平台,实现3D打印功能;4、编写codesys平台的3D打印机程序。(和之前的坑接上)好了说干就干❤2
- 最常用的开源游戏引擎
星空下的背影
游戏编程
开源即开放原代码(OpenSource),游戏引擎好比赛车的引擎,是用于控制所有游戏功能的主程序,从计算碰撞、物理加速系统和物体的相对位置,到接受玩家的输入,以及按照正确的音量输出声音等等。无论是角色扮演游戏、即时策略游戏、冒险解谜游戏或是动作射击游戏,哪怕是一个只有1兆的小游戏,都有这样一段起控制作用的代码。下面将列出一些著名的且经常被使用的开源游戏引擎。Delta3D:Delta3D是一个功能
- 最常用的开源游戏引擎
游戏引擎
开源即开放原代码(Open Source),游戏引擎好比赛车的引擎,是用于控制所有游戏功能的主程序,从计算碰撞、物理加速系统和物体的相对位置,到接受玩家的输入,以及按照正确的音量输出声音等等。无论是角色扮演游戏、即时策略游戏、冒险解谜游戏或是动作射击游戏,哪怕是一个只有1兆的小游戏,都有这样一段起控制作用的代码。下面将列出一些著名的且经常被使用的开源游戏引擎。
Delta3D:Delta3D是
- Delta3D源码分析
源码分析
最近学习Delta3D, 2.4版忙着发布,一直不能成功编译SimCore, 索性静下心来看看源码,官网上竟然提供了几个重要组建的软件设计说明书(SDD),虽说基本都是2005版了,不过我看了后觉得主要构架仍然没有改变, 这几份SDD对于学习Delta3D具有很好的参考价值。分析源码要从顶层着手,所以在看了GM部分的SDD后,我翻出源码看了下,顺便画几张序列图,算是做个笔记。分析主要根
- 转:如何编译delta3d
EL
回头看,自上学以来,做虚拟现实、三维地理信息系统已有六个年头。为了节省花费在编码上的精力,编程应用的API函数也由opengl变成了OpenSceneGraph,但还是花费了很多气力,为了更好的提高开发的效率,提高软件的质量,决定学习delta3d。
费了一天的时间,终于将deltae3d安装好,调试通过。虽然网络上有很多中文或英文的教程,告诉你如何操作,但按照上面操作还是遇到了很多莫名奇妙的问
- Delta3D Open Source Engine
open source
在看《游戏编程精粹6》时看到了这个引擎,彩插7是这个引擎的Editor,我一看就是Qt写的,我太熟悉Qt的界面了,呵呵。Editor非常强悍!有类似3dmax的4个视图下载这个看下吧,里面有截图。OnsourceForge官网在中国的论坛
Delta3d技术研究群,欢迎您的加入
研究Delta3d在虚拟显示,仿真训练,游戏开发中的应用,群号 1508319 Delta3D是什么?D
- 转:开源3D引擎介绍
开源
Delta3D:Delta3D是一个功能齐全的游戏引擎,可用于游戏,模拟或其他图形应用。其模块化设计集成了其他的开源项目,如‘开放场景图’,‘开放动力学引擎’,‘人物动画库’和‘OpenAL’ 。Delta3D把这些开源项目集成到一个易于使用的应用程序编程接口中。Delta3D 下载地址:http://www.ogre3d.org/。NeoEngine:NeoEngine是一个全功能的用C++编写
- Delta3D 2.8版本 预览
zhuyingqingfen
http://blog.csdn.net/zhuyingqingfen/article/details/38581453看到官网今天的更新,发现即将发布的delta3d2.8版本做了很大的改动,效果非常漂亮,如下预览图:YouTube上的视频(HDR夜景效果):http://youtu.be/FW9BIkXVzJk
- c++ 基于Policy 的 模板编程
zhuyingqingfen
在没真正接触c++ 模板编程之前,真的没有想到c++还可以这么用,最大的感触是:太灵活了,太强大了。最初接触模板威力还是在Delta3d中,感觉里面的模板使用实在是灵活与方便,特别是dtAI中使用了大量的模板,大大增强了库的可扩展性。本文基于《c++设计新思维》而写。先看一段代码: #include
#include
#include
usingnamespacestd;
//----------
- Delta3d 编译64位 注意事项 记录
zhuyingqingfen
编译64位的Delta3d需要手动编译其所有依赖的库,具体到Delta3d官网查询,或者直接下载打包好的依赖库源代码进行编译VS2010编译注意事项:1.CEGUI的渲染OpenGL中的glew.c用其依赖库中的glew.c代替。2.编译CEGUI的依赖库PCE用静态库,因为在CEGUI中的预定义宏中定义了PCRE_STATIC3.编译OSG中的PNG、JPEJ、TIff用官网下载下来的库(依赖库
- Delta3D 中STAGE之PropertyEditor
zhuyingqingfen
Delta3D中的可扩展做的非常好,包括在STAGE中的一个控制属性面板,里面的一些小零件都是可以按自己需要添加删减或者重新映射的。如图:其实,里面的一个小条目(被称为一个dynamiccontrol)和一个actor类似,BasePropertyEditor中有一个DynamicControlFactory,负责dynamiccontrol类型的注册(系统自带的如DynamicStringCon
- 最常用的开源游戏引擎
Augusdi
小常识
开源即开放原代码(OpenSource),游戏引擎好比赛车的引擎,是用于控制所有游戏功能的主程序,从计算碰撞、物理加速系统和物体的相对位置,到接受玩家的输入,以及按照正确的音量输出声音等等。无论是角色扮演游戏、即时策略游戏、冒险解谜游戏或是动作射击游戏,哪怕是一个只有1兆的小游戏,都有这样一段起控制作用的代码。下面将列出一些著名的且经常被使用的开源游戏引擎。Delta3D:Delta3D是一个功能
- 最常用的开源游戏引擎
Augusdi
开源即开放原代码(OpenSource),游戏引擎好比赛车的引擎,是用于控制所有游戏功能的主程序,从计算碰撞、物理加速系统和物体的相对位置,到接受玩家的输入,以及按照正确的音量输出声音等等。无论是角色扮演游戏、即时策略游戏、冒险解谜游戏或是动作射击游戏,哪怕是一个只有1兆的小游戏,都有这样一段起控制作用的代码。下面将列出一些著名的且经常被使用的开源游戏引擎。Delta3D:Delta3D是一个功能
- Delta3D GameActor 和 GameActorProxy 中关键函数解析
zhuyingqingfen
本文基于Delta3d2.8版本1,OnEnteredWorld()函数,在Actors和proxy均有此函数。在actor在第一次加入到GameManager中时调用。InProxy'sOnEnteredWorld,Thisisagoodplace toregisterInvokableswithMessageTypes.在GameManager的函数中AddActor(GameActorPro
- Delta3D 自定义扩展actors 是怎样最终创建的
zhuyingqingfen
dtCore::LibraryManager类是个单利,在创建LibraryManager实例的时候,会自动加载系统内部的三个角色插件:dtActors、dtAudio、dtAnim。如下: staticconststd::stringACTOR_LIBRARY("dtActors"); staticconststd::stringAUDIO_ACTOR_LIBRARY("dtAudio");
- Delta3D 属性封装 分析
zhuyingqingfen
如FloatActorProperty等.........................待写。。。。。。。。。。。
- Delta3D 人工智能 AI 分析
zhuyingqingfen
A*算法描述见http://blog.csdn.net/zhuyingqingfen/article/details/8739604在dtAI中的A*算法中,关键的有几个类AIPluginInterface、 NavMesh、AStar、WaypointGraph、WaypointInterface。其中AIPluginInterface更像一个管理类,把其他类统一起来了。不过对于Waypoint
- Delta3D 消息创建、注册、转发流程
zhuyingqingfen
角色处理消息Delta3D中如果Actor要接收消息,必须 1.注册可调用体默认情况下,在GameActorProxy中注册了三个回调函数OnTickLocal、OnTickRemote、ProcessMessage如下:voidGameActorProxy::BuildInvokables()
{
AddInvokable(*newInvokable(TICK_LOCAL_INVOKABLE,
- Delta3D 引擎 框架 结构分析
zhuyingqingfen
在上层设计中,Delta3d引擎设计非常简单,只包含了三个主要部分。最中间是“GameManager”,主要负责管理角色Actors和消息分发。GameManager是Actor和Component两子系统通信的管道。引擎中的第二个子系统是GameActors。GameActors是仿真环境中的实体,进一步又可以分为两个小部分:代理Proxy和角色Actor。actor是实体对象,actor只包含
- Delta3d 2.8 版本终于发版
zhuyingqingfen
这两天关注了一下Delta3d的官网 http://delta3d.org/,好像正在升级网站。前两天Delta3d2.8版本也终于已经发版....................,看官网论坛,据说Delta3d 在以后会有较大的变动,会修改仿真引擎核心部分,现在的渲染只支持osg,修改后可以支持包括orge3d在内的其他渲染引擎,期待中..............................
- Delta3D术语表
zhuyingqingfen
GlossaryContents [hide]1 Glossary1.1 A1.2 C1.3 E1.4 G1.5 M1.6 P1.7 SGlossaryTermsandreferencesthatyoumayexperienceinDelta3D.AActors -AnabstractnotionofanobjectthatperformssomedutyinaDelta3Dapplication
- Delta3D VehicleDriver工程
zhuyingqingfen
Delta3d的VehicleDriver工程也属于delta3d-extras中的一部分,里面有物理引擎,立体声效,碰撞检测,相机跟踪,shader管理,主要是基于dtCore的,消息基于dtCore中的OnMessage,看看还是挺不错的,不过用最新版本的delta3d编译是有问题的,中间修改了一些,主要是CEGUI的版本问题。下面是中间的一些效果图
- Delta3D 场景暗淡的可能解决办法
zhuyingqingfen
在testTerrain例子中场景很暗淡,原因是里面的时间设置的是美国的时间,和咱们正好相反,如果你如果晚上12点运行此例子,应该是明亮的O(∩_∩)O,可以把时间改下就OK了,我改的时间是mEnvironment->SetDateTime(2005,3,7,01,0,0);
还有在testClouds中,添加以下代码,同样解决此问题,发现Delta3D的动态云效果很炫weather=ne
- Delta3D SimCore DriverDemo NetDemo
zhuyingqingfen
之前一直只能编译出NetDemo,今天研究了下DriveDemo,通过跟踪代码,修改了好些,总算水落石出,Delta3D很强大,架构很简单,但集众开源之所长不多说,上图,对Delta3D感兴趣的朋友,可以一块探讨。呵呵,技术共享...........下面这个是NetDemo的态势显示下面是NetDemo的例子 现在用的版本是2.7.5 DriveDemo主要改动了有: voidGameApp
- MFC和使用Std的dll之间的内存泄露误报情况
chaosllgao
From: http://blog.sina.com.cn/s/blog_4087d260010090sf.html最近搞一个Delta3D的工程,因为牵扯到要放在MFC中,所以费了牛劲才找到放到MFC中的方法,结果还未等高兴,就发现了内部泄漏,泄漏的地方是dtCore.dll,这个DLL是静态关联的DLL,所以我看了看泄漏的具体对象,发现都和std之流相关,于是极度怀疑是std这个家伙作祟,这些
- 一些著名的开源项目
followingturing
JavaScriptGooglechrome单元测试googletestjs引擎
0ad 3D游戏ACE 网络框架CEGUI界面库boostC++库cocos2d游戏库delta3d游戏引擎OGRE 渲染引擎facebook-hiphopphp引擎d2x-xl 游戏hadoop 分布式文件系统mangos wow模拟serveropencv 图形库tbb 并发库three。jsjs3d渲染引擎v8 js引擎monkeySpiderjs引擎node
- 一些比较出名的开源库和框架
eric_weitm
C++框架
一些著名的开源项目:
0ad 3D游戏
ACE 网络框架
CEGUI 界面库
boost C++库
cocos2d 游戏库
delta3d 游戏引擎
OGRE 渲染引擎
facebook-hiphop php引擎
d2x-xl 游戏
hadoop 分布式文件系统
mangos&nb
- 如何用ruby来写hadoop的mapreduce并生成jar包
wudixiaotie
mapreduce
ruby来写hadoop的mapreduce,我用的方法是rubydoop。怎么配置环境呢:
1.安装rvm:
不说了 网上有
2.安装ruby:
由于我以前是做ruby的,所以习惯性的先安装了ruby,起码调试起来比jruby快多了。
3.安装jruby:
rvm install jruby然后等待安
- java编程思想 -- 访问控制权限
百合不是茶
java访问控制权限单例模式
访问权限是java中一个比较中要的知识点,它规定者什么方法可以访问,什么不可以访问
一:包访问权限;
自定义包:
package com.wj.control;
//包
public class Demo {
//定义一个无参的方法
public void DemoPackage(){
System.out.println("调用
- [生物与医学]请审慎食用小龙虾
comsci
生物
现在的餐馆里面出售的小龙虾,有一些是在野外捕捉的,这些小龙虾身体里面可能带有某些病毒和细菌,人食用以后可能会导致一些疾病,严重的甚至会死亡.....
所以,参加聚餐的时候,最好不要点小龙虾...就吃养殖的猪肉,牛肉,羊肉和鱼,等动物蛋白质
- org.apache.jasper.JasperException: Unable to compile class for JSP:
商人shang
maven2.2jdk1.8
环境: jdk1.8 maven tomcat7-maven-plugin 2.0
原因: tomcat7-maven-plugin 2.0 不知吃 jdk 1.8,换成 tomcat7-maven-plugin 2.2就行,即
<plugin>
- 你的垃圾你处理掉了吗?GC
oloz
GC
前序:本人菜鸟,此文研究学习来自网络,各位牛牛多指教
1.垃圾收集算法的核心思想
Java语言建立了垃圾收集机制,用以跟踪正在使用的对象和发现并回收不再使用(引用)的对象。该机制可以有效防范动态内存分配中可能发生的两个危险:因内存垃圾过多而引发的内存耗尽,以及不恰当的内存释放所造成的内存非法引用。
垃圾收集算法的核心思想是:对虚拟机可用内存空间,即堆空间中的对象进行识别
- shiro 和 SESSSION
杨白白
shiro
shiro 在web项目里默认使用的是web容器提供的session,也就是说shiro使用的session是web容器产生的,并不是自己产生的,在用于非web环境时可用其他来源代替。在web工程启动的时候它就和容器绑定在了一起,这是通过web.xml里面的shiroFilter实现的。通过session.getSession()方法会在浏览器cokkice产生JESSIONID,当关闭浏览器,此
- 移动互联网终端 淘宝客如何实现盈利
小桔子
移動客戶端淘客淘寶App
2012年淘宝联盟平台为站长和淘宝客带来的分成收入突破30亿元,同比增长100%。而来自移动端的分成达1亿元,其中美丽说、蘑菇街、果库、口袋购物等App运营商分成近5000万元。 可以看出,虽然目前阶段PC端对于淘客而言仍旧是盈利的大头,但移动端已经呈现出爆发之势。而且这个势头将随着智能终端(手机,平板)的加速普及而更加迅猛
- wordpress小工具制作
aichenglong
wordpress小工具
wordpress 使用侧边栏的小工具,很方便调整页面结构
小工具的制作过程
1 在自己的主题文件中新建一个文件夹(如widget),在文件夹中创建一个php(AWP_posts-category.php)
小工具是一个类,想侧边栏一样,还得使用代码注册,他才可以再后台使用,基本的代码一层不变
<?php
class AWP_Post_Category extends WP_Wi
- JS微信分享
AILIKES
js
// 所有功能必须包含在 WeixinApi.ready 中进行
WeixinApi.ready(function(Api) {
// 微信分享的数据
var wxData = {
&nb
- 封装探讨
百合不是茶
JAVA面向对象 封装
//封装 属性 方法 将某些东西包装在一起,通过创建对象或使用静态的方法来调用,称为封装;封装其实就是有选择性地公开或隐藏某些信息,它解决了数据的安全性问题,增加代码的可读性和可维护性
在 Aname类中申明三个属性,将其封装在一个类中:通过对象来调用
例如 1:
//属性 将其设为私有
姓名 name 可以公开
- jquery radio/checkbox change事件不能触发的问题
bijian1013
JavaScriptjquery
我想让radio来控制当前我选择的是机动车还是特种车,如下所示:
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"><
- AngularJS中安全性措施
bijian1013
JavaScriptAngularJS安全性XSRFJSON漏洞
在使用web应用中,安全性是应该首要考虑的一个问题。AngularJS提供了一些辅助机制,用来防护来自两个常见攻击方向的网络攻击。
一.JSON漏洞
当使用一个GET请求获取JSON数组信息的时候(尤其是当这一信息非常敏感,
- [Maven学习笔记九]Maven发布web项目
bit1129
maven
基于Maven的web项目的标准项目结构
user-project
user-core
user-service
user-web
src
- 【Hive七】Hive用户自定义聚合函数(UDAF)
bit1129
hive
用户自定义聚合函数,用户提供的多个入参通过聚合计算(求和、求最大值、求最小值)得到一个聚合计算结果的函数。
问题:UDF也可以提供输入多个参数然后输出一个结果的运算,比如加法运算add(3,5),add这个UDF需要实现UDF的evaluate方法,那么UDF和UDAF的实质分别究竟是什么?
Double evaluate(Double a, Double b)
- 通过 nginx-lua 给 Nginx 增加 OAuth 支持
ronin47
前言:我们使用Nginx的Lua中间件建立了OAuth2认证和授权层。如果你也有此打算,阅读下面的文档,实现自动化并获得收益。SeatGeek 在过去几年中取得了发展,我们已经积累了不少针对各种任务的不同管理接口。我们通常为新的展示需求创建新模块,比如我们自己的博客、图表等。我们还定期开发内部工具来处理诸如部署、可视化操作及事件处理等事务。在处理这些事务中,我们使用了几个不同的接口来认证:
&n
- 利用tomcat-redis-session-manager做session同步时自定义类对象属性保存不上的解决方法
bsr1983
session
在利用tomcat-redis-session-manager做session同步时,遇到了在session保存一个自定义对象时,修改该对象中的某个属性,session未进行序列化,属性没有被存储到redis中。 在 tomcat-redis-session-manager的github上有如下说明: Session Change Tracking
As noted in the &qu
- 《代码大全》表驱动法-Table Driven Approach-1
bylijinnan
java算法
关于Table Driven Approach的一篇非常好的文章:
http://www.codeproject.com/Articles/42732/Table-driven-Approach
package com.ljn.base;
import java.util.Random;
public class TableDriven {
public
- Sybase封锁原理
chicony
Sybase
昨天在操作Sybase IQ12.7时意外操作造成了数据库表锁定,不能删除被锁定表数据也不能往其中写入数据。由于着急往该表抽入数据,因此立马着手解决该表的解锁问题。 无奈此前没有接触过Sybase IQ12.7这套数据库产品,加之当时已属于下班时间无法求助于支持人员支持,因此只有借助搜索引擎强大的
- java异常处理机制
CrazyMizzz
java
java异常关键字有以下几个,分别为 try catch final throw throws
他们的定义分别为
try: Opening exception-handling statement.
catch: Captures the exception.
finally: Runs its code before terminating
- hive 数据插入DML语法汇总
daizj
hiveDML数据插入
Hive的数据插入DML语法汇总1、Loading files into tables语法:1) LOAD DATA [LOCAL] INPATH 'filepath' [OVERWRITE] INTO TABLE tablename [PARTITION (partcol1=val1, partcol2=val2 ...)]解释:1)、上面命令执行环境为hive客户端环境下: hive>l
- 工厂设计模式
dcj3sjt126com
设计模式
使用设计模式是促进最佳实践和良好设计的好办法。设计模式可以提供针对常见的编程问题的灵活的解决方案。 工厂模式
工厂模式(Factory)允许你在代码执行时实例化对象。它之所以被称为工厂模式是因为它负责“生产”对象。工厂方法的参数是你要生成的对象对应的类名称。
Example #1 调用工厂方法(带参数)
<?phpclass Example{
- mysql字符串查找函数
dcj3sjt126com
mysql
FIND_IN_SET(str,strlist)
假如字符串str 在由N 子链组成的字符串列表strlist 中,则返回值的范围在1到 N 之间。一个字符串列表就是一个由一些被‘,’符号分开的自链组成的字符串。如果第一个参数是一个常数字符串,而第二个是type SET列,则 FIND_IN_SET() 函数被优化,使用比特计算。如果str不在strlist 或st
- jvm内存管理
easterfly
jvm
一、JVM堆内存的划分
分为年轻代和年老代。年轻代又分为三部分:一个eden,两个survivor。
工作过程是这样的:e区空间满了后,执行minor gc,存活下来的对象放入s0, 对s0仍会进行minor gc,存活下来的的对象放入s1中,对s1同样执行minor gc,依旧存活的对象就放入年老代中;
年老代满了之后会执行major gc,这个是stop the word模式,执行
- CentOS-6.3安装配置JDK-8
gengzg
centos
JAVA_HOME=/usr/java/jdk1.8.0_45
JRE_HOME=/usr/java/jdk1.8.0_45/jre
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
export JAVA_HOME
- 【转】关于web路径的获取方法
huangyc1210
Web路径
假定你的web application 名称为news,你在浏览器中输入请求路径: http://localhost:8080/news/main/list.jsp 则执行下面向行代码后打印出如下结果: 1、 System.out.println(request.getContextPath()); //可返回站点的根路径。也就是项
- php里获取第一个中文首字母并排序
远去的渡口
数据结构PHP
很久没来更新博客了,还是觉得工作需要多总结的好。今天来更新一个自己认为比较有成就的问题吧。 最近在做储值结算,需求里结算首页需要按门店的首字母A-Z排序。我的数据结构原本是这样的:
Array
(
[0] => Array
(
[sid] => 2885842
[recetcstoredpay] =&g
- java内部类
hm4123660
java内部类匿名内部类成员内部类方法内部类
在Java中,可以将一个类定义在另一个类里面或者一个方法里面,这样的类称为内部类。内部类仍然是一个独立的类,在编译之后内部类会被编译成独立的.class文件,但是前面冠以外部类的类名和$符号。内部类可以间接解决多继承问题,可以使用内部类继承一个类,外部类继承一个类,实现多继承。
&nb
- Caused by: java.lang.IncompatibleClassChangeError: class org.hibernate.cfg.Exten
zhb8015
maven pom.xml关于hibernate的配置和异常信息如下,查了好多资料,问题还是没有解决。只知道是包冲突,就是不知道是哪个包....遇到这个问题的分享下是怎么解决的。。
maven pom:
<dependency>
<groupId>org.hibernate</groupId>
<ar
- Spark 性能相关参数配置详解-任务调度篇
Stark_Summer
sparkcachecpu任务调度yarn
随着Spark的逐渐成熟完善, 越来越多的可配置参数被添加到Spark中来, 本文试图通过阐述这其中部分参数的工作原理和配置思路, 和大家一起探讨一下如何根据实际场合对Spark进行配置优化。
由于篇幅较长,所以在这里分篇组织,如果要看最新完整的网页版内容,可以戳这里:http://spark-config.readthedocs.org/,主要是便
- css3滤镜
wangkeheng
htmlcss
经常看到一些网站的底部有一些灰色的图标,鼠标移入的时候会变亮,开始以为是js操作src或者bg呢,搜索了一下,发现了一个更好的方法:通过css3的滤镜方法。
html代码:
<a href='' class='icon'><img src='utv.jpg' /></a>
css代码:
.icon{-webkit-filter: graysc