Profile

Cover photo
Gene Chen
19 followers|1,680 views
AboutPostsPhotosVideos

Stream

Gene Chen

Shared publicly  - 
1
Add a comment...

Gene Chen

Shared publicly  - 
 
the new ipad
1
Zhitong He's profile photo
 
晒!
Add a comment...

Gene Chen

Shared publicly  - 
 
My Simple Shader Editor for Learning
2
Add a comment...

Gene Chen

Shared publicly  - 
 
Cool!!!
 
Пробую Sublime Text 2 в паре с #Unity3D.
По ссылке решение для подсветки ключевых слов и синтаксиса в целом для C#.
Пока автокомплит не нашёл как включить. Похоже придётся дописывать.
Ещё надо указать редактор в настройках: Edit->Preferences...->External Tools->External Script Editor, и выбираем sublime.
http://www.jacobpennock.com/Blog/?p=490
 ·  Translate
1
Add a comment...

Gene Chen

Shared publicly  - 
 
My 2D render engine based on flash Stage3D. Simply but useful.
1
Add a comment...

Gene Chen

Shared publicly  - 
1
Add a comment...
Have him in circles
19 people
丁振's profile photo
Veronica Marshall's profile photo
Rafael Wawer's profile photo
sophia yang's profile photo
胡莹's profile photo

Gene Chen

Shared publicly  - 
1
Add a comment...

Gene Chen

Shared publicly  - 
 
how about joyegame's Flash3D MMORPG.what a cool done,can you image it is a web game~ look at video here -> http://www.265g.com/newgame/xydt/182860.html
2
1
Sebastian Schmidt's profile photoGene Chen's profile photo
5 comments
 
play here     http://fs.kunlun.com/
Add a comment...

Gene Chen

Shared publicly  - 
 
Si Robertson originally shared:
 
Regular expressions are slow? No, not always :)

I need to check if a #Stage3D rendering context has been lost/disposed during each frame so I've been testing the fastest way to do that. There are a few options available but they all involve a driverInfo string search.

// option A
info.toLowerCase().indexOf( "disposed" ) >= 0

// optionB
info.toLowerCase().search( "disposed" ) >= 0

// optionC
const DISPOSED:RegExp = /disposed/i
info.search( DISPOSED ) >= 0

I executed those a few times within a loop to get their times and these are the normalised results ...

A = 0.2790697674418605
B = 1.0
C = 0.186046511627907

The regular expression search is clearly the fastest.
1
Gene Chen's profile photo
 
i tested them by 10,000 times each. the result is 9, 39, 32 ms
Add a comment...

Gene Chen

Shared publicly  - 
 
wonderful!!!!!!
Jean-Marc Le Roux originally shared:
 
A new sneak peak at Minko's ShaderLab: the "share" feature will make it possible to embed shaders on any web page "à la Youtube". Enjoy!
1
Add a comment...

Gene Chen

Shared publicly  - 
 
i’m troubled with the matter about quad batching. i batched 30 quads(120 vc) within one batch, and the quad textures is paint a humanbody that some parts of the pic are 0 alpha.
Before calling draw() this batch, the quads vertex index has been sorted by z axis from far to near. OK, with context3d.setBlendFactors(SOURCE_ALPHA, ONE_MINUS_SOURCE_ALPHA) and context3d,setDepthTest(true, LESS_EQUAL), there shows the rigth depth and alpha blend effect.
Then,after the batch drawed , here i wanna go on to draw a quad( or more) which is with a z-axis value among the z-axis values which R of just mentioned quads batch. i aim to draw a new quad locates among the quads last batched.
The problem is showing, the alpha blend is wrong! :( it didnot approach to my aim. the batched quads blend the background color but not the zero alpha wanted, with z-axis smaller than the z of the one quad .(if i didn’t describe it clearly, i think a mail with pics can do it)
Thus, i wonder that if the quads batch is really easy-using in a RPG game which contains a batch of same-looking monsters and several hero roles running across the batched monsters….
1
Add a comment...
People
Have him in circles
19 people
丁振's profile photo
Veronica Marshall's profile photo
Rafael Wawer's profile photo
sophia yang's profile photo
胡莹's profile photo
Links
Other profiles
Contributor to
Basic Information
Gender
Male