Game Development Community

Create model programmicaly

by Vladimir aka Bobik · in Technical Issues · 07/16/2010 (10:54 am) · 2 replies

Hi All!

Did anyone create a 3d model in a runtime? By 3d points, just like cube in Direct3D tutorials.
Can I create 3d model in a runtime using Torque script or should I modify engine source to do so?

Thanks.

#1
07/18/2010 (2:27 pm)
Even if you were able to, I highly suggest you don't use TorqueScript to do something like that. It would be very VERY resource intensive if you do it through scripting.

May I ask what this would be for?
#2
07/19/2010 (9:56 am)
Sure.

We're making fully sandbox MMO environment in terms of terrain "sandboxiness". That means not only lowering or raising terrain levels (nothing hard in these parts and implemented already in some MMO's), but also a making possible to burrow your own tunels in fully 3D environment. And not only tunnels, but also an ability to make them wider, deeper, taller resulting in undeground halls and rooms and whatever. Mechanism of that terraforming already designed in basic algorithms and DB structure, so we only lack client-side implementation, so we can actually see all those tunnels.

So our first idea was to dynamically in a runtime generate tunnels meshes with collision, but it seems it is not really possible, or will be resource consuming anyway, so we're going on plan B. Can describe it later if anyone cares.