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.

Newcomers DBPro Corner / Moving Vertices in 3D

Author
Message
mike pauza
21
Years of Service
User Offline
Joined: 17th Jun 2003
Location:
Posted: 17th Jun 2003 08:19 Edited at: 17th Jun 2003 08:21
Hi guys.

I just started using DBP to write a realtime soft body dynamics simulator for a 3D program called LightWave. The numerical physics stuff is no problem...hehe...but I've been using the line command in just a 2D screen mode to do animation, and it's WAY too slow.

Any simple way I can move a cubes vertices around? If anybody's interested I can send you an exe...email me at sharonpauza@aol.com.

Thanks for any help you can spare. -Mike Pauza :-s

indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 17th Jun 2003 08:26
the name is already taken my friend, You might some confusion later on with another industrial package already named "LightWave"

This example was posted a short while ago using memblocks.
I forget the original coders name.



mike pauza
21
Years of Service
User Offline
Joined: 17th Jun 2003
Location:
Posted: 17th Jun 2003 08:40
Sorry, I don't think I was clear.


I own and use one of the leading 3D animation packages...LightWave3D - developed by NewTek...check it out at www.newtek.com. One of the weaknesses of the program is physics based animation...I've been talking with thier lead programmer and some fellow users and I just started writting some demos using DarkBasicPro to show them my ideas...many of which are quite good & are getting people that use LightWave fairly excited.

For the last week I have been writing code to simulate a little cube of jello and display the simulation using 2D commands (like CLS and LINE), but just drawing them on the screen takes tons more time than calculating the vertice positions...i.e. forget about realtime for anything more complicated than this. I'm thinking that displaying a cube in 3D is simple and lightning fast...I just have no clue how to get at the vertice positions to move them around.

mike pauza
21
Years of Service
User Offline
Joined: 17th Jun 2003
Location:
Posted: 17th Jun 2003 08:45
indi:

Oh, you sent me some code! Thanks, I'll give it a shot.

-Mike

mike pauza
21
Years of Service
User Offline
Joined: 17th Jun 2003
Location:
Posted: 17th Jun 2003 09:53
Thanks for the code...I didn't figure it out from that but:

Manually creating a triangle with a given set of coordinates, then deleting it and creating it again with the new set of coordinates will work just fine...I think you have to scale the sucker way up in size though cause it doesnt seem to like fractional vertice positions! Works well, and seems to be scads faster!!!

Thanks. -Mike

Login to post a reply

Server time is: 2024-11-24 18:59:17
Your offset time is: 2024-11-24 18:59:17