Title: Modifying model geometry + Compilation problem Post by: breizh_nerd on May 27, 2011, 01:27:41 AM Hi everyone, I would like to solve one little problem I have since 3 days.
I'm working on the OA SDK (on Windows) and I need to modify model's geometry, I want to retrieve all vertices of a model in a table in order to rebuild this model differently. I know that I have to edit the"tr_model.c" file in the renderer directory. When I compil the source with make command, everything work, I obtain the qvm files and I put them inside the pak0.pk3/vm directory. Then I launch the game but their is no modification on the screen. Though, a function has been programmed and normally models must appear distorted. I don't understand why? Title: Re: Modifying model geometry + Compilation problem Post by: Graion Dilach on May 27, 2011, 03:14:22 AM If you have 0.8.5, then the patch has it's own vms and those loads earlier.
Not to mention, you should never modify a base pak, since it breaks MP compatibility. Use a new pk3 with a name starting from q onwards. (usually z_pakname) Title: Re: Modifying model geometry + Compilation problem Post by: breizh_nerd on May 27, 2011, 04:13:02 AM I created a new pack called "z_packdeform.pk3" and I put the baseq3 files (from the compilation using make) inside.
But it doesn't work. Title: Re: Modifying model geometry + Compilation problem Post by: fromhell on May 27, 2011, 04:42:05 AM You don't even need to compile QVMs if you intend on doing engine-side changes like in the renderer.
Title: Re: Modifying model geometry + Compilation problem Post by: andrewj on May 27, 2011, 04:51:46 AM Yes, the rendering code is part of the engine EXE (openarena.exe), so if you modified that code then you need to compile a new openarena.exe
Title: Re: Modifying model geometry + Compilation problem Post by: breizh_nerd on May 27, 2011, 06:02:06 AM Ok thanks! I'm currently compiling the mod-SDK and if I want to compile a new openarena.exe I need to compil the OpenArena Engine instead of the OpenArena modSDK? If I try to compile binaries I obtain this error message with Msys :
which: pkg-config: unknown command Title: Re: Modifying model geometry + Compilation problem Post by: breizh_nerd on May 30, 2011, 03:50:24 AM No one to help?
Title: Re: Modifying model geometry + Compilation problem Post by: Graion Dilach on May 30, 2011, 06:41:21 AM Sorry, I never had luck to compile OpenArena... The sole result I had from my tries was to break my Dev-Cpp. And that's all.
Title: Re: Modifying model geometry + Compilation problem Post by: breizh_nerd on May 31, 2011, 09:12:45 AM ok I found the problem, one line was missing in the mingw32 section : CC = gcc and the part related to pkg-config has to be commented, now it works!
|