Dynamic model and unit loading

Dynamic model and unit loading

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Dynamic model and unit loading

Post by SpliFF »

Not sure if this is possible now or a feature request:

Is there a way to reload (as in re-parse from disk) a model while the engine is running or dynamically load and display one from lua?

If I understand correctly the engine already defers model loading until the unit is first built but then caches it after that. So I guess what I'm asking is can that cache be reset somehow?

The purpose is for testing of models and model parser without reloading Spring. In the future maybe I might use it for 3D UI elements or effects.

If this feature doesn't exist are there any foreseeable complications with adding it, other than the model loaders being synced code? If not it's possibly something I could attempt while building the Assimp loader.

In a related question, is it possible to reload unitdefs ingame?
Super Mario
Posts: 823
Joined: 21 Oct 2008, 02:54

Re: Dynamic model and unit loading

Post by Super Mario »

The editor that I suggested somewhat matches your description of re-loading a model during game. Then someone tell me for it to happen the classes have to be modify. (I not sure that he actually says that. Correct me if I'm wrong.)
Last edited by Super Mario on 13 Sep 2010, 00:12, edited 1 time in total.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Dynamic model and unit loading

Post by smoth »

SpliFF wrote:feature request
wrong forum
User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Re: Dynamic model and unit loading

Post by SpliFF »

No, I said it *might* be a feature request. It depends whether the engine already does it which if you look again is the actual question being asked.

Don't quote two words out of context and then act like you're the sheriff taking out the trash. Misquoting people just demonstrates poor reading and trolling skills.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Dynamic model and unit loading

Post by smoth »

SpliFF wrote:Misquoting people just demonstrates poor reading and trolling skills.
Yes I am lacking in intelligence(poor reading skills) or a troll. You have me and my entire life figured out, please by all means tell me how many hairs on my nuttsack.

Firstly, this post either belongs in modding or lua most likely lua because it has to do with whether or not LUA is capable. However, in your post you note that the engine preloads which tells me you understand such a feature does not exist.

To render a different model once the game starts you would have to use lua. Even then it would be an issue because model animations, last I read about them are actually synced. I don't want to imagine the nightmare of that.
User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Re: Dynamic model and unit loading

Post by SpliFF »

I don't know if you're being sarcastic or not. Your trolling is legendary. Your nutsack less so.

Anyway this might be about lua or it might be about /cheat commands or low-level changes. I won't know until I either go through the code again or get an answer from somebody more qualified. Stop derailling my thread, this is a legitimate question about engine internals.

This is not a modding question smoth, I'm implementing a model parser in C++, therefore it's an engine development topic. I want to be able to trigger the parser with a console command, script or keystroke so I don't have to jump in and out of Spring constantly when modifying test models and textures outside the engine. Knowing there is a cache, and knowing the method and side-effects of bypassing it are two completely different things.

Later it may become a mod/lua issue but that's irrelevant. The people most qualified to understand what I'm asking are this forum, not Lua Scripting. Also, you're clearly not one of the "qualified" people I'm talking about because you don't seem to grasp the question being asked. So perhaps we can go back to the actual topic now please.

In short, get the fuck out of my thread.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Dynamic model and unit loading

Post by smoth »

SpliFF wrote:Your trolling is legendary.
News to me.
SpliFF wrote:In short, get the fuck out of my thread.
I cannot continue the discussion if I get the fuck out.

*edits* I should also note your question was vague and for all I knew you were asking about doing it in a mod or lua. you failed to specify.
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Re: Dynamic model and unit loading

Post by Neddie »

Actually, that isn't a misquotation, it is simply focus upon an element rather than the entirety of the statement, which is normal behaviour in discussion. Additionally, it deals implicitly with the greater topic.

Neither of you are in the "right" and, in consequence, I'm telling both of you to back down. This is not about trolling, nutsacks, qualifications or - as could have been clarified in a less disruptive manner - lua.

I believe, though I am not abreast of the source, that while both of these functions are technically possible, neither are implemented, whether engine-side or using lua. This discussion thus could be a feature request or a script request. Once a few more qualified coders contribute to the thread - though of course, both of you are such - the situation will be further clarified.
Post Reply

Return to “Engine”