Post Your Irrlicht Screenshots / Render Here.
Re: Post Your Irrlicht Screenshots / Render Here.
Some Constructive Geometry Operation: Clipping convex brushes by planes (i hope the links work...)
Next: Brushes intersections... That shouldn't provide much of a challenge, but things get interesting when those brushes move...
Next: Brushes intersections... That shouldn't provide much of a challenge, but things get interesting when those brushes move...
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Re: Post Your Irrlicht Screenshots / Render Here.
@Mel: Nice. Are you working on an editor?
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
-
- Posts: 1638
- Joined: Mon Apr 30, 2007 3:24 am
- Location: Montreal, CANADA
- Contact:
Re: Post Your Irrlicht Screenshots / Render Here.
Nice work Mel! Do you plan to use this to do convex decomposition?
Re: Post Your Irrlicht Screenshots / Render Here.
Converting arbitrary meshes into convex spaces isn't implemented, or perhaps, the conversion wouldn't happen in real time. My system represents the spaces as sets of planes defining closed spaces (i.e. you don't have access to its vertices and faces, only to the planes), so the simplest (though not the fastest) way would be to convert an arbitrary mesh into a BSP, and cut through it and converting the split BSP back into a regular mesh. That, in a nutshell.
My intention is to have both a procedural tool to build shapes and a way to handle closed spaces more eficient than triangle lists. An editor isn't in my projects list as of now, but it is clear that to get the most of these objects, it is better to have one.
Working intersections... Now i have to stress test it...
My intention is to have both a procedural tool to build shapes and a way to handle closed spaces more eficient than triangle lists. An editor isn't in my projects list as of now, but it is clear that to get the most of these objects, it is better to have one.
Working intersections... Now i have to stress test it...
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Re: Post Your Irrlicht Screenshots / Render Here.
Finally, renderable meshes
Actually it isn't anything really special, the polygons get triangulated into lists (so far, irrlicht doesn't support triangle fans MBs, though those i guess that have a catch... how to tell when a triangle fan ends and when a triangle fan starts?...) and are all added into a single meshbuffer (if i wanted to add more polygons into the meshbuffer, it would be perfectly possible)
The mapping coordinates are done within Irrlicht, so check the doc about it, although i want to implement on a per polygon basis a mapping coordinates reference for the triangulation, so each polygon can have its own set of texture coordinates and tangent space generation, for normal mapping and all that.
All the shapes that generate the last object
https://pbs.twimg.com/media/CpAmTh8XYAA6dYG.jpg
the object itself
https://pbs.twimg.com/media/CpAmTiBWgAED37O.jpg
Actually it isn't anything really special, the polygons get triangulated into lists (so far, irrlicht doesn't support triangle fans MBs, though those i guess that have a catch... how to tell when a triangle fan ends and when a triangle fan starts?...) and are all added into a single meshbuffer (if i wanted to add more polygons into the meshbuffer, it would be perfectly possible)
The mapping coordinates are done within Irrlicht, so check the doc about it, although i want to implement on a per polygon basis a mapping coordinates reference for the triangulation, so each polygon can have its own set of texture coordinates and tangent space generation, for normal mapping and all that.
All the shapes that generate the last object
https://pbs.twimg.com/media/CpAmTh8XYAA6dYG.jpg
the object itself
https://pbs.twimg.com/media/CpAmTiBWgAED37O.jpg
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
-
- Competition winner
- Posts: 688
- Joined: Mon Sep 10, 2012 8:51 am
Re: Post Your Irrlicht Screenshots / Render Here.
Excellent, Mel!
Re: Post Your Irrlicht Screenshots / Render Here.
Nice! I think this CSG stuff should make in into the engine.
Keep going on the BSP, it is the one thing Irrlicht can do with!
Nice!
Keep going on the BSP, it is the one thing Irrlicht can do with!
Nice!
Re: Post Your Irrlicht Screenshots / Render Here.
Definitively Irrlicht could use some convex body manipulation
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Re: Post Your Irrlicht Screenshots / Render Here.
BSP are easy, they're useful as access acceleration structures, the point is implementing something out of them, perhaps, using convex areas you can organize a complex scene so a convex area can have some other convex areas as neighbours, forming a graph. Using a BSP you may find quickly where you are and enable only that area to render, or perhaps that area and the inmediate neighbours, or other schemes, even dynamic visibility calculations using occlusion queries (you query the the covered pixels of the convex area), creating an efective management system for complex scenes. If we add in the ability to render octrees, the potential is huge.
Which is the kinikiest part you find? The Convex, the Body or the Manipulation?
Which is the kinikiest part you find? The Convex, the Body or the Manipulation?
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Re: Post Your Irrlicht Screenshots / Render Here.
I reckon they're all kinky! I'd love to see this tech applied on something
like a Quake 3 level which currently only uses Octrees for optimization (I think)..
Or even kinkier would be to load a large "*.obj" and apply BSP on that!
Good work Mel!
like a Quake 3 level which currently only uses Octrees for optimization (I think)..
Or even kinkier would be to load a large "*.obj" and apply BSP on that!
Good work Mel!
Re: Post Your Irrlicht Screenshots / Render Here.
Quake 3 curved surfaces are MA B*TCH*S! LOL I can now use them as primitives for mesh creation While the trouble saving irr scenes solved, i moved on and implemented these. I could implement the LOD control, but at this rate, that is better done on a geometry shader, so makes not much sense, but as "source" primitives, they provide a nice starting point. So far, i can control their U and V tesellation factor and their U and V tile repeat.
These are 3 all together. The similar normals provide their seamlessly interconnection.
Things are getting kinkier as time goes by
These are 3 all together. The similar normals provide their seamlessly interconnection.
Things are getting kinkier as time goes by
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Re: Post Your Irrlicht Screenshots / Render Here.
Is that bound to the Q3 loader, or just standalone?
Re: Post Your Irrlicht Screenshots / Render Here.
Standalone. I've used irr vectors to interpolate the patches because they already implement the quadratic interpolation. Each patch is a single entity which can be modified on its own, and then, they are stored into a structure that builds the mesh. I've not implemented any LOD though, but each patch can have its own amount of detail independently of the others
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Re: Post Your Irrlicht Screenshots / Render Here.
I jump back and forth on these projects, now, i finally have multiple texture coordinates and materials per shape, including a hollow material to exclude polygons that we don't want to render. And Octahedrons, next, hopefully, extruded primitives, and maybe, extruded primitives along a series of segments to create complex figures quickly.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt