View Single Post
Old 11-04-2012, 04:33 AM   #1
Xarwarz
Forumite
 
Xarwarz's Avatar
 
Join Date: Sep 2005
Posts: 623
Veteran Modder 
Exclamation Glintercept for kotor and tsl

This could be sticked as a modders resource if the mods dont mind thanks.

I came across a program called glintercept for open gl applications. I decided to try it on kotor and tsl. Interesting enough it has a FREE CAM mode to fly around the levels also a shader editor. The shader editor from messing around with it seem to change the color and lighting of certain objects. Theres also a wire frame mode and the ability to dump textures shaders and frame buffers. I just sharing this in hopes that maybe one day a REAL-TIME LEVEL EDITOR can be made for both games. Anyhow check it out for yourself...PICTURES ON BOTTOM

Link.....http://code.google.com/p/glintercept/

About GLintercept.

GLIntercept is a OpenGL function call interceptor for Windows that will intercept and log all OpenGL calls.

Basic usage
Select the version of GLIntercept right for the application being debugged (x86 or x64) - Note you select the version of GLIntercept based on if the application is x86 or x64 (64bit) - not if the operating system is 64 bit.

Then after installation, simply copy the opengl32.dll and a gliConfig.ini file from the install directory to the executable folder of the application you want to intercept OpenGL calls.

Then edit the gliConfig.ini file, enable the options required and then run the application.

How it works
GLIntercept works by overriding the call to wglGetProcAddress, wrapping the real function pointer in some assembly and then returning it to the application being debugged.

This means that when new OpenGL extensions/versions are released, GLIntercept will automatically log the new functions.

However, while all function names are automatically logged, function parameters need to be specified. These are supplied via text files in a "C" style syntax that can be updated as needed.

eg. void glClearColor( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha );

History
GLIntercept has existed since 2003 and was mainly designed as an OpenGL 1.0-2.1 debugger. So while basic function logging should work on all OpenGL versions, the more advanced features listed below may or may not work in OpenGL 3.0+. (especially when using a core OpenGL profile)

Features
Main GLIntercept features:

Save all OpenGL function calls to text or XML format with the option to log individual frames.
Activate and log ARB_debug_output messages to the log
Run time shader edit. Display shader usage and edit the shaders at run time. Supports ARB VP/FP/GLSL and NV VP/FP......To enable Shader Edit ctrl+shft+s
Free camera......ctrl+shft+c Fly around the geometry sent to the graphics card and enable/disable wireframe/backface-culling/view frustum render.........Wireframe my settings ctrl+shft+z
Save and track textures. (1D,2D,3D,NVRect and p-buffer bound textures are supported.) Saving can be to TGA,PNG and JPG formats......Dump frames,textures,shaders ctrl+shft+f
Save and track shaders/programs.
Save and track display lists.
Saving of the OpenGL frame buffer (color/depth/stencil) pre and post render calls. The ability to save the "diff" of pre and post images is also available.
Track error states (logging them to the debugger output) and breaking on errors.
Basic thread error checking.
Function timer log.
Resource leak tracking for contexts, display lists, shaders and textures.
OpenGL extension/version override. Add/remove/replace the OpenGL extension and version strings. (Test lower end rendering paths without changing cards)
OpenGL function stats - how many times each function is called.

MY INI SETTINGS.....

GLICONFIG.ini

Show spoiler


FREECAM.ini settings

Show spoiler





Show spoiler


Show spoiler


Show spoiler


Show spoiler


---------------------------------------------------------------

UPDATE 11-6-12

Heres a tool to extract levels out of kotor and TSL. If you need to covert the models you could use a converter like 3d object converter. Not shure if these would work in game after edit and conversion but its worth a try.

NOTE:This is slightly different from glintercept.....


This is the OpenGLXtractor Windows Tool!

With this tool, it is possible to Capture 3D Data from an OpenGL Application.

Like 3D Mesh, Textures,Shaders,UV's,....and more.


http://members.chello.at/alexan/


PICZ

Show spoiler


Show spoiler


Show spoiler


USE MY MOD IN ANY MOD
TSL-O.T.E.--MODELS ON MOD DB......
Show spoiler

OTHER
Show spoiler

Last edited by Xarwarz; 11-06-2012 at 01:19 PM. Reason: Add pictures
Xarwarz is offline   you may: quote & reply,