Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Replace 3-D Model Seamlessly

Author
Message
Bulleyes
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 18th Aug 2003 18:11
Ok, here is the scenario...

I had a 3-D model in my gamem which we refer it as my main character. At some point in the game, the character will take damage and I will replace the 3-D model with another one to provide user feedback about the character current condition.

My question is... What is the most efficient way to replace a 3-D model with another one seamlessly. I thought of several way:

1. When I need to replace the model, I call LOAD OBJECT to load the damaged model, set its position, rotation to match the current one, and delete it.

Will this cause slow down during LOAD OBJECT is my 3-D model is kinda complicated, say around 8000 polys.


2. Preload all the 3-D models (both good and damaged model) before the game starts, and hide the damaged model initially. When I need to replace the model, I just show the damaged model, set its position, rotation to match the current one, and delete it.

Will the hidden model cause unnecessary overhead (asides memory consumption) or framerate hit?


3. Preload the good model as normal DBpro object using LOAD OBJECT, but load the damaged one as DBpro Mesh using LOAD MESH (mesh is not visible) before the game start. When I need to replace the model, I call MAKE OBJECT and specified the preloaded mesh, set the position, rotation to match the current one, and delete it.

I found that this is the most ideal way. Unfortunately, I don't know whether if it is a bug in DBpro, somehow MAKE OBJECT will create a DBpro object from the specified mesh with all the limbs merged together into a single mesh. For example, if I had several limbs in my .X model, LOAD MESH will somehow collapses all the limbs into a single mesh. This is not something that I want as I need those limbs for animations.


I would appreciate if any experts out there can suggest some brilliant idea to solve this problem.

Thanks in advance!
Bad Nose Entertainment - Where games are forged from the flames of talent and passion.

http://www.badnose.com/
waffle
23
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 18th Aug 2003 18:53
if the models are sorta the same.... humanoid? or Tank,
then try just retexturing with the damaged texture. This could
be burn marks and things....

If, you wish to have "parts" fall off;
Use a particle effect at impact and try to Hide Limb.
Usefull if tank armor is blown off on a big impact, or
a wheel comes off a car.

If, you wish to show denting and crumpling (car crash stuff),
you might try replacing the limb or having the car
be a collection of attached (glued) objects and then just
delete and glue on different objects as the status changes.
Beta1
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location:
Posted: 18th Aug 2003 20:40
you could even load all the different models as limbs to an invisible root object then hide all but the one you want.

Would be very fast to switch between them

Login to post a reply

Server time is: 2026-07-25 03:41:56
Your offset time is: 2026-07-25 03:41:56