Saving models data in the entities lump

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
lukesmith
Posts: 21
Joined: Sat Aug 20, 2011 8:14 pm

Saving models data in the entities lump

Post by lukesmith »

Hi,

I am adding models to a map using misc_model. When I view them in the entity inspector I get info like origin, filename etc.

I am wondering if its possible to get this info stored in the entities lump of the bsp file and for the models geometry not to be stored in the bsp file?
I am doing this for a custom renderer which is why I only want to get the position and filename etc of the models so I can load them into the engine separately.


if this isnt possible, is there any way to tell the compiler to ignore any models in the map so that I can use misc_models to position the objects and then create a custom entity to hold the actual data?

thanks,
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: Saving models data in the entities lump

Post by obsidian »

As far as I know, Q3Map2 will always compile the model into the BSP, it will not accept them externally. If you intend to change this, you'll have a bit of programming changes to make.

The alternative is that most func_ entities (func_static, for example) will accept a model2 key so that you can assign an external .md3 file (no other model formats) to the entity. Downsides are that the model won't appear in GtkRadiant so positioning it may be tricky. I suggest positioning the misc_model, then copying the values.

See here for details:
http://robotrenegade.com/articles/attac ... ities.html
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
User avatar
Theftbot
Posts: 483
Joined: Thu Oct 08, 2009 4:03 am

Re: Saving models data in the entities lump

Post by Theftbot »

Can this be used to seperate 2 different meshes using alpha mod brushes for terrain that overlap.
lukesmith
Posts: 21
Joined: Sat Aug 20, 2011 8:14 pm

Re: Saving models data in the entities lump

Post by lukesmith »

Ok thanks for the info. Yeah its prob best to do as you say and just copy the values over.
Post Reply