最近找到了一个Opengl 的代理DLL工具GLIntercept0.5。* e6 t: y$ @) P* C* E4 G2 c
是开放源代码的,也许可以在真神秘岛等游戏的汉化中派上用处。; b9 V; S8 _$ x! W
7 Z, f) h/ }8 ]( d$ |9 z: L' ?2 N* I2 p/ M! }4 {# b
下面这篇文章是教你如何在游戏里抓材质的。) L2 G4 R) ]; W( H9 u
原文http://oreilly.com/pub/h/5235
" K& {7 I) y+ Z$ d3 U- Y2 ~
2 ?- k& P( g# s) R9 U6 _( R O9 RSnagging Textures with GLIntercept + z2 |# R( _7 E2 ]; E
If you want to grab textures out of Second Life to see how people have made those neat trees, the stunning clothes, or maybe an old texture you lost, GLIntercept is the tool for the job.
/ g5 j6 | d+ R$ ~5 ?" p
h( o! c0 R0 i) p+ VContributed by: andrewburton * ^" o5 g+ O+ i$ Y* l$ T
[01/26/06 | Discuss (35) | Link to this hack]
1 s% z7 A5 I7 x+ k V. N/ @3 ^+ {+ z! B/ L
! l, ?) G" i# sIf you want to grab textures out of Second Life to see how people have made those neat trees, the stunning clothes, or maybe an old texture you lost, GLIntercept is the tool for the job. GLIntercept is a program that grabs OpenGL information directly from memory. It does a lot more than just capturing textures; with it you can extract prim information, avatars, and textures. This information can be exported into other 3D programs, such as Maya. This hack, however, is just about the images.
. H( l- z/ J5 u5 g5 n1 l' K5 ]% V" @6 M# H' ? ]3 B
To get started, you'll first need to download GLIntercept (http://glintercept.nutty.org/download.html) from its website. They have several versions, but if you're mostly interested in grabbing textures, just grab the latest Binary for Windows. ) A/ }. q0 |' V/ k
. }; }4 p( W1 i4 [/ G
Once it's downloaded, run the installation program. A standard installation will put the files on your C: drive, in the C:\Program Files\GLIntercept0_5 directory -- "0_5" will likely vary depending on the version you download. There is no executable GLIntercept program, so don't worry because you can't find an *.exe file.
% R2 A+ g+ \- z5 G% {# a
3 w( q: E1 e* w4 q7 i/ g* k1 aNext, copy the files opengl32.dll and gliConfig.ini from the GLIntercept directory into your Second Life directory (for example: C:\Program Files\SecondLife). Once those files are copied, run the SecondLife.exe program; use it for a few minutes, then log out. 8 l0 y* N3 y( Z: N" l4 o& [
) ~0 z' t- C- j3 fNOTE: Second Life will operate a good bit slower with GLIntercept. You may want to log in a head of time, get where you want to grab textures, and then log out.
! a, B, d9 J" ~# w4 V7 @ r/ `+ M; p: I2 j1 e% X& Y& ]
There will be two new files and three new folders in your Second Life Directory. The folder named Images is what you want. Within Images will be several hundred, maybe several thousand, JPG and PNG files. These are all the textures that your Second Life rendered on screen while you were logged in. + w+ M. p$ {) g! {4 P
; }5 u% D5 {5 ONOTE: Second Life images appear to load in stages. To get a full texture, you need to wait until a prim and its texture(s) have fully loaded before moving off or logging out. Otherwise all you may get of a 512x512 texture is a smaller, 128x128 version. |