More than one triangle selector
Re: More than one triangle selector
Not sure then. This tends to be a problem with normals going against the usual floor direction in my experience, but maybe there can be other reasons.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
The_Glitch
- Competition winner
- Posts: 523
- Joined: Tue Jan 15, 2013 6:36 pm
Re: More than one triangle selector
yeah you might be right, I'll try the sliding value and report back I'll post a pic. Trying to think of something that could help this issue.
-
The_Glitch
- Competition winner
- Posts: 523
- Joined: Tue Jan 15, 2013 6:36 pm
Re: More than one triangle selector
http://youtu.be/JrdHIz5n-RQ
CuteAlien......^^^
Thought I'd post also that I set slide value to 1.5f.
CuteAlien......^^^
Thought I'd post also that I set slide value to 1.5f.
Re: More than one triangle selector
Hi The_Glitch,
I don't know why, but your scene is vagely rememeniscent of a game I use to play on the zx spectrum, called Driller.
I have been reading this forum for a while and I keep seeing this triangle selecter. Can anyone explain what it is, and what it does?
I don't know why, but your scene is vagely rememeniscent of a game I use to play on the zx spectrum, called Driller.
I have been reading this forum for a while and I keep seeing this triangle selecter. Can anyone explain what it is, and what it does?
-
The_Glitch
- Competition winner
- Posts: 523
- Joined: Tue Jan 15, 2013 6:36 pm
Re: More than one triangle selector
It's a simple way for Irrlicht to have basic collision detection in your Irrlicht application without using a library like bullet physics, or PhysX.
Of course it has it's drawbacks as you can see in my video.
Of course it has it's drawbacks as you can see in my video.
Re: More than one triangle selector
@The_Glitch: Yeah, doesn't really seem to make sense in this case. Maybe polygon border - I hope changing slide values helps. I don't have an idea otherwise without debugging (and not easy to debug for me as I'm not that familiar with the collision code in Irrlicht as I'm always using my own code for this kind of stuff...).
@Asimov: It's about ITriangleSelector: http://irrlicht.sourceforge.net/docu/cl ... ector.html
As 3d artist you probably know that games use only triangles for rendering. But there is one problem when trying to use those triangles for other stuff like collisions - the triangles do not exist on the CPU. Instead index and vertex arrays are sent to the graphic card and only the GPU put's those together as triangles. So when you need triangles on the CPU you have to create them explicitly. That's what ITriangleSelector's are for - they create core::triangle3df arrays on the CPU from the geometry data. And those can be used for collision code. The_Glitch uses ISceneNodeAnimatorCollisionResponse for automatic collisions which collides a sphere against static triangle geometry - something used a lot in first person games (spheres approximate humans and allow for climbing minor steps).
@Asimov: It's about ITriangleSelector: http://irrlicht.sourceforge.net/docu/cl ... ector.html
As 3d artist you probably know that games use only triangles for rendering. But there is one problem when trying to use those triangles for other stuff like collisions - the triangles do not exist on the CPU. Instead index and vertex arrays are sent to the graphic card and only the GPU put's those together as triangles. So when you need triangles on the CPU you have to create them explicitly. That's what ITriangleSelector's are for - they create core::triangle3df arrays on the CPU from the geometry data. And those can be used for collision code. The_Glitch uses ISceneNodeAnimatorCollisionResponse for automatic collisions which collides a sphere against static triangle geometry - something used a lot in first person games (spheres approximate humans and allow for climbing minor steps).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
The_Glitch
- Competition winner
- Posts: 523
- Joined: Tue Jan 15, 2013 6:36 pm
Re: More than one triangle selector
CuteAlien I did adjust the slide Value I put it at 1.5f but sadly nothing changed. I'll do some more test and post back.
Re: More than one triangle selector
Hi,
Ahh these are known as bounding boxes in Cryengine and Unty. A bounding box is basically a square box around your model. You can also have mesh bounding boxes, but these have a higher inpact on performance. Luckily I am hoping I won't need to use these in my game heh heh.@Asimov: It's about ITriangleSelector: http://irrlicht.sourceforge.net/docu/cl ... ector.html
As 3d artist you probably know that games use only triangles for rendering. But there is one problem when trying to use those triangles for other stuff like collisions - the triangles do not exist on the CPU. Instead index and vertex arrays are sent to the graphic card and only the GPU put's those together as triangles. So when you need triangles on the CPU you have to create them explicitly. That's what ITriangleSelector's are for - they create core::triangle3df arrays on the CPU from the geometry data. And those can be used for collision code. The_Glitch uses ISceneNodeAnimatorCollisionResponse for automatic collisions which collides a sphere against static triangle geometry - something used a lot in first person games (spheres approximate humans and allow for climbing minor steps).
Re: More than one triangle selector
No, bounding-boxes are boxes. Meaning you have usually a left-top and right-bottom. That's not a triangle. Triangle-selectors are triangles. They can form a box (you'll need 12 triangles for that), but they also can form the exact geometry of your mesh. If you work with 3DS-Max you should be familar with triangles I think... ITriangleSelector are the triangles you see there if you triangulize the whole mesh.
Irrlicht also has bounding-boxes.
Irrlicht also has bounding-boxes.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
The_Glitch
- Competition winner
- Posts: 523
- Joined: Tue Jan 15, 2013 6:36 pm
Re: More than one triangle selector
Use bounding box for simple meshes. For level geometry or worlds use the mesh itself.
-
The_Glitch
- Competition winner
- Posts: 523
- Joined: Tue Jan 15, 2013 6:36 pm
Re: More than one triangle selector
CuteAlien I believe your right about the normals of the environment. I changed around some code for the collision and used a plane as the ground mesh and the characters seem to navigate that pretty well. Still working out issue's for hit boxes as the under lying collision mesh Irrlicht likes you to use the same node for stuff lol.