irrShowMesh

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Post Reply
lug
Posts: 79
Joined: Tue May 02, 2006 5:15 am
Contact:

irrShowMesh

Post by lug »

lug here. I've been working on a mesh viewer for irrlicht (yes, I know there's like a gazillion different one).

But I'm focusing this one more on ease of use. The meshviewer example that comes with irrlicht annoys me. So, I'm rollin' my own version.

pic:

Image

features:

- based on meshviewer example
- uses windows forms (vc++ .net) for GUI (requires .net 2.0 runtime)
- uses irrlicht .net (duh!)
- drag-and-drop mesh load
- coded in managed c++
- uses multiple threads (one for GUI and one for irrlicht)
- planned x64 (64-bit) native version as well as 32-bit
- planned to add OpenMP for multi-core support

Okay, it's an excuse to try out window forms/x64/multi-core programming...are you happy now? :P

More pics (sourceforge was down at the time):

Image

Image

Image

Image
Last edited by lug on Mon Oct 09, 2006 9:26 pm, edited 1 time in total.
TheGameMaker
Posts: 275
Joined: Fri May 12, 2006 6:37 pm
Location: Germany

Post by TheGameMaker »

nice... it seams like you can load more than one mesh??
is it posiible, to have one mesh with one shader and another with a second shader??
lug
Posts: 79
Joined: Tue May 02, 2006 5:15 am
Contact:

Post by lug »

[quote="TheGameMaker"]nice... it seams like you can load more than one mesh??
is it posiible, to have one mesh with one shader and another with a second shader??[/quote]

Hmmm...hadn't thought about that. I'll keep that in mind.
lug
Posts: 79
Joined: Tue May 02, 2006 5:15 am
Contact:

Post by lug »

new pics:

Image

Image

Image

Image
lug
Posts: 79
Joined: Tue May 02, 2006 5:15 am
Contact:

Post by lug »

new video of irrShowMesh in action!

flash version (too small for my taste):

Image

or download full version from rapidshare (6193 KB):

http://rapidshare.de/files/36414222/irr ... o.wmv.html
lug
Posts: 79
Joined: Tue May 02, 2006 5:15 am
Contact:

Post by lug »

Added sleep to irrlicht thread to allow user to adjust the performance of the irrlicht thread. It defaults to 65 ms. That seems to be the optimal number. Without sleep, the irrlicht thread would eat up 20-40% of the cpu time. When set to 65 ms, it only took up 2-4 % of cpu time with acceptable slowdown.

Image

Code: Select all

	[System::Runtime::InteropServices::DllImport("kernel32.dll")]
   extern "C" void Sleep(long dwMilliseconds);

...

			 while(device->Run() && !bgwIrrlichtThread->CancellationPending)
			 {
...
				 // sleep (win32 unmanaged call)
					 Sleep(Convert::ToInt64(nudSleep->Text));

}
Update:

I've just uploaded the x64 version for everyone to download and play with (it uses 64-bit irrlicht and 64-bit irrlicht .NET dlls):

http://www.megaupload.com/?d=Z61T3V27

Nothing new since last post, I'm in a 64-bit craze at the moment so I just had to update irrShowMesh to x64 version. :)

Update 2:

Okay, looks like irrShowMesh is going to be the guinea pig to test out irrPreSettings. I have it setup to run irrPreSettings first. Once the user exits irrPreSettings, irrShowMesh will run and read in the xml file that irrPreSettings wrote.

irrShowMesh uses this to setup it's irrlicht device. Although, it doesn't use all of the items in the irrPreSetting xml file, it's useful nonetheless.

irrShowMesh has it's own configuration xml file for everything else like mesh settings (wireframe, initial position, etc.) that it saves so that the next time you run irrShowMesh it remembers the previous settings.

I couldn't figure out how to use the irrlicht's IXMLReader/Writer under irrlicht .NET. So, I used MS's xml api. It's quite similar to irrlicht's xml api in useage.

Anyway, I'll see if I can get a version ready for you guys to try out with the above mentioned additions. :)

Update 3:

Download here (still x64 version):

http://www.megaupload.com/?d=XHPW27A0
spidEY-CRO
Posts: 1
Joined: Sat Feb 24, 2007 10:10 pm

Post by spidEY-CRO »

lug, can you please upload it again.

The link has expired.
white tiger
Posts: 269
Joined: Tue Oct 31, 2006 3:24 pm
Contact:

Post by white tiger »

i can't download it
IrrWHAT?!
Posts: 33
Joined: Tue May 20, 2008 9:18 am
Location: Australia

Post by IrrWHAT?! »

OMG, you are using a windows-style file loading dialogue in Irrlicht. That is amazing! I didn't think that was possible, but I'm glad to see it can be done (I absolutely hate the irrlicht file loading dialogue) :)
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Well if you're app works on Windows then you can use the Windows API to open up a Windows file dialog pretty easily, Irrlicht doesn't stop that at all.

Good little project lug, doesn't matter if there's loads of other similar projects out there, if they don't do what you want then you either need to edit theirs or make your own!
Image Image Image
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

If it is written with irrlicht.net does it work with mono too? Or wait you need Irrlicht CP for that...
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

Can you handle meshes that have more than one material?
Eigen
Competition winner
Posts: 375
Joined: Fri Jan 27, 2006 2:01 pm
Location: Estonia
Contact:

Post by Eigen »

I don't think the author is still working on it. This project is from 2006. Not sure why IrrWHAT?! dug it up ..
GameDude
Posts: 498
Joined: Thu May 24, 2007 12:24 am

Post by GameDude »

That's pretty cool looking
Post Reply