scaling .md3 models

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

scaling .md3 models

Postby babaoriley1981 » Sun Aug 13, 2006 3:44 am

Hi,

I've loaded an .md3 model in Darkplaces (weapon model), and it appears huge. I've gone through the nexuiz quake c code and noticed there is an added ".scale" property. Can anyone tell me how I'd implement this into my custom quake c source?

thanks!
babaoriley1981
Newbie
 
Posts: 3
Joined: Thu Jul 27, 2006 10:34 pm

Postby Willis » Sun Aug 13, 2006 4:08 am

paste
Code: Select all
.float      scale;          // Rendering scale of the object (0 is forced to 1); DP_ENT_SCALE extension

in defs.qc somewhere near (slightly after) where you ammo types are defined. DarkPlaces should handle the rest, just model_entity.scale = 0.5; or whatever scale you need.
--Willis
Willis
Site Admin
 
Posts: 168
Joined: Tue Feb 28, 2006 7:00 pm
Location: Wisconsin, USA

Postby babaoriley1981 » Sun Aug 13, 2006 9:55 pm

Thanks very much for the help...

I am getting a compiler warning from frikqcc..

"system defs do not match internal crcs".

I added the scale variable in defs.qc right under the "ammo_shells, ammo_nails, ammo_rockets, ammo_cells;" line. is this incorrect?
babaoriley1981
Newbie
 
Posts: 3
Joined: Thu Jul 27, 2006 10:34 pm

Postby esteel » Mon Aug 14, 2006 9:40 am

I think you need fteqcc as Nexuiz uses a few of its features..
http://fteqw.com/
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby Tei » Mon Aug 14, 2006 3:58 pm

babaoriley1981 wrote:Thanks very much for the help...

I am getting a compiler warning from frikqcc..

"system defs do not match internal crcs".

I added the scale variable in defs.qc right under the "ammo_shells, ammo_nails, ammo_rockets, ammo_cells;" line. is this incorrect?


You sould read the Inside3d forums. Is full of helpfull QuakeC coders, and this very problem has been solved recently. Maybe sould be added to some sort of FAQ (Frenquently Asqued Questions).

To quote Sajt:
Sajt wrote:yep, can't have anything before the special stuff at the beginning of defs

Specifically you can't do anything you want until after 'void end_sys_globals;' and 'void end_sys_fields;'



And, .. here you go:
www.inside3d.com <-- for QuakeC users :D

...So move your stuff after all the end_sys stuff :D
Tei
Member
 
Posts: 31
Joined: Thu Aug 10, 2006 5:45 pm


Return to Nexuiz - Editing

Who is online

Users browsing this forum: No registered users and 1 guest

cron