最近找到了一个Opengl 的代理DLL工具GLIntercept0.5。0 a. R# t* M7 l L. _
是开放源代码的,也许可以在真神秘岛等游戏的汉化中派上用处。
9 D+ ~ w# R$ N8 V
% S0 E# Y6 v- j3 F& }/ o
! N7 b# A1 X2 C- A' f下面这篇文章是教你如何在游戏里抓材质的。
) }; X, U- p, b- X原文http://oreilly.com/pub/h/5235
! U8 X ~, t3 x# ?9 i. {# K; H O
Snagging Textures with GLIntercept ( b* e( Q# y, Q* E ^, V
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.: {/ c3 E; k; U+ R0 }7 P
" _. W7 [* T/ L0 }$ G
Contributed by: andrewburton
# I" k% a/ [, `2 Z1 M: l[01/26/06 | Discuss (35) | Link to this hack] - S, i' A1 w6 _& H* o
% }. y' Y s9 v+ ]% }
7 B( J+ o" u! b( B$ L- QIf 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.
/ m/ q2 B% h; w6 V! F g6 a' W! j' Z
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. 7 P& V0 H( i- Z, a+ e% z- v! P
- ^2 U5 G7 M2 d3 H
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.
) }* F/ _$ p" v5 _ s( `" n `4 o3 h# Q+ L* O% O
Next, 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.
+ Z- G; b% S6 G% l( J
/ H! e5 ^) T- kNOTE: 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.
; E: \* k( b( Q
P; M) k9 \& S" \6 z7 wThere 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.
# l# y3 A3 m% `5 F7 m( ^" P. D
# \" A' I. \+ ~2 p: a: V9 dNOTE: 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. |