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 / MAKE MESH FROM OBJECT

Author
Message
Doom weaver
20
Years of Service
User Offline
Joined: 5th Jul 2004
Location:
Posted: 6th Aug 2004 17:43
Does MAKE MESH FROM OBJECT create the mesh from all limbs in the object, including ones added using ADD LIMB?
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 6th Aug 2004 18:04
I doubt it, I reckon it might simply use the first mesh/limb it finds - I would be very surprised if it compiled all the limbs into 1 mesh.


Van-B


Muhahahahaha.
walaber
21
Years of Service
User Offline
Joined: 22nd Oct 2003
Location: Los Angeles, CA
Posted: 6th Aug 2004 18:14
actually as far as I know it actually does generate a single mesh of the entire model geometry. I often use that command followed by the make memblock from mesh command, and you end up with a memblock of all the object polygons.

Go Go Gadget DBPRO!

Athlon XP 2400+ || DDR-SDRAM 1GB || Nvidia GeForce 4 Ti4200 AGP 8x 128MB
Doom weaver
20
Years of Service
User Offline
Joined: 5th Jul 2004
Location:
Posted: 6th Aug 2004 20:53
So by turning a whole lot of .x files into one like this and saving it a single .x i could save processing grunt and loading time? (I dunno about loading time, but db processes a single object far better than many. I tested this by comparing a whole lot of 'object plains' to the performance of a much much much high polygonation thing i made in maya, and despite the higher complexity I found that the maya one was much much much faster)
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 6th Aug 2004 21:06
Yes, it works. If you convert an object to a mesh and then back again, all limbs will be combined into the main mesh, and the limb information is dropped.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
Doom weaver
20
Years of Service
User Offline
Joined: 5th Jul 2004
Location:
Posted: 6th Aug 2004 21:08
Hooray!
walaber
21
Years of Service
User Offline
Joined: 22nd Oct 2003
Location: Los Angeles, CA
Posted: 6th Aug 2004 23:54
another undocumented "feature"

Go Go Gadget DBPRO!

Athlon XP 2400+ || DDR-SDRAM 1GB || Nvidia GeForce 4 Ti4200 AGP 8x 128MB
tiresius
22
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 7th Aug 2004 00:12
Doomweaver may be my pen-name because I had the EXACT same question. I actually proved with some code that MAKE MESH FROM OBJECT saves the limbs.

I've done this:
make two boxes next to each other
set one box as the limb of another
texture object and limb (using texture object and texture limb commands)
did MAKE MESH FROM OBJECT
did SAVE MESH

Then later I LOAD OBJECT from the .x file, but it is missing textures I used in previous "texture object" and "texture limb" commands. Both boxes are showing, but showing as black.

Am I missing something or is saving meshes not saving the textures on the objects? If it doesn't save textures is there a workaround for this? I can supply my code tonight if need be. Thanks for any help!
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 7th Aug 2004 00:44
I definately doubt it'd let you do anything but texture the single mesh it makes with 1 texture. When several texture files are used, things can get very confusing for DBPro, and saving a mesh probably does exactly that - saves out every poly in the object as a single mesh. It would have the UV data, so perhaps a workaround would be to use a single high res texture file for the whole level. 1024x1024 is not unthinkable (you can get very creative and reuse textures all over the place, the world is your lobster), in fact that's the texture size on a lot of matrix tile sets.


Van-B


Muhahahahaha.
walaber
21
Years of Service
User Offline
Joined: 22nd Oct 2003
Location: Los Angeles, CA
Posted: 7th Aug 2004 07:06
meshes have no texture data, so by going object->mesh->object, you lose all textures. like VanB said, the UV data is retained, but the actual textures are not.

Go Go Gadget DBPRO!

Athlon XP 2400+ || DDR-SDRAM 1GB || Nvidia GeForce 4 Ti4200 AGP 8x 128MB
tiresius
22
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 7th Aug 2004 07:43
VanB that is an excellent idea I had no idea the UV data was stored as well. Kinda weird (in my mind) that UV is there but texture info is not... but hey a workaround is a workaround. And this is especially doable since my level will have simple textures and nothing too crazy.

Thanks VanB you rule!
Terabyte
22
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 7th Aug 2004 13:42
niar.. i just started a topic on this earlier on

Next on ITV. I'm a DBPRO Bug forum moderator get me out of here.
Terabyte - The only user to have a newton cradle hoisted above the F5 button when making a game.

Login to post a reply

Server time is: 2025-06-02 13:48:18
Your offset time is: 2025-06-02 13:48:18