Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
real-time editing Polygons?
Topic Started: Jun 26 2006, 05:25 AM (252 Views)
Xeniczone
Unregistered

I have a model that I would like to load into my game.

Off course this model consist of polygons. I have a formula to mess with the polygons as the game goes on. Is this possible to upload a model and then add a code for the polygons of the model?

like if I wanted to do this with coding I would
Code:
 
var xe, ye, ze
xe = 0
etc...
addpolygon (xe+1, ye+1, ze+24)
etc...
//polygon editing code
if blah blah blah
  xe =+ 1;


Then it will move the polygon until the if statement if false.


but back to my question is this possible with a model?
Quote Post Goto Top
 
Dr. Best
Member Avatar
Administrator
[ *  *  *  *  *  * ]
In the current version it isn't possible. You can only change the transformation of the model using x, y, z, rotx, roty, rotz, scalx, scaly, scalz. Or you could use an animation using LoadAnimated3DS() or AddFrame().
In U3D 2.0 model manipulation will be possible. Then the example code you posted will be realizable.
Offline Profile Quote Post Goto Top
 
Xeniczone
Unregistered

Quote:
 
In the current version it isn't possible. You can only change the transformation of the model using x, y, z, rotx, roty, rotz, scalx, scaly, scalz. Or you could use an animation using LoadAnimated3DS() or AddFrame().
In U3D 2.0 model manipulation will be possible. Then the example code you posted will be realizable.


DANG, You really are the best.


Can I add a new question.


I have a level that has over passes. Like a room it has a open area then it comes inside with a ceiling, but it treats the wall of the ceiling as a wall and will not let me enter the room.

Posted Image

What I do is I make the object. I make a sprite that is big enough so that the full thing has collisions for hills and stuff. Then I load the sprite. Then in the collision event I put Model Collision.
Quote Post Goto Top
 
Dr. Best
Member Avatar
Administrator
[ *  *  *  *  *  * ]
collision_model() works only for terrain models correctly. Have a look at the third person example to find out about another method of collision detection that's better in this case.
Offline Profile Quote Post Goto Top
 
Xeniczone
Unregistered

That is a gamemaker 5.3 code I tried to use it in GM6 it just gave me a bunch of errors. The first was the SetSound thing. I fixed that. Then it keeped saying something about 24bit isn't supported.
Quote Post Goto Top
 
Dr. Best
Member Avatar
Administrator
[ *  *  *  *  *  * ]
Just have a look at the character object and at the added scripts and copy the stuff you need to your gm6 project.
Offline Profile Quote Post Goto Top
 
Xeniczone
Unregistered

O, I see the collision codes. Thx.
Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply