Vertex In Node trouble

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Error!st
Posts: 12
Joined: Sun Nov 25, 2007 2:09 pm
Contact:

Vertex In Node trouble

Post by Error!st »

Help,please! I need to add a vertex in some coords to some entity. HOW CAN I DO THIS??? :?:
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Could you be a little more vague? I could almost guess at what you mean.

See IMeshBuffer (which you can get from IMesh, which you can get from IAnimatedMesh) for an interface that will let you add vertices to an existing mesh.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Error!st
Posts: 12
Joined: Sun Nov 25, 2007 2:09 pm
Contact:

Post by Error!st »

I have an Entity. When it collides with another one, I must add a hole (vertex) at point, they've collided. How can I do that?
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Post by christianclavet »

Humm... I'll probably do other versions of the mesh with the damage. That is the easiest way. You swap the model with one of the version of it that is damaged.

Doing this in full programming would mean using 3D Booleans algorythm to that it create a hole in your mesh. This is pretty difficult to do, and also will take some computing power to process.
FuzzYspo0N
Posts: 914
Joined: Fri Aug 03, 2007 12:43 pm
Location: South Africa
Contact:

Post by FuzzYspo0N »

Mesh deformation, look it up... just move certain vertices around? unless its a hole like an O in the wall, that will be harder depending on th vertices of the existing mesh. Look at decals with normal mapping and per pixel lighting can make a real cool looking hole (imagine fear) ...

Hope its helpful
Error!st
Posts: 12
Joined: Sun Nov 25, 2007 2:09 pm
Contact:

Post by Error!st »

I'm using Irrlicht and Tokamak in MSVisualC++. May be somebody knows, how to make a hole in some node? Or how to sculp (there is a cube and a sphere which is inside cube. During sculping there will be a sperical hole in the cube)?
dlangdev
Posts: 1324
Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:

Post by dlangdev »

make a mesh that has already a hole in it, then add a patch of mesh to cover it up. so you have two meshes that looks like one.

i know it sounds silly, but it might work in your case.
Image
Error!st
Posts: 12
Joined: Sun Nov 25, 2007 2:09 pm
Contact:

Post by Error!st »

Oh, God! Can U even image, how many meshes will I draw?! Scene, for ex., consists from {!many!}
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

I don't know of any implementation (freeware or commercial) for realtime mesh boolean operations because it is a hard problem. Just mangling the geometry is difficult enough, but texturing adds another level of complexity. In your example, what texture do you apply to the inside of the cube that you've just sliced into?

I'm sorry that there's no easy answer to your hard problem.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Error!st
Posts: 12
Joined: Sun Nov 25, 2007 2:09 pm
Contact:

Post by Error!st »

And how to draw smthng in the point of collision of two objects? Here I have a wall and a bullet. When they are collided, I must draw "hole" on the wall. How can I do that?
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Well, you could search for "bullet AND hole" and read the previous threads discussing this issue.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply